Skip to contentSkip to conversation

btrfs: split out ioctl.c

PATCH New Christoph Hellwig 1 participant 1 message Jun 10, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btrfs: split out ioctl.c

Split the ioctl handling out of inode.c into a file of it's own. Also fix up checkpatch.pl warnings for the moved code.

Makefile +1 -1
Index: btrfs-unstable/Makefile
===================================================================
@@ -6,7 +6,7 @@ btrfs-y := super.o ctree.o extent-tree.o
 	   hash.o file-item.o inode-item.o inode-map.o disk-io.o \
 	   transaction.o bit-radix.o inode.o file.o tree-defrag.o \
 	   extent_map.o sysfs.o struct-funcs.o xattr.o ordered-data.o \
-	   extent_io.o volumes.o
+	   extent_io.o volumes.o ioctl.o
 
 btrfs-$(CONFIG_FS_POSIX_ACL)	+= acl.o
 else
ctree.h +8 -1
Index: btrfs-unstable/ctree.h
===================================================================
@@ -1544,6 +1544,10 @@ int btrfs_csum_truncate(struct btrfs_tra
 			struct btrfs_root *root, struct btrfs_path *path,
 			u64 isize);
 /* inode.c */
+int btrfs_create_subvol_root(struct btrfs_root *new_root,
+		struct btrfs_trans_handle *trans, u64 new_dirid,
+		struct btrfs_block_group_cache *block_group);
+
 void btrfs_invalidate_dcache_root(struct btrfs_root *root, char *name,
 				  int namelen);
 
@@ -1576,7 +1580,6 @@ void btrfs_destroy_inode(struct inode *i
 int btrfs_init_cachep(void);
 void btrfs_destroy_cachep(void);
 long btrfs_ioctl_trans_end(struct file *file);
-long btrfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
 struct inode *btrfs_iget_locked(struct super_block *s, u64 objectid,
 				struct btrfs_root *root);
 struct inode *btrfs_ilookup(struct super_block *s, u64 objectid,
@@ -1589,6 +1592,10 @@ struct extent_map *btrfs_get_extent(stru
 int btrfs_update_inode(struct btrfs_trans_handle *trans,
 			      struct btrfs_root *root,
 			      struct inode *inode);
+
+/* ioctl.c */
+long btrfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
+
 /* file.c */
 int btrfs_drop_extent_cache(struct inode *inode, u64 start, u64 end);
 int btrfs_check_file(struct btrfs_root *root, struct inode *inode);
inode.c +6 -727

758 lines not on this page · raw message

ioctl.c new file +781 -0

781 lines not on this page · raw message