diff options
author | Jan Kara <jack@suse.cz> | 2011-10-24 10:47:48 -0400 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2011-10-31 18:49:48 -0400 |
commit | ed47a7d00c22b326fc4c97342a73ecd15929732e (patch) | |
tree | 2881bfe249edea2838623856806adfea2a82a71f /fs/udf/super.c | |
parent | 3080a74ea39eece6ac21aae768c48ab8b1f89ac1 (diff) |
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/super.c')
-rw-r--r-- | fs/udf/super.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/udf/super.c b/fs/udf/super.c index dfe043a36593..e185253470df 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c | |||
@@ -1333,8 +1333,8 @@ static int udf_load_logicalvol(struct super_block *sb, sector_t block, | |||
1333 | le32_to_cpu(mdm->allocUnitSize); | 1333 | le32_to_cpu(mdm->allocUnitSize); |
1334 | mdata->s_align_unit_size = | 1334 | mdata->s_align_unit_size = |
1335 | le16_to_cpu(mdm->alignUnitSize); | 1335 | le16_to_cpu(mdm->alignUnitSize); |
1336 | mdata->s_dup_md_flag = | 1336 | if (mdm->flags & 0x01) |
1337 | mdm->flags & 0x01; | 1337 | mdata->s_flags |= MF_DUPLICATE_MD; |
1338 | 1338 | ||
1339 | udf_debug("Metadata Ident suffix=0x%x\n", | 1339 | udf_debug("Metadata Ident suffix=0x%x\n", |
1340 | le16_to_cpu(*(__le16 *) | 1340 | le16_to_cpu(*(__le16 *) |
@@ -1349,8 +1349,8 @@ static int udf_load_logicalvol(struct super_block *sb, sector_t block, | |||
1349 | le32_to_cpu(mdm->metadataMirrorFileLoc)); | 1349 | le32_to_cpu(mdm->metadataMirrorFileLoc)); |
1350 | udf_debug("Bitmap file loc=%d\n", | 1350 | udf_debug("Bitmap file loc=%d\n", |
1351 | le32_to_cpu(mdm->metadataBitmapFileLoc)); | 1351 | le32_to_cpu(mdm->metadataBitmapFileLoc)); |
1352 | udf_debug("Duplicate Flag: %d %d\n", | 1352 | udf_debug("Flags: %d %d\n", |
1353 | mdata->s_dup_md_flag, mdm->flags); | 1353 | mdata->s_flags, mdm->flags); |
1354 | } else { | 1354 | } else { |
1355 | udf_debug("Unknown ident: %s\n", | 1355 | udf_debug("Unknown ident: %s\n", |
1356 | upm2->partIdent.ident); | 1356 | upm2->partIdent.ident); |