Skip to contentSkip to conversation

ext3: remove extra IS_RDONLY() check

PATCH In review [email protected] 1 participant 1 message Jul 16, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 203/268 ext3: remove extra IS_RDONLY() check

From: Dave Hansen <[email protected]>

ext3_change_inode_journal_flag() is only called from one location:
ext3_ioctl(EXT3_IOC_SETFLAGS). That ioctl case already has a IS_RDONLY() call in it so this one is superfluous.

---

 fs/ext3/inode.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ext3/inode.c renamed from fs/ext3/inode.c~ext3-remove-extra-is_rdonly-check +1 -1
diff -puN fs/ext3/inode.c~ext3-remove-extra-is_rdonly-check fs/ext3/inode.c
@@ -3195,7 +3195,7 @@ int ext3_change_inode_journal_flag(struc
 	 */
 
 	journal = EXT3_JOURNAL(inode);
-	if (is_journal_aborted(journal) || IS_RDONLY(inode))
+	if (is_journal_aborted(journal))
 		return -EROFS;
 
 	journal_lock_updates(journal);

_