diff options
author | Yan Zheng <zheng.yan@oracle.com> | 2008-10-30 14:19:41 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-10-30 14:19:41 -0400 |
commit | 9036c10208e1fc496cef7692ba66a78699b360dc (patch) | |
tree | a5b272158acc0e01e71731f5ccbc895a8eee1151 /fs/btrfs/ctree.h | |
parent | 19b9bdb054895ba07086f0264641c9f80e0eb2c4 (diff) |
Btrfs: update hole handling v2
This patch splits the hole insertion code out of btrfs_setattr
into btrfs_cont_expand and updates btrfs_get_extent to properly
handle the case that file extent items are not continuous.
Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index abb27332c914..ca5547af6090 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -1908,6 +1908,7 @@ int btrfs_update_inode(struct btrfs_trans_handle *trans, | |||
1908 | int btrfs_orphan_add(struct btrfs_trans_handle *trans, struct inode *inode); | 1908 | int btrfs_orphan_add(struct btrfs_trans_handle *trans, struct inode *inode); |
1909 | int btrfs_orphan_del(struct btrfs_trans_handle *trans, struct inode *inode); | 1909 | int btrfs_orphan_del(struct btrfs_trans_handle *trans, struct inode *inode); |
1910 | void btrfs_orphan_cleanup(struct btrfs_root *root); | 1910 | void btrfs_orphan_cleanup(struct btrfs_root *root); |
1911 | int btrfs_cont_expand(struct inode *inode, loff_t size); | ||
1911 | 1912 | ||
1912 | /* ioctl.c */ | 1913 | /* ioctl.c */ |
1913 | long btrfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg); | 1914 | long btrfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg); |