Commit 4358b567 authored by Jeff Layton's avatar Jeff Layton Committed by Steve French

VFS: trivial: fix comment on s_maxbytes value warning check

I originally intended to remove this warning in 2.6.34, but it's not in
a high performance codepath and might help us to catch bugs later. Let's
keep it, but fix the comment to allay confusion about its removal.
Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent b73b9a4b
...@@ -948,8 +948,7 @@ mount_fs(struct file_system_type *type, int flags, const char *name, void *data) ...@@ -948,8 +948,7 @@ mount_fs(struct file_system_type *type, int flags, const char *name, void *data)
* filesystems should never set s_maxbytes larger than MAX_LFS_FILESIZE * filesystems should never set s_maxbytes larger than MAX_LFS_FILESIZE
* but s_maxbytes was an unsigned long long for many releases. Throw * but s_maxbytes was an unsigned long long for many releases. Throw
* this warning for a little while to try and catch filesystems that * this warning for a little while to try and catch filesystems that
* violate this rule. This warning should be either removed or * violate this rule.
* converted to a BUG() in 2.6.34.
*/ */
WARN((sb->s_maxbytes < 0), "%s set sb->s_maxbytes to " WARN((sb->s_maxbytes < 0), "%s set sb->s_maxbytes to "
"negative value (%lld)\n", type->name, sb->s_maxbytes); "negative value (%lld)\n", type->name, sb->s_maxbytes);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment