diff options
-rw-r--r-- | fs/nfs/pagelist.c | 2 | ||||
-rw-r--r-- | include/linux/nfs_fs.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/fs/nfs/pagelist.c b/fs/nfs/pagelist.c index ad90cbe76703..68f6bf122006 100644 --- a/fs/nfs/pagelist.c +++ b/fs/nfs/pagelist.c | |||
@@ -425,6 +425,8 @@ int nfs_scan_list(struct nfs_inode *nfsi, | |||
425 | req->wb_index, tag); | 425 | req->wb_index, tag); |
426 | nfs_list_add_request(req, dst); | 426 | nfs_list_add_request(req, dst); |
427 | res++; | 427 | res++; |
428 | if (res == INT_MAX) | ||
429 | goto out; | ||
428 | } | 430 | } |
429 | } | 431 | } |
430 | 432 | ||
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index a94205476736..750708ccd708 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h | |||
@@ -158,7 +158,7 @@ struct nfs_inode { | |||
158 | spinlock_t req_lock; | 158 | spinlock_t req_lock; |
159 | struct radix_tree_root nfs_page_tree; | 159 | struct radix_tree_root nfs_page_tree; |
160 | 160 | ||
161 | unsigned int ncommit, | 161 | unsigned long ncommit, |
162 | npages; | 162 | npages; |
163 | 163 | ||
164 | /* Open contexts for shared mmap writes */ | 164 | /* Open contexts for shared mmap writes */ |