]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xfs: track bulkstat progress by agino
authorDave Chinner <dchinner@redhat.com>
Thu, 6 Nov 2014 21:33:52 +0000 (08:33 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Nov 2014 18:10:41 +0000 (10:10 -0800)
commitdfd0ae98ef7939d0257d401b966fbb72108e0e9b
tree319af2ee4fc2180cb5d4468576861df37be6e181
parent4107526cb39dc85ebfe5cb5c5ee14358fc4aace9
xfs: track bulkstat progress by agino

commit 002758992693ae63c04122603ea9261a0a58d728 upstream.

The bulkstat main loop progress is tracked by the "lastino"
variable, which is a full 64 bit inode. However, the loop actually
works on agno/agino pairs, and so there's a significant disconnect
between the rest of the loop and the main cursor. Convert this to
use the agino, and pass the agino into the chunk formatting function
and convert it too.

This gets rid of the inconsistency in the loop processing, and
finally makes it simple for us to skip inodes at any point in the
loop simply by incrementing the agino cursor.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/xfs_itable.c