udf: avoid unnecessary synchronous writes

Fix udf_clear_inode() to request asynchronous writeout in icache reclaim
path.

Signed-off-by: Mike Galbraith <efault@gmx.de>
Acked-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Mike Galbraith 2008-02-08 04:20:49 -08:00 committed by Linus Torvalds
parent 7f3fbd0897
commit 32a8f24dd7

View file

@ -119,7 +119,7 @@ void udf_clear_inode(struct inode *inode)
udf_discard_prealloc(inode);
udf_truncate_tail_extent(inode);
unlock_kernel();
write_inode_now(inode, 1);
write_inode_now(inode, 0);
}
iinfo = UDF_I(inode);
kfree(iinfo->i_ext.i_data);