summaryrefslogtreecommitdiffstats
path: root/mm/memory.c
diff options
context:
space:
mode:
authorRichard Kennedy <richard@rsk.demon.co.uk>2010-05-24 14:32:38 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2010-05-25 08:07:00 -0700
commit58a9d3d8db06ca2ec31f64ec49ab0aeb89971b85 (patch)
tree70c695b6473d4d25b32a2946e053742f6c49755e /mm/memory.c
parentec95f53aa6ed62ba68660cb19c8474ebe9025cce (diff)
downloadlinux-58a9d3d8db06ca2ec31f64ec49ab0aeb89971b85.tar.gz
linux-58a9d3d8db06ca2ec31f64ec49ab0aeb89971b85.tar.bz2
linux-58a9d3d8db06ca2ec31f64ec49ab0aeb89971b85.zip
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 <richard@rsk.demon.co.uk> Cc: Alexander Viro <viro@zeniv.linux.org.uk> 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: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory.c')
0 files changed, 0 insertions, 0 deletions