Commit 32a8f24d authored by Mike Galbraith's avatar Mike Galbraith Committed by Linus Torvalds

udf: avoid unnecessary synchronous writes

Fix udf_clear_inode() to request asynchronous writeout in icache reclaim
path.
Signed-off-by: default avatarMike Galbraith <efault@gmx.de>
Acked-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7f3fbd08
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment