linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Matthew Wilcox <willy@infradead.org>
To: Andrew Morton <akpm@linux-foundation.org>, linux-mm@kvack.org
Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Subject: [PATCH v2 0/3] Make working with compound pages easier
Date: Sun, 21 Jul 2019 03:46:09 -0700	[thread overview]
Message-ID: <20190721104612.19120-1-willy@infradead.org> (raw)

From: "Matthew Wilcox (Oracle)" <willy@infradead.org>

These three patches add three helpers and convert the appropriate
places to use them.

v2:
 - Add page_shift() and compound_nr()
 - Remove unsigned long cast from PAGE_SIZE as it is already unsigned long
 - Update to current Linus tree

Matthew Wilcox (Oracle) (3):
  mm: Introduce page_size()
  mm: Introduce page_shift()
  mm: Introduce compound_nr()

 arch/arm/include/asm/xen/page-coherent.h      |  3 +--
 arch/arm/mm/flush.c                           |  7 +++----
 arch/arm64/include/asm/xen/page-coherent.h    |  3 +--
 arch/arm64/mm/flush.c                         |  3 +--
 arch/ia64/mm/init.c                           |  2 +-
 arch/powerpc/mm/book3s64/iommu_api.c          |  7 ++-----
 arch/powerpc/mm/hugetlbpage.c                 |  2 +-
 drivers/crypto/chelsio/chtls/chtls_io.c       |  5 ++---
 drivers/staging/android/ion/ion_system_heap.c |  4 ++--
 drivers/target/tcm_fc/tfc_io.c                |  3 +--
 drivers/vfio/vfio_iommu_spapr_tce.c           |  2 +-
 fs/io_uring.c                                 |  2 +-
 fs/proc/task_mmu.c                            |  2 +-
 include/linux/hugetlb.h                       |  2 +-
 include/linux/mm.h                            | 18 ++++++++++++++++++
 lib/iov_iter.c                                |  2 +-
 mm/compaction.c                               |  2 +-
 mm/filemap.c                                  |  2 +-
 mm/gup.c                                      |  2 +-
 mm/hugetlb_cgroup.c                           |  2 +-
 mm/kasan/common.c                             | 10 ++++------
 mm/memcontrol.c                               |  4 ++--
 mm/memory_hotplug.c                           |  4 ++--
 mm/migrate.c                                  |  2 +-
 mm/nommu.c                                    |  2 +-
 mm/page_alloc.c                               |  2 +-
 mm/page_vma_mapped.c                          |  3 +--
 mm/rmap.c                                     |  9 +++------
 mm/shmem.c                                    |  8 ++++----
 mm/slob.c                                     |  2 +-
 mm/slub.c                                     | 18 +++++++++---------
 mm/swap_state.c                               |  2 +-
 mm/util.c                                     |  2 +-
 mm/vmscan.c                                   |  4 ++--
 net/xdp/xsk.c                                 |  2 +-
 35 files changed, 76 insertions(+), 73 deletions(-)

-- 
2.20.1


             reply	other threads:[~2019-07-21 10:46 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-21 10:46 Matthew Wilcox [this message]
2019-07-21 10:46 ` [PATCH v2 1/3] mm: Introduce page_size() Matthew Wilcox
2019-07-23  0:43   ` Ira Weiny
2019-07-23 16:02     ` Matthew Wilcox
2019-07-23 17:58       ` Ira Weiny
2019-07-23 18:14         ` Matthew Wilcox
2019-07-23 20:44           ` Ira Weiny
2019-07-23 21:03             ` Matthew Wilcox
2019-09-20 23:28       ` Andrew Morton
2019-09-21  1:09         ` Matthew Wilcox
2019-09-22  2:13           ` Weiny, Ira
2019-07-21 10:46 ` [PATCH v2 2/3] mm: Introduce page_shift() Matthew Wilcox
2019-07-23  0:44   ` Ira Weiny
2019-07-24 10:40   ` kbuild test robot
2019-07-25  0:30     ` Andrew Morton
2019-07-25 20:30       ` Ira Weiny
2019-09-23 20:30         ` Matthew Wilcox
2019-07-21 10:46 ` [PATCH v2 3/3] mm: Introduce compound_nr() Matthew Wilcox
2019-07-23  0:46   ` Ira Weiny
2019-07-23 12:55 ` [PATCH v2 0/3] Make working with compound pages easier Kirill A. Shutemov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190721104612.19120-1-willy@infradead.org \
    --to=willy@infradead.org \
    --cc=akpm@linux-foundation.org \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).