]> git.baikalelectronics.ru Git - kernel.git/commit
skip writing data pages when inode is under I_SYNC
authorQi Yong <qiyong@fc-cn.com>
Tue, 5 Feb 2008 06:29:23 +0000 (22:29 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 5 Feb 2008 17:44:18 +0000 (09:44 -0800)
commit0d4aa2495fa896fc454050d1746bbe9c7802f8dc
treeb539ab01562ae5b92ce365afd32e8fbab74a7e11
parentb96f5964c1e11d1b7bd9b6185537f18038e4815c
skip writing data pages when inode is under I_SYNC

Since I_SYNC was split out from I_LOCK, the concern in commit
0da1d307d9456588ab2f7436a7ba6ced06fb6911 ("Write back inode data pages
even when the inode itself is locked") is not longer valid.

We should revert to the original behavior: in __writeback_single_inode(),
when we find an I_SYNC-ed inode and we're not doing a data-integrity sync,
skip writing entirely.  Otherwise, we are double calling do_writepages()

Signed-off-by: Qi Yong <qiyong@fc-cn.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Hugh Dickins <hugh@veritas.com>
Cc: Joern Engel <joern@wohnheim.fh-wedel.de>
Cc: WU Fengguang <wfg@mail.ustc.edu.cn>
Cc: Michael Rubin <mrubin@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fs-writeback.c