diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2007-12-20 14:54:57 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-01-30 02:06:01 -0500 |
commit | bf4285e75c3272ad9bfdeb886d247962bb2985f8 (patch) | |
tree | a366fd1d3fb2591f1fce114f17aade410f1db3dc /fs | |
parent | d24aae41b4d4141d4f3cffdbf4c31d85637ba691 (diff) | |
download | linux-3.10-bf4285e75c3272ad9bfdeb886d247962bb2985f8.tar.gz linux-3.10-bf4285e75c3272ad9bfdeb886d247962bb2985f8.tar.bz2 linux-3.10-bf4285e75c3272ad9bfdeb886d247962bb2985f8.zip |
NFS: Fix minor mixed sign comparison in NFS client's write logic
Clean up: PAGE_CACHE_SIZE is unsigned, and nfs_pageio_init() takes a size_t.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfs/write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index fbd64f2fa7f..5ac5b27b639 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c @@ -939,7 +939,7 @@ static int nfs_flush_one(struct inode *inode, struct list_head *head, unsigned i static void nfs_pageio_init_write(struct nfs_pageio_descriptor *pgio, struct inode *inode, int ioflags) { - int wsize = NFS_SERVER(inode)->wsize; + size_t wsize = NFS_SERVER(inode)->wsize; if (wsize < PAGE_CACHE_SIZE) nfs_pageio_init(pgio, inode, nfs_flush_multi, wsize, ioflags); |