aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorOmar Sandoval <osandov@fb.com>2017-08-11 09:00:06 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2017-08-11 16:56:33 -0700
commitc44245b3d5435f533ca8346ece65918f84c057f9 (patch)
treee68e72bf645789fce0a13b4606c6bf278f2795b9 /tools/perf/scripts
parentxfs: Fix per-inode DAX flag inheritance (diff)
downloadlinux-c44245b3d5435f533ca8346ece65918f84c057f9.tar.gz
linux-c44245b3d5435f533ca8346ece65918f84c057f9.zip
xfs: fix inobt inode allocation search optimization
When we try to allocate a free inode by searching the inobt, we try to find the inode nearest the parent inode by searching chunks both left and right of the chunk containing the parent. As an optimization, we cache the leftmost and rightmost records that we previously searched; if we do another allocation with the same parent inode, we'll pick up the search where it last left off. There's a bug in the case where we found a free inode to the left of the parent's chunk: we need to update the cached left and right records, but because we already reassigned the right record to point to the left, we end up assigning the left record to both the cached left and right records. This isn't a correctness problem strictly, but it can result in the next allocation rechecking chunks unnecessarily or allocating inodes further away from the parent than it needs to. Fix it by swapping the record pointer after we update the cached left and right records. Fixes: bd169565993b ("xfs: speed up free inode search") Signed-off-by: Omar Sandoval <osandov@fb.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions
.c?id=5fb33b6797633ce60908d13dc06c54a101621845&follow=1'>clk: clk-loongson2: Fix the number count of clk providerBinbin Zhou1-1/+4 2025-01-14clk: clk-loongson2: Switch to use devm_clk_hw_register_fixed_rate_parent_data()Binbin Zhou1-2/+2 2025-01-14clk: starfive: Make _clk_get become a common helper functionChanghuang Liang8-73/+27 2025-01-13clk: en7523: Add clock for eMMC for EN7581Christian Marangi1-0/+10 2025-01-13dt-bindings: clock: add ID for eMMC for EN7581Christian Marangi1-0/+2 2025-01-13dt-bindings: clock: drop NUM_CLOCKS define for EN7581Christian Marangi1-2/+0 2025-01-13clk: en7523: Rework clock handling for different clock numbersChristian Marangi1-6/+8 2025-01-13clk: thead: Fix cpu2vp_clk for TH1520 AP_SUBSYS clocksDrew Fustini1-1/+1 2025-01-13clk: thead: Add CLK_IGNORE_UNUSED to fix TH1520 bootDrew Fustini1-4/+4 2025-01-13clk: thead: Fix clk gate registration to pass flagsDrew Fustini1-1/+2 2025-01-13clk: ralink: mtmips: remove duplicated 'xtal' clock for Ralink SoC RT3883Sergio Paracuellos1-1/+0 2025-01-13clk: ep93xx: make const read-only arrays staticColin Ian King1-3/+3 2025-01-13clk: lmk04832: make read-only const arrays staticColin Ian King1-2/+2 2025-01-13clk: sunxi-ng: h616: Reparent CPU clock during frequency changesAndre Przywara1-2/+26 2025-01-09clk: rockchip: rk3588: make refclko25m_ethX criticalHeiko Stuebner1-2/+2 2025-01-09clk: rockchip: rk3588: drop RK3588_LINKED_CLKSebastian Reichel1-15/+12 2025-01-09clk: rockchip: implement linked gate clock supportSebastian Reichel5-21/+165 2025-01-09clk: rockchip: expose rockchip_clk_set_lookupSebastian Reichel2-10/+16 2025-01-09clk: rockchip: rk3588: register GATE_LINK laterSebastian Reichel1-8/+58 2025-01-09clk: rockchip: support clocks registered lateSebastian Reichel2-4/+35 2025-01-08clk: mmp2: call pm_genpd_init() only after genpd.name is setLubomir Rintel1-1/+1 2025-01-07clk: qcom: Select CLK_X1E80100_GCC in config CLK_X1P42100_GPUCCLukas Bulwahn1-1/+1 2025-01-07dt-bindings: clock: move qcom,x1e80100-camcc to its own fileBryan O'Donoghue2-2/+74 2025-01-07clk: qcom: smd-rpm: Add clocks for MSM8940Daniil Titov1-0/+29 2025-01-07dt-bindings: clock: qcom,rpmcc: Add MSM8940 compatibleDaniil Titov1-0/+2 2025-01-07clk: qcom: smd-rpm: Add clocks for MSM8937Daniil Titov1-0/+27 2025-01-07dt-bindings: clock: qcom,rpmcc: Add MSM8937 compatibleDaniil Titov1-0/+2 2025-01-07clk: qcom: ipq5424: Use icc-clk for enabling NoC related clocksVaradarajan Narayanan1-0/+19