mirror of
https://github.com/versity/scoutfs.git
synced 2026-10-01 12:15:38 +00:00
generic_fillattr() now wants the request_mask arg from caller
Since ~v6.5-rc1-95-g0d72b92883c6, generic_fillattr() asks us to pass through the request_mask from the caller. This allows it to only request a subset. Signed-off-by: Auke Kok <auke.kok@versity.com>
This commit is contained in:
@@ -265,6 +265,13 @@ ifneq (,$(shell grep -s 'define __assign_str.dst, src' \
|
|||||||
ccflags-y += -DKC_HAVE_ASSIGN_STR_PARMS
|
ccflags-y += -DKC_HAVE_ASSIGN_STR_PARMS
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
#
|
||||||
|
# v6.5-113-g615e95831ec3
|
||||||
|
#
|
||||||
|
ifneq (,$(shell grep 'generic_fillattr..*,.u32,' include/linux/fs.h))
|
||||||
|
ccflags-y += -DKC_GENERIC_FILLATTR_REQUEST_MASK
|
||||||
|
endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# v6.6-rc4-53-gc42d50aefd17
|
# v6.6-rc4-53-gc42d50aefd17
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -374,6 +374,7 @@ int scoutfs_getattr(KC_VFS_NS_DEF
|
|||||||
SCOUTFS_LKF_REFRESH_INODE, inode, &lock);
|
SCOUTFS_LKF_REFRESH_INODE, inode, &lock);
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
generic_fillattr(KC_VFS_INIT_NS
|
generic_fillattr(KC_VFS_INIT_NS
|
||||||
|
KC_FILLATTR_REQUEST_MASK
|
||||||
inode, stat);
|
inode, stat);
|
||||||
scoutfs_unlock(sb, lock, SCOUTFS_LOCK_READ);
|
scoutfs_unlock(sb, lock, SCOUTFS_LOCK_READ);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -99,6 +99,12 @@ typedef unsigned int blk_opf_t;
|
|||||||
#endif
|
#endif
|
||||||
#endif /* KC_VFS_METHOD_MNT_IDMAP_ARG */
|
#endif /* KC_VFS_METHOD_MNT_IDMAP_ARG */
|
||||||
|
|
||||||
|
#ifdef KC_GENERIC_FILLATTR_REQUEST_MASK
|
||||||
|
#define KC_FILLATTR_REQUEST_MASK request_mask,
|
||||||
|
#else
|
||||||
|
#define KC_FILLATTR_REQUEST_MASK
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef KC_BIO_ALLOC_DEV_OPF_ARGS
|
#ifdef KC_BIO_ALLOC_DEV_OPF_ARGS
|
||||||
#define kc_bio_alloc bio_alloc
|
#define kc_bio_alloc bio_alloc
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user