]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs: clean up _dir2_data_freescan
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 10 Jan 2017 02:16:33 +0000 (20:16 -0600)
committerEric Sandeen <sandeen@redhat.com>
Tue, 10 Jan 2017 02:16:33 +0000 (20:16 -0600)
commit7b111d36089f75252741a0d96874c70b1f6545df
tree30d52bcba8ca25c7644a47573ef32d231164171c
parent135c7b501d261de84ae39d96cccab64001cb7cfc
libxfs: clean up _dir2_data_freescan

Source kernel commit: 523b2e76e3ecb54e0ec8651e32291bdaefc5f866

Refactor the implementations of xfs_dir2_data_freescan into a
routine that takes the raw directory block parameters and
a second function that figures out the raw parameters from the
directory inode.  This enables us to use the exact same code
for both userspace and the kernel, since repair knows exactly
which directory block geometry parameters it needs.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/libxfs_api_defs.h
libxfs/libxfs_priv.h
libxfs/xfs_dir2.h
libxfs/xfs_dir2_data.c
repair/dir2.c
repair/phase6.c