[0/2] Make PageWriteback use the PageLocked optimisation
mbox series

Message ID 20200326122429.20710-1-willy@infradead.org
Headers show
  • Make PageWriteback use the PageLocked optimisation
Related show


Matthew Wilcox March 26, 2020, 12:24 p.m. UTC
From: "Matthew Wilcox (Oracle)" <willy@infradead.org>

PageWaiters is used by PageWriteback and PageLocked (and no other page
flags), so it makes sense to use the same codepaths that have already been
optimised for PageLocked, even if there's probably no real performance
benefit to be had.

Matthew Wilcox (Oracle) (2):
  mm: Remove definition of clear_bit_unlock_is_negative_byte
  mm: Use clear_bit_unlock_is_negative_byte for PageWriteback

 include/linux/page-flags.h |  6 +++---
 mm/filemap.c               | 42 ++++++--------------------------------
 mm/page-writeback.c        | 37 ++++++++++++++++++---------------
 3 files changed, 29 insertions(+), 56 deletions(-)

base-commit: 5149100c3aebe5e640d6ff68e0b5e5a7eb8638e0