Mark Fasheh 4b384318a7 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 <g2p.code@gmail.com>
as I have included a fix from him to the original patch which avoids a
deadlock on compressed extents.

Signed-off-by: Mark Fasheh <mfasheh@suse.de>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
2013-09-01 08:04:59 -04:00
..
2013-06-29 12:57:00 +04:00
2008-09-25 11:04:06 -04:00
2013-05-06 15:54:34 -04:00
2012-10-09 09:14:45 -04:00
2013-03-14 14:57:10 -04:00
2013-02-01 14:24:23 -05:00
2013-02-01 14:24:23 -05:00
2012-10-09 09:19:57 -04:00