mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
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:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user