Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Long Li and committed by
Carlos Maiolino
f1d77b86 54fcd2f9

-1
-1
fs/xfs/xfs_icache.c
··· 159 159 ASSERT(!test_bit(XFS_LI_IN_AIL, 160 160 &ip->i_itemp->ili_item.li_flags)); 161 161 xfs_inode_item_destroy(ip); 162 - ip->i_itemp = NULL; 163 162 } 164 163 165 164 kmem_cache_free(xfs_inode_cache, ip);