fs: pull inode->i_lock up out of writeback_single_inode
authorDave Chinner <dchinner@redhat.com>
Tue, 22 Mar 2011 11:23:43 +0000 (22:23 +1100)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 25 Mar 2011 01:17:51 +0000 (21:17 -0400)
commit0f1b1fd86f6fd662e04da3e82a6780b226fcd0d1
tree422e2923193f5ac4ea2a6864a6635878ad58c43b
parent67a23c494621ff1d5431c3bc320947865b224625
fs: pull inode->i_lock up out of writeback_single_inode

First thing we do in writeback_single_inode() is take the i_lock and
the last thing we do is drop it. A caller already holds the i_lock,
so pull the i_lock out of writeback_single_inode() to reduce the
round trips on this lock during inode writeback.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/fs-writeback.c