xfs: bulkstat main loop logic is a mess
authorDave Chinner <dchinner@redhat.com>
Thu, 6 Nov 2014 21:31:13 +0000 (08:31 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 6 Nov 2014 21:31:13 +0000 (08:31 +1100)
commit6e57c542cb7e0e580eb53ae76a77875c7d92b4b1
treef96da98b6e470891eee9084eff924b85b43d6e7e
parent2b831ac6bc87d3cbcbb1a8816827b6923403e461
xfs: bulkstat main loop logic is a mess

There are a bunch of variables tha tare more wildy scoped than they
need to be, obfuscated user buffer checks and tortured "next inode"
tracking. This all needs cleaning up to expose the real issues that
need fixing.

cc: <stable@vger.kernel.org> # 3.17
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_itable.c