]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext2: write superblock only once on unmount
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 21 Mar 2012 16:14:30 +0000 (18:14 +0200)
committerJan Kara <jack@suse.cz>
Mon, 2 Apr 2012 22:00:01 +0000 (00:00 +0200)
commit58030ce7d83e3d49577e62170e70b3ff1642fa78
tree4e01a3d474487cd3cb37e114ced01fd1455c5df6
parentdffec8d1582fd7586121a683be71bc490d05c01b
ext2: write superblock only once on unmount

Currently on unmount if we are mounted R/W, we first write the superblock to
the media if it is dirty, and then write it again, which is not optimal. This
patch makes ext2 write the superblock on unmount less times.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/super.c