]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: cleanup xfs_idestroy_fork
authorChristoph Hellwig <hch@lst.de>
Mon, 18 May 2020 17:29:27 +0000 (10:29 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 19 May 2020 16:40:59 +0000 (09:40 -0700)
commitc96273451e63607eba9901204ce41d4ce7a76504
tree96896d29005b32ec5a38d7ca4593364c098615a6
parent11577d28ff1a84633ec90084c371d74f01ee9736
xfs: cleanup xfs_idestroy_fork

Move freeing the dynamically allocated attr and COW fork, as well
as zeroing the pointers where actually needed into the callers, and
just pass the xfs_ifork structure to xfs_idestroy_fork.  Also simplify
the kmem_free calls by not checking for NULL first.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_attr_leaf.c
fs/xfs/libxfs/xfs_inode_buf.c
fs/xfs/libxfs/xfs_inode_fork.c
fs/xfs/libxfs/xfs_inode_fork.h
fs/xfs/xfs_attr_inactive.c
fs/xfs/xfs_icache.c