Hello, could you please include attached patch in gentoo-sources? It's required by ocfs2. It exports generic_drop_inode() from fs/inode.c. This 'bug' is currently blocking bz#98024
Created attachment 65492 [details, diff] patch that exports generic_drop_inode Patch against gentoo-sources-2.6.12-r6. It's offset adjusted version of patch included with ocfs2, available from: http://oss.oracle.com/projects/ocfs2/dist/files/source/ocfs2-1.0.0.tar.gz
Is this patch upstream yet? I would not recommend exporting anything so core to the kernel unless the kernel maintainers upstream agree with this.
As from what I can see, it is since 2.6.13-r3: commit cb2c0233755429037462e16ea0d5497a0092738c Author: Mark Fasheh <mark.fasheh@oracle.com> Date: Thu Jul 7 17:56:03 2005 -0700 [PATCH] export generic_drop_inode() to modules OCFS2 wants to mark an inode which has been orphaned by another node so that during final iput it takes the correct path through the VFS and can pass through the OCFS2 delete_inode callback. Since i_nlink can get out of date with other nodes, the best way I see to accomplish this is by clearing i_nlink on those inodes at drop_inode time. Other than this small amount of work, nothing different needs to happen, so I think it would be cleanest to be able to just call generic_drop_inode at the end of the OCFS2 drop_inode callback. Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
gentoo-sources-2.6.13 now in portage