mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 02:09:42 +00:00
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 <haveblue@us.ibm.com> Cc: <linux-ext4@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
This commit is contained in:
parent
1330593eb2
commit
d699594dc1
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue