Skip to content

Commit f72cf5e

Browse files
dedekindjankara
authored andcommitted
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>
1 parent b838ec2 commit f72cf5e

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎fs/ext2/super.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,6 @@ static const struct super_operations ext2_sops = {
302302
.write_inode = ext2_write_inode,
303303
.evict_inode = ext2_evict_inode,
304304
.put_super = ext2_put_super,
305-
.write_super = ext2_write_super,
306305
.sync_fs = ext2_sync_fs,
307306
.statfs = ext2_statfs,
308307
.remount_fs = ext2_remount,

0 commit comments

Comments
 (0)