vfs: improve writeback_inodes_wb()
authorEdward Shishkin <edward.shishkin@gmail.com>
Thu, 11 Mar 2010 22:09:47 +0000 (14:09 -0800)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 12 Mar 2010 09:03:42 +0000 (10:03 +0100)
commitf11c9c5c259cb2c3d698548dc3936f773ab1f5b9
treec6461c9d6981122e1507dafa0394901903eb2ca1
parentc12ec0a2d94001003dfb929ce14c287fca0522b0
vfs: improve writeback_inodes_wb()

Do not pin/unpin superblock for every inode in writeback_inodes_wb(), pin
it for the whole group of inodes which belong to the same superblock and
call writeback_sb_inodes() handler for them.

Signed-off-by: Edward Shishkin <edward.shishkin@gmail.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Cc: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fs/fs-writeback.c
include/linux/writeback.h