OSDN Git Service

xfs: remove the mappedbno argument to xfs_da_read_buf
authorChristoph Hellwig <hch@lst.de>
Wed, 20 Nov 2019 17:46:04 +0000 (09:46 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 22 Nov 2019 16:17:10 +0000 (08:17 -0800)
commitcd2c9f1b544b8f5e1ca1874032fd669d74946a6d
tree12f8fd044b2af10e2e70f1cda6269223ce784e11
parent02c57f0a8b07f5c8a393530ff29b2f6fbe17c825
xfs: remove the mappedbno argument to xfs_da_read_buf

Move the code for reading an already mapped block into
xfs_da3_node_read_mapped, which is the only caller ever passing a block
number in the mappedbno argument and replace the mappedbno argument with
the simple xfs_dabuf_get flags.

Signed-off-by: Christoph Hellwig <hch@lst.de>
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_da_btree.c
fs/xfs/libxfs/xfs_da_btree.h
fs/xfs/libxfs/xfs_dir2_block.c
fs/xfs/libxfs/xfs_dir2_data.c
fs/xfs/libxfs/xfs_dir2_leaf.c
fs/xfs/libxfs/xfs_dir2_node.c
fs/xfs/libxfs/xfs_dir2_priv.h
fs/xfs/scrub/dabtree.c
fs/xfs/scrub/dir.c
fs/xfs/xfs_dir2_readdir.c