mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-01 16:31:34 -05:00
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 <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
6b86e854f7
commit
e3a68e30d2
1 changed files with 1 additions and 1 deletions
|
|
@ -3195,7 +3195,7 @@ int ext3_change_inode_journal_flag(struct inode *inode, int val)
|
|||
*/
|
||||
|
||||
journal = EXT3_JOURNAL(inode);
|
||||
if (is_journal_aborted(journal) || IS_RDONLY(inode))
|
||||
if (is_journal_aborted(journal))
|
||||
return -EROFS;
|
||||
|
||||
journal_lock_updates(journal);
|
||||
|
|
|
|||
Loading…
Reference in a new issue