diff options
author | Christoph Hellwig <hch@lst.de> | 2008-06-11 21:53:53 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:03 -0400 |
commit | f46b5a66b3316ef2f8febfe4c56e2d555e2c3979 (patch) | |
tree | dc3a5898d323539728576df50f8be621936d6f04 /fs/btrfs/ctree.h | |
parent | 9d2423c5c3fbb0f110ac0b6cdc5a8e4d64729483 (diff) |
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.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 7ae4666103c0..181c81d29897 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -1553,6 +1553,10 @@ int btrfs_csum_truncate(struct btrfs_trans_handle *trans, | |||
1553 | struct btrfs_root *root, struct btrfs_path *path, | 1553 | struct btrfs_root *root, struct btrfs_path *path, |
1554 | u64 isize); | 1554 | u64 isize); |
1555 | /* inode.c */ | 1555 | /* inode.c */ |
1556 | int btrfs_create_subvol_root(struct btrfs_root *new_root, | ||
1557 | struct btrfs_trans_handle *trans, u64 new_dirid, | ||
1558 | struct btrfs_block_group_cache *block_group); | ||
1559 | |||
1556 | void btrfs_invalidate_dcache_root(struct btrfs_root *root, char *name, | 1560 | void btrfs_invalidate_dcache_root(struct btrfs_root *root, char *name, |
1557 | int namelen); | 1561 | int namelen); |
1558 | 1562 | ||
@@ -1585,7 +1589,6 @@ void btrfs_destroy_inode(struct inode *inode); | |||
1585 | int btrfs_init_cachep(void); | 1589 | int btrfs_init_cachep(void); |
1586 | void btrfs_destroy_cachep(void); | 1590 | void btrfs_destroy_cachep(void); |
1587 | long btrfs_ioctl_trans_end(struct file *file); | 1591 | long btrfs_ioctl_trans_end(struct file *file); |
1588 | long btrfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg); | ||
1589 | struct inode *btrfs_iget_locked(struct super_block *s, u64 objectid, | 1592 | struct inode *btrfs_iget_locked(struct super_block *s, u64 objectid, |
1590 | struct btrfs_root *root); | 1593 | struct btrfs_root *root); |
1591 | struct inode *btrfs_ilookup(struct super_block *s, u64 objectid, | 1594 | struct inode *btrfs_ilookup(struct super_block *s, u64 objectid, |
@@ -1598,6 +1601,10 @@ struct extent_map *btrfs_get_extent(struct inode *inode, struct page *page, | |||
1598 | int btrfs_update_inode(struct btrfs_trans_handle *trans, | 1601 | int btrfs_update_inode(struct btrfs_trans_handle *trans, |
1599 | struct btrfs_root *root, | 1602 | struct btrfs_root *root, |
1600 | struct inode *inode); | 1603 | struct inode *inode); |
1604 | |||
1605 | /* ioctl.c */ | ||
1606 | long btrfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg); | ||
1607 | |||
1601 | /* file.c */ | 1608 | /* file.c */ |
1602 | int btrfs_drop_extent_cache(struct inode *inode, u64 start, u64 end); | 1609 | int btrfs_drop_extent_cache(struct inode *inode, u64 start, u64 end); |
1603 | int btrfs_check_file(struct btrfs_root *root, struct inode *inode); | 1610 | int btrfs_check_file(struct btrfs_root *root, struct inode *inode); |