[PATCH] hugetlbfs: move free_inodes accounting
authorChristoph Hellwig <hch@lst.de>
Sun, 30 Oct 2005 01:16:42 +0000 (18:16 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 30 Oct 2005 04:40:43 +0000 (21:40 -0700)
commit96527980d4cb8f65fe49efdbc4ab92c0837d42f6
tree93b6b438cee41d62e562ae277e67c9b6cad288a7
parentb8072f099b7829a6ff3eba618e1d079a81f753f8
[PATCH] hugetlbfs: move free_inodes accounting

Move hugetlbfs accounting into ->alloc_inode / ->destroy_inode.  This keeps
the code simpler, fixes a loeak where a failing inode allocation wouldn't
decrement the counter and moves hugetlbfs_delete_inode and
hugetlbfs_forget_inode closer to their generic counterparts.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/hugetlbfs/inode.c