xfs: factor data block addition from xfs_dir2_node_addname_int()
authorDave Chinner <dchinner@redhat.com>
Thu, 29 Aug 2019 16:04:06 +0000 (09:04 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sat, 31 Aug 2019 05:43:57 +0000 (22:43 -0700)
commita07258a695281109422011182db069a0e6f8855e
tree8a9aea6325fda09afb1d248f36fff4508051cbc5
parentaee7754bbeb1000992ed7e6945418a145d181074
xfs: factor data block addition from xfs_dir2_node_addname_int()

Factor out the code that adds a data block to a directory from
xfs_dir2_node_addname_int(). This makes the code flow cleaner and
more obvious and provides clear isolation of upcoming optimsations.

Signed-off-By: Dave Chinner <dchinner@redhat.com>
Reviewed-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_dir2_node.c