static int fuse_getattr(const struct path *path, struct kstat *stat, u32 request_mask, unsigned int flags) { struct inode *inode = d_inode(path->dentry); struct fuse_conn *fc = get_fuse_conn(inode); if (!fuse_allow_current_process(fc)) return -EACCES; return fuse_update_get_attr(inode, NULL, stat); }
int fuse_update_attributes(struct inode *inode, struct file *file) { return fuse_update_get_attr(inode, file, NULL); }
int fuse_update_attributes(struct inode *inode, struct file *file) { /* Do *not* need to get atime for internal purposes */ return fuse_update_get_attr(inode, file, NULL, STATX_BASIC_STATS & ~STATX_ATIME, 0); }