mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
Linux 6.6: Pass request_mask to generic_fillattr
The Linux 6.6 commit: "fs: pass the request_mask to generic_fillattr" (0d72b92883) added an additional parameter to Linux's generic_fillattr() function. For openafs, generic_fillattr() is called from the inode_operations method "getattr", which is implemented in afs_linux_getattr(). The value for the request_mask parameter is an existing parameter that is passed to the inode_operations "getattr" method. Add an autoconf test for 4 parameters to the generic_fillattr function and update afs_linux_getattr() to pass the request_mask to generic_fillattr(). Reviewed-on: https://gerrit.openafs.org/15561 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Mark Vitale <mvitale@sinenomine.net> Tested-by: Mark Vitale <mvitale@sinenomine.net> Reviewed-by: Andrew Deason <adeason@sinenomine.net> Reviewed-by: Kailas Zadbuke <kailashsz@in.ibm.com> Reviewed-by: Benjamin Kaduk <kaduk@mit.edu> (cherry picked from commit 4fed232b80fb1ad6c0e1dfb42ed8d8e1e6821dd7) Change-Id: I5cddc56c5e605a6c5e4f7f3691eafec8ca589d2c Reviewed-on: https://gerrit.openafs.org/15590 Reviewed-by: Andrew Deason <adeason@sinenomine.net> Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Michael Meffie <mmeffie@sinenomine.net> Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
This commit is contained in:
parent
6413fdbc91
commit
4f1d8104d1
@ -1195,7 +1195,11 @@ afs_linux_getattr(struct mnt_idmap *idmap, const struct path *path, struct kstat
|
||||
{
|
||||
int err = afs_linux_revalidate(path->dentry);
|
||||
if (!err) {
|
||||
# if defined(GENERIC_FILLATTR_TAKES_REQUEST_MASK)
|
||||
generic_fillattr(afs_mnt_idmap, request_mask, path->dentry->d_inode, stat);
|
||||
# else
|
||||
generic_fillattr(afs_mnt_idmap, path->dentry->d_inode, stat);
|
||||
# endif
|
||||
}
|
||||
return err;
|
||||
}
|
||||
|
@ -58,6 +58,7 @@ LINUX_IOP_LOOKUP_TAKES_UNSIGNED
|
||||
LINUX_D_INVALIDATE_IS_VOID
|
||||
LINUX_KERNEL_READ_OFFSET_IS_LAST
|
||||
LINUX_KEYRING_SEARCH_TAKES_RECURSE
|
||||
LINUX_GENERIC_FILLATTR_TAKES_REQUEST_MASK
|
||||
])
|
||||
|
||||
|
||||
|
@ -854,3 +854,16 @@ AC_DEFUN([LINUX_KEYRING_SEARCH_TAKES_RECURSE], [
|
||||
[define if your keyring_search has the recurse parameter],
|
||||
[])
|
||||
])
|
||||
|
||||
dnl Linux 6.6 added the 'request_mask' parameter to generic_fillattr.
|
||||
AC_DEFUN([LINUX_GENERIC_FILLATTR_TAKES_REQUEST_MASK], [
|
||||
AC_CHECK_LINUX_BUILD([whether generic_fillattr has the request_mask parameter],
|
||||
[ac_cv_linux_func_generic_fillattr_takes_request_mask],
|
||||
[#include <linux/fs.h>],
|
||||
[
|
||||
generic_fillattr(NULL, 0, NULL, NULL);
|
||||
],
|
||||
[GENERIC_FILLATTR_TAKES_REQUEST_MASK],
|
||||
[define if your generic_fillattr has the request_mask_parameter],
|
||||
[])
|
||||
])
|
||||
|
Loading…
x
Reference in New Issue
Block a user