Skip to contentSkip to conversation

ext2: do not register write_super within VFS

PATCH In review Artem Bityutskiy 2 participants 5 messages Apr 3, 2012 – Apr 11, 2012 ext2 file system

lore
Share & tools
lore
#0 lore raw

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
index a43f9ad..e0e8f45 100644
@@ -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
#1 lore raw
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.

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
index a43f9ad..e0e8f45 100644
@@ -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
#2 lore raw
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.

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
#3 lore raw
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.

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
#4 lore raw
Quoted 6 lines · Jan Kara

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.

I see, thanks. No, I do not have any hurry - I have it in my local tree.

Signature · 2 lines
Best Regards,
Artem Bityutskiy