]> git.ipfire.org Git - thirdparty/linux.git/commit
fuse: use DIV_ROUND_UP() for page count calculations
authorJoanne Koong <joannelkoong@gmail.com>
Tue, 20 Jan 2026 22:44:48 +0000 (14:44 -0800)
committerMiklos Szeredi <mszeredi@redhat.com>
Tue, 3 Mar 2026 16:43:33 +0000 (17:43 +0100)
commitdcfd95cb5076c9ef421c19b9b22b3e01f03ce68e
treeb5a2ea55b3bbe40b9177eb5773ed026691dcb643
parent25307ca50b815c14a21f82fc5b10e8a621af32ad
fuse: use DIV_ROUND_UP() for page count calculations

Use DIV_ROUND_UP() instead of manually computing round-up division
calculations.

Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Horst Birthelmer <hbirthelmer@ddn.com>
Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/dev.c
fs/fuse/file.c