]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
udf: Fix BUG_ON() in destroy_inode()
authorJan Kara <jack@suse.cz>
Tue, 23 Sep 2008 16:24:08 +0000 (18:24 +0200)
committerJan Kara <jack@suse.cz>
Thu, 27 Nov 2008 16:38:28 +0000 (17:38 +0100)
commit52b19ac993f1aeadbce15b55302be9a35346e235
tree90695f8fdaa97d3a30b1e5f82016fb1cce3da16b
parented313489badef16d700f5a3be50e8fd8f8294bc8
udf: Fix BUG_ON() in destroy_inode()

udf_clear_inode() can leave behind buffers on mapping's i_private list (when
we truncated preallocation). Call invalidate_inode_buffers() so that the list
is properly cleaned-up before we return from udf_clear_inode(). This is ugly
and suggest that we should cleanup preallocation earlier than in clear_inode()
but currently there's no such call available since drop_inode() is called under
inode lock and thus is unusable for disk operations.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/buffer.c
fs/udf/inode.c