]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
fiemap: Eliminate num_extents
authorNikolay Borisov <nborisov@suse.com>
Thu, 24 Aug 2017 21:43:40 +0000 (16:43 -0500)
committerEric Sandeen <sandeen@redhat.com>
Thu, 24 Aug 2017 21:43:40 +0000 (16:43 -0500)
commitcb404e20fa295803266b874a65d6036834440c50
tree858ead574278d390041b7e17e7fc57619cd3b932
parent05ef2919b07f791f6cdecaee88a3370427f651e2
fiemap: Eliminate num_extents

Fiemap has this rather convoluted logic to calculate the number of extents to
query. This introduces needless complexity with no real benefit. Remove
num_extents and instead hardcode the number of extents we query for in a single
go to 32. No functional changes

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
io/fiemap.c