linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/8] mm: globalize rest_of_page() macro
@ 2026-03-04  1:27 Yury Norov
  2026-03-04  1:27 ` [PATCH 1/8] mm: add " Yury Norov
                   ` (8 more replies)
  0 siblings, 9 replies; 16+ messages in thread
From: Yury Norov @ 2026-03-04  1:27 UTC (permalink / raw)
  To: Andrew Morton, David S. Miller, Michael S. Tsirkin,
	Theodore Ts'o, Albert Ou, Alexander Duyck, Alexander Gordeev,
	Alexander Viro, Alexandra Winter, Andreas Dilger, Andrew Lunn,
	Anna Schumaker, Anton Yakovlev, Arnaldo Carvalho de Melo,
	Aswin Karuvally, Borislav Petkov, Carlos Maiolino,
	Catalin Marinas, Chao Yu, Christian Borntraeger,
	Christian Brauner, Claudio Imbrenda, Dave Hansen, David Airlie,
	Dominique Martinet, Dongsheng Yang, Eric Dumazet,
	Eric Van Hensbergen, Heiko Carstens, Herbert Xu, Ingo Molnar,
	Jaegeuk Kim, Jakub Kicinski, Jani Nikula, Janosch Frank,
	Jaroslav Kysela, Jens Axboe, Joonas Lahtinen, Latchesar Ionkov,
	Linus Walleij, Madhavan Srinivasan, Mark Brown, Michael Ellerman,
	Miklos Szeredi, Namhyung Kim, Palmer Dabbelt, Paolo Abeni,
	Paolo Bonzini, Paul Walmsley, Peter Zijlstra, Rodrigo Vivi,
	Sean Christopherson, Simona Vetter, Takashi Iwai,
	Thomas Gleixner, Trond Myklebust, Tvrtko Ursulin, Vasily Gorbik,
	Will Deacon, Yury Norov, Zheng Gu
  Cc: Yury Norov, linux-kernel, x86, linux-arm-kernel, linuxppc-dev,
	linux-riscv, kvm, linux-s390, linux-block, intel-gfx, dri-devel,
	dm-devel, netdev, linux-spi, linux-ext4, linux-f2fs-devel,
	linux-fsdevel, linux-xfs, linux-nfs, linux-crypto, linux-mm,
	linux-perf-users, v9fs, virtualization, linux-sound

The net/9p networking driver has a handy macro to calculate the
amount of bytes from a given pointer to the end of page. Move it
to core/mm, and apply tree-wide. No functional changes intended.

This series was originally introduced as a single patch #07/12 in:

https://lore.kernel.org/all/20260219181407.290201-1-ynorov@nvidia.com/

Split it for better granularity and submit separately.

Yury Norov (8):
  mm: add rest_of_page() macro
  fs: use rest_of_page() macro where appropriate
  net: use rest_of_page() macro where appropriate
  core: use rest_of_page() macro where appropriate
  spi: use rest_of_page() macro where appropriate
  KVM: use rest_of_page() macro where appropriate
  drivers: ALSA: use rest_of_page() macro where appropriate
  arch: use rest_of_page() macro where appropriate

 arch/arm64/kernel/patching.c                |  4 +---
 arch/powerpc/lib/code-patching.c            |  6 +++---
 arch/riscv/kernel/sbi.c                     |  4 ++--
 arch/s390/kvm/gaccess.c                     |  6 +++---
 arch/x86/kvm/emulate.c                      |  4 ++--
 drivers/block/null_blk/main.c               |  6 ++----
 drivers/gpu/drm/i915/gt/shmem_utils.c       |  5 ++---
 drivers/md/dm-pcache/backing_dev.h          |  2 +-
 drivers/net/ethernet/meta/fbnic/fbnic_tlv.c |  6 +++---
 drivers/s390/net/qeth_core_main.c           |  6 ++----
 drivers/spi/spi-pl022.c                     |  3 +--
 drivers/spi/spi.c                           |  4 +---
 fs/ext4/verity.c                            |  3 +--
 fs/f2fs/verity.c                            |  6 ++----
 fs/fuse/dev.c                               |  4 ++--
 fs/iomap/buffered-io.c                      |  2 +-
 fs/nfs/pagelist.c                           |  2 +-
 fs/remap_range.c                            |  3 +--
 fs/xfs/scrub/xfile.c                        |  3 +--
 include/crypto/scatterwalk.h                |  2 +-
 include/linux/highmem.h                     | 24 +++++++++------------
 include/linux/iomap.h                       |  2 +-
 include/linux/iov_iter.h                    |  3 +--
 include/linux/mm.h                          |  2 ++
 kernel/events/ring_buffer.c                 |  2 +-
 lib/bitmap-str.c                            |  2 +-
 lib/iov_iter.c                              |  5 ++---
 net/9p/trans_virtio.c                       |  6 ------
 sound/virtio/virtio_pcm_msg.c               |  4 ++--
 29 files changed, 53 insertions(+), 78 deletions(-)

-- 
2.43.0



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2026-03-04 12:48 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-04  1:27 [PATCH 0/8] mm: globalize rest_of_page() macro Yury Norov
2026-03-04  1:27 ` [PATCH 1/8] mm: add " Yury Norov
2026-03-04  1:27 ` [PATCH 2/8] fs: use rest_of_page() macro where appropriate Yury Norov
2026-03-04  1:27 ` [PATCH 3/8] net: " Yury Norov
2026-03-04  1:27 ` [PATCH 4/8] core: " Yury Norov
2026-03-04  1:27 ` [PATCH 5/8] spi: " Yury Norov
2026-03-04 11:10   ` Mark Brown
2026-03-04  1:27 ` [PATCH 6/8] KVM: " Yury Norov
2026-03-04  1:27 ` [PATCH 7/8] drivers: ALSA: " Yury Norov
2026-03-04  1:27 ` [PATCH 8/8] arch: " Yury Norov
2026-03-04  2:28 ` [PATCH 0/8] mm: globalize rest_of_page() macro Jakub Kicinski
2026-03-04  2:42   ` Jens Axboe
2026-03-04  2:49     ` Sean Christopherson
2026-03-04  3:32       ` Yury Norov
2026-03-04  3:35         ` Jens Axboe
2026-03-04 12:48       ` Peter Zijlstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox