xfs: Refactor xfs_da_state_alloc() helper
Every call to xfs_da_state_alloc() also requires setting up state->args and state->mp Change xfs_da_state_alloc() to receive an xfs_da_args_t as argument and return a xfs_da_state_t with both args and mp already set. Signed-off-by:Carlos Maiolino <cmaiolino@redhat.com> Reviewed-by:
Darrick J. Wong <darrick.wong@oracle.com> [darrick: reduce struct typedef usage] Signed-off-by:
Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by:
Christoph Hellwig <hch@lst.de> Reviewed-by:
Dave Chinner <dchinner@redhat.com>
Showing
- fs/xfs/libxfs/xfs_attr.c 5 additions, 14 deletionsfs/xfs/libxfs/xfs_attr.c
- fs/xfs/libxfs/xfs_da_btree.c 9 additions, 3 deletionsfs/xfs/libxfs/xfs_da_btree.c
- fs/xfs/libxfs/xfs_da_btree.h 1 addition, 1 deletionfs/xfs/libxfs/xfs_da_btree.h
- fs/xfs/libxfs/xfs_dir2_node.c 5 additions, 12 deletionsfs/xfs/libxfs/xfs_dir2_node.c
- fs/xfs/scrub/dabtree.c 1 addition, 3 deletionsfs/xfs/scrub/dabtree.c
Loading
Please register or sign in to comment