]> 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 43e6cfb5cbb3ddfa6fc5f13a4b47564f0f566e37..7b7b507ffa1cb269266e74044e8e57ec8e0b5d7b 100644 (file)
@@ -1789,9 +1789,8 @@ struct file_system_type {
        struct lock_class_key i_alloc_sem_key;
 };
 
-extern int get_sb_ns(struct file_system_type *fs_type, int flags, void *data,
-       int (*fill_super)(struct super_block *, void *, int),
-       struct vfsmount *mnt);
+extern struct dentry *mount_ns(struct file_system_type *fs_type, int flags,
+       void *data, int (*fill_super)(struct super_block *, void *, int));
 extern struct dentry *mount_bdev(struct file_system_type *fs_type,
        int flags, const char *dev_name, void *data,
        int (*fill_super)(struct super_block *, void *, int));
@@ -1868,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