From 2297afd31f8a2093e98603dcf5b15c19335f179b Mon Sep 17 00:00:00 2001 From: Nolen Johnson Date: Sat, 26 Oct 2024 22:58:13 -0400 Subject: [PATCH] exfat: Lower kernel version check for `exfat_getattr` from 4.11 to 4.9 * Makes this compile after statx backports were merged. * For some accursed reason yet unknown, build servers compiled this fine for weeks... Change-Id: Idb0f49c28d825ca2ed8a9b9bed9428f0202ec518 --- fs/exfat/exfat_fs.h | 2 +- fs/exfat/file.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/exfat/exfat_fs.h b/fs/exfat/exfat_fs.h index 6bf1c67daefb..1f88fe8366c4 100644 --- a/fs/exfat/exfat_fs.h +++ b/fs/exfat/exfat_fs.h @@ -493,7 +493,7 @@ int exfat_getattr(struct user_namespace *mnt_userns, const struct path *path, #endif #else int exfat_setattr(struct dentry *dentry, struct iattr *attr); -#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0) int exfat_getattr(const struct path *path, struct kstat *stat, unsigned int request_mask, unsigned int query_flags); #else diff --git a/fs/exfat/file.c b/fs/exfat/file.c index 749c349cbfba..9d0d5a591d44 100644 --- a/fs/exfat/file.c +++ b/fs/exfat/file.c @@ -6,7 +6,7 @@ #include #include #include -#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0) #include #endif #include @@ -259,7 +259,7 @@ int exfat_getattr(struct user_namespace *mnt_uerns, const struct path *path, unsigned int query_flags) #endif #else -#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0) int exfat_getattr(const struct path *path, struct kstat *stat, unsigned int request_mask, unsigned int query_flags) #else @@ -268,7 +268,7 @@ int exfat_getattr(struct vfsmount *mnt, struct dentry *dentry, #endif #endif { -#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0) struct inode *inode = d_backing_inode(path->dentry); struct exfat_inode_info *ei = EXFAT_I(inode); #else @@ -289,7 +289,7 @@ int exfat_getattr(struct vfsmount *mnt, struct dentry *dentry, generic_fillattr(inode, stat); #endif exfat_truncate_atime(&stat->atime); -#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0) stat->result_mask |= STATX_BTIME; stat->btime.tv_sec = ei->i_crtime.tv_sec; stat->btime.tv_nsec = ei->i_crtime.tv_nsec;