Use IS_RDONLY() instead of checking MS_RDONLY manually, for readability.
Signed-off-by: Stephen Tweedie <[email protected]>
--- linux-2.6.9-rc2-mm4/fs/ext3/ioctl.c.=K0003=.orig
+++ linux-2.6.9-rc2-mm4/fs/ext3/ioctl.c
@@ -183,7 +183,7 @@ flags_err:
if (!capable(CAP_SYS_RESOURCE))
return -EPERM;
- if (sb->s_flags & MS_RDONLY)
+ if (IS_RDONLY(inode))
return -EROFS;
if (get_user(n_blocks_count, (__u32 *)arg))
@@ -204,7 +204,7 @@ flags_err:
if (!capable(CAP_SYS_RESOURCE))
return -EPERM;
- if (inode->i_sb->s_flags & MS_RDONLY)
+ if (IS_RDONLY(inode))
return -EROFS;
if (copy_from_user(&input, (struct ext3_new_group_input *)arg,