ctree.h (677074792a1d533232ec5517f23f78d64e6dffac) ctree.h (2fc6822c99d7e902b7cef146efa37420d41c0c59)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2007 Oracle. All rights reserved.
4 */
5
6#ifndef BTRFS_CTREE_H
7#define BTRFS_CTREE_H
8

--- 718 unchanged lines hidden (view full) ---

727 * otherwise static
728 */
729#ifndef CONFIG_BTRFS_FS_RUN_SANITY_TESTS
730#define EXPORT_FOR_TESTS static
731#else
732#define EXPORT_FOR_TESTS
733#endif
734
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2007 Oracle. All rights reserved.
4 */
5
6#ifndef BTRFS_CTREE_H
7#define BTRFS_CTREE_H
8

--- 718 unchanged lines hidden (view full) ---

727 * otherwise static
728 */
729#ifndef CONFIG_BTRFS_FS_RUN_SANITY_TESTS
730#define EXPORT_FOR_TESTS static
731#else
732#define EXPORT_FOR_TESTS
733#endif
734
735/* scrub.c */
736int btrfs_scrub_dev(struct btrfs_fs_info *fs_info, u64 devid, u64 start,
737 u64 end, struct btrfs_scrub_progress *progress,
738 int readonly, int is_dev_replace);
739void btrfs_scrub_pause(struct btrfs_fs_info *fs_info);
740void btrfs_scrub_continue(struct btrfs_fs_info *fs_info);
741int btrfs_scrub_cancel(struct btrfs_fs_info *info);
742int btrfs_scrub_cancel_dev(struct btrfs_device *dev);
743int btrfs_scrub_progress(struct btrfs_fs_info *fs_info, u64 devid,
744 struct btrfs_scrub_progress *progress);
745
746/* dev-replace.c */
747void btrfs_bio_counter_inc_blocked(struct btrfs_fs_info *fs_info);
748void btrfs_bio_counter_sub(struct btrfs_fs_info *fs_info, s64 amount);
749
750static inline void btrfs_bio_counter_dec(struct btrfs_fs_info *fs_info)
751{
752 btrfs_bio_counter_sub(fs_info, 1);
753}

--- 56 unchanged lines hidden ---
735/* dev-replace.c */
736void btrfs_bio_counter_inc_blocked(struct btrfs_fs_info *fs_info);
737void btrfs_bio_counter_sub(struct btrfs_fs_info *fs_info, s64 amount);
738
739static inline void btrfs_bio_counter_dec(struct btrfs_fs_info *fs_info)
740{
741 btrfs_bio_counter_sub(fs_info, 1);
742}

--- 56 unchanged lines hidden ---