From: Josef Bacik Date: Tue, 11 Sep 2012 19:40:07 +0000 (-0400) Subject: Btrfs: create a pinned em when writing to a prealloc range in DIO X-Git-Tag: v3.7-rc1~71^2~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69ffb54347a71c4f2a4694e0c1155af8538d55f6;p=pandora-kernel.git 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 Signed-off-by: Josef Bacik --- Reading git-diff-tree failed