Skip to content

Fix sys_sync() bug and cleanup code (version 2)

Jan Kara linux-fsdevel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4vfs: Fix sys_sync() and fsync_super() reliability (version 2)fs/super.c fs/sync.c include/linux/fs.h+30 -20 replies
2/4vfs: Call ->sync_fs() even if s_dirt is 0 (version 2)fs/super.c+1 -10 replies
3/4vfs: Make __fsync_super() a static function (version 2)fs/block_dev.c fs/super.c include/linux/fs.h+3 -53 replies
4/4vfs: Make sys_sync() use fsync_super() (version 2)fs/block_dev.c fs/fs-writeback.c fs/super.c +3 more+39 -1272 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] Fix sys_sync() bug and cleanup code (version 2)

Hi,

this is a next version of my series of patches to fix sys_sync(). The bug
could result in not all data being safely on disk after sys_sync() returns. It also fixes the same issue in fsync_super() which leads to assertion failure in JBD with Jens's per-BDI writeback patches.
The first patch fixes the data integrity problem, the other three patches are
various cleanups.

Honza