* [PATCH] udf: stop using s_dirt
@ 2012-06-04 11:46 Artem Bityutskiy
2012-06-04 13:44 ` Jan Kara
0 siblings, 1 reply; 4+ messages in thread
From: Artem Bityutskiy @ 2012-06-04 11:46 UTC (permalink / raw)
To: Jan Kara; +Cc: Linux FS Maling List, Linux Kernel Maling List
From: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
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.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
---
fs/udf/super.c | 6 ------
fs/udf/udfdecl.h | 1 -
2 files changed, 0 insertions(+), 7 deletions(-)
diff --git a/fs/udf/super.c b/fs/udf/super.c
index ac8a348..34e6b87 100644
--- a/fs/udf/super.c
+++ b/fs/udf/super.c
@@ -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);
diff --git a/fs/udf/udfdecl.h b/fs/udf/udfdecl.h
index ebe1031..de038da 100644
--- a/fs/udf/udfdecl.h
+++ b/fs/udf/udfdecl.h
@@ -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);
--
1.7.7.6
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] udf: stop using s_dirt
2012-06-04 11:46 [PATCH] udf: stop using s_dirt Artem Bityutskiy
@ 2012-06-04 13:44 ` Jan Kara
2012-06-21 12:32 ` Artem Bityutskiy
0 siblings, 1 reply; 4+ messages in thread
From: Jan Kara @ 2012-06-04 13:44 UTC (permalink / raw)
To: Artem Bityutskiy; +Cc: Jan Kara, Linux FS Maling List, Linux Kernel Maling List
On Mon 04-06-12 14:46:24, Artem Bityutskiy wrote:
> From: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
>
> 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
>
> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
> ---
> fs/udf/super.c | 6 ------
> fs/udf/udfdecl.h | 1 -
> 2 files changed, 0 insertions(+), 7 deletions(-)
>
> diff --git a/fs/udf/super.c b/fs/udf/super.c
> index ac8a348..34e6b87 100644
> --- a/fs/udf/super.c
> +++ b/fs/udf/super.c
> @@ -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);
> diff --git a/fs/udf/udfdecl.h b/fs/udf/udfdecl.h
> index ebe1031..de038da 100644
> --- a/fs/udf/udfdecl.h
> +++ b/fs/udf/udfdecl.h
> @@ -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);
> --
> 1.7.7.6
>
--
Jan Kara <jack@suse.cz>
SUSE Labs, CR
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] udf: stop using s_dirt
2012-06-04 13:44 ` Jan Kara
@ 2012-06-21 12:32 ` Artem Bityutskiy
2012-06-21 23:29 ` Jan Kara
0 siblings, 1 reply; 4+ messages in thread
From: Artem Bityutskiy @ 2012-06-21 12:32 UTC (permalink / raw)
To: Jan Kara; +Cc: Linux FS Maling List, Linux Kernel Maling List
[-- Attachment #1: Type: text/plain, Size: 734 bytes --]
On Mon, 2012-06-04 at 15:44 +0200, Jan Kara wrote:
> On Mon 04-06-12 14:46:24, Artem Bityutskiy wrote:
> > From: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
> >
> > 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]
--
Best Regards,
Artem Bityutskiy
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] udf: stop using s_dirt
2012-06-21 12:32 ` Artem Bityutskiy
@ 2012-06-21 23:29 ` Jan Kara
0 siblings, 0 replies; 4+ messages in thread
From: Jan Kara @ 2012-06-21 23:29 UTC (permalink / raw)
To: Artem Bityutskiy; +Cc: Jan Kara, Linux FS Maling List, Linux Kernel Maling List
On Thu 21-06-12 15:32:43, Artem Bityutskiy wrote:
> On Mon, 2012-06-04 at 15:44 +0200, Jan Kara wrote:
> > On Mon 04-06-12 14:46:24, Artem Bityutskiy wrote:
> > > From: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
> > >
> > > 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]
Currently it's in for_testing branch. I've pushed the tree so that you
can see it as well ;).
Honza
--
Jan Kara <jack@suse.cz>
SUSE Labs, CR
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-06-21 23:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-04 11:46 [PATCH] udf: stop using s_dirt Artem Bityutskiy
2012-06-04 13:44 ` Jan Kara
2012-06-21 12:32 ` Artem Bityutskiy
2012-06-21 23:29 ` Jan Kara
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.