mirror of
https://github.com/torvalds/linux.git
synced 2024-10-30 16:51:45 +00:00
ext4: drop inode from orphan list if ext4_delete_inode() fails
There were some error paths in ext4_delete_inode() which was not dropping the inode from the orphan list. This could lead to a BUG_ON on umount when the orphan list is discovered to be non-empty. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
This commit is contained in:
parent
f613dfcb33
commit
4538821993
@ -221,6 +221,7 @@ void ext4_delete_inode(struct inode *inode)
|
||||
"couldn't extend journal (err %d)", err);
|
||||
stop_handle:
|
||||
ext4_journal_stop(handle);
|
||||
ext4_orphan_del(NULL, inode);
|
||||
goto no_delete;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user