Commit e3a68e30d28dbc6981dfc3d6ceddbfa2f885fe4e

Authored by Dave Hansen
Committed by Linus Torvalds
1 parent 6b86e854f7

ext3: remove extra IS_RDONLY() check

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.

Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Cc: <linux-ext4@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -3195,7 +3195,7 @@
3195 3195 */
3196 3196  
3197 3197 journal = EXT3_JOURNAL(inode);
3198   - if (is_journal_aborted(journal) || IS_RDONLY(inode))
  3198 + if (is_journal_aborted(journal))
3199 3199 return -EROFS;
3200 3200  
3201 3201 journal_lock_updates(journal);