Btrfs: update hole handling v2
authorYan Zheng <zheng.yan@oracle.com>
Thu, 30 Oct 2008 18:19:41 +0000 (14:19 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 30 Oct 2008 18:19:41 +0000 (14:19 -0400)
commit9036c10208e1fc496cef7692ba66a78699b360dc
treea5b272158acc0e01e71731f5ccbc895a8eee1151
parent19b9bdb054895ba07086f0264641c9f80e0eb2c4
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>
fs/btrfs/ctree.h
fs/btrfs/extent_map.h
fs/btrfs/file.c
fs/btrfs/inode.c