xfs: simplify /proc teardown & error handling
authorEric Sandeen <sandeen@redhat.com>
Mon, 12 Oct 2015 07:21:22 +0000 (18:21 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 12 Oct 2015 07:21:22 +0000 (18:21 +1100)
commit9e92054e8e049f8f4c64d2c6961b2a7e3e13977f
treefb22b5dc75b8049a663990e5238a2ebcf3e7b79a
parentff6d6af2351caea7db681f4539d0d893e400557a
xfs: simplify /proc teardown & error handling

remove_proc_subtree() was added in 3.9, and can be
used to simplify our procfile creation error handling
and cleanup, removing the nested gotos.  It simply
removes fs/xfs and everything created under it.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_stats.c