Btrfs: Implement basic support for -ENOSPC
authorChris Mason <chris.mason@oracle.com>
Fri, 21 Dec 2007 21:27:21 +0000 (16:27 -0500)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:03:58 +0000 (11:03 -0400)
commit1832a6d5ee3b1af61001cadba9e10da9e91af4a4
tree3a6dcb2a186c3623b0355b7e45d1b94ecae5e54d
parent01f466580502c57001bf80fff709479fdb9e87a5
Btrfs: Implement basic support for -ENOSPC

This is intended to prevent accidentally filling the drive.  A determined
user can still make things oops.

It includes some accounting of the current bytes under delayed allocation,
but this will change as things get optimized

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/extent_map.c
fs/btrfs/extent_map.h
fs/btrfs/file.c
fs/btrfs/inode.c