Whamcloud - gitweb
Avoid unneeded updates of block group descriptors in ext2fs_closefs()
authorTheodore Ts'o <tytso@mit.edu>
Sun, 3 May 2009 00:59:04 +0000 (20:59 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 3 May 2009 00:59:04 +0000 (20:59 -0400)
commit6d67ee305cdfff7131a4105551409d1603dba81d
tree5cc60d6b250205f9542b52188048b76f252fccae
parent47c1b8e16668daa6e74cee3c7b8bdf237ffefe70
Avoid unneeded updates of block group descriptors in ext2fs_closefs()

If the superblock is clean, and we only need to update
s_kbytes_written, then we only need to update the superblock.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/closefs.c