diff options
-rw-r--r-- | fs/ext4/namei.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index cac448282331..8990165346ee 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c | |||
@@ -2648,7 +2648,8 @@ int ext4_orphan_del(handle_t *handle, struct inode *inode) | |||
2648 | struct ext4_iloc iloc; | 2648 | struct ext4_iloc iloc; |
2649 | int err = 0; | 2649 | int err = 0; |
2650 | 2650 | ||
2651 | if (!EXT4_SB(inode->i_sb)->s_journal) | 2651 | if ((!EXT4_SB(inode->i_sb)->s_journal) && |
2652 | !(EXT4_SB(inode->i_sb)->s_mount_state & EXT4_ORPHAN_FS)) | ||
2652 | return 0; | 2653 | return 0; |
2653 | 2654 | ||
2654 | mutex_lock(&EXT4_SB(inode->i_sb)->s_orphan_lock); | 2655 | mutex_lock(&EXT4_SB(inode->i_sb)->s_orphan_lock); |