]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: Add remote block helper functions
authorAllison Collins <allison.henderson@oracle.com>
Tue, 21 Jul 2020 04:47:29 +0000 (21:47 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 29 Jul 2020 03:28:12 +0000 (20:28 -0700)
commit865762754a45a0fe1bf5dc5cef77e1356a7c1b36
tree7ffaf23c6e55b0b1737ed88b71f91ac3cfc7cca8
parent1ebdc95d0cc4ceb7dc1d2c5f2fdd92ea9c2b3738
xfs: Add remote block helper functions

This patch adds two new helper functions xfs_attr_store_rmt_blk and
xfs_attr_restore_rmt_blk. These two helpers assist to remove redundant
code associated with storing and retrieving remote blocks during the
attr set operations.

Signed-off-by: Allison Collins <allison.henderson@oracle.com>
Reviewed-by: Chandan Rajendra <chandanrlinux@gmail.com>
Reviewed-by: Amir Goldstein <amir73il@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>
Acked-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/libxfs/xfs_attr.c