Skip to contentSkip to conversation

NFS: Fix minor mixed sign comparison in NFS client's write logic

PATCH In review Chuck Lever 1 participant 1 message Dec 20, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 5/8 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.

---

 fs/nfs/write.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/nfs/write.c +1 -1
index 51cc1bd..bb0347c 100644
@@ -932,7 +932,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);