Message ID | 20200901144001.4265-1-nborisov@suse.com (mailing list archive) |
---|---|
Headers | show |
Series | Improve setup_items_for_insert | expand |
Looks good,
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
On Tue, Sep 01, 2020 at 05:39:56PM +0300, Nikolay Borisov wrote: > here is a series to improve setup_items_for_insert. First patch is a simple > re-arranegement of statements to eliminate a duplication of calculation. > Patches 2 and 3 improve leaky interface of setup_items_for_insert as they > convey information about the function's implementation. Patch 4 adds a proper > kernel doc. Finally, patch 5 improves the error message in an exceptional > condition. As an added bonus after applying the whole series bloat-o-meter > output looks like: > > add/remove: 0/0 grow/shrink: 1/7 up/down: 33/-99 (-66) > Function old new delta > setup_items_for_insert 1200 1233 +33 > insert_extent 448 445 -3 > btrfs_duplicate_item 260 254 -6 > test_btrfs_split_item 1784 1776 -8 > insert_inode_item_key 156 148 -8 > __btrfs_drop_extents 3637 3621 -16 > btrfs_insert_delayed_items 1153 1125 -28 > btrfs_insert_empty_items 177 147 -30 > Total: Before=1113157, After=1113091, chg -0.01% > > This has survived -g quick of xfstests > > Nikolay Borisov (5): > btrfs: Re-arrange statements in setup_items_for_insert > btrfs: Eliminate total_size parameter from setup_items_for_insert > btrfs: Sink total_data parameter in setup_items_for_insert > btrfs: Add kerneldoc for setup_items_for_insert > btrfs: improve error message in setup_items_for_insert Thanks, all seem straightforward, I'll add it to for-next and move to misc-next once the tests finish.