ext2: do not register write_super within VFS
PATCH 1/1 ext2: do not register write_super within VFS
From: Artem Bityutskiy <[email protected]>
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.
--- fs/ext2/super.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
fs/ext2/super.c +0 -1
@@ -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,
Signature · 1 line
1.7.7.6
Quoted 10 lines · Artem Bityutskiy
From: Artem Bityutskiy <[email protected]>
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 <[email protected]>
Thanks. Added to my tree.
Honza
Quoted 19 lines
--- fs/ext2/super.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)fs/ext2/super.c +0
-1@@ -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,Signature · 1 line
1.7.7.6
Signature · 2 lines
Jan Kara <[email protected]> SUSE Labs, CR
Quoted 8 lines · Jan Kara
Quoted 7 lines · Artem Bityutskiy
From: Artem Bityutskiy <[email protected]>
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.
Quoted 4 lines
Quoted 3 lines
Tested using xfstests.
Signed-off-by Artem Bityutskiy <[email protected]>Thanks. Added to my tree.
Jan, I do not see this patch in 'for_next' of your tree.
Signature · 2 lines
Best Regards, Artem Bityutskiy
Quoted 9 lines · Artem Bityutskiy
Quoted 8 lines · Jan Kara
Quoted 7 lines · Artem Bityutskiy
From: Artem Bityutskiy <[email protected]>
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.
Quoted 6 lines
Quoted 4 lines
Quoted 3 lines
Tested using xfstests.
Signed-off-by Artem Bityutskiy <[email protected]>Thanks. Added to my tree.
Jan, I do not see this patch in '
for_next' of your tree.
Yeah, it's not. So far it was in my for_next_testing and for_testing
branches. Once the branch (for_testing) passes some compile tests (done) and runtime tests with xfstests I will update for_next branch to include the patch as well. Because merge window is far, I don't hurry with that very much. But if it causes problems for you I can run the tests and update for_next tonight or tomorrow.
Honza
Signature · 2 lines
Jan Kara <[email protected]> SUSE Labs, CR
Quoted 6 lines · Jan Kara
Yeah, it's not. So far it was in my
for_next_testingandfor_testing
branches. Once the branch (for_testing) passes some compile tests (done) and runtime tests with xfstests I will updatefor_nextbranch to include the patch as well. Because merge window is far, I don't hurry with that very much. But if it causes problems for you I can run the tests and updatefor_nexttonight or tomorrow.
I see, thanks. No, I do not have any hurry - I have it in my local tree.
Signature · 2 lines
Best Regards, Artem Bityutskiy