xfs: combine xfs_rtmodify_summary and xfs_rtget_summary
authorEric Sandeen <sandeen@sandeen.net>
Tue, 9 Sep 2014 01:58:42 +0000 (11:58 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 9 Sep 2014 01:58:42 +0000 (11:58 +1000)
commitafabfd30d05264ff493c24bce310b6a5350f099b
tree2e6a63c0ee02b51a89007d76e6d72996c88380c5
parentb16ed7c114b8cca45fa87b675c431f43ff90c179
xfs: combine xfs_rtmodify_summary and xfs_rtget_summary

xfs_rtmodify_summary and xfs_rtget_summary are almost identical;
fold them into xfs_rtmodify_summary_int(), with wrappers for each of
the original calls.

The _int function modifies if a delta is passed, and returns a
summary pointer if *sum is passed.

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/libxfs/xfs_rtbitmap.c
fs/xfs/xfs_rtalloc.c
fs/xfs/xfs_rtalloc.h