Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ext2: do not register write_super within VFS

Jan Kara removed 'sb->s_dirt' VFS flag references, so we do not need to
register the ext2 'ext2_write_super()' method in the VFS superblock operations,
because 'sb->s_dirt' won't be ever set to 1 and VFS won't ever call
'->write_super()' anyway. Thus, remove the method.

Tested using xfstests.

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

authored by

Artem Bityutskiy and committed by
Jan Kara
f72cf5e2 b838ec22

-1
-1
fs/ext2/super.c
··· 302 302 .write_inode = ext2_write_inode, 303 303 .evict_inode = ext2_evict_inode, 304 304 .put_super = ext2_put_super, 305 - .write_super = ext2_write_super, 306 305 .sync_fs = ext2_sync_fs, 307 306 .statfs = ext2_statfs, 308 307 .remount_fs = ext2_remount,