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 <behlendorf1@llnl.gov> Reviewed-by: Igor Kozhukhov <igor@dilos.org> Signed-off-by: Jorgen lundman <lundman@lundman.net> Closes #13293
This commit is contained in:
parent
e3e4c30b0a
commit
4d972ab5ae
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue