aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/xarray.c
diff options
context:
space:
mode:
authorSuren Baghdasaryan <surenb@google.com>2024-04-14 19:08:21 -0700
committerAndrew Morton <akpm@linux-foundation.org>2024-05-05 17:53:37 -0700
commitb5ba3a64279355731252098d92550e12bf9649e4 (patch)
tree086ef28feea9cdbf61b2fb69e1d93e3ba09b96da /lib/xarray.c
parentmm: page_alloc: allowing mTHP compaction to capture the freed page directly (diff)
downloadwireguard-linux-b5ba3a64279355731252098d92550e12bf9649e4.tar.xz
wireguard-linux-b5ba3a64279355731252098d92550e12bf9649e4.zip
userfaultfd: remove WRITE_ONCE when setting folio->index during UFFDIO_MOVE
When folio is moved with UFFDIO_MOVE it gets locked before the rmap and index are modified. Due to the folio lock being already held, WRITE_ONCE() is not needed when setting the folio index. Remove it. Link: https://lkml.kernel.org/r/20240415020821.1152951-1-surenb@google.com Reported-by: Matthew Wilcox <willy@infradead.org> Signed-off-by: Suren Baghdasaryan <surenb@google.com> Reviewed-by: David Hildenbrand <david@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com> Cc: Lokesh Gidra <lokeshgidra@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/xarray.c')
0 files changed, 0 insertions, 0 deletions