public inbox for linux-fsdevel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/3] fuse: clean up offset and page count calculations
@ 2026-01-16 23:56 Joanne Koong
  2026-01-16 23:56 ` [PATCH v1 1/3] fuse: use DIV_ROUND_UP() for " Joanne Koong
                   ` (4 more replies)
  0 siblings, 5 replies; 17+ messages in thread
From: Joanne Koong @ 2026-01-16 23:56 UTC (permalink / raw)
  To: miklos; +Cc: linux-fsdevel, jefflexu

This patchset aims to improve code clarity by using standard kernel helper
macros for common calculations:
 * DIV_ROUND_UP() for page count calculations
 * offset_in_folio() for large folio offset calculations
 * offset_in_page() for page offset calculations

These helpers improve readability and consistency with patterns used
elsewhere in the kernel. No functional changes intended.

This patchset is on top of Jingbo's patch in [1].

Thanks,
Joanne

[1] https://lore.kernel.org/linux-fsdevel/20260115023607.77349-1-jefflexu@linux.alibaba.com/

Joanne Koong (3):
  fuse: use DIV_ROUND_UP() for page count calculations
  fuse: use offset_in_folio() for large folio offset calculations
  fuse: use offset_in_page() for page offset calculations

 fs/fuse/dev.c     | 14 +++++++-------
 fs/fuse/file.c    |  2 +-
 fs/fuse/readdir.c |  8 ++++----
 3 files changed, 12 insertions(+), 12 deletions(-)

-- 
2.47.3


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

end of thread, other threads:[~2026-01-22  1:49 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-16 23:56 [PATCH v1 0/3] fuse: clean up offset and page count calculations Joanne Koong
2026-01-16 23:56 ` [PATCH v1 1/3] fuse: use DIV_ROUND_UP() for " Joanne Koong
2026-01-19  2:12   ` Jingbo Xu
2026-01-20 19:10     ` Joanne Koong
2026-01-20 20:06       ` Joanne Koong
2026-01-21  3:21         ` Jingbo Xu
2026-01-21 21:59           ` Joanne Koong
2026-01-22  1:49             ` Jingbo Xu
2026-01-16 23:56 ` [PATCH v1 2/3] fuse: use offset_in_folio() for large folio offset calculations Joanne Koong
2026-01-19  4:41   ` Chunsheng Luo
2026-01-20 18:59     ` Joanne Koong
2026-01-19  6:24   ` Chunsheng Luo
2026-01-16 23:56 ` [PATCH v1 3/3] fuse: use offset_in_page() for page " Joanne Koong
2026-01-17  5:03 ` [PATCH v1 0/3] fuse: clean up offset and page count calculations Darrick J. Wong
2026-01-20 19:05   ` Joanne Koong
2026-01-17  7:51 ` Horst Birthelmer
2026-01-20 20:06   ` Joanne Koong

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