]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: create a pinned em when writing to a prealloc range in DIO
authorJosef Bacik <jbacik@fusionio.com>
Tue, 11 Sep 2012 19:40:07 +0000 (15:40 -0400)
committerChris Mason <chris.mason@fusionio.com>
Mon, 1 Oct 2012 19:19:20 +0000 (15:19 -0400)
commit05d644b0d4e7986b0d130d6f8612d2e69724c3cd
tree34e12adce924817ccfba6ecc7be3b68e4cdcab98
parent36aecd5593a206a344a9e6f9a495fb5801b9f03a
Btrfs: create a pinned em when writing to a prealloc range in DIO

Wade Cline reported a problem where he was getting garbage and warnings when
writing to a preallocated range via O_DIRECT.  This is because we weren't
creating our normal pinned extent_map for the range we were writing to,
which was causing all sorts of issues.  This patch fixes the problem and
makes his testcase much happier.  Thanks,

Reported-by: Wade Cline <clinew@linux.vnet.ibm.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/inode.c