diff options
author | OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> | 2013-06-16 18:49:24 +0900 |
---|---|---|
committer | Daniel Phillips <daniel@tux3.org> | 2013-06-16 18:49:24 +0900 |
commit | ba3049d6f635255ef35dbe5b7d4325597f7db5f5 (patch) | |
tree | 412e1c2e34887349335c0fa675e31652c9fabd83 | |
parent | 82b74d1e5559f14656db2133ea6b0aae24ba89ad (diff) | |
download | linux-tux3-ba3049d6f635255ef35dbe5b7d4325597f7db5f5.tar.gz |
tux3: Prevent to flush while replaying
While replaying, fs state is not completely initialized. So, this adds
the check of MS_ACTIVE.
FIXME: is there better way?
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
-rw-r--r-- | fs/tux3/commit_flusher_hack.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/tux3/commit_flusher_hack.c b/fs/tux3/commit_flusher_hack.c index 3b2df20899f2a..651b693fc35c1 100644 --- a/fs/tux3/commit_flusher_hack.c +++ b/fs/tux3/commit_flusher_hack.c @@ -118,7 +118,8 @@ static long tux3_wb_writeback(struct bdi_writeback *wb, unsigned delta; int err; - if (!wb_has_dirty_io(wb)) + /* If we didn't finish replay yet, don't flush. */ + if (!(vfs_sb(sb)->s_flags & MS_ACTIVE)) return 0; /* Get delta that have to write */ |