From: Artem Bityutskiy Date: Tue, 3 Apr 2012 09:49:18 +0000 (+0300) Subject: ext2: do not register write_super within VFS X-Git-Tag: upstream/snapshot3+hdmi~7381^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f72cf5e223a28d3b3ea7dc9e40464fd534e359e8;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Signed-off-by: Jan Kara --- diff --git a/fs/ext2/super.c b/fs/ext2/super.c index a43f9ad..e0e8f45 100644 --- a/fs/ext2/super.c +++ b/fs/ext2/super.c @@ -302,7 +302,6 @@ static const struct super_operations ext2_sops = { .write_inode = ext2_write_inode, .evict_inode = ext2_evict_inode, .put_super = ext2_put_super, - .write_super = ext2_write_super, .sync_fs = ext2_sync_fs, .statfs = ext2_statfs, .remount_fs = ext2_remount,