All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] fuse: clean up offset and page count calculations
@ 2026-01-20 22:44 Joanne Koong
  2026-01-20 22:44 ` [PATCH v2 1/4] fuse: validate outarg offset and size in notify store/retrieve Joanne Koong
                   ` (4 more replies)
  0 siblings, 5 replies; 17+ messages in thread
From: Joanne Koong @ 2026-01-20 22:44 UTC (permalink / raw)
  To: miklos; +Cc: jefflexu, luochunsheng, djwong, horst, linux-fsdevel

This patchset aims to simplify the folio parsing logic in fuse_notify_store()
and fuse_retrieve() and use standard kernel helper macros for common
calculations:
 * offset_in_folio() for large folio offset calculations
 * DIV_ROUND_UP() for page count calculations
 * offset_in_page() for page offset calculations

The 1st patch (outarg offset and size validation) is needed for the 2nd patch
(simplify logic in fuse_notify_store()/fuse_retrieve()) in order to use
"loff_t pos" for file position tracking.

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/

Changelog
---------
v1: https://lore.kernel.org/linux-fsdevel/20260116235606.2205801-1-joannelkoong@gmail.com/
v1 -> v2:
* Replace offset_in_folio() patch with patch that restructures
  fuse_notify_store() and fuse_retrieve() logic (Jingbo)
* Add outarg validation patch (patch 1)

Joanne Koong (4):
  fuse: validate outarg offset and size in notify store/retrieve
  fuse: simplify logic in fuse_notify_store() and fuse_retrieve()
  fuse: use DIV_ROUND_UP() for page count calculations
  fuse: use offset_in_page() for page offset calculations

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

-- 
2.47.3


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

end of thread, other threads:[~2026-03-02 13:10 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-20 22:44 [PATCH v2 0/4] fuse: clean up offset and page count calculations Joanne Koong
2026-01-20 22:44 ` [PATCH v2 1/4] fuse: validate outarg offset and size in notify store/retrieve Joanne Koong
2026-01-21  0:03   ` Darrick J. Wong
2026-01-21  0:06     ` Darrick J. Wong
2026-01-29 19:45       ` Joanne Koong
2026-01-21  2:08   ` Jingbo Xu
2026-01-29 19:30     ` Joanne Koong
2026-01-30  2:48       ` Jingbo Xu
2026-01-20 22:44 ` [PATCH v2 2/4] fuse: simplify logic in fuse_notify_store() and fuse_retrieve() Joanne Koong
2026-01-21  0:27   ` Darrick J. Wong
2026-01-21  2:32   ` Jingbo Xu
2026-01-21  8:32   ` kernel test robot
2026-01-21 15:22   ` kernel test robot
2026-01-20 22:44 ` [PATCH v2 3/4] fuse: use DIV_ROUND_UP() for page count calculations Joanne Koong
2026-01-20 22:44 ` [PATCH v2 4/4] fuse: use offset_in_page() for page offset calculations Joanne Koong
2026-01-21  2:39   ` Jingbo Xu
2026-03-02 13:10 ` [PATCH v2 0/4] fuse: clean up offset and page count calculations Miklos Szeredi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.