lkml.org 
[lkml]   [2004]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[Patch 4/10]: ext3 online resize: Use IS_RDONLY()
Use IS_RDONLY() instead of checking MS_RDONLY manually, for readability.

Signed-off-by: Stephen Tweedie <sct@redhat.com>

--- 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,
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:06    [W:0.023 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site