aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index b9f9f815ed09..3e62a1b0a1f7 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -1486,6 +1486,9 @@ static inline struct dentry *fdentry(struct file *file)
1486 1486
1487/* extent-tree.c */ 1487/* extent-tree.c */
1488int btrfs_lookup_extent(struct btrfs_root *root, u64 start, u64 len); 1488int btrfs_lookup_extent(struct btrfs_root *root, u64 start, u64 len);
1489int btrfs_lookup_extent_ref(struct btrfs_trans_handle *trans,
1490 struct btrfs_root *root, u64 bytenr,
1491 u64 num_bytes, u32 *refs);
1489int btrfs_update_pinned_extents(struct btrfs_root *root, 1492int btrfs_update_pinned_extents(struct btrfs_root *root,
1490 u64 bytenr, u64 num, int pin); 1493 u64 bytenr, u64 num, int pin);
1491int btrfs_drop_leaf_ref(struct btrfs_trans_handle *trans, 1494int btrfs_drop_leaf_ref(struct btrfs_trans_handle *trans,
@@ -1812,6 +1815,8 @@ void btrfs_destroy_inode(struct inode *inode);
1812int btrfs_init_cachep(void); 1815int btrfs_init_cachep(void);
1813void btrfs_destroy_cachep(void); 1816void btrfs_destroy_cachep(void);
1814long btrfs_ioctl_trans_end(struct file *file); 1817long btrfs_ioctl_trans_end(struct file *file);
1818struct inode *btrfs_ilookup(struct super_block *s, u64 objectid,
1819 struct btrfs_root *root, int wait);
1815struct inode *btrfs_iget_locked(struct super_block *s, u64 objectid, 1820struct inode *btrfs_iget_locked(struct super_block *s, u64 objectid,
1816 struct btrfs_root *root); 1821 struct btrfs_root *root);
1817struct inode *btrfs_iget(struct super_block *s, struct btrfs_key *location, 1822struct inode *btrfs_iget(struct super_block *s, struct btrfs_key *location,
@@ -1824,13 +1829,17 @@ struct extent_map *btrfs_get_extent(struct inode *inode, struct page *page,
1824int btrfs_update_inode(struct btrfs_trans_handle *trans, 1829int btrfs_update_inode(struct btrfs_trans_handle *trans,
1825 struct btrfs_root *root, 1830 struct btrfs_root *root,
1826 struct inode *inode); 1831 struct inode *inode);
1832int btrfs_orphan_add(struct btrfs_trans_handle *trans, struct inode *inode);
1833int btrfs_orphan_del(struct btrfs_trans_handle *trans, struct inode *inode);
1834void btrfs_orphan_cleanup(struct btrfs_root *root);
1827 1835
1828/* ioctl.c */ 1836/* ioctl.c */
1829long btrfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg); 1837long btrfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
1830 1838
1831/* file.c */ 1839/* file.c */
1832int btrfs_sync_file(struct file *file, struct dentry *dentry, int datasync); 1840int btrfs_sync_file(struct file *file, struct dentry *dentry, int datasync);
1833int btrfs_drop_extent_cache(struct inode *inode, u64 start, u64 end); 1841int btrfs_drop_extent_cache(struct inode *inode, u64 start, u64 end,
1842 int skip_pinned);
1834int btrfs_check_file(struct btrfs_root *root, struct inode *inode); 1843int btrfs_check_file(struct btrfs_root *root, struct inode *inode);
1835extern struct file_operations btrfs_file_operations; 1844extern struct file_operations btrfs_file_operations;
1836int btrfs_drop_extents(struct btrfs_trans_handle *trans, 1845int btrfs_drop_extents(struct btrfs_trans_handle *trans,