]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fuse: simplify logic in fuse_notify_store() and fuse_retrieve()
authorJoanne Koong <joannelkoong@gmail.com>
Tue, 20 Jan 2026 22:44:47 +0000 (14:44 -0800)
committerMiklos Szeredi <mszeredi@redhat.com>
Tue, 3 Mar 2026 16:43:26 +0000 (17:43 +0100)
commit25307ca50b815c14a21f82fc5b10e8a621af32ad
treec1a1327ed7f04eb0d3a093272e91f2d883d9752d
parent65161470f95bb579a72673bf303ecf0800b9054b
fuse: simplify logic in fuse_notify_store() and fuse_retrieve()

Simplify the folio parsing logic in fuse_notify_store() and
fuse_retrieve().

In particular, calculate the index by tracking pos, which allows us to
remove calculating nr_pages, and use "pos" in place of outarg's offset
field.

Suggested-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Reviewed-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/dev.c