Skip to content

Commit f1d77b8

Browse files
Long Licmaiolino
authored andcommitted
xfs: remove redundant set null for ip->i_itemp
ip->i_itemp has been set null in xfs_inode_item_destroy(), so there is no need set it null again in xfs_inode_free_callback(). Signed-off-by: Long Li <leo.lilong@huawei.com> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Carlos Maiolino <cem@kernel.org>
1 parent 54fcd2f commit f1d77b8

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

fs/xfs/xfs_icache.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ xfs_inode_free_callback(
159159
ASSERT(!test_bit(XFS_LI_IN_AIL,
160160
&ip->i_itemp->ili_item.li_flags));
161161
xfs_inode_item_destroy(ip);
162-
ip->i_itemp = NULL;
163162
}
164163

165164
kmem_cache_free(xfs_inode_cache, ip);

0 commit comments

Comments
 (0)