Skip to content
Commit 69ffb543 authored by Josef Bacik's avatar Josef Bacik Committed by Chris Mason
Browse files

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: default avatarWade Cline <clinew@linux.vnet.ibm.com>
Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
parent 6df7881a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment