mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-06 05:06:29 +00:00
fuse: handle empty request_mask in statx
If no attribute is requested, then don't send request to userspace. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:
parent
b5a2a3a0b7
commit
8d8f9c4b8d
@ -1209,7 +1209,12 @@ static int fuse_update_get_attr(struct inode *inode, struct file *file,
|
||||
u32 inval_mask = READ_ONCE(fi->inval_mask);
|
||||
u32 cache_mask = fuse_get_cache_mask(inode);
|
||||
|
||||
if (flags & AT_STATX_FORCE_SYNC)
|
||||
/* FUSE only supports basic stats */
|
||||
request_mask &= STATX_BASIC_STATS;
|
||||
|
||||
if (!request_mask)
|
||||
sync = false;
|
||||
else if (flags & AT_STATX_FORCE_SYNC)
|
||||
sync = true;
|
||||
else if (flags & AT_STATX_DONT_SYNC)
|
||||
sync = false;
|
||||
|
Loading…
Reference in New Issue
Block a user