From: Richard Kennedy Date: Mon, 24 May 2010 21:32:38 +0000 (-0700) Subject: fs-writeback: check sync bit earlier in inode_wait_for_writeback X-Git-Tag: v2.6.35-rc1~364 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58a9d3d8db06ca2ec31f64ec49ab0aeb89971b85;p=pandora-kernel.git fs-writeback: check sync bit earlier in inode_wait_for_writeback When wb_writeback() hasn't written anything it will re-acquire the inode lock before calling inode_wait_for_writeback. This change tests the sync bit first so that is doesn't need to drop & re-acquire the lock if the inode became available while wb_writeback() was waiting to get the lock. Signed-off-by: Richard Kennedy Cc: Alexander Viro Cc: Jens Axboe Cc: Wu Fengguang Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed