]> sourceware.org Git - lvm2.git/commit
libdm: break up _stats_get_extents_for_file()
authorBryn M. Reeves <bmr@redhat.com>
Tue, 13 Dec 2016 12:03:00 +0000 (12:03 +0000)
committerBryn M. Reeves <bmr@redhat.com>
Tue, 13 Dec 2016 20:25:45 +0000 (20:25 +0000)
commiteb6557221715b30a374be46e4a52f79cd7bbed44
tree5f2b66fedf8fa246007d1a18f52aac87ec11b673
parentea9af3e290879403d99dd602153ff9d0ad0de8de
libdm: break up _stats_get_extents_for_file()

Split out the loop that iterates over each batch of FIEMAP
extent data from the function that sets up and calls the ioctl
to reduce nesting and simplify local variable use:

  _stats_get_extents_for_file()
  ->  _stats_map_extents()

The _stats_map_extents() function is responsible for detecting
eof and extent boundaries and adding whole, allocated extents
to the file extent table for region creation.
libdm/libdm-stats.c
This page took 0.038158 seconds and 5 git commands to generate.