mirror of
https://github.com/versity/scoutfs.git
synced 2026-05-01 10:25:43 +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:
@@ -547,6 +547,13 @@ ifneq (,$(shell grep -s 'define __assign_str.dst, src' \
|
||||
ccflags-y += -DKC_HAVE_ASSIGN_STR_PARMS
|
||||
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
|
||||
#
|
||||
|
||||
@@ -398,6 +398,7 @@ int scoutfs_getattr(KC_VFS_NS_DEF
|
||||
SCOUTFS_LKF_REFRESH_INODE, inode, &lock);
|
||||
if (ret == 0) {
|
||||
generic_fillattr(KC_VFS_INIT_NS
|
||||
KC_FILLATTR_REQUEST_MASK
|
||||
inode, stat);
|
||||
scoutfs_unlock(sb, lock, SCOUTFS_LOCK_READ);
|
||||
}
|
||||
|
||||
@@ -310,6 +310,12 @@ typedef unsigned int blk_opf_t;
|
||||
#endif
|
||||
#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
|
||||
#define kc_bio_alloc bio_alloc
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user