]> err.no Git - linux-2.6/commit
hugetlb: fix i_blocks accounting
authorKen Chen <kenchen@google.com>
Thu, 15 Nov 2007 00:59:44 +0000 (16:59 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 15 Nov 2007 02:45:40 +0000 (18:45 -0800)
commit45c682a68a87251d9a01383ce076ab21ee09812e
treed9fa6a02263c50ef97e1c525b91b29b6aedf9e40
parent8cde045c7ee97573be6ce495b8f7c918182a2c7a
hugetlb: fix i_blocks accounting

For administrative purpose, we want to query actual block usage for
hugetlbfs file via fstat.  Currently, hugetlbfs always return 0.  Fix that
up since kernel already has all the information to track it properly.

Signed-off-by: Ken Chen <kenchen@google.com>
Acked-by: Adam Litke <agl@us.ibm.com>
Cc: Badari Pulavarty <pbadari@us.ibm.com>
Cc: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/hugetlb.h
mm/hugetlb.c