Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S269250AbUI3Nhj (ORCPT ); Thu, 30 Sep 2004 09:37:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S269262AbUI3NZT (ORCPT ); Thu, 30 Sep 2004 09:25:19 -0400 Received: from mx1.redhat.com ([66.187.233.31]:21400 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S269266AbUI3NYD (ORCPT ); Thu, 30 Sep 2004 09:24:03 -0400 Date: Thu, 30 Sep 2004 14:23:34 +0100 Message-Id: <200409301323.i8UDNYYV004777@sisko.scot.redhat.com> From: Stephen Tweedie To: linux-kernel@vger.kernel.org, Andrew Morton , Andreas Dilger , "Theodore Ts'o" , ext2-devel@lists.sourceforge.net Cc: Stephen Tweedie Subject: [Patch 4/10]: ext3 online resize: Use IS_RDONLY() Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 912 Lines: 29 Use IS_RDONLY() instead of checking MS_RDONLY manually, for readability. Signed-off-by: Stephen Tweedie --- 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/