Skip to content

do not use s_dirt in ext2

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8mm: export dirty_writeback_intervalmm/page-writeback.c+2 -00 replies
2/8VFS: remove unused superblock helpersinclude/linux/fs.h+0 -130 replies
3/8ext2: write superblock only once on unmountfs/ext2/super.c+0 -33 replies
4/8ext2: intruduce ext2_mark_super_dirtyfs/ext2/balloc.c fs/ext2/ext2.h fs/ext2/ialloc.c +2 more+11 -50 replies
5/8ext2: introduce workqueue for superblock synchronizationfs/ext2/super.c include/linux/ext2_fs_sb.h+21 -30 replies
6/8ext2: stop using VFS for dirty superblock managementfs/ext2/super.c+63 -40 replies
7/8ext2: cleanup ext2_sync_super a bitfs/ext2/super.c+6 -40 replies
8/8ext2: introduce own superblock dirty flagfs/ext2/super.c include/linux/ext2_fs_sb.h+9 -80 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH v1 0/8] do not use s_dirt in ext2

This patch-set makes ext2 independent of the VFS superblock management services. Namely, ext2 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.

I have sent a similar patch-set for ext4 recently to Ted, see:
http://lkml.org/lkml/2012/3/20/220

Changes for other file-systems are coming later.

The patch-set structure.
1. patch 1 exports 'dirty_writeback_interval' and I also sent it as part of the ext4 patch-set
2. patch 2 is also and independent VFS clean-up and I also sent it as part of the ext4 patch-set
3. patch 3 is an independent ext2 clean-up patch
4. patches 4-8 actually make ext2 independent on the 'sync_supers()' thread.

Thanks,
Artem.