]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: deal with the case that we run out of space in the cache
authorJosef Bacik <josef@redhat.com>
Wed, 6 Apr 2011 17:05:22 +0000 (13:05 -0400)
committerJosef Bacik <josef@redhat.com>
Fri, 8 Apr 2011 17:00:27 +0000 (13:00 -0400)
commitac5dde2355a9d2e0a980a4276bd6c51ec52ce443
treef2cd5976aae8a466b926f9fd7c0e10a082b5a11a
parent02464c736e97be6fae596d3a6e79421900eb22a7
Btrfs: deal with the case that we run out of space in the cache

Currently we don't handle running out of space in the cache, so to fix this we
keep track of how far in the cache we are.  Then we only dirty the pages if we
successfully modify all of them, otherwise if we have an error or run out of
space we can just drop them and not worry about the vm writing them out.
Thanks,

Tested-by Johannes Hirte <johannes.hirte@fem.tu-ilmenau.de>
Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/ctree.h
fs/btrfs/file.c
fs/btrfs/free-space-cache.c