mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-03 18:20:25 +02:00 
			
		
		
		
	Currently the core of the fiemap code lives in extent_io.c, which does not make any sense because it's not related to extent IO at all (and it was not as well before the big rewrite of fiemap I did some time ago). The entry point for fiemap, btrfs_fiemap(), lives in inode.c since it's an inode operation. Since there's a significant amount of fiemap code, move all of it into a dedicated file, including its entry point inode.c:btrfs_fiemap(). Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
		
			
				
	
	
		
			11 lines
		
	
	
	
		
			241 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
	
		
			241 B
		
	
	
	
		
			C
		
	
	
	
	
	
/* SPDX-License-Identifier: GPL-2.0 */
 | 
						|
 | 
						|
#ifndef BTRFS_FIEMAP_H
 | 
						|
#define BTRFS_FIEMAP_H
 | 
						|
 | 
						|
#include <linux/fiemap.h>
 | 
						|
 | 
						|
int btrfs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
 | 
						|
		 u64 start, u64 len);
 | 
						|
 | 
						|
#endif /* BTRFS_FIEMAP_H */
 |