]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
udf: avoid unnecessary synchronous writes
authorMike Galbraith <efault@gmx.de>
Fri, 8 Feb 2008 12:20:49 +0000 (04:20 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 8 Feb 2008 17:22:36 +0000 (09:22 -0800)
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>
fs/udf/inode.c

index 466d2eea0eca63de58f314e8af440f55bb81b494..3483274fb5ba1aed8fb5f3612e7e0658a2ec869d 100644 (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);