]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/linux/fs.h
readv/writev: do the same MAX_RW_COUNT truncation that read/write does
[net-next-2.6.git] / include / linux / fs.h
index 4d07902bc50c0e11dff997ffa16c4aa6e449c214..7b7b507ffa1cb269266e74044e8e57ec8e0b5d7b 100644 (file)
@@ -1867,6 +1867,7 @@ extern int current_umask(void);
 /* /sys/fs */
 extern struct kobject *fs_kobj;
 
+#define MAX_RW_COUNT (INT_MAX & PAGE_CACHE_MASK)
 extern int rw_verify_area(int, struct file *, loff_t *, size_t);
 
 #define FLOCK_VERIFY_READ  1