Up to [Development] / linux-2.6-xfs / include / linux
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: HEAD
Revision 1.41 / (download) - annotate - [select for diffs], Wed Oct 15 15:44:15 2008 UTC (9 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
CVS Tags: HEAD
Changes since 1.40: +1 -0
lines
Diff to previous 1.40 (unified)
Merge of 2.6.x-xfs-melb:linux:32322a by kenmcd. Inode: Allow external list initialisation To allow XFS to combine the XFS and linux inodes into a single structure, we need to drive inode lookup from the XFS inode cache, not the generic inode cache. This means that we need initialise a struct inode from a context outside alloc_inode() as it is no longer used by XFS. After inode allocation and initialisation, we need to add the inode to the superblock list, the in-use list, hash it and do some accounting. This all needs to be done with the inode_lock held and there are already several places in fs/inode.c that do this list manipulation. Factor out the common code, add a locking wrapper and export the function so ti can be called from XFS. Signed-off-by: Dave Chinner <david@fromorbit.com>