diff options
| author | Linus Torvalds <[email protected]> | 2024-03-12 12:28:34 -0700 | 
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2024-03-12 12:28:34 -0700 | 
| commit | 43a7548e28a6df12a6170421d9d016c576010baa (patch) | |
| tree | f956b1fc70acceca74f4c69502e592fcbad7ec77 /fs/btrfs/dev-replace.c | |
| parent | 35d4aeea10558d12022d752b20be371aced557da (diff) | |
| parent | 1cab1375ba6d5337a25acb346996106c12bb2dd0 (diff) | |
Merge tag 'for-6.9-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux
Pull btrfs updates from David Sterba:
 "Mostly stabilization, refactoring and cleanup changes. There rest are
  minor performance optimizations due to caching or lock contention
  reduction and a few notable fixes.
  Performance improvements:
   - minor speedup in logging when repeatedly allocated structure is
     preallocated only once, improves latency and decreases lock
     contention
   - minor throughput increase (+6%), reduced lock contention after
     clearing delayed allocation bits, applies to several common
     workload types
   - skip full quota rescan if a new relation is added in the same
     transaction
  Fixes:
   - zstd fix for inline compressed file in subpage mode, updated
     version from the 6.8 time
   - proper qgroup inheritance ioctl parameter validation
   - more fiemap followup fixes after reduced locking done in 6.8:
      - fix race when detecting delalloc ranges
  Core changes:
   - more debugging code:
      - added assertions for a very rare crash in raid56 calculation
      - tree-checker dumps page state to give more insights into
        possible reference counting issues
   - add checksum calculation offloading sysfs knob, for now enabled
     under DEBUG only to determine a good heuristic for deciding the
     offload or synchronous, depends on various factors (block group
     profile, device speed) and is not as clear as initially thought
     (checksum type)
   - error handling improvements, added assertions
   - more page to folio conversion (defrag, truncate), cached size and
     shift
   - preparation for more fine grained locking of sectors in subpage
     mode
   - cleanups and refactoring:
      - include cleanups, forward declarations
      - pointer-to-structure helpers
      - redundant argument removals
      - removed unused code
      - slab cache updates, last use of SLAB_MEM_SPREAD removed"
* tag 'for-6.9-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux: (114 commits)
  btrfs: reuse cloned extent buffer during fiemap to avoid re-allocations
  btrfs: fix race when detecting delalloc ranges during fiemap
  btrfs: fix off-by-one chunk length calculation at contains_pending_extent()
  btrfs: qgroup: allow quick inherit if snapshot is created and added to the same parent
  btrfs: qgroup: validate btrfs_qgroup_inherit parameter
  btrfs: include device major and minor numbers in the device scan notice
  btrfs: mark btrfs_put_caching_control() static
  btrfs: remove SLAB_MEM_SPREAD flag use
  btrfs: qgroup: always free reserved space for extent records
  btrfs: tree-checker: dump the page status if hit something wrong
  btrfs: compression: remove dead comments in btrfs_compress_heuristic()
  btrfs: subpage: make writer lock utilize bitmap
  btrfs: subpage: make reader lock utilize bitmap
  btrfs: unexport btrfs_subpage_start_writer() and btrfs_subpage_end_and_test_writer()
  btrfs: pass a valid extent map cache pointer to __get_extent_map()
  btrfs: merge btrfs_del_delalloc_inode() helpers
  btrfs: pass btrfs_device to btrfs_scratch_superblocks()
  btrfs: handle transaction commit errors in flush_reservations()
  btrfs: use KMEM_CACHE() to create btrfs_free_space cache
  btrfs: use KMEM_CACHE() to create delayed ref caches
  ...
Diffstat (limited to 'fs/btrfs/dev-replace.c')
| -rw-r--r-- | fs/btrfs/dev-replace.c | 5 | 
1 files changed, 1 insertions, 4 deletions
| diff --git a/fs/btrfs/dev-replace.c b/fs/btrfs/dev-replace.c index fb33027e5a4c..7696beec4c21 100644 --- a/fs/btrfs/dev-replace.c +++ b/fs/btrfs/dev-replace.c @@ -11,10 +11,8 @@  #include <linux/math64.h>  #include "misc.h"  #include "ctree.h" -#include "extent_map.h"  #include "disk-io.h"  #include "transaction.h" -#include "print-tree.h"  #include "volumes.h"  #include "async-thread.h"  #include "dev-replace.h" @@ -1000,8 +998,7 @@ error:  	btrfs_sysfs_remove_device(src_device);  	btrfs_sysfs_update_devid(tgt_device);  	if (test_bit(BTRFS_DEV_STATE_WRITEABLE, &src_device->dev_state)) -		btrfs_scratch_superblocks(fs_info, src_device->bdev, -					  src_device->name->str); +		btrfs_scratch_superblocks(fs_info, src_device);  	/* write back the superblocks */  	trans = btrfs_start_transaction(root, 0); |