]> Git Repo - linux.git/commit - fs/libfs.c
vfs: make get_sb_pseudo set s_maxbytes to value that can be cast to signed
authorJeff Layton <[email protected]>
Tue, 18 Aug 2009 21:11:08 +0000 (14:11 -0700)
committerLinus Torvalds <[email protected]>
Tue, 18 Aug 2009 23:31:12 +0000 (16:31 -0700)
commit89a4eb4b66e8f4d395e14a14d262dac4d6ca52f0
treee8dfb8f3c70700c44a3a56f87541d45c86eec3f7
parent6b6f0b6c131321e1bc34c47b7f671b0360315402
vfs: make get_sb_pseudo set s_maxbytes to value that can be cast to signed

get_sb_pseudo sets s_maxbytes to ~0ULL which becomes negative when cast
to a signed value.  Fix it to use MAX_LFS_FILESIZE which casts properly
to a positive signed value.

Signed-off-by: Jeff Layton <[email protected]>
Reviewed-by: Johannes Weiner <[email protected]>
Acked-by: Steve French <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Robert Love <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/libfs.c
This page took 0.041497 seconds and 4 git commands to generate.