Linux 6.19: replace i_state access with inode_state_read_once()

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #18053
This commit is contained in:
Rob Norris
2025-12-01 16:05:27 +11:00
committed by Tony Hutter
parent 18065e9296
commit 135fffbc3e
4 changed files with 35 additions and 1 deletions
+2 -1
View File
@@ -3516,7 +3516,8 @@ zfs_link(znode_t *tdzp, znode_t *szp, char *name, cred_t *cr,
boolean_t is_tmpfile = 0;
uint64_t txg;
is_tmpfile = (sip->i_nlink == 0 && (sip->i_state & I_LINKABLE));
is_tmpfile = (sip->i_nlink == 0 &&
(inode_state_read_once(sip) & I_LINKABLE));
ASSERT(S_ISDIR(ZTOI(tdzp)->i_mode));