writeback: make the super_block pinning more efficient
authorJens Axboe <jens.axboe@oracle.com>
Thu, 24 Sep 2009 13:25:11 +0000 (15:25 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 25 Sep 2009 16:08:26 +0000 (18:08 +0200)
commit9ecc2738ac2371f88dff5d48914b4e35c45203cd
tree12cd500172561fb43e5cbe1ee1993945a4ac2c5c
parentcf137307cd9827495b65e7d74ea2b610daa9898b
writeback: make the super_block pinning more efficient

Currently we pin the inode->i_sb for every single inode. This
increases cache traffic on sb->s_umount sem. Lets instead
cache the inode sb pin state and keep the super_block pinned
for as long as keep writing out inodes from the same
super_block.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fs/fs-writeback.c