Commit c1a26e7d authored by Peter Osterlund's avatar Peter Osterlund Committed by Linus Torvalds

[PATCH] UDF: Fix mounting read-write

The UDF filesystem can't be mounted in read-write mode any more,
because of forgotten braces.
Signed-off-by: default avatarPeter Osterlund <petero2@telia.com>
[ Duh! ]
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 4b0ff1a9
...@@ -1621,9 +1621,10 @@ static int udf_fill_super(struct super_block *sb, void *options, int silent) ...@@ -1621,9 +1621,10 @@ static int udf_fill_super(struct super_block *sb, void *options, int silent)
goto error_out; goto error_out;
} }
if (UDF_SB_PARTFLAGS(sb, UDF_SB_PARTITION(sb)) & UDF_PART_FLAG_READ_ONLY) if (UDF_SB_PARTFLAGS(sb, UDF_SB_PARTITION(sb)) & UDF_PART_FLAG_READ_ONLY) {
printk("UDF-fs: Partition marked readonly; forcing readonly mount\n"); printk("UDF-fs: Partition marked readonly; forcing readonly mount\n");
sb->s_flags |= MS_RDONLY; sb->s_flags |= MS_RDONLY;
}
if ( udf_find_fileset(sb, &fileset, &rootdir) ) if ( udf_find_fileset(sb, &fileset, &rootdir) )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment