From: Jan Kara Date: Fri, 18 Sep 2009 20:05:44 +0000 (-0700) Subject: vfs: split generic_forget_inode() so that hugetlbfs does not have to copy it X-Git-Tag: v2.6.32-rc1~58^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22fe404218156328a27e66349b1175cd0baa4990;p=pandora-kernel.git vfs: split generic_forget_inode() so that hugetlbfs does not have to copy it Hugetlbfs needs to do special things instead of truncate_inode_pages(). Currently, it copied generic_forget_inode() except for truncate_inode_pages() call which is asking for trouble (the code there isn't trivial). So create a separate function generic_detach_inode() which does all the list magic done in generic_forget_inode() and call it from hugetlbfs_forget_inode(). Signed-off-by: Jan Kara Cc: Al Viro Cc: Christoph Hellwig Signed-off-by: Andrew Morton Signed-off-by: Al Viro --- Reading git-diff-tree failed