summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoanne Koong <joannelkoong@gmail.com>2026-04-30 14:47:46 +0300
committerMiklos Szeredi <mszeredi@redhat.com>2026-06-15 15:06:19 +0300
commit6bd421b499ef16006bdc2ee85bf66d3956b52def (patch)
tree900a26ad8fb16bd2c8a4d3917caa6634c6e1557a /include
parentd3aa89c9bfb7cd72a7025ebbb92275128d28afbd (diff)
downloadlinux-6bd421b499ef16006bdc2ee85bf66d3956b52def.tar.xz
fuse: remove redundant buffer size checks for interrupt and forget requests
In fuse_dev_do_read(), there is already logic that ensures the buffer is a minimum of at least FUSE_MIN_READ_BUFFER (8k) bytes. This makes the buffer size checks for interrupt and forget requests redundant as sizeof(struct fuse_in_header) + sizeof(struct fuse_interrupt_in) and sizeof(struct fuse_in_header) + sizeof(struct fuse_forget_in) are both less than FUSE_MIN_READ_BUFFER. We can get rid of these checks. Signed-off-by: Joanne Koong <joannelkoong@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions