From: Mike Galbraith Date: Fri, 8 Feb 2008 12:20:49 +0000 (-0800) Subject: udf: avoid unnecessary synchronous writes X-Git-Tag: v2.6.25-rc1~130 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32a8f24dd75c2be34606e77414afba7bc6b5b366;p=linux-2.6 udf: avoid unnecessary synchronous writes Fix udf_clear_inode() to request asynchronous writeout in icache reclaim path. Signed-off-by: Mike Galbraith Acked-by: Jan Kara Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/udf/inode.c b/fs/udf/inode.c index 466d2eea0e..3483274fb5 100644 --- a/fs/udf/inode.c +++ b/fs/udf/inode.c @@ -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);