diff --git a/fs/erofs/inode.c b/fs/erofs/inode.c index 5f9c6fb79ac0..c7fd150add27 100644 --- a/fs/erofs/inode.c +++ b/fs/erofs/inode.c @@ -337,17 +337,19 @@ struct inode *erofs_iget(struct super_block *sb, return inode; } -int erofs_getattr(const struct path *path, struct kstat *stat, - u32 request_mask, unsigned int query_flags) +int erofs_getattr(struct vfsmount *mnt, struct dentry *dentry, + struct kstat *stat) { - struct inode *const inode = d_inode(path->dentry); + struct inode *const inode = d_inode(dentry); +#if 0 if (erofs_inode_is_data_compressed(EROFS_I(inode)->datalayout)) stat->attributes |= STATX_ATTR_COMPRESSED; stat->attributes |= STATX_ATTR_IMMUTABLE; stat->attributes_mask |= (STATX_ATTR_COMPRESSED | STATX_ATTR_IMMUTABLE); +#endif generic_fillattr(inode, stat); return 0; diff --git a/fs/erofs/internal.h b/fs/erofs/internal.h index e796b371e11d..f00d55574169 100644 --- a/fs/erofs/internal.h +++ b/fs/erofs/internal.h @@ -381,8 +381,8 @@ extern const struct inode_operations erofs_symlink_iops; extern const struct inode_operations erofs_fast_symlink_iops; struct inode *erofs_iget(struct super_block *sb, erofs_nid_t nid, bool dir); -int erofs_getattr(const struct path *path, struct kstat *stat, - u32 request_mask, unsigned int query_flags); +int erofs_getattr(struct vfsmount *mnt, struct dentry *dentry, + struct kstat *stat); /* namei.c */ extern const struct inode_operations erofs_dir_iops;