summaryrefslogtreecommitdiffstats
path: root/fs/udf/partition.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2011-10-24 16:47:48 +0200
committerJan Kara <jack@suse.cz>2011-10-31 23:49:48 +0100
commited47a7d00c22b326fc4c97342a73ecd15929732e (patch)
tree2881bfe249edea2838623856806adfea2a82a71f /fs/udf/partition.c
parent3080a74ea39eece6ac21aae768c48ab8b1f89ac1 (diff)
downloadlinux-ed47a7d00c22b326fc4c97342a73ecd15929732e.tar.gz
linux-ed47a7d00c22b326fc4c97342a73ecd15929732e.tar.bz2
linux-ed47a7d00c22b326fc4c97342a73ecd15929732e.zip
udf: Cleanup metadata flags handling
Use simple ->s_flags variable instead of u8 variable for each flag. Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf/partition.c')
-rw-r--r--fs/udf/partition.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/udf/partition.c b/fs/udf/partition.c
index b526f25c04c9..d6caf01a2097 100644
--- a/fs/udf/partition.c
+++ b/fs/udf/partition.c
@@ -323,10 +323,10 @@ uint32_t udf_get_pblock_meta25(struct super_block *sb, uint32_t block,
retblk = udf_try_read_meta(inode, block, partition, offset);
if (retblk == 0xFFFFFFFF && mdata->s_metadata_fe) {
udf_warn(sb, "error reading from METADATA, trying to read from MIRROR\n");
- if (!mdata->s_mirror_loaded_flag) {
+ if (!(mdata->s_flags & MF_MIRROR_FE_LOADED)) {
mdata->s_mirror_fe = udf_find_metadata_inode_efe(sb,
mdata->s_mirror_file_loc, map->s_partition_num);
- mdata->s_mirror_loaded_flag = 1;
+ mdata->s_flags |= MF_MIRROR_FE_LOADED;
}
inode = mdata->s_mirror_fe;