From: Mark Fasheh Date: Tue, 6 Aug 2013 18:42:50 +0000 (-0700) Subject: btrfs: Introduce extent_read_full_page_nolock() X-Git-Tag: v3.12-rc1~40^2~66 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b384318a74e38eb248f74f9a92a700d2ce841f1;p=pandora-kernel.git btrfs: Introduce extent_read_full_page_nolock() We want this for btrfs_extent_same. Basically readpage and friends do their own extent locking but for the purposes of dedupe, we want to have both files locked down across a set of readpage operations (so that we can compare data). Introduce this variant and a flag which can be set for extent_read_full_page() to indicate that we are already locked. Partial credit for this patch goes to Gabriel de Perthuis as I have included a fix from him to the original patch which avoids a deadlock on compressed extents. Signed-off-by: Mark Fasheh Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed