aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
AgeCommit message (Expand)AuthorFilesLines
2025-09-23btrfs: add unlikely annotations to branches leading to EIODavid Sterba1-4/+2
2025-09-23btrfs: add unlikely annotations to branches leading to EUCLEANDavid Sterba1-2/+2
2025-09-23btrfs: fix typos in comments and stringsDavid Sterba1-1/+1
2025-07-22btrfs: use fs_holder_ops for all opened devicesQu Wenruo1-1/+1
2025-07-22btrfs: use the super_block as holder when mounting file systemsChristoph Hellwig1-1/+1
2025-07-22btrfs: call bdev_fput() to reclaim the blk_holder immediatelyQu Wenruo1-1/+1
2025-07-21btrfs: switch RCU helper versions to btrfs_info()David Sterba1-5/+5
2025-07-21btrfs: switch RCU helper versions to btrfs_warn()David Sterba1-1/+1
2025-07-21btrfs: switch RCU helper versions to btrfs_err()David Sterba1-1/+1
2025-05-15btrfs: trivial conversion to return bool instead of intDavid Sterba1-4/+4
2025-05-15btrfs: convert ASSERT(0) with handled errors to DEBUG_WARN()David Sterba1-1/+1
2025-05-15btrfs: rename free_extent_state() to include a btrfs prefixFilipe Manana1-1/+1
2025-05-15btrfs: rename the functions to search for bits in extent rangesFilipe Manana1-3/+3
2025-05-15btrfs: rename set_extent_bit() to include a btrfs prefixFilipe Manana1-2/+2
2025-03-18btrfs: return a literal instead of a variable in btrfs_init_dev_replace()Dan Carpenter1-2/+1
2025-03-18btrfs: use BTRFS_PATH_AUTO_FREE in btrfs_run_dev_replace()David Sterba1-10/+7
2025-03-18btrfs: use BTRFS_PATH_AUTO_FREE in btrfs_init_dev_replace()David Sterba1-10/+5
2025-01-13btrfs: dev-replace: remove unnecessary call to btrfs_mark_buffer_dirty()Filipe Manana1-3/+0
2024-11-11btrfs: correct typos in multiple comments across various filesShen Lichuan1-1/+1
2024-11-11btrfs: don't take dev_replace rwsem on task already holding itJohannes Thumshirn1-0/+2
2024-09-10btrfs: more efficient chunk map iteration when device replace finishesFilipe Manana1-11/+25
2024-09-10btrfs: reschedule when updating chunk maps at the end of a device replaceFilipe Manana1-0/+9
2024-07-11btrfs: simplify range parameters of btrfs_wait_ordered_roots()David Sterba1-2/+2
2024-05-02set_blocksize(): switch to passing struct file *Al Viro1-1/+1
2024-03-12Merge tag 'for-6.9-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdav...Linus Torvalds1-4/+1
2024-03-11Merge tag 'vfs-6.9.super' of git://git.kernel.org/pub/scm/linux/kernel/git/vf...Linus Torvalds1-7/+7
2024-03-04btrfs: pass btrfs_device to btrfs_scratch_superblocks()David Sterba1-2/+1
2024-03-04btrfs: remove unused included headersDavid Sterba1-2/+0
2024-02-25btrfs: port device access to fileChristian Brauner1-7/+7
2024-02-22btrfs: dev-replace: properly validate device namesDavid Sterba1-4/+20
2023-12-15btrfs: use a dedicated data structure for chunk mapsFilipe Manana1-16/+12
2023-10-30Merge tag 'for-6.7-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdav...Linus Torvalds1-2/+1
2023-10-28btrfs: Convert to bdev_open_by_path()Jan Kara1-6/+8
2023-10-12btrfs: abort transaction on generation mismatch when marking eb as dirtyFilipe Manana1-1/+1
2023-10-12btrfs: check-integrity: remove btrfsic_unmount() functionQu Wenruo1-1/+0
2023-08-21btrfs: make find_first_extent_bit() return a booleanFilipe Manana1-3/+3
2023-06-26Merge tag 'for-6.5/block-2023-06-23' of git://git.kernel.dk/linuxLinus Torvalds1-4/+4
2023-06-19btrfs: rename __btrfs_map_block to btrfs_map_blockChristoph Hellwig1-1/+1
2023-06-19btrfs: drop gfp from parameter extent state helpersDavid Sterba1-1/+1
2023-06-19btrfs: open code set_extent_bitsDavid Sterba1-2/+2
2023-06-12block: replace fmode_t with a block-specific type for block open flagsChristoph Hellwig1-1/+1
2023-06-12block: use the holder as indication for exclusive opensChristoph Hellwig1-3/+3
2023-06-05block: introduce holder opsChristoph Hellwig1-1/+1
2022-12-05btrfs: use btrfs_dev_name() helper to handle missing devices betterQu Wenruo1-12/+3
2022-12-05btrfs: move device->name RCU allocation and assign to btrfs_alloc_device()Anand Jain1-9/+1
2022-12-05btrfs: move scrub prototypes into scrub.hJosef Bacik1-0/+1
2022-12-05btrfs: move accessor helpers into accessors.hJosef Bacik1-0/+1
2022-12-05btrfs: move BTRFS_FS_STATE* definitions and helpers to fs.hJosef Bacik1-0/+1
2022-09-26btrfs: don't take a bio_counter reference for cloned biosChristoph Hellwig1-5/+0
2022-09-26btrfs: remove lock protection for BLOCK_GROUP_FLAG_TO_COPYJosef Bacik1-5/+0
2022-09-26btrfs: convert block group bit field to use bit helpersJosef Bacik1-3/+3
2022-08-23btrfs: add info when mount fails due to stale replace targetAnand Jain1-1/+1
2022-08-23btrfs: replace: drop assert for suspended replaceAnand Jain1-2/+1
2022-07-25btrfs: clean up chained assignmentsDavid Sterba1-1/+2
2022-05-16btrfs: use a local variable for fs_devices pointer in btrfs_dev_replace_finis...Anand Jain1-6/+7
2022-05-16btrfs: use btrfs_for_each_slot in mark_block_group_to_copyGabriel Niebler1-33/+6
2022-04-21btrfs: fix assertion failure during scrub due to block group reallocationFilipe Manana1-1/+6
2022-03-14btrfs: add device major-minor info in the struct btrfs_deviceAnand Jain1-0/+3
2022-03-14btrfs: simplify fs_devices member access in btrfs_init_dev_replace_tgtdevAnand Jain1-7/+8
2022-01-07btrfs: remove reada infrastructureQu Wenruo1-5/+0
2022-01-03btrfs: zoned: cache reported zone during mountNaohiro Aota1-1/+1
2022-01-03btrfs: drop the _nr from the item helpersJosef Bacik1-2/+2
2021-11-01Merge tag 'for-5.16-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kda...Linus Torvalds1-9/+7
2021-10-26btrfs: handle device lookup with btrfs_dev_lookup_argsJosef Bacik1-9/+7
2021-10-18btrfs: use bdev_nr_bytes instead of open coding itChristoph Hellwig1-2/+1
2021-06-22btrfs: fix typos in commentsDavid Sterba1-1/+1
2021-03-17btrfs: do not initialize dev replace for bad dev rootJosef Bacik1-0/+3
2021-02-09btrfs: zoned: mark block groups to copy for device-replaceNaohiro Aota1-0/+184
2021-02-08btrfs: make btrfs_start_delalloc_root's nr argument a longNikolay Borisov1-1/+1
2020-12-18btrfs: fix deadlock when cloning inline extent and low on free metadata spaceFilipe Manana1-1/+1
2020-12-09btrfs: check and enable ZONED modeNaohiro Aota1-0/+7
2020-12-09btrfs: get zone information of zoned block devicesNaohiro Aota1-0/+5
2020-12-08btrfs: remove unused argument seed from btrfs_find_deviceAnand Jain1-4/+4
2020-11-05btrfs: dev-replace: fail mount if we don't have replace item with target deviceAnand Jain1-2/+24
2020-10-26btrfs: fix readahead hang and use-after-free after removing a deviceFilipe Manana1-0/+5
2020-10-07btrfs: move btrfs_dev_replace_update_device_in_mapping_tree to drop declarationAnand Jain1-30/+26
2020-10-07btrfs: remove tmp variable for list traversal in btrfs_init_dev_replace_tgtdevAnand Jain1-3/+1
2020-10-07btrfs: split and refactor btrfs_sysfs_remove_devices_dirAnand Jain1-1/+1
2020-10-07btrfs: simplify parameters of btrfs_sysfs_add_devices_dirAnand Jain1-1/+1
2020-10-07btrfs: fix replace of seed deviceAnand Jain1-1/+1
2020-10-07btrfs: enumerate the type of exclusive operation in progressGoldwyn Rodrigues1-2/+2
2020-10-07btrfs: change nr to u64 in btrfs_start_delalloc_rootsJosef Bacik1-1/+1
2020-09-30btrfs: fix filesystem corruption after a device replaceFilipe Manana1-1/+39
2020-09-30btrfs: move btrfs_rm_dev_replace_free_srcdev outside of all locksJosef Bacik1-1/+2
2020-09-25btrfs: move btrfs_scratch_superblocks into btrfs_dev_replace_finishingJosef Bacik1-0/+3
2020-03-23btrfs: sysfs, rename device_link add/remove functionsAnand Jain1-2/+2
2020-03-23btrfs: Add overview of device replaceQu Wenruo1-0/+40
2020-01-28Merge tag 'for-5.6-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdav...Linus Torvalds1-0/+1
2020-01-25btrfs: dev-replace: remove warning for unknown return codes when finishedDavid Sterba1-4/+1
2020-01-23btrfs: sysfs, add devid/dev_state kobject and device attributesAnand Jain1-0/+1
2019-11-18btrfs: add __pure attribute to functionsDavid Sterba1-1/+1
2019-09-09btrfs: move cond_wake_up functions out of ctreeDavid Sterba1-0/+1
2019-09-09btrfs: replace: BTRFS_DEV_REPLACE_ITEM_STATE_x defines should goAnand Jain1-1/+1
2019-07-01btrfs: remove mapping tree structures indirectionDavid Sterba1-1/+1
2019-07-01btrfs: Remove redundant assignment of tgt_device->commit_total_bytesNikolay Borisov1-1/+0
2019-07-01btrfs: Explicitly reserve space for devreplace itemNikolay Borisov1-2/+2
2019-07-01btrfs: Streamline replace sem unlock in btrfs_dev_replace_startNikolay Borisov1-6/+2
2019-07-01btrfs: Ensure btrfs_init_dev_replace_tgtdev sees up to date valuesNikolay Borisov1-5/+5
2019-07-01btrfs: dev-replace: Remove impossible WARN_ONNikolay Borisov1-1/+0
2019-07-01btrfs: Reduce critical section in btrfs_init_dev_replace_tgtdevNikolay Borisov1-1/+2
2019-07-01btrfs: Don't opencode sync_blockdev in btrfs_init_dev_replace_tgtdevNikolay Borisov1-1/+1
2019-05-28btrfs: Ensure replaced device doesn't have pending chunk allocationNikolay Borisov1-10/+25
2019-04-29btrfs: get fs_info from device in btrfs_rm_dev_replace_free_srcdevDavid Sterba1-1/+1
2019-04-29btrfs: get fs_info from trans in btrfs_run_dev_replaceDavid Sterba1-2/+2
2019-04-29btrfs: combine device update operations during transaction commitNikolay Borisov1-1/+1
2019-02-25btrfs: drop the lock on error in btrfs_dev_replace_cancelDan Carpenter1-0/+1
2019-02-25btrfs: merge btrfs_find_device and find_deviceAnand Jain1-2/+2
2019-02-25btrfs: refactor btrfs_find_device() take fs_devices as argumentAnand Jain1-3/+3
2018-12-17btrfs: Fix typos in comments and stringsAndrea Gelmini1-1/+1
2018-12-17btrfs: dev-replace: open code trivial locking helpersDavid Sterba1-50/+31
2018-12-17btrfs: dev-replace: remove custom read/write blocking schemeDavid Sterba1-16/+0
2018-12-17btrfs: dev-replace: swich locking to rw semaphoreDavid Sterba1-6/+6
2018-12-17btrfs: don't report user-requested cancel as an errorAnand Jain1-1/+2
2018-12-17btrfs: silence warning if replace is canceledAnand Jain1-2/+2
2018-12-17btrfs: dev-replace: add explicit check for replace result "no error"Anand Jain1-2/+3
2018-12-17btrfs: dev-replace: replace's scrub must not be running in suspended stateAnand Jain1-1/+3
2018-12-17btrfs: dev-replace: set result code of cancel by status of scrubAnand Jain1-7/+14
2018-12-17btrfs: fix use-after-free due to race between replace start and cancelAnand Jain1-22/+41
2018-12-17btrfs: dev-replace: go back to suspend state if another EXCL_OP is runningAnand Jain1-0/+4
2018-12-17btrfs: dev-replace: go back to suspended state if target device is missingAnand Jain1-0/+2
2018-12-17btrfs: mark btrfs_dev_replace_start as staticAnand Jain1-1/+1
2018-12-17btrfs: remove redundant replace_state initAnand Jain1-1/+0
2018-12-17Btrfs: prevent ioctls from interfering with a swap fileOmar Sandoval1-0/+7
2018-10-15btrfs: dev-replace: remove pointless assert in write unlockDavid Sterba1-1/+0
2018-10-15btrfs: dev-replace: move replace members out of fs_infoDavid Sterba1-8/+8
2018-10-15btrfs: dev-replace: avoid useless lock on error handling pathDavid Sterba1-1/+6
2018-10-15btrfs: open code btrfs_after_dev_replace_commitDavid Sterba1-8/+0
2018-10-15btrfs: open code btrfs_dev_replace_clear_lock_blockingDavid Sterba1-12/+0
2018-10-15btrfs: remove btrfs_dev_replace::read_locksDavid Sterba1-5/+0
2018-10-15btrfs: fix error handling in btrfs_dev_replace_startJeff Mahoney1-2/+5
2018-10-15btrfs: Make btrfs_find_device_by_devspec return btrfs_device directlyNikolay Borisov1-4/+4
2018-08-06btrfs: replace: Reset on-disk dev stats value after replaceMisono Tomohiro1-0/+6
2018-08-06btrfs: Remove fs_info from btrfs_destroy_dev_replace_tgtdevNikolay Borisov1-3/+3
2018-08-06btrfs: Remove fs_info from btrfs_assign_next_active_deviceNikolay Borisov1-1/+1
2018-08-06btrfs: Remove fs_info from btrfs_rm_dev_replace_remove_srcdevNikolay Borisov1-1/+1
2018-08-06btrfs: prune unused includesDavid Sterba1-5/+0
2018-08-06btrfs: replace get_seconds with new 64bit time APIAllen Pais1-4/+4
2018-05-28btrfs: drop uuid_mutex in btrfs_dev_replace_finishingAnand Jain1-3/+0
2018-05-28btrfs: replace waitqueue_actvie with cond_wake_upDavid Sterba1-6/+4
2018-05-28btrfs: Remove delayed_iput parameter of btrfs_start_delalloc_rootsNikolay Borisov1-1/+1
2018-05-28btrfs: remove wrong use of volume_mutex from btrfs_dev_replace_startDavid Sterba1-6/+1
2018-05-28btrfs: add proper safety check before resuming dev-replaceDavid Sterba1-1/+11
2018-05-28btrfs: move btrfs_init_dev_replace_tgtdev to dev-replace.c and make staticDavid Sterba1-0/+99
2018-05-28btrfs: make success path out of btrfs_init_dev_replace_tgtdev more clearDavid Sterba1-1/+0
2018-05-28btrfs: squeeze btrfs_dev_replace_continue_on_mount to its callerDavid Sterba1-13/+3
2018-04-12btrfs: replace GPL boilerplate by SPDX -- sourcesDavid Sterba1-14/+2
2018-03-31btrfs: split dev-replace locking helpers for read and writeDavid Sterba1-49/+49
2018-03-26btrfs: log, when replace, is canceled by the userAnand Jain1-0/+8
2018-03-26btrfs: fix null pointer deref when target device is missingAnand Jain1-1/+1
2018-03-26btrfs: open code btrfs_init_dev_replace_tgtdev_for_resume()Anand Jain1-2/+8
2018-03-26btrfs: btrfs_dev_replace_cancel() can return intAnand Jain1-2/+2
2018-03-26btrfs: rename __btrfs_dev_replace_cancel()Anand Jain1-1/+1
2018-03-26btrfs: open code btrfs_dev_replace_cancel()Anand Jain1-9/+1
2018-01-22btrfs: cleanup device states define BTRFS_DEV_STATE_REPLACE_TGTAnand Jain1-2/+3
2018-01-22btrfs: cleanup device states define BTRFS_DEV_STATE_MISSINGAnand Jain1-1/+1
2018-01-22btrfs: add helper for device path or missingAnand Jain1-11/+14
2017-09-14Merge branch 'work.mount' of git://git.kernel.org/pub/scm/linux/kernel/git/vi...Linus Torvalds1-1/+1
2017-08-16btrfs: simplify btrfs_dev_replace_kthreadDavid Sterba1-17/+11
2017-08-16btrfs: factor reading progress out of btrfs_dev_replace_statusDavid Sterba1-16/+30
2017-07-17VFS: Convert sb->s_flags & MS_RDONLY to sb_rdonly(sb)David Howells1-1/+1
2017-06-29btrfs: fix integer overflow in calc_reclaim_items_nrChris Mason1-2/+2
2017-04-18Btrfs: switch to div64_u64 if with a u64 divisorLiu Bo1-1/+1
2017-04-18btrfs: Wait for in-flight bios before freeing target device for raid56Qu Wenruo1-0/+2
2017-04-18btrfs: track exclusive filesystem operation in flagsDavid Sterba1-3/+2
2017-02-28btrfs: constify device path passed to relevant helpersDavid Sterba1-2/+3
2016-12-06btrfs: remove root parameter from transaction commit/end routinesJeff Mahoney1-5/+5
2016-12-06btrfs: take an fs_info directly when the root is not used otherwiseJeff Mahoney1-6/+6
2016-12-06btrfs: root->fs_info cleanup, add fs_info convenience variablesJeff Mahoney1-23/+23
2016-09-26btrfs: convert pr_* to btrfs_* where possibleJeff Mahoney1-1/+1
2016-09-26btrfs: unsplit printed stringsJeff Mahoney1-8/+11
2016-07-26btrfs: btrfs_test_opt and friends should take a btrfs_fs_infoJeff Mahoney1-2/+2
2016-05-25Merge branch 'cleanups-4.7' into for-chris-4.7-20160525David Sterba1-1/+1
2016-05-25btrfs: fix string and comment grammatical issues and typosNicholas D Steeves1-1/+1
2016-05-17Merge branch 'for-chris-4.7' of git://git.kernel.org/pub/scm/linux/kernel/git...Chris Mason1-2/+2
2016-05-13Btrfs: don't wait for unrelated IO to finish before relocationFilipe Manana1-2/+2
2016-05-04btrfs: cleanup assigning next active device with a checkAnand Jain1-5/+3
2016-05-04btrfs: s_bdev is not null after missing replaceAnand Jain1-1/+2
2016-04-28btrfs: refactor btrfs_dev_replace_start for reuseAnand Jain1-21/+37
2016-04-28btrfs: use fs_info directlyAnand Jain1-4/+4
2016-04-28btrfs: rename btrfs_find_device_by_user_inputDavid Sterba1-1/+1
2016-04-28btrfs: enhance btrfs_find_device_by_user_input() to check device pathAnand Jain1-4/+0
2016-04-28btrfs: create helper btrfs_find_device_by_user_input()Anand Jain1-23/+1
2016-04-04btrfs: Reset IO error counters before start of device replacingYauhen Kharuzhy1-0/+2
2016-03-14btrfs: Fix misspellings in comments.Adam Buchbinder1-1/+1
2016-02-26Merge branch 'foreign/liubo/replace-lockup' into for-chris-4.6David Sterba1-60/+70
2016-02-23Btrfs: fix lockdep deadlock warning due to dev_replaceLiu Bo1-60/+70
2016-02-11btrfs: scrub: use GFP_KERNEL on the submission pathDavid Sterba1-1/+1
2016-01-15btrfs: cleanup, stop casting for extent_map->lookup everywhereJeff Mahoney1-1/+1
2015-10-12Merge branch 'fix/waitqueue-barriers' of git://git.kernel.org/pub/scm/linux/k...Chris Mason1-2/+1
2015-10-12Merge branch 'anand/sysfs-updates-v4.3-rc3' of git://git.kernel.org/pub/scm/l...Chris Mason1-18/+18
2015-10-10btrfs: remove waitqueue_active check from btrfs_rm_dev_replace_unblockedDavid Sterba1-2/+1
2015-10-08btrfs: switch message printers to _in_rcu variantsDavid Sterba1-8/+8
2015-10-01Btrfs: move kobj stuff out of dev_replace lock rangeLiu Bo1-4/+4
2015-10-01Btrfs: kernel operation should come after user input has been verifiedAnand Jain1-13/+13
2015-09-29Btrfs: rename btrfs_kobj_rm_device to btrfs_sysfs_rm_device_linkAnand Jain1-1/+1
2015-09-29Btrfs: rename btrfs_kobj_add_device to btrfs_sysfs_add_device_linkAnand Jain1-1/+1
2015-08-31Btrfs: cleanup: remove unnecessary check before btrfs_free_path is calledTsutomu Itoh1-2/+1
2015-07-22btrfs: its btrfs_err() instead of btrfs_error()Anand Jain1-1/+1
2015-06-19Btrfs: sysfs: add support to show replacing target in the sysfsAnand Jain1-1/+4
2015-05-27Btrfs: sysfs btrfs_kobj_rm_device() pass fs_devices instead of fs_infoAnand Jain1-1/+1