3a0ffe882841 Merge branch 'for-next-next-v6.1-20221122' into for-next-20221122
d997f7b1211d Merge branch 'for-next-current-v6.0-20221122' into for-next-20221122
10ce09dd3339 Merge branch 'misc-next' into for-next-next-v6.1-20221122
e114fb4d237d Merge branch 'misc-6.1' into for-next-current-v6.0-20221122
7f2ad4228136 btrfs: sysfs: normalize the error handling branch in btrfs_init_sysfs()
283432e30fc8 btrfs: remove outdated logic from overwrite_item() and add assertion
6ccffc94f880 btrfs: unify overwrite_item() and do_overwrite_item()
580085da5eed btrfs: do not modify log tree while holding a leaf from fs tree locked
3ddcfd957f0a btrfs: replace strncpy() with strscpy()
b89b9ef0d1bc btrfs: fix uninitialized variable in find_first_clear_extent_bit
381d7dc6ffd5 btrfs: fix uninitialized parent in insert_state
22ddfff5aa15 btrfs: use kvcalloc in btrfs_get_dev_zone_info
f7e942b5bb35 btrfs: qgroup: fix sleep from invalid context bug in btrfs_qgroup_inherit()
a11452a3709e btrfs: send: avoid unaligned encoded writes when attempting to clone range
c51f0e6a1254 btrfs: zoned: fix missing endianness conversion in sb_write_pointer
2bdbbedca223 btrfs: qgroup: fix sleep from invalid context bug in btrfs_qgroup_inherit()
35ff3de617dc btrfs: add might_sleep() annotations
af574af4f6c6 btrfs: send: avoid unaligned encoded writes when attempting to clone range
7f96496f4e49 btrfs: add stack helpers for a few btrfs items
8f27c0a5ae37 btrfs: add nr_global_roots to the super block definition
edc5c200082a btrfs: remove BTRFS_LEAF_DATA_OFFSET
543892a0975c btrfs: add helpers for manipulating leaf items and data
ab4a618fdfee btrfs: add eb to btrfs_node_key_ptr_offset
32464956286f btrfs: pass the extent buffer for the btrfs_item_nr helpers
96dfaa1a637b btrfs: move the csum helpers into ctree.h
b717afe9f4a4 btrfs: move eb offset helpers into extent_io.h
5be0d1378cc2 btrfs: move file_extent_item helpers into file-item.h
f7b7c14b675a btrfs: move leaf_data_end into ctree.c
885f696c1efd btrfs: move root helpers back into ctree.h
315bb0efe54a btrfs: move repair_io_failure to bio.c
ea8cc48c2bca btrfs: split the bio submission path into a separate file
47502aac1521 btrfs: move struct btrfs_tree_parent_check out of disk-io.h
c90b47b60b69 btrfs: zoned: fix missing endianness conversion in sb_write_pointer
292b007de645 btrfs: raid56: do data csum verification during RMW cycle
33a29bc5067d btrfs: raid56: prepare data checksums for later RMW verification
4bc8920a7a15 btrfs: introduce a bitmap based csum range search function
318549b5231e btrfs: refactor checksum calculations in btrfs_lookup_csums_range()
3e26f83d9fda btrfs: allocate btrfs_io_context without GFP_NOFAIL
12d2d0451b40 btrfs: use btrfs_dev_name() helper to handle missing devices better
3f52d539a906 btrfs: use cached state when looking for delalloc ranges with lseek
7d30a354b302 btrfs: use cached state when looking for delalloc ranges with fiemap
7b0b6ef4afdf btrfs: update stale comment for count_range_bits()
cd1309ab1b29 btrfs: allow passing a cached state record to count_range_bits()
e027ca9d2c22 btrfs: remove no longer used btrfs_next_extent_map()
8973507ae609 btrfs: search for delalloc more efficiently during lseek/fiemap
e666d991de93 btrfs: skip unnecessary delalloc searches during lseek/fiemap
ac7164429fb9 btrfs: add an early exit when searching for delalloc range for lseek/fiemap
441fcad43f32 btrfs: remove leftover setting of EXTENT_UPTODATE state in an inode's io_tree
eba8efe1cc79 btrfs: free btrfs_path before copying subvol info to userspace
cdf7d65b300e btrfs: free btrfs_path before copying fspath to userspace
fb273011a530 btrfs: free btrfs_path before copying inodes to userspace
6405f47516f8 btrfs: free btrfs_path before copying root refs to userspace
46526cfa31a0 btrfs: fix assertion failure and blocking during nowait buffered write
bd8263501012 btrfs: move tree block parentness check into validate_extent_buffer()
1b7d9ebbd56f btrfs: concentrate all tree block parentness check parameters into one structure
095e181f867e btrfs: move device->name RCU allocation and assign to btrfs_alloc_device()
1883c74f0b4e btrfs: constify input buffer parameter in compression code
93f176f698e9 btrfs: raid56: remove the old error tracking system
6a5dff308064 btrfs: raid56: migrate recovery and scrub recovery path to use error_bitmap
1f1c4b5789fa btrfs: raid56: introduce btrfs_raid_bio::error_bitmap
0232c18ede95 btrfs: pass btrfs_inode to btrfs_add_delayed_iput
3c9333e3a10c btrfs: use btrfs_inode inside btrfs_verify_data_csum
24f16bccb265 btrfs: use btrfs_inode inside compress_file_range
f36a47da88ac btrfs: switch async_chunk::inode to btrfs_inode
5dbd2be5ad23 btrfs: pass btrfs_inode to btrfs_inherit_iflags
f8f408d93beb btrfs: pass btrfs_inode to inode_tree_add
223b3add3db1 btrfs: pass btrfs_inode to fixup_tree_root_location
d257a6a982fd btrfs: pass btrfs_inode to btrfs_inode_by_name
15466b84dfd6 btrfs: pass btrfs_inode to btrfs_unlink_subvol
5a80935289f9 btrfs: pass btrfs_inode to btrfs_clear_delalloc_extent
7b3c12a66f2e btrfs: pass btrfs_inode to btrfs_split_delalloc_extent
0143507eed80 btrfs: pass btrfs_inode to btrfs_set_delalloc_extent
73a5a83a05f4 btrfs: pass btrfs_inode to btrfs_merge_delalloc_extent
b73bbfb2c575 btrfs: switch extent_io_tree::private_data to btrfs_inode and rename
672ca08a1483 btrfs: drop private_data parameter from extent_io_tree_init
3f1032ff2291 btrfs: pass btrfs_inode to btrfs_delete_subvolume
7a2a1318177c btrfs: pass btrfs_inode to __unlink_start_trans
a21f354c1717 btrfs: pass btrfs_inode to btrfs_check_data_csum
7aacc62be99e btrfs: switch btrfs_writepage_fixup::inode to btrfs_inode
275d64bc0a28 btrfs: pass btrfs_inode to btrfs_add_delalloc_inodes
877908dbd0ef btrfs: pass btrfs_inode to btrfs_dirty_inode
1a997ac5ce0e btrfs: pass btrfs_inode to btrfs_inode_unlock
75215d0e91bc btrfs: pass btrfs_inode to btrfs_inode_lock
884c17e85cc7 btrfs: pass btrfs_inode to btrfs_truncate
dc80a2d73507 btrfs: pass btrfs_inode to btrfs_submit_dio_bio
a899aa90eda9 btrfs: switch btrfs_dio_private::inode to btrfs_inode
c108492bad70 btrfs: pass btrfs_inode to btrfs_repair_one_sector
c85399481111 btrfs: pass btrfs_inode to submit_one_bio
9d481a7f2c02 btrfs: pass btrfs_inode to btrfs_submit_dio_repair_bio
c6987cb35dfa btrfs: pass btrfs_inode to btrfs_submit_data_read_bio
c0000594254c btrfs: pass btrfs_inode to btrfs_submit_data_write_bio
04c22fb3ce70 btrfs: pass btrfs_inode to btrfs_submit_metadata_bio
9545868bc3bf btrfs: pass btrfs_inode to btrfs_wq_submit_bio
5081d8ca058e btrfs: pass btrfs_inode to btrfs_submit_bio_start_direct_io
17f74613c180 btrfs: pass btrfs_inode to btrfs_submit_bio_start
62f01cda6932 btrfs: switch async_submit_bio::inode to btrfs_inode
fabf4704410d btrfs: simplify btree_submit_bio_start and btrfs_submit_bio_start parameters
dc05089adaba btrfs: change how submit bio callback is passed to btrfs_wq_submit_bio
6266e6c5eb42 btrfs: drop parameter compression_type from btrfs_submit_dio_repair_bio
c5dba29bc1ad btrfs: change how repair action is passed to btrfs_repair_one_sector
2a8eee1dc747 btrfs: convert btrfs_block_group::seq_zone to runtime flag
9a81cdc0d14e btrfs: convert btrfs_block_group::needs_free_space to runtime flag
b2e740c3be76 btrfs: zoned: use helper to check a power of two zone size
d29b78c4069d btrfs: zlib: use copy_page for full page copy
331f24293b5c btrfs: send: bump the extent reference count limit for backref walking
14d82b72e87e btrfs: send: skip resolution of our own backref when finding clone source
18817653cd19 btrfs: send: avoid double extent tree search when finding clone source
643891029a49 btrfs: send: skip unnecessary backref iterations
f7d5454cbcb6 btrfs: send: cache leaf to roots mapping during backref walking
2125880c1400 btrfs: constify ulist parameter of ulist_next()
448be60cf28f btrfs: reuse roots ulist on each leaf iteration for iterate_extent_inodes()
1db23a175088 btrfs: use a structure to pass arguments to backref walking functions
e963cdad05e8 btrfs: use a single argument for extent offset in backref walking functions
1985861b70ca btrfs: send: optimize clone detection to increase extent sharing
e76f5fa49cb0 btrfs: send: avoid unnecessary backref lookups when finding clone source
5ade86ef00ed btrfs: send: drop unnecessary backref context field initializations
d746279d957c btrfs: send: update comment at find_extent_clone()
407e7e6d4a23 btrfs: send: avoid unnecessary path allocations when finding extent clone
841dea1d0b50 btrfs: remove the unused endio_raid56_workers and btrfs_raid_bio::end_io_work
811d97d54c01 btrfs: raid56: switch scrub path to use a single function
b2a8fa0fc764 btrfs: raid56: extract scrub read bio list assembly code into a helper
c78ebbe4a2e0 btrfs: raid56: switch write path to rmw_rbio()
a8d6ccdbb2cd btrfs: raid56: introduce the main entrance for RMW path
af7363d69dd2 btrfs: raid56: extract rwm write bios assembly into a helper
deaeface175a btrfs: raid56: extract the rmw bio list build code into a helper
e94bf53dd52f btrfs: raid56: switch recovery path to a single function
d754cfc19409 btrfs: raid56: extract sector recovery code into a helper
b0334bbed1a6 btrfs: raid56: extract the recovery bio list build code into a helper
657af8c9bb8f btrfs: raid56: extract the pq generation code into a helper
cf43b0957dd9 btrfs: raid56: extract the vertical stripe recovery code into recover_vertical()
824526c5086e btrfs: merge struct extent_page_data to btrfs_bio_ctrl
7f08e3908b74 btrfs: switch extent_page_data bit fields to bools
29706cf27602 btrfs: simplify percent calculation helpers, rename div_factor
3c008e1c486a btrfs: update stale comment for nowait direct IO writes
aa7fecf0a830 btrfs: fix SPDX comment in tree-mod-log.h
c70ad7c5b741 btrfs: extract the inline extent read code into its own function
7db50e8381ea btrfs: remove new_inline argument from btrfs_extent_item_to_extent_map()
d868d00b1922 btrfs: do not reset extent map members for inline extents read
3d154bf0af17 btrfs: make inline extent read calculation much simpler
6dddaad75af8 btrfs: selftests: remove impossible inline extent at non-zero file offset
9fad6cdd1ac5 btrfs: move orphan prototypes into orphan.h
7627aa8adac0 btrfs: move super_block specific helpers into super.h
8751eb95f9ba btrfs: move super prototypes into super.h
3e8576fa57a3 btrfs: move CONFIG_BTRFS_FS_RUN_SANITY_TESTS checks to fs.h
237013ed8b20 btrfs: move verity prototypes into verity.h
d00fcc38da0e btrfs: move dev-replace prototypes into dev-replace.h
3cceeb2cff42 btrfs: move scrub prototypes into scrub.h
1792a72b6569 btrfs: move relocation prototypes into relocation.h
c43f419ad544 btrfs: move acl prototypes into acl.h
b6591e8dda82 btrfs: move the snapshot drop related prototypes to extent-tree.h
463388e9d488 btrfs: move the 32bit warn defines into messages.h
867e82b7d7a2 btrfs: move file prototypes to file.h
19a307d79c64 btrfs: move ioctl prototypes into ioctl.h
e84092d180ee btrfs: move uuid tree prototypes to uuid-tree.h
7f432ab71084 btrfs: move file-item prototypes into their own header
e9e5318694d7 btrfs: move dir-item prototypes into dir-item.h
5259bcec5349 btrfs: move defrag related prototypes to their own header
385c7b126134 btrfs: move the file defrag code into defrag.c
079b98af4f15 btrfs: move the auto defrag code to defrag.c
32b2be468477 btrfs: rename tree-defrag.c to defrag.c
2cdac86acfe3 btrfs: move inode prototypes to btrfs_inode.h
760e0253e9f6 btrfs: move the printk and assert helpers to messages.c
14370bd658f3 btrfs: add blk_types.h include to compression.h
3b9b28b9d3ce btrfs: add dependencies to fs.h and block-rsv.h
9270826b6001 btrfs: move btrfs_chunk_item_size out of ctree.h
f24b1db1d2b5 btrfs: convert discard stat defs to enum
e7a4480b132e btrfs: update function comments
001c44667459 btrfs: remove unused btrfs_cond_migrate_bytes
6c262d2e74df btrfs: remove unused function prototypes
37da077d26ff btrfs: move root tree prototypes to their own header
ac1ed4a67986 btrfs: delete unused function prototypes in ctree.h
9ac2e0ab35fc btrfs: move delalloc space related prototypes to delalloc-space.h
fdc21b9736a1 btrfs: move extent-tree helpers into their own header file
806d9b9f81f9 btrfs: move btrfs_account_ro_block_groups_free_space into space-info.c
4e15a6916788 btrfs: remove extra space info prototypes in ctree.h
da119ea572cf btrfs: minor whitespace in ctree.h
cb349a845a7c btrfs: move the lockdep helpers into locking.h
4be84c0e108b btrfs: move btrfs_fs_info declarations into fs.h
401f02bb907d btrfs: extend btrfs_dir_item type to store encryption status
52518527261b btrfs: use struct fscrypt_str instead of struct qstr
e60fd7bf12f2 btrfs: fix improper error handling in btrfs_unlink
aa8270bea38f btrfs: setup qstr from dentrys using fscrypt helper
1ef94f01c331 btrfs: use struct qstr instead of name and namelen pairs
88430a9a9f7e btrfs: merge module cleanup sequence to one helper
0edd8f53d1ae btrfs: sink gfp_t parameter to alloc_scrub_sector
55d9a4176364 btrfs: switch GFP_NOFS to GFP_KERNEL in scrub_setup_recheck_block
4e191fa4dbff btrfs: sink gfp_t parameter to btrfs_qgroup_trace_extent
540f920d50bf btrfs: sink gfp_t parameter to btrfs_backref_iter_alloc
fde04a50cb51 btrfs: remove temporary btrfs_map_token declaration in ctree.h
3e67854440c3 btrfs: move accessor helpers into accessors.h
71bedd1b4873 btrfs: move btrfs_map_token to accessors
f22a25b15a8e btrfs: rename struct-funcs.c to accessors.c
ec01a987a2b2 btrfs: move the compat/incompat flag masks to fs.h
cec2510836cb btrfs: remove fs_info::pending_changes and related code
e35be070139a btrfs: add a BTRFS_FS_NEED_TRANS_COMMIT flag
2aa411c12b1d btrfs: move fs_info::flags enum to fs.h
c1a0de3feaab btrfs: move mount option definitions to fs.h
0f0a579c1ed5 btrfs: convert incompat and compat flag test helpers to macros
206eb58c3453 btrfs: move BTRFS_FS_STATE* definitions and helpers to fs.h
70a4724a5fc0 btrfs: push printk index code into their respective helpers
cc037e60bde2 btrfs: move the printk helpers out of ctree.h
5ee354fff5ba btrfs: move assert helpers out of ctree.h
a81c9ef35098 btrfs: move fs wide helpers out of ctree.h
85b6b7e8044f btrfs: send add define for v2 buffer size
196c608e1b13 btrfs: simplify generation check in btrfs_get_dentry
acfee0c9fbac btrfs: auto enable discard=async when possible
3ae45e308d9a btrfs: sysfs: convert remaining scnprintf to sysfs_emit
6cdf890b4eff btrfs: do not panic if we can't allocate a prealloc extent state
ac50e0a85b8d btrfs: remove unused unlock_extent_atomic
a20ae0c9cd89 btrfs: do not use GFP_ATOMIC in the read endio
cd2ca88c1717 btrfs: skip update of block group item if used bytes are the same
ecbe41575ef0 btrfs: convert __TRANS_* defines to enum bits
9d00ecbbf0cc btrfs: convert QGROUP_* defines to enum bits
12f673305fe9 btrfs: convert EXTENT_* bits to enums
06110d291722 btrfs: convert extent_io page op defines to enum bits
352ba476fdfa btrfs: convert BTRFS_ILOCK-* defines to enum bit
e3ebb3d9b325 btrfs: add helper for bit enumeration
a67ba6cbfd87 btrfs: make module init/exit match their sequence
fffa0a3832b0 btrfs: remove gfp_t flag from btrfs_tree_mod_log_insert_key()
bce6feaa94df btrfs: switch GFP_ATOMIC to GFP_NOFS when fixing up low keys
3bc767dcf5c9 btrfs: re-check reclaim condition in reclaim worker
fc3e1f96154e btrfs: skip reclaim if block_group is empty
0439655bf5bc btrfs: avoid unnecessary resolution of indirect backrefs during fiemap
afd7d9bf15b2 btrfs: avoid duplicated resolution of indirect backrefs during fiemap
617fd046d30e btrfs: move up backref sharedness cache store and lookup functions
723cc5012f4b btrfs: cache sharedness of the last few data extents during fiemap
af4e3431a358 btrfs: remove useless logic when finding parent nodes
171d140e7555 btrfs: remove roots ulist when checking data extent sharedness
02541469a342 btrfs: move ulists to data extent sharedness check context
7406d0693403 btrfs: turn the backref sharedness check cache into a context object
be5ea58ade6a btrfs: directly pass the inode to btrfs_is_data_extent_shared()
f1907727ea92 btrfs: remove checks for a 0 inode number during backref walking
e79882d3bcc2 btrfs: remove checks for a root with id 0 during backref walking
bd6610cc8520 btrfs: drop redundant bflags initialization when allocating extent buffer
d4dd722da705 btrfs: drop pointless memset when cloning extent buffer
71a069b07a46 btrfs: skip unnecessary delalloc search during fiemap and lseek
e2d02b73ec38 btrfs: skip unnecessary extent map searches during fiemap and lseek
b5cd2aad8831 btrfs: get the next extent map during fiemap/lseek more efficiently
5ec7e39dadcd btrfs: raid56: make it more explicit that cache rbio should have all its data sectors uptodate
33228eacf285 btrfs: raid56: allocate memory separately for rbio pointers
5557b8c80792 btrfs: raid56: cleanup for function __free_raid_bio()
f67739fb5b9c btrfs: introduce BTRFS_RESERVE_FLUSH_EMERGENCY
a8a2582de7b3 btrfs: move the btrfs_verity_descriptor_item defs up in ctree.h
e43b9b9e0131 btrfs: move btrfs_next_old_item into ctree.c
34c790157b70 btrfs: move free space cachep's out of ctree.h
d521f37c6cdc btrfs: move btrfs_path_cachep out of ctree.h
32544edd5adc btrfs: move trans_handle_cachep out of ctree.h
37ff3d27f790 btrfs: move btrfs_print_data_csum_error into inode.c
f6b4704b0211 btrfs: move flush related definitions to space-info.h
f6bf919cb9f5 btrfs: move btrfs_should_fragment_free_space into block-group.c
62df5ea4f888 btrfs: move discard stat defs to free-space-cache.h
e26858994b6e btrfs: move BTRFS_MAX_MIRRORS into scrub.c
7d37304ca636 btrfs: move maximum limits to btrfs_tree.h
82e6b764b436 btrfs: move btrfs_get_block_group helper out of disk-io.h
91e65dd56236 btrfs: move btrfs on-disk definitions out of ctree.h
fb5d59fd623f btrfs: remove unused BTRFS_IOPRIO_READA
742b148cb39e btrfs: remove unused BTRFS_TOTAL_BYTES_PINNED_BATCH
36cf34cac48c btrfs: remove unused set/clear_pending_info helpers
0f44c06442d6 btrfs: simplify cleanup after error in btrfs_create_tree
22c2454500c2 btrfs: add cached_state to read_extent_buffer_subpage
6b8403c3229f btrfs: cache the failed state when locking extents
d608cc4e97d5 btrfs: use a cached_state everywhere in relocation
2ebeecb3fa39 btrfs: use cached_state for btrfs_check_nocow_lock
61d1b80f5f88 btrfs: add a cached_state to try_lock_extent
013c1c5585eb btrfs: free btrfs_path before copying subvol info to userspace
8cf96b409d9b btrfs: free btrfs_path before copying fspath to userspace
418ffb9e3cf6 btrfs: free btrfs_path before copying inodes to userspace
b740d8061669 btrfs: free btrfs_path before copying root refs to userspace
bdcdd86ca94b btrfs: fix assertion failure and blocking during nowait buffered write