fuse: take cache_mask into account in getattr
authorMiklos Szeredi <mszeredi@redhat.com>
Fri, 22 Oct 2021 15:03:03 +0000 (17:03 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 28 Oct 2021 07:45:33 +0000 (09:45 +0200)
commitec85537519b330a0deb8fe742fd1b0efc40a1710
treefe947b1a9edfc3506846c3698a501f5cd2c6f266
parent4b52f059b5ddbb364d35f2bcc3d267a009078db7
fuse: take cache_mask into account in getattr

When deciding to send a GETATTR request take into account the cache mask
(which attributes are always valid).  The cache mask takes precedence over
the invalid mask.

This results in the GETATTR request not being sent unnecessarily.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/dir.c