• Jan Blunck's avatar
    ext2: Remove duplicate code from ext2_sync_fs() · 20da9baf
    Jan Blunck authored
    Depending in the state (valid or unchecked) of the filesystem either
    ext2_sync_super() or ext2_commit_super() is called. If the filesystem is
    currently valid (it is checked), we first mark it unchecked and afterwards
    duplicate the work that ext2_sync_super() is doing later. Therefore this
    patch removes the duplicate code and calls ext2_sync_super() directly after
    marking the filesystem unchecked.
    Signed-off-by: default avatarJan Blunck <jblunck@suse.de>
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    20da9baf
super.c 40.3 KB