[Patch 4/10]: ext3 online resize: Use IS_RDONLY()
From: Stephen Tweedie (sct_at_redhat.com)
Date: 09/30/04
- Previous message: Stephen Tweedie: "[Patch 6/10]: ext3 online resize: remove on-stack bogus inode"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Sep 2004 14:23:34 +0100 To: linux-kernel@vger.kernel.org, Andrew Morton <akpm@osdl.org>, Andreas Dilger <adilger@clusterfs.com>, "Theodore Ts'o" <tytso@mit.edu>, ext2-devel@lists.sourceforge.net
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/
- Previous message: Stephen Tweedie: "[Patch 6/10]: ext3 online resize: remove on-stack bogus inode"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: XFS breakage in 2.6.18-rc1
... system disk too who had to take the hit. ... send the line "unsubscribe linux-kernel"
in ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please
read the FAQ at http://www.tux.org/lkml/ ... (Linux-Kernel) - Re: How to run an a.out file in a kernel module
... called in a kernel module using call_usermodehelper ... Please read the FAQ
at http://www.tux.org/lkml/ ... More majordomo info at http://vger.kernel.org/majordomo-info.html
... (Linux-Kernel) - Re: XFS Bug null pointer dereference in xfs_free_ag_extent
... I also filed bug 6877 at kernel.org ... send the line "unsubscribe linux-kernel"
in ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please
read the FAQ at http://www.tux.org/lkml/ ... (Linux-Kernel) - Re: [patch] remove unused acct variables from task_struct
... struct mempolicy *mempolicy; ... More majordomo info at http://vger.kernel.org/majordomo-info.html
... Please read the FAQ at http://www.tux.org/lkml/ ... send the line "unsubscribe
linux-kernel" in ... (Linux-Kernel) - Re: DIPC alpha2 for i386, Alpha, SPARC, and M68k
... there seems to be a delay on cs.uwindsor.ca between the time you upload something and
the time it actually shows up on the page. ... More majordomo info at http://vger.kernel.org/majordomo-info.html
... Please read the FAQ at http://www.tux.org/lkml/ ... To unsubscribe from this
list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
... (Linux-Kernel)