Skip to content

do not use s_dirt in ext4

Artem Bityutskiy linux-ext4 linux-fsdevel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 26 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9ext4: do not mark superblock as dirty unnecessarilyfs/ext4/inode.c+1 -31 reply
2/9ext4: write superblock only once on unmountfs/ext4/super.c+3 -41 reply
3/9ext4: remove useless s_dirt assignmentfs/ext4/super.c+0 -11 reply
4/9mm: export dirty_writeback_intervalmm/page-writeback.c+2 -00 replies
5/9VFS: remove unused superblock helpersinclude/linux/fs.h+0 -130 replies
6/9ext4: introduce __ext4_mark_super_dirtyfs/ext4/ext4.h fs/ext4/ext4_jbd2.c fs/ext4/super.c+8 -20 replies
7/9ext4: stop using VFS for dirty superblock managementfs/ext4/super.c+63 -101 reply
8/9ext4: small cleanup in ext4_commit_superfs/ext4/super.c+9 -91 reply
9/9ext4: introduce own superblock dirty flagfs/ext4/ext4.h fs/ext4/super.c+7 -60 replies

Reviews trailers per patch

4 of 9 patches have a Reviewed-by or Acked-by.

PatchJan Kara
1/9R-b
2/9R-b
3/9R-b
4/9
5/9
6/9
7/9
8/9R-b
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/9] do not use s_dirt in ext4

This patch-set makes ext4 independent of the VFS superblock management services. Namely, ext4 does not require to register the 'write_super()' VFS call-back.

The reason of this exercises is to get rid of the 'sync_supers()' kernel thread which wakes up every 5 seconds (by default) even if all superblocks are clean. This is wasteful from power management POW (unnecessary wake-ups).

Note, I tried to optimize 'sync_supers()' instead in 2010, but Al wanted me to get rid of it instead. See https://lkml.org/lkml/2010/6/6/87
And I think this is right because many file-systems do not need this, for example btrfs does not use VFS superblock management services at all, so on a btrfs-based system we currently end-up useless periodic wake-ups source.

Changes for other file-systems are coming later.

The patch-set structure.
1. patches 1,2,3 are independent ext4 cleanups and I ask Ted to merge them as soon/long as they are OK. I sent them also independently in order to get early comments, but did not get so far, so re-sending.
2. patch 4 exports 'dirty_writeback_interval' and it would be very useful to have it merged ASAP to simplify further work
3. patch 5 is also and independent VFS clean-up
4. patches 6-9 actually make ext4 independent on the 'sync_supers()' thread.

Thanks,
Artem.