]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit20060cddc3b4a9f70f33b455e1ef9a96160f5846
tree2e6a63c0ee02b51a89007d76e6d72996c88380c5
parent7ac5c6a7e0a08a03506b013236b548bafa5da3c4
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