All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 3/3] Fix misspelling of forward
@ 2018-06-07  7:20 james harvey
  2018-06-07  8:51 ` Su Yue
  2018-06-07 13:24 ` David Sterba
  0 siblings, 2 replies; 3+ messages in thread
From: james harvey @ 2018-06-07  7:20 UTC (permalink / raw)
  To: Btrfs BTRFS

Signed-off-by: James Harvey <jamespharvey20@gmail.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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2 3/3] Fix misspelling of forward
  2018-06-07  7:20 [PATCH v2 3/3] Fix misspelling of forward james harvey
@ 2018-06-07  8:51 ` Su Yue
  2018-06-07 13:24 ` David Sterba
  1 sibling, 0 replies; 3+ messages in thread
From: Su Yue @ 2018-06-07  8:51 UTC (permalink / raw)
  To: james harvey, Btrfs BTRFS



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
> 
> 



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2 3/3] Fix misspelling of forward
  2018-06-07  7:20 [PATCH v2 3/3] Fix misspelling of forward james harvey
  2018-06-07  8:51 ` Su Yue
@ 2018-06-07 13:24 ` David Sterba
  1 sibling, 0 replies; 3+ messages in thread
From: David Sterba @ 2018-06-07 13:24 UTC (permalink / raw)
  To: james harvey; +Cc: Btrfs BTRFS

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-06-07 13:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-07  7:20 [PATCH v2 3/3] Fix misspelling of forward james harvey
2018-06-07  8:51 ` Su Yue
2018-06-07 13:24 ` David Sterba

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.