Most of patches regroup if else logic in attemp to avoid useless checks Last patch convert if else to switch case, because in that place code work with enum and usage of switch case can make more obvious to compiler how to optimize that code
This is if else vs case in GCC C++, but i think gcc do the same with C. https://godbolt.org/g/YzPL93 Timofey Titovets (7): Btrfs: __compare_inode_defrag decrease max compare count Btrfs: backref_comp decrease max compare count Btrfs: ref_node_cmp decrease max compare count Btrfs: ref_tree_add remove useless compare Btrfs: add_all_parents skip compare Btrfs: __tree_mod_log_insert decrease max compare count Btrfs: end_workqueue_bio use switch case instead of else if fs/btrfs/backref.c | 36 ++++++++++++++++++++---------------- fs/btrfs/ctree.c | 20 +++++++++++--------- fs/btrfs/disk-io.c | 17 +++++++++++++---- fs/btrfs/file.c | 17 +++++++++-------- fs/btrfs/inode.c | 21 ++++++++++++--------- 5 files changed, 65 insertions(+), 46 deletions(-) -- 2.13.0 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html