2022-06-10 07:49:06

by Xiang wangx

[permalink] [raw]
Subject: [PATCH] userfaultfd/selftests: Fix typo in comment

Delete the redundant word 'in'.

Signed-off-by: Xiang wangx <[email protected]>
---
tools/testing/selftests/vm/userfaultfd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/vm/userfaultfd.c b/tools/testing/selftests/vm/userfaultfd.c
index 0bdfc1955229..4bc24581760d 100644
--- a/tools/testing/selftests/vm/userfaultfd.c
+++ b/tools/testing/selftests/vm/userfaultfd.c
@@ -860,7 +860,7 @@ static int stress(struct uffd_stats *uffd_stats)
/*
* Be strict and immediately zap area_src, the whole area has
* been transferred already by the background treads. The
- * area_src could then be faulted in in a racy way by still
+ * area_src could then be faulted in a racy way by still
* running uffdio_threads reading zeropages after we zapped
* area_src (but they're guaranteed to get -EEXIST from
* UFFDIO_COPY without writing zero pages into area_dst
--
2.36.1


2022-06-14 17:31:11

by Shuah Khan

[permalink] [raw]
Subject: Re: [PATCH] userfaultfd/selftests: Fix typo in comment

On 6/10/22 1:12 AM, Xiang wangx wrote:
> Delete the redundant word 'in'.
>
> Signed-off-by: Xiang wangx <[email protected]>
> ---
> tools/testing/selftests/vm/userfaultfd.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/testing/selftests/vm/userfaultfd.c b/tools/testing/selftests/vm/userfaultfd.c
> index 0bdfc1955229..4bc24581760d 100644
> --- a/tools/testing/selftests/vm/userfaultfd.c
> +++ b/tools/testing/selftests/vm/userfaultfd.c
> @@ -860,7 +860,7 @@ static int stress(struct uffd_stats *uffd_stats)
> /*
> * Be strict and immediately zap area_src, the whole area has
> * been transferred already by the background treads. The
> - * area_src could then be faulted in in a racy way by still
> + * area_src could then be faulted in a racy way by still
> * running uffdio_threads reading zeropages after we zapped
> * area_src (but they're guaranteed to get -EEXIST from
> * UFFDIO_COPY without writing zero pages into area_dst
>

Thank you. Applied to next Linux 5.20-rc1

thanks,
-- Shuah