07d7d9dff0c8 Merge branch 'for-next-next-v6.1-20221123' into for-next-20221123
e592233e0971 Merge branch 'for-next-current-v6.0-20221123' into for-next-20221123
0d1acee8fae8 Merge branch 'misc-next' into for-next-next-v6.1-20221123
5d39d8942b24 Merge branch 'misc-6.1' into for-next-current-v6.0-20221123
9344bafc1377 btrfs: sysfs: normalize the error handling branch in btrfs_init_sysfs()
64f3b95c5a63 btrfs: remove outdated logic from overwrite_item() and add assertion
09d6f748a95c btrfs: unify overwrite_item() and do_overwrite_item()
f611f9658c87 btrfs: do not modify log tree while holding a leaf from fs tree locked
c3479d8d2607 btrfs: replace strncpy() with strscpy()
a1b54a1eb6c6 btrfs: fix uninitialized variable in find_first_clear_extent_bit
2af1f28d587c btrfs: fix uninitialized parent in insert_state
4772bb50685d btrfs: use kvcalloc in btrfs_get_dev_zone_info
235d10fbff56 btrfs: qgroup: fix sleep from invalid context bug in btrfs_qgroup_inherit()
ca5f71374355 btrfs: add might_sleep() annotations
94e2bc3a338b btrfs: send: avoid unaligned encoded writes when attempting to clone range
bff4dc28a91c btrfs: add stack helpers for a few btrfs items
9041bd9c6701 btrfs: add nr_global_roots to the super block definition
a61d348b0a4f btrfs: remove BTRFS_LEAF_DATA_OFFSET
74517ad40178 btrfs: add helpers for manipulating leaf items and data
3ae4be59654d btrfs: add eb to btrfs_node_key_ptr_offset
9b22245688c9 btrfs: pass the extent buffer for the btrfs_item_nr helpers
7d7b5ce16a9b btrfs: move the csum helpers into ctree.h
663d4ccfe5b6 btrfs: move eb offset helpers into extent_io.h
9467a21fd785 btrfs: move file_extent_item helpers into file-item.h
8231912af62c btrfs: move leaf_data_end into ctree.c
6edcdf02cc14 btrfs: move root helpers back into ctree.h
d89efe59ed01 btrfs: move repair_io_failure to bio.c
55152e7e2bca btrfs: split the bio submission path into a separate file
24566330d8f2 btrfs: move struct btrfs_tree_parent_check out of disk-io.h
a3fce1cb68df btrfs: zoned: fix missing endianness conversion in sb_write_pointer
370f3768d468 btrfs: raid56: do data csum verification during RMW cycle
b3d6baba920b btrfs: raid56: prepare data checksums for later RMW verification
9c5ed2ef1003 btrfs: introduce a bitmap based csum range search function
cb5dc4dfa870 btrfs: refactor checksum calculations in btrfs_lookup_csums_range()
dc9d1af4d02d btrfs: allocate btrfs_io_context without GFP_NOFAIL
ba85b5210be6 btrfs: use btrfs_dev_name() helper to handle missing devices better
fe3000949995 btrfs: use cached state when looking for delalloc ranges with lseek
f5b70e30177f btrfs: use cached state when looking for delalloc ranges with fiemap
c5b1d9edefaa btrfs: update stale comment for count_range_bits()
5e02ee65cbcf btrfs: allow passing a cached state record to count_range_bits()
d9a70eabb4cc btrfs: remove no longer used btrfs_next_extent_map()
45fde3e96631 btrfs: search for delalloc more efficiently during lseek/fiemap
91733e3c597c btrfs: skip unnecessary delalloc searches during lseek/fiemap
666bbeea86cc btrfs: add an early exit when searching for delalloc range for lseek/fiemap
82b7eee2e348 btrfs: remove leftover setting of EXTENT_UPTODATE state in an inode's io_tree
8acc533e5edf btrfs: free btrfs_path before copying subvol info to userspace
570ca01bd827 btrfs: free btrfs_path before copying fspath to userspace
b9b32676fe13 btrfs: free btrfs_path before copying inodes to userspace
4ca9dbf8856a btrfs: free btrfs_path before copying root refs to userspace
14bd238dba12 btrfs: fix assertion failure and blocking during nowait buffered write
1651f82a4e00 btrfs: move tree block parentness check into validate_extent_buffer()
a69cbb51b108 btrfs: concentrate all tree block parentness check parameters into one structure
636812fc1428 btrfs: move device->name RCU allocation and assign to btrfs_alloc_device()
4c732a803111 btrfs: constify input buffer parameter in compression code
2e99b0c8e144 btrfs: raid56: remove the old error tracking system
680b470f833d btrfs: raid56: migrate recovery and scrub recovery path to use error_bitmap
3e6bc3f9592a btrfs: raid56: introduce btrfs_raid_bio::error_bitmap
e1a135b78198 btrfs: pass btrfs_inode to btrfs_add_delayed_iput
6c5ca27677f5 btrfs: use btrfs_inode inside btrfs_verify_data_csum
b056b4e43ea8 btrfs: use btrfs_inode inside compress_file_range
21d743a258af btrfs: switch async_chunk::inode to btrfs_inode
f4655f6c792a btrfs: pass btrfs_inode to btrfs_inherit_iflags
68560f16176e btrfs: pass btrfs_inode to inode_tree_add
6e4019ebc09d btrfs: pass btrfs_inode to fixup_tree_root_location
90a89c513019 btrfs: pass btrfs_inode to btrfs_inode_by_name
841bbc31e8db btrfs: pass btrfs_inode to btrfs_unlink_subvol
cfb4f1684b06 btrfs: pass btrfs_inode to btrfs_clear_delalloc_extent
752b03ed8e1b btrfs: pass btrfs_inode to btrfs_split_delalloc_extent
14a1802aff8d btrfs: pass btrfs_inode to btrfs_set_delalloc_extent
761e7bdb406c btrfs: pass btrfs_inode to btrfs_merge_delalloc_extent
de4988213988 btrfs: switch extent_io_tree::private_data to btrfs_inode and rename
7b26c62ea81d btrfs: drop private_data parameter from extent_io_tree_init
f25fe1a44141 btrfs: pass btrfs_inode to btrfs_delete_subvolume
54b25727afcb btrfs: pass btrfs_inode to __unlink_start_trans
94c47372158a btrfs: pass btrfs_inode to btrfs_check_data_csum
fc8cc49b408b btrfs: switch btrfs_writepage_fixup::inode to btrfs_inode
b02b9e612108 btrfs: pass btrfs_inode to btrfs_add_delalloc_inodes
1052642273e1 btrfs: pass btrfs_inode to btrfs_dirty_inode
0fd7df211998 btrfs: pass btrfs_inode to btrfs_inode_unlock
19496046ed57 btrfs: pass btrfs_inode to btrfs_inode_lock
8b13dd626dae btrfs: pass btrfs_inode to btrfs_truncate
ca06192bddec btrfs: pass btrfs_inode to btrfs_submit_dio_bio
9c4da32730e4 btrfs: switch btrfs_dio_private::inode to btrfs_inode
c464a0a2fd2a btrfs: pass btrfs_inode to btrfs_repair_one_sector
1f0dcab450bc btrfs: pass btrfs_inode to submit_one_bio
07ff3607918f btrfs: pass btrfs_inode to btrfs_submit_dio_repair_bio
b6d63240a101 btrfs: pass btrfs_inode to btrfs_submit_data_read_bio
7d343e2bdb58 btrfs: pass btrfs_inode to btrfs_submit_data_write_bio
96549e87b534 btrfs: pass btrfs_inode to btrfs_submit_metadata_bio
feb69d098f1b btrfs: pass btrfs_inode to btrfs_wq_submit_bio
55c6abd2a66f btrfs: pass btrfs_inode to btrfs_submit_bio_start_direct_io
8a33b7d65c83 btrfs: pass btrfs_inode to btrfs_submit_bio_start
ecc30aacad2c btrfs: switch async_submit_bio::inode to btrfs_inode
a5bd11f073e5 btrfs: simplify btree_submit_bio_start and btrfs_submit_bio_start parameters
a964fb89de0a btrfs: change how submit bio callback is passed to btrfs_wq_submit_bio
0579f543d8ce btrfs: drop parameter compression_type from btrfs_submit_dio_repair_bio
e831c678db90 btrfs: change how repair action is passed to btrfs_repair_one_sector
e2c677ed9e80 btrfs: convert btrfs_block_group::seq_zone to runtime flag
1d4a029318a0 btrfs: convert btrfs_block_group::needs_free_space to runtime flag
8117778f1221 btrfs: zoned: use helper to check a power of two zone size
7b415308b21a btrfs: zlib: use copy_page for full page copy
1114f42b5b2f btrfs: send: bump the extent reference count limit for backref walking
cf63020976a8 btrfs: send: skip resolution of our own backref when finding clone source
b16407395b76 btrfs: send: avoid double extent tree search when finding clone source
8c7ea992a228 btrfs: send: skip unnecessary backref iterations
d14cd51f1358 btrfs: send: cache leaf to roots mapping during backref walking
718bf8a1288e btrfs: constify ulist parameter of ulist_next()
6a63879a0175 btrfs: reuse roots ulist on each leaf iteration for iterate_extent_inodes()
e3a4cd9f893a btrfs: use a structure to pass arguments to backref walking functions
7a8693eca759 btrfs: use a single argument for extent offset in backref walking functions
746ba779a6c5 btrfs: send: optimize clone detection to increase extent sharing
b42294932375 btrfs: send: avoid unnecessary backref lookups when finding clone source
6a02827d920e btrfs: send: drop unnecessary backref context field initializations
8f86e2124efb btrfs: send: update comment at find_extent_clone()
1c989cb317c0 btrfs: send: avoid unnecessary path allocations when finding extent clone
03f91c4aadda btrfs: remove the unused endio_raid56_workers and btrfs_raid_bio::end_io_work
1e5164085755 btrfs: raid56: switch scrub path to use a single function
18b813f1f5af btrfs: raid56: extract scrub read bio list assembly code into a helper
cc97dc37103c btrfs: raid56: switch write path to rmw_rbio()
6f5891619077 btrfs: raid56: introduce the main entrance for RMW path
26bbb79091e7 btrfs: raid56: extract rwm write bios assembly into a helper
d8a5971157b8 btrfs: raid56: extract the rmw bio list build code into a helper
2410943c295f btrfs: raid56: switch recovery path to a single function
0b6e88241db3 btrfs: raid56: extract sector recovery code into a helper
ce7efaa1f224 btrfs: raid56: extract the recovery bio list build code into a helper
106acd39d991 btrfs: raid56: extract the pq generation code into a helper
8051e88d6409 btrfs: raid56: extract the vertical stripe recovery code into recover_vertical()
a66d05f455dd btrfs: merge struct extent_page_data to btrfs_bio_ctrl
a12a54e4b3fc btrfs: switch extent_page_data bit fields to bools
29db653c7e9e btrfs: simplify percent calculation helpers, rename div_factor
f39f21669fd1 btrfs: update stale comment for nowait direct IO writes
d9f748df609e btrfs: fix SPDX comment in tree-mod-log.h
f03622d11458 btrfs: extract the inline extent read code into its own function
0787ac036eec btrfs: remove new_inline argument from btrfs_extent_item_to_extent_map()
1c3e37c821ed btrfs: do not reset extent map members for inline extents read
a1d0e8052b0f btrfs: make inline extent read calculation much simpler
18dfb1330786 btrfs: selftests: remove impossible inline extent at non-zero file offset
02edc384ad66 btrfs: move orphan prototypes into orphan.h
6b1ebf09d9b7 btrfs: move super_block specific helpers into super.h
e7b65336ea85 btrfs: move super prototypes into super.h
5634ecfd3787 btrfs: move CONFIG_BTRFS_FS_RUN_SANITY_TESTS checks to fs.h
4220af35f69c btrfs: move verity prototypes into verity.h
5ff0f179fde3 btrfs: move dev-replace prototypes into dev-replace.h
59114b2cf6ce btrfs: move scrub prototypes into scrub.h
c0630b97c4ac btrfs: move relocation prototypes into relocation.h
09b6f69f4436 btrfs: move acl prototypes into acl.h
cdb045fccb70 btrfs: move the snapshot drop related prototypes to extent-tree.h
d623920a11b9 btrfs: move the 32bit warn defines into messages.h
c59e4900b136 btrfs: move file prototypes to file.h
903d1e948956 btrfs: move ioctl prototypes into ioctl.h
7c2dcfd3c031 btrfs: move uuid tree prototypes to uuid-tree.h
1a2465d6197b btrfs: move file-item prototypes into their own header
356c7cfe2264 btrfs: move dir-item prototypes into dir-item.h
2ec75719c0be btrfs: move defrag related prototypes to their own header
d7236e7acca0 btrfs: move the file defrag code into defrag.c
504747034e97 btrfs: move the auto defrag code to defrag.c
c5cba771d6a0 btrfs: rename tree-defrag.c to defrag.c
7311e5fbbd72 btrfs: move inode prototypes to btrfs_inode.h
91530a23b35c btrfs: move the printk and assert helpers to messages.c
b463e5949c49 btrfs: add blk_types.h include to compression.h
9caa9107adc3 btrfs: add dependencies to fs.h and block-rsv.h
129bf0e87fb2 btrfs: move btrfs_chunk_item_size out of ctree.h
272ef0e1d0a4 btrfs: convert discard stat defs to enum
63837279186e btrfs: update function comments
680dea62aaff btrfs: remove unused btrfs_cond_migrate_bytes
3edb510d2248 btrfs: remove unused function prototypes
94151610b5fe btrfs: move root tree prototypes to their own header
9809033bdf9e btrfs: delete unused function prototypes in ctree.h
3e4c9f498445 btrfs: move delalloc space related prototypes to delalloc-space.h
914bd17bfaad btrfs: move extent-tree helpers into their own header file
b16e9f844360 btrfs: move btrfs_account_ro_block_groups_free_space into space-info.c
7ed54d985625 btrfs: remove extra space info prototypes in ctree.h
557082cfc3ef btrfs: minor whitespace in ctree.h
0c2616695a05 btrfs: move the lockdep helpers into locking.h
caf3a2986118 btrfs: move btrfs_fs_info declarations into fs.h
0a9955b2305b btrfs: extend btrfs_dir_item type to store encryption status
1a69322b4d38 btrfs: use struct fscrypt_str instead of struct qstr
b89eb09974f8 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