Fix broken inode cluster setup.
The radix tree based inode caches did away with the inode cluster hashes,
replacing them with a bunch of masking and gang lookups on the radix tree.
This masking got broken when moving the code to per-ag radix trees and
indexing by agino # rather than straight inode number. The result is
clustered inode writeback does not cluster and things can go extremely
slowly when there are lots of inodes to write.
Fix it up by comparing the agino # of the inode we just looked up
to the index of the cluster we are looking for.
Signed-off-by: Dave Chinner <dgc@xxxxxxx>
Tested-by: Torsten Kaiser <just.for.lkml@xxxxxxxxxxxxxx>
Date: Fri Nov 9 16:02:06 AEDT 2007
Workarea: chook.melbourne.sgi.com:/build/dgc/isms/2.6.x-xfs
Inspected by: lachlan@xxxxxxx
The following file(s) were checked into:
longdrop.melbourne.sgi.com:/isms/linux/2.6.x-xfs-melb
Modid: xfs-linux-melb:xfs-kern:30033a
fs/xfs/xfs_iget.c - 1.238 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_iget.c.diff?r1=text&tr1=1.238&r2=text&tr2=1.237&f=h
- Make the cluster lookup use the agino rather than full inode number
so that clusters are correctly built.
|