]> bbs.cooldavid.org Git - net-next-2.6.git/commit
xfs: use hlist_add_fake
authorChristoph Hellwig <hch@infradead.org>
Sat, 6 Nov 2010 11:43:08 +0000 (11:43 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 10 Nov 2010 18:00:48 +0000 (12:00 -0600)
commitc6f6cd0608b1826ee1797cf57a808416e4bdb806
tree4c82ec811ef359f71c83f2a68c46498f0b59618b
parent5d2bf8a55e03b0e59ed5a4ac2ff7f9ee3ba7e40d
xfs: use hlist_add_fake

XFS does not need it's inodes to actuall be hashed in the VFS inode
cache, but we require the inode to be marked hashed for the
writeback code to work.

Insted of using insert_inode_hash, which requires a second
inode_lock roundtrip after the partial merge of the inode
scalability patches in 2.6.37-rc simply use the new hlist_add_fake
helper to mark it hashed without requiring a lock or touching a
global cache line.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/linux-2.6/xfs_iops.c