Skip to contentSkip to conversation

xfs: remove the duplicated inode log fieldmask set

PATCH In review kaixuxia 2 participants 2 messages Oct 21, 2019 XFS filesystem

lore
Share & tools
lore

kaixuxia

author
#0 lore raw

PATCH 1/1 xfs: remove the duplicated inode log fieldmask set

The xfs_bumplink() call has set the inode log fieldmask XFS_ILOG_CORE, so the next xfs_trans_log_inode() call is not necessary.

---
 fs/xfs/xfs_inode.c | 1 -
 1 file changed, 1 deletion(-)
fs/xfs/xfs_inode.c +0 -1
index 18f4b26..b0c81f1d 100644
@@ -3327,7 +3327,6 @@ struct xfs_iunlink {
 			goto out_trans_cancel;
 
 		xfs_bumplink(tp, wip);
-		xfs_trans_log_inode(tp, wip, XFS_ILOG_CORE);
 		VFS_I(wip)->i_state &= ~I_LINKABLE;
 	}
 
Signature · 4 lines
1.8.3.1

-- 
kaixuxia
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · kaixuxia

The xfs_bumplink() call has set the inode log fieldmask XFS_ILOG_CORE, so the next xfs_trans_log_inode() call is not necessary.

Looks ok,

--D

Quoted 21 lines
---
 fs/xfs/xfs_inode.c | 1 -
 1 file changed, 1 deletion(-)
fs/xfs/xfs_inode.c +0 -1
index 18f4b26..b0c81f1d 100644
@@ -3327,7 +3327,6 @@ struct xfs_iunlink {
 			goto out_trans_cancel;
 
 		xfs_bumplink(tp, wip);
-		xfs_trans_log_inode(tp, wip, XFS_ILOG_CORE);
 		VFS_I(wip)->i_state &= ~I_LINKABLE;
 	}
 
Signature · 4 lines
1.8.3.1

-- 
kaixuxia