From 4d972ab5aefb2499609f6327d0cfa5ab52856205 Mon Sep 17 00:00:00 2001 From: Jorgen Lundman Date: Wed, 6 Apr 2022 05:02:17 +0900 Subject: [PATCH] Prefer ATTR_ in shared codebase over AT_ An earlier commit introduces AT_MODE into the shared kernel sources, instead of the preferred existing ATTR_MODE use. Reviewed-by: Brian Behlendorf Reviewed-by: Igor Kozhukhov Signed-off-by: Jorgen lundman Closes #13293 --- module/zfs/zfs_vnops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/zfs/zfs_vnops.c b/module/zfs/zfs_vnops.c index 62806e9fe8..03edd63315 100644 --- a/module/zfs/zfs_vnops.c +++ b/module/zfs/zfs_vnops.c @@ -357,11 +357,11 @@ zfs_clear_setid_bits_if_necessary(zfsvfs_t *zfsvfs, znode_t *zp, cred_t *cr, if (*clear_setid_bits_txgp != dmu_tx_get_txg(tx)) { vattr_t va = {0}; - va.va_mask = AT_MODE; + va.va_mask = ATTR_MODE; va.va_nodeid = zp->z_id; va.va_mode = newmode; - zfs_log_setattr(zilog, tx, TX_SETATTR, zp, &va, AT_MODE, - NULL); + zfs_log_setattr(zilog, tx, TX_SETATTR, zp, &va, + ATTR_MODE, NULL); *clear_setid_bits_txgp = dmu_tx_get_txg(tx); } } else {