From: Dave Hansen Date: Wed, 18 Jul 2007 12:33:51 +0000 (-0400) Subject: ext4: remove extra IS_RDONLY() check X-Git-Tag: v3.12-rc1~28088^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d699594dc151c664a2b307e680a3cd9b7145fd83;p=kernel%2Fkernel-generic.git ext4: remove extra IS_RDONLY() check ext4_change_inode_journal_flag() is only called from one location: ext4_ioctl(EXT3_IOC_SETFLAGS). That ioctl case already has a IS_RDONLY() call in it so this one is superfluous. Signed-off-by: Dave Hansen Cc: Signed-off-by: Andrew Morton Signed-off-by: Dave Kleikamp Signed-off-by: "Theodore Ts'o" --- diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 125aca7..de26c25 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -3275,7 +3275,7 @@ int ext4_change_inode_journal_flag(struct inode *inode, int val) */ journal = EXT4_JOURNAL(inode); - if (is_journal_aborted(journal) || IS_RDONLY(inode)) + if (is_journal_aborted(journal)) return -EROFS; jbd2_journal_lock_updates(journal);