mirror of
				https://github.com/torvalds/linux.git
				synced 2025-10-31 00:28:52 +02:00 
			
		
		
		
	 f963e0128b
			
		
	
	
		f963e0128b
		
	
	
	
	
		
			
			Old code has a lot of int for bool return values, bool is recommended and done in new code. Convert the trivial cases that do simple 0/false and 1/true. Functions comment are updated if needed. Reviewed-by: Naohiro Aota <naohiro.aota@wdc.com> Signed-off-by: David Sterba <dsterba@suse.com>
		
			
				
	
	
		
			41 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			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
 | |
| 
 | |
| #include <linux/types.h>
 | |
| #include <linux/compiler_types.h>
 | |
| 
 | |
| struct btrfs_ioctl_dev_replace_args;
 | |
| struct btrfs_fs_info;
 | |
| struct btrfs_trans_handle;
 | |
| struct btrfs_dev_replace;
 | |
| struct btrfs_block_group;
 | |
| struct btrfs_device;
 | |
| 
 | |
| int btrfs_init_dev_replace(struct btrfs_fs_info *fs_info);
 | |
| int btrfs_run_dev_replace(struct btrfs_trans_handle *trans);
 | |
| 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);
 | |
| bool __pure btrfs_dev_replace_is_ongoing(struct btrfs_dev_replace *dev_replace);
 | |
| bool btrfs_finish_block_group_to_copy(struct btrfs_device *srcdev,
 | |
| 				      struct btrfs_block_group *cache,
 | |
| 				      u64 physical);
 | |
| void btrfs_bio_counter_inc_blocked(struct btrfs_fs_info *fs_info);
 | |
| void btrfs_bio_counter_sub(struct btrfs_fs_info *fs_info, s64 amount);
 | |
| 
 | |
| static inline void btrfs_bio_counter_dec(struct btrfs_fs_info *fs_info)
 | |
| {
 | |
| 	btrfs_bio_counter_sub(fs_info, 1);
 | |
| }
 | |
| 
 | |
| 
 | |
| #endif
 |