Btrfs: don't flush the delalloc inodes in the while loop if flushoncommit is set
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 15 May 2013 07:48:28 +0000 (07:48 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Fri, 14 Jun 2013 15:29:47 +0000 (11:29 -0400)
commit824366177aa108eb7b778dc67e4f38b9e01df93f
tree973dcc26b4af6720102522027132fc4d8545c9c6
parent0860adfdb21c87c73afab4d143e7195603b3e883
Btrfs: don't flush the delalloc inodes in the while loop if flushoncommit is set

It is unnecessary to flush the delalloc inodes again and again because
we don't care the dirty pages which are introduced after the flush, and
they will be flush in the transaction commit.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/transaction.c