forked from luck/tmp_suning_uos_patched
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:
parent
7f3fbd0897
commit
32a8f24dd7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user