Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 45388219 authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

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: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent f613dfcb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
		}
	}