Btrfs: don't auto defrag a file when doing directIO
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 5 Dec 2012 10:52:48 +0000 (10:52 +0000)
committerChris Mason <chris.mason@fusionio.com>
Mon, 17 Dec 2012 01:46:18 +0000 (20:46 -0500)
commit543eabd5e1929bc73e22b279aa911eb01447535f
tree79d0991024920c76d07eb573a9c8dceb0daba06e
parentfb57dc817c24d46b035320d871b7a3fcc778558d
Btrfs: don't auto defrag a file when doing directIO

If we runt the direct IO, we should not run auto defrag, because it may
introduce buffered IO vs direcIO problem, and make direct IO slow down.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/inode.c