NFS: Prevent integer overflow in nfs_scan_list()
Also ensure that nfs_inode ncommit and npages are large enough to represent
all possible values for the number of pages.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h
index a942054..750708c 100644
--- a/include/linux/nfs_fs.h
+++ b/include/linux/nfs_fs.h
@@ -158,7 +158,7 @@
spinlock_t req_lock;
struct radix_tree_root nfs_page_tree;
- unsigned int ncommit,
+ unsigned long ncommit,
npages;
/* Open contexts for shared mmap writes */