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)
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

Simple merge
Simple merge
Simple merge