]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_io: factor out new get_last_inode() helper
authorEric Sandeen <sandeen@sandeen.net>
Sun, 2 Oct 2016 23:46:03 +0000 (10:46 +1100)
committerDave Chinner <david@fromorbit.com>
Sun, 2 Oct 2016 23:46:03 +0000 (10:46 +1100)
commitd0e8bb48b7a607d849d21f9b74d62ba460cef006
tree393ffcd8061c1ce7a09e04acfe61c8901ebec690
parent870ecc222fb4674de30708d573abdb5c8826e202
xfs_io: factor out new get_last_inode() helper

The inode command by default finds the last allocated inode in the
filesystem via bulkstat, and this specific function is open-coded
after other cases are handled, leading to a fairly long inode_f
function and confusing code flow.

Clean it up by factoring it into a new function, more refactoring
will follow.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
io/open.c