Improve setup_items_for_insert
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 9 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | btrfs: Re-arrange statements in setup_items_for_insertfs/ | +1 | 1 reply | |
| 2/5 | btrfs: Eliminate total_size parameter from setup_items_for_insertfs/ fs/ fs/ +3 more | +12 | 1 reply | |
| 3/5 | btrfs: Sink total_data parameter in setup_items_for_insertfs/ fs/ fs/ +3 more | +14 | 1 reply | |
| 4/5 | btrfs: Add kerneldoc for setup_items_for_insertfs/ | +10 | 1 reply | |
| 5/5 | btrfs: improve error message in setup_items_for_insertfs/ | +2 | 3 replies |
Reviews trailers per patch
All 5 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Josef Bacik | Johannes Thumshirn |
|---|---|---|
| Series | R-b | |
| 1/5 | R-b | |
| 2/5 | R-b | |
| 3/5 | R-b | |
| 4/5 | R-b | |
| 5/5 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/5] Improve setup_items_for_insert
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 deltasetup_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
fs/btrfs/ctree.c | 35 +++++++++++++++++----------- fs/btrfs/ctree.h | 2 +- fs/btrfs/delayed-inode.c | 3 +-- fs/btrfs/file.c | 6 +---- fs/btrfs/tests/extent-buffer-tests.c | 3 +-- fs/btrfs/tests/inode-tests.c | 6 ++--- 6 files changed, 28 insertions(+), 27 deletions(-)
--
2.17.1