aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-06-28 17:31:30 +0200
committerDavid Sterba <dsterba@suse.com>2023-08-21 14:52:14 +0200
commit2c73162d649670045415537dc746f7524cda1405 (patch)
tree5ff4e80739d5f009f2aa18ba2249ddc91cf7f4e9 /tools/perf/scripts/python/event_analyzing_sample.py
parentbtrfs: remove the return value from extent_write_locked_range (diff)
downloadlinux-2c73162d649670045415537dc746f7524cda1405.tar.gz
linux-2c73162d649670045415537dc746f7524cda1405.zip
btrfs: improve the delalloc_to_write calculation in writepage_delalloc
Currently writepage_delalloc adds to delalloc_to_write in every loop operation. That is not only more work than doing it once after the loop, but can also over-increment the counter due to rounding errors when a new loop iteration starts with an offset into a page. Add a new page_start variable instead of recaculation that value over and over, move the delalloc_to_write calculation out of the loop, use the DIV_ROUND_UP helper instead of open coding it and remove the pointless found local variable. Reviewed-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
killNikolay Aleksandrov1-1/+2 2014-10-29cnic: Update the rcu_access_pointer() usagesTej Parkash1-4/+1 2014-10-29cxgb4vf: Replace repetitive pci device ID's with right onesHariprasad Shenai1-8/+8 2014-10-29ipv6: notify userspace when we added or changed an ipv6 tokenLubomir Rintel1-0/+1 2014-10-29sch_pie: schedule the timer after all init succeedWANG Cong1-1/+1 2014-10-28cdc-ether: handle promiscuous mode with a set_rx_mode callbackOlivier Blin1-0/+5 2014-10-28cdc-ether: extract usbnet_cdc_update_filter functionOlivier Blin1-14/+28 2014-10-28usbnet: add a callback for set_rx_modeOlivier Blin2-0/+24 2014-10-28net: systemport: reset UniMAC coming out of a suspend cycleFlorian Fainelli1-0/+2 2014-10-28net: systemport: enable RX interrupts after NAPIFlorian Fainelli1-6/+3 2014-10-28skbuff.h: fix kernel-doc warning for headers_endRandy Dunlap1-0/+4 2014-10-28net: phy: Add SGMII Configuration for Marvell 88E1145 InitializationVince Bridgers1-0/+19 2014-10-28drivers: net:cpsw: fix probe_dt when only slave 1 is pinned outMugunthan V N1-9/+9 2014-10-28dsa: mv88e6171: Fix tagging protocol/KconfigAndrew Lunn1-1/+1 2014-10-28net: dsa: Error out on tagging protocol mismatchesAndrew Lunn1-1/+4 2014-10-27bpf: split eBPF out of NETAlexei Starovoitov5-5/+28 2014-10-27cxgb4 : Handle dcb enable correctlyAnish Bhatt2-2/+11 2014-10-27cxgb4 : Improve handling of DCB negotiation or loss thereofAnish Bhatt1-3/+45 2014-10-27netfilter: nft_compat: fix wrong target lookup in nft_target_select_ops()Arturo Borrero1-1/+1 2014-10-26net: napi_reuse_skb() should check pfmemallocEric Dumazet1-0/+4 2014-10-26net/mlx4_core: Call synchronize_irq() before freeing EQ bufferEli Cohen1-0/+1 2014-10-26net/mlx5_core: Call synchronize_irq() before freeing EQ bufferEli Cohen1-0/+1 2014-10-25drivers: net: xgene: Rewrite buggy loop in xgene_enet_ecc_init()Geert Uytterhoeven1-9/+7 2014-10-25i40e: _MASK vs _SHIFT typo in i40e_handle_mdd_event()Dan Carpenter1-2/+2 2014-10-25macvlan: fix a race on port dismantle and possible skb leaksEric Dumazet1-2/+8 2014-10-25tcp: md5: do not use alloc_percpu()Eric Dumazet1-39/+20 2014-10-25xen-netback: reintroduce guest Rx stall detectionDavid Vrabel4-1/+86 2014-10-25xen-netback: fix unlimited guest Rx internal queue and carrier flappingDavid Vrabel4-178/+161 2014-10-25xen-netback: make feature-rx-notify mandatoryDavid Vrabel3-25/+5