Btrfs: Pre-allocate space for data relocation
authorYan, Zheng <zheng.yan@oracle.com>
Sun, 16 May 2010 14:49:59 +0000 (10:49 -0400)
committerChris Mason <chris.mason@oracle.com>
Tue, 25 May 2010 14:34:53 +0000 (10:34 -0400)
commitefa56464562991b8c24f965199888806bd8c4b38
treee7c7e69e2931674ddf4f14ac08dfdf43b45de0f4
parent4a500fd178c89b96fa166a2d9e7855df33429841
Btrfs: Pre-allocate space for data relocation

Pre-allocate space for data relocation. This can detect ENOPSC
condition caused by fragmentation of free space.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.h
fs/btrfs/inode.c
fs/btrfs/relocation.c