xfs: extract xfs_da_buf_copy() helper function
authorZhang Tianci <zhangtianci.1997@bytedance.com>
Tue, 5 Dec 2023 05:59:00 +0000 (13:59 +0800)
committerChandan Babu R <chandanbabu@kernel.org>
Thu, 7 Dec 2023 09:27:14 +0000 (14:57 +0530)
commitfd45ddb9dd606b3eaddf26e13f64340636955986
treeac138a36220d9b798c34eb7a73167386ee4aa749
parent5759aa4f956034b289b0ae2c99daddfc775442e1
xfs: extract xfs_da_buf_copy() helper function

This patch does not modify logic.

xfs_da_buf_copy() will copy one block from src xfs_buf to
dst xfs_buf, and update the block metadata in dst directly.

Signed-off-by: Zhang Tianci <zhangtianci.1997@bytedance.com>
Suggested-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/libxfs/xfs_attr_leaf.c
fs/xfs/libxfs/xfs_da_btree.c
fs/xfs/libxfs/xfs_da_btree.h