Message ID | CA+X5Wn5J-gF9VTYCvT=J7SQA3n3DP0PTExf7Zf8AcLzkkpG6OQ@mail.gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 06/07/2018 03:20 PM, james harvey wrote: > Signed-off-by: James Harvey <jamespharvey20@gmail.com> Reviewed-by: Su Yue <suy.fnst@cn.fujitsu.com> > --- > btrfs-map-logical.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/btrfs-map-logical.c b/btrfs-map-logical.c > index 8a41b037..59ba731b 100644 > --- a/btrfs-map-logical.c > +++ b/btrfs-map-logical.c > @@ -39,7 +39,7 @@ > static FILE *info_file; > > static int map_one_extent(struct btrfs_fs_info *fs_info, > - u64 *logical_ret, u64 *len_ret, int search_foward) > + u64 *logical_ret, u64 *len_ret, int search_forward) > { > struct btrfs_path *path; > struct btrfs_key key; > @@ -75,11 +75,11 @@ static int map_one_extent(struct btrfs_fs_info *fs_info, > > again: > btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); > - if ((search_foward && key.objectid < logical) || > - (!search_foward && key.objectid > logical) || > + if ((search_forward && key.objectid < logical) || > + (!search_forward && key.objectid > logical) || > (key.type != BTRFS_EXTENT_ITEM_KEY && > key.type != BTRFS_METADATA_ITEM_KEY)) { > - if (!search_foward) > + if (!search_forward) > ret = btrfs_previous_extent_item(fs_info->extent_root, > path, 0); > else > -- > 2.17.0 > -- > To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > > -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Thu, Jun 07, 2018 at 03:20:07AM -0400, james harvey wrote:
> Signed-off-by: James Harvey <jamespharvey20@gmail.com>
Applied, thanks. Please don't forget to add the 'btrfs-progs' prefix to
the subject so the patch does not get overlooked.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/btrfs-map-logical.c b/btrfs-map-logical.c index 8a41b037..59ba731b 100644 --- a/btrfs-map-logical.c +++ b/btrfs-map-logical.c @@ -39,7 +39,7 @@ static FILE *info_file; static int map_one_extent(struct btrfs_fs_info *fs_info, - u64 *logical_ret, u64 *len_ret, int search_foward) + u64 *logical_ret, u64 *len_ret, int search_forward) { struct btrfs_path *path; struct btrfs_key key; @@ -75,11 +75,11 @@ static int map_one_extent(struct btrfs_fs_info *fs_info, again: btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); - if ((search_foward && key.objectid < logical) || - (!search_foward && key.objectid > logical) || + if ((search_forward && key.objectid < logical) || + (!search_forward && key.objectid > logical) || (key.type != BTRFS_EXTENT_ITEM_KEY && key.type != BTRFS_METADATA_ITEM_KEY)) { - if (!search_foward) + if (!search_forward) ret = btrfs_previous_extent_item(fs_info->extent_root, path, 0); else
Signed-off-by: James Harvey <jamespharvey20@gmail.com> --- btrfs-map-logical.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.17.0 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html