fs: check for statfs overflow
authorJon Tollefson <[email protected]>
Thu, 24 Jul 2008 04:27:55 +0000 (21:27 -0700)
committerLinus Torvalds <[email protected]>
Thu, 24 Jul 2008 17:47:19 +0000 (10:47 -0700)
commitf4a67cceee4a6f5ed38011a698c9e34747270ae5
tree6da3eed51a938e1680a6212c56f9383bcf5670e0
parent91224346aa8c1cdaa660300a98e0b074a3a95030
fs: check for statfs overflow

Adds a check for an overflow in the filesystem size so if someone is
checking with statfs() on a 16G blocksize hugetlbfs in a 32bit binary that
it will report back EOVERFLOW instead of a size of 0.

Acked-by: Nishanth Aravamudan <[email protected]>
Signed-off-by: Jon Tollefson <[email protected]>
Signed-off-by: Nick Piggin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/compat.c
fs/open.c