Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 101812

Summary: export generic_drop_inode() patch
Product: Gentoo Linux Reporter: Lazar Obradovic <laza>
Component: [OLD] Core systemAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED FIXED    
Severity: enhancement Keywords: Inclusion
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 98024    
Attachments: patch that exports generic_drop_inode

Description Lazar Obradovic 2005-08-08 17:45:16 UTC
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
Comment 1 Lazar Obradovic 2005-08-08 17:46:59 UTC
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
Comment 2 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-08-08 21:44:49 UTC
Is this patch upstream yet?

I would not recommend exporting anything so core to the kernel unless the kernel maintainers 
upstream
agree with this.
Comment 3 Lazar Obradovic 2005-08-09 00:53:30 UTC
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>
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2005-08-29 08:51:22 UTC
gentoo-sources-2.6.13 now in portage