Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

udf: stop using s_dirt

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>
Signed-off-by: Jan Kara <jack@suse.cz>

authored by

Artem Bityutskiy and committed by
Jan Kara
db8109ef f007dbf8

-7
-6
fs/udf/super.c
··· 1974 1974 sb->s_op = &udf_sb_ops; 1975 1975 sb->s_export_op = &udf_export_ops; 1976 1976 1977 - sb->s_dirt = 0; 1978 1977 sb->s_magic = UDF_SUPER_MAGIC; 1979 1978 sb->s_time_gran = 1000; 1980 1979 ··· 2095 2096 struct va_format vaf; 2096 2097 va_list args; 2097 2098 2098 - /* mark sb error */ 2099 - if (!(sb->s_flags & MS_RDONLY)) 2100 - sb->s_dirt = 1; 2101 - 2102 2099 va_start(args, fmt); 2103 2100 2104 2101 vaf.fmt = fmt; ··· 2156 2161 * the buffer for IO 2157 2162 */ 2158 2163 mark_buffer_dirty(sbi->s_lvid_bh); 2159 - sb->s_dirt = 0; 2160 2164 sbi->s_lvid_dirty = 0; 2161 2165 } 2162 2166 mutex_unlock(&sbi->s_alloc_mutex);
-1
fs/udf/udfdecl.h
··· 129 129 WARN_ON_ONCE(((struct logicalVolIntegrityDesc *) 130 130 bh->b_data)->integrityType != 131 131 cpu_to_le32(LVID_INTEGRITY_TYPE_OPEN)); 132 - sb->s_dirt = 1; 133 132 UDF_SB(sb)->s_lvid_dirty = 1; 134 133 } 135 134 extern u64 lvid_get_unique_id(struct super_block *sb);