Btrfs: use helper to simplify lock/unlock pages
authorLiu Bo <bo.li.liu@oracle.com>
Fri, 10 Feb 2017 15:42:14 +0000 (16:42 +0100)
committerDavid Sterba <dsterba@suse.com>
Fri, 17 Feb 2017 11:03:47 +0000 (12:03 +0100)
commit76c0021db8fdd9c68fbbace15067f3ab6d57d77a
tree08efe43c23fc04137a07b418c98722c3fa299bd6
parentda2c7009f6cafe0a550cf57a1aa79e0f1b3093d6
Btrfs: use helper to simplify lock/unlock pages

Since we have a helper to set page bits, let lock_delalloc_pages and
__unlock_for_delalloc use it.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c