Skip to content

Refactor do_fault_around()

Lorenzo Stoakes linux-mm lkml 1 version Applied

Status from this message: [merged mm-stable] mm-pefer-fault_around_pages-to-fault_around_bytes.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2mm: refactor do_fault_around()mm/memory.c+16 -220 repliesApplied
2/2mm: pefer fault_around_pages to fault_around_bytesmm/memory.c+15 -110 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Refactor do_fault_around()

Refactor do_fault_around() to avoid bitwise tricks and arather difficult to follow logic. Additionally, prefer fault_around_pages to fault_around_bytes as the operations are performed at a base page granularity.

I have run this code against a small program I wrote which generates significant input data and compares output with the original function to ensure that it behaves the same as the old code across varying vmf, vma and fault_around_pages inputs.

Lorenzo Stoakes (2):
mm: refactor do_fault_around()
mm: pefer fault_around_pages to fault_around_bytes

 mm/memory.c | 62 ++++++++++++++++++++++++++---------------------------
 1 file changed, 30 insertions(+), 32 deletions(-)

--
2.39.2