[PATCH] userfaultfd/selftests: Fix typo in comment

Xiang wangx posted 1 patch 3 years, 10 months ago
tools/testing/selftests/vm/userfaultfd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] userfaultfd/selftests: Fix typo in comment
Posted by Xiang wangx 3 years, 10 months ago
Delete the redundant word 'in'.

Signed-off-by: Xiang wangx <wangxiang@cdjrlc.com>
---
 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
Re: [PATCH] userfaultfd/selftests: Fix typo in comment
Posted by Shuah Khan 3 years, 10 months ago
On 6/10/22 1:12 AM, Xiang wangx wrote:
> Delete the redundant word 'in'.
> 
> Signed-off-by: Xiang wangx <wangxiang@cdjrlc.com>
> ---
>   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