]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext2: Remove s_dirt handling
authorJan Kara <jack@suse.cz>
Sat, 31 Mar 2012 12:22:10 +0000 (14:22 +0200)
committerJan Kara <jack@suse.cz>
Mon, 2 Apr 2012 22:00:01 +0000 (00:00 +0200)
commitc2d9fae481e85baef30a7de63b868a66ba1075eb
tree40c6aef05db7773ce55959c375e018f00dd0d7eb
parent58030ce7d83e3d49577e62170e70b3ff1642fa78
ext2: Remove s_dirt handling

Places which modify superblock feature / state fields mark the superblock
buffer dirty so it is written out by flusher thread. Thus there's no need to
set s_dirt there.

The only other fields changing in the superblock are the numbers of free
blocks, free inodes and s_wtime. There's no real need to write (or even
compute) these periodically. Free blocks / inodes counters are recomputed on
every mount from group counters anyway and value of s_wtime is only
informational and imprecise anyway. So it should be enough to write these
opportunistically on mount, remount, umount, and sync_fs times.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/balloc.c
fs/ext2/ialloc.c
fs/ext2/super.c
fs/ext2/xattr.c