udf: stop using s_dirt
Subsystems (2)
PATCH 1/1 udf: stop using s_dirt
From: Artem Bityutskiy <[email protected]>
The UDF file-system does not need the 's_dirt' superblock flag because it does not define the 'write_super()' method. This flag was set to 1 in few places and set to 0 in '->sync_fs()' and was basically useless. Stop using it because it is on its way out.
--- fs/udf/super.c | 6 ------ fs/udf/udfdecl.h | 1 - 2 files changed, 0 insertions(+), 7 deletions(-)
fs/udf/super.c +0 -6
@@ -1948,7 +1948,6 @@ static int udf_fill_super(struct super_block *sb, void *options, int silent) sb->s_op = &udf_sb_ops; sb->s_export_op = &udf_export_ops; - sb->s_dirt =0 ; sb->s_magic =UDF_SUPER_MAGIC ; sb->s_time_gran =1000 ;
@@ -2070,10 +2069,6 @@ void _udf_err(struct super_block *sb, const char *function,struct va_format vaf;va_list args; -/* mark sb error */ -if (!(sb->s_flags &MS_RDONLY )) - sb->s_dirt =1 ; -va_start (args, fmt); vaf.fmt = fmt;
@@ -2135,7 +2130,6 @@ static int udf_sync_fs(struct super_block *sb, int wait)* the buffer for IO */ mark_buffer_dirty (sbi->s_lvid_bh); - sb->s_dirt =0 ; sbi->s_lvid_dirty =0 ; }mutex_unlock (&sbi->s_alloc_mutex);
fs/udf/udfdecl.h +0 -1
@@ -129,7 +129,6 @@ static inline void udf_updated_lvid(struct super_block *sb)WARN_ON_ONCE (((struct logicalVolIntegrityDesc *) bh->b_data)->integrityType !=cpu_to_le32 (LVID_INTEGRITY_TYPE_OPEN )); - sb->s_dirt =1 ;UDF_SB (sb)->s_lvid_dirty =1 ; }extern u64 lvid_get_unique_id (struct super_block *sb);
Signature · 1 line
1.7.7.6
Jan Kara
reviewerQuoted 6 lines · Artem Bityutskiy
From: Artem Bityutskiy <[email protected]>
The UDF file-system does not need the '
s_dirt' superblock flag because it does not define the 'write_super()' method. This flag was set to 1 in few places and set to 0 in '->sync_fs()' and was basically useless. Stop using it because it is on its way out.
Thanks. I've merged the patch to my tree.
Honza
Quoted 53 lines
Signed-off-by Artem Bityutskiy <[email protected]>--- fs/udf/super.c | 6 ------ fs/udf/udfdecl.h | 1 - 2 files changed, 0 insertions(+), 7 deletions(-)fs/udf/super.c +0
-6@@ -1948,7 +1948,6 @@ static int udf_fill_super(struct super_block *sb, void *options, int silent) sb->s_op = &udf_sb_ops; sb->s_export_op = &udf_export_ops; - sb->s_dirt =0 ; sb->s_magic =UDF_SUPER_MAGIC ; sb->s_time_gran =1000 ;@@ -2070,10 +2069,6 @@ void _udf_err(struct super_block *sb, const char *function,struct va_format vaf;va_list args; -/* mark sb error */ -if (!(sb->s_flags &MS_RDONLY )) - sb->s_dirt =1 ; -va_start (args, fmt); vaf.fmt = fmt;@@ -2135,7 +2130,6 @@ static int udf_sync_fs(struct super_block *sb, int wait)* the buffer for IO */ mark_buffer_dirty (sbi->s_lvid_bh); - sb->s_dirt =0 ; sbi->s_lvid_dirty =0 ; }mutex_unlock (&sbi->s_alloc_mutex);fs/udf/udfdecl.h +0
-1@@ -129,7 +129,6 @@ static inline void udf_updated_lvid(struct super_block *sb)WARN_ON_ONCE (((struct logicalVolIntegrityDesc *) bh->b_data)->integrityType !=cpu_to_le32 (LVID_INTEGRITY_TYPE_OPEN )); - sb->s_dirt =1 ;UDF_SB (sb)->s_lvid_dirty =1 ; }extern u64 lvid_get_unique_id (struct super_block *sb);Signature · 1 line
1.7.7.6
Signature · 2 lines
Jan Kara <[email protected]> SUSE Labs, CR
Quoted 8 lines · Jan Kara
Quoted 6 lines · Artem Bityutskiy
From: Artem Bityutskiy <[email protected]>
The UDF file-system does not need the '
s_dirt' superblock flag because it does not define the 'write_super()' method. This flag was set to 1 in few places and set to 0 in '->sync_fs()' and was basically useless. Stop using it because it is on its way out.Thanks. I've merged the patch to my tree.
Sorry Jan, but which one? I do not see it here at least:
git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
[I am trying to find out which bits and pieces of this work are where]
Signature · 2 lines
Best Regards, Artem Bityutskiy
Jan Kara
reviewerQuoted 8 lines · Artem Bityutskiy
Quoted 7 lines · Jan Kara
Quoted 6 lines · Artem Bityutskiy
From: Artem Bityutskiy <[email protected]>
The UDF file-system does not need the '
s_dirt' superblock flag because it does not define the 'write_super()' method. This flag was set to 1 in few places and set to 0 in '->sync_fs()' and was basically useless. Stop using it because it is on its way out.
Quoted 7 lines
Quoted 1 line
Thanks. I've merged the patch to my tree.
Sorry Jan, but which one? I do not see it here at least:
git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs[I am trying to find out which bits and pieces of this work are where]
Currently it's in for_testing branch. I've pushed the tree so that you
can see it as well ;).
Honza
Signature · 2 lines
Jan Kara <[email protected]> SUSE Labs, CR