]> git.baikalelectronics.ru Git - kernel.git/commit
fs: check for statfs overflow
authorJon Tollefson <kniht@linux.vnet.ibm.com>
Thu, 24 Jul 2008 04:27:55 +0000 (21:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Jul 2008 17:47:19 +0000 (10:47 -0700)
commitcde03970bd004777a2ac8197aff0f28b55e37b04
tree6da3eed51a938e1680a6212c56f9383bcf5670e0
parent9521708ab041dfc8fa8d8afc0d14a0b94eaff3b8
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 <nacc@us.ibm.com>
Signed-off-by: Jon Tollefson <kniht@linux.vnet.ibm.com>
Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/compat.c
fs/open.c