aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorMike Galbraith <efault@gmx.de>2008-02-08 07:20:49 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-08 12:22:36 -0500
commit32a8f24dd75c2be34606e77414afba7bc6b5b366 (patch)
tree78e4300f0a3657892aab4b3d01bb0297aaaa00d4 /fs
parent7f3fbd08976f1d2562d6174d5fe4c85d12bb7d54 (diff)
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/udf/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/udf/inode.c b/fs/udf/inode.c
index 466d2eea0eca..3483274fb5ba 100644
--- a/fs/udf/inode.c
+++ b/fs/udf/inode.c
@@ -119,7 +119,7 @@ void udf_clear_inode(struct inode *inode)
119 udf_discard_prealloc(inode); 119 udf_discard_prealloc(inode);
120 udf_truncate_tail_extent(inode); 120 udf_truncate_tail_extent(inode);
121 unlock_kernel(); 121 unlock_kernel();
122 write_inode_now(inode, 1); 122 write_inode_now(inode, 0);
123 } 123 }
124 iinfo = UDF_I(inode); 124 iinfo = UDF_I(inode);
125 kfree(iinfo->i_ext.i_data); 125 kfree(iinfo->i_ext.i_data);