aboutsummaryrefslogtreecommitdiffstats
path: root/fs/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/super.c')
-rw-r--r--fs/super.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/super.c b/fs/super.c
index 0e7207b9815c..4906e2d8f400 100644
--- a/fs/super.c
+++ b/fs/super.c
@@ -892,6 +892,16 @@ vfs_kern_mount(struct file_system_type *type, int flags, const char *name, void
892 if (error) 892 if (error)
893 goto out_sb; 893 goto out_sb;
894 894
895 /*
896 * filesystems should never set s_maxbytes larger than MAX_LFS_FILESIZE
897 * but s_maxbytes was an unsigned long long for many releases. Throw
898 * this warning for a little while to try and catch filesystems that
899 * violate this rule. This warning should be either removed or
900 * converted to a BUG() in 2.6.34.
901 */
902 WARN((mnt->mnt_sb->s_maxbytes < 0), "%s set sb->s_maxbytes to "
903 "negative value (%lld)\n", type->name, mnt->mnt_sb->s_maxbytes);
904
895 mnt->mnt_mountpoint = mnt->mnt_root; 905 mnt->mnt_mountpoint = mnt->mnt_root;
896 mnt->mnt_parent = mnt; 906 mnt->mnt_parent = mnt;
897 up_write(&mnt->mnt_sb->s_umount); 907 up_write(&mnt->mnt_sb->s_umount);