mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-12 13:34:10 +08:00
cb5583dd52
The dev-replace locking functions are now trivial wrappers around rw semaphore that can be used directly everywhere. No functional change. Signed-off-by: David Sterba <dsterba@suse.com>
24 lines
864 B
C
24 lines
864 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) STRATO AG 2012. All rights reserved.
|
|
*/
|
|
|
|
#ifndef BTRFS_DEV_REPLACE_H
|
|
#define BTRFS_DEV_REPLACE_H
|
|
|
|
struct btrfs_ioctl_dev_replace_args;
|
|
|
|
int btrfs_init_dev_replace(struct btrfs_fs_info *fs_info);
|
|
int btrfs_run_dev_replace(struct btrfs_trans_handle *trans,
|
|
struct btrfs_fs_info *fs_info);
|
|
int btrfs_dev_replace_by_ioctl(struct btrfs_fs_info *fs_info,
|
|
struct btrfs_ioctl_dev_replace_args *args);
|
|
void btrfs_dev_replace_status(struct btrfs_fs_info *fs_info,
|
|
struct btrfs_ioctl_dev_replace_args *args);
|
|
int btrfs_dev_replace_cancel(struct btrfs_fs_info *fs_info);
|
|
void btrfs_dev_replace_suspend_for_unmount(struct btrfs_fs_info *fs_info);
|
|
int btrfs_resume_dev_replace_async(struct btrfs_fs_info *fs_info);
|
|
int btrfs_dev_replace_is_ongoing(struct btrfs_dev_replace *dev_replace);
|
|
|
|
#endif
|