Btrfs: Metadata ENOSPC handling for tree log
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)
commit4a500fd178c89b96fa166a2d9e7855df33429841
treeb97fe0b0c1cb19388fcf28f77cd74a645ec69a61
parentd68fc57b7e3245cfacf2e3b47acfed1946a11786
Btrfs: Metadata ENOSPC handling for tree log

Previous patches make the allocater return -ENOSPC if there is no
unreserved free metadata space. This patch updates tree log code
and various other places to propagate/handle the ENOSPC error.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h
fs/btrfs/file-item.c
fs/btrfs/tree-log.c
fs/btrfs/tree-log.h