diff options
author | imp <imp@FreeBSD.org> | 2014-04-18 17:03:35 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2014-04-18 17:03:35 +0000 |
commit | dc1d630338e8d8a813fdacbb556799df5848769f (patch) | |
tree | 24e84b99523987d4a513aaac339ae3d299645197 /sys/fs/nandfs/nandfs.h | |
parent | 60d8af5ab8dbbf78749c82867d7dff8923b733ed (diff) | |
download | FreeBSD-src-dc1d630338e8d8a813fdacbb556799df5848769f.zip FreeBSD-src-dc1d630338e8d8a813fdacbb556799df5848769f.tar.gz |
More properly account for free/reserved segments to avoid deadlock or
worse when filling up a device and then trying to erase files to make
space. Without enough space, you can't do that. Also, ensure that the
metadata writes don't generate ENOSPC. They will be retried later
since the buffers are still dirty...
Submitted by: mjg@
Diffstat (limited to 'sys/fs/nandfs/nandfs.h')
-rw-r--r-- | sys/fs/nandfs/nandfs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/fs/nandfs/nandfs.h b/sys/fs/nandfs/nandfs.h index beb4e16..2c093be 100644 --- a/sys/fs/nandfs/nandfs.h +++ b/sys/fs/nandfs/nandfs.h @@ -200,6 +200,8 @@ struct nandfs_device { uint32_t nd_devblocksize; + uint32_t nd_segs_reserved; + /* Segment usage */ uint64_t nd_clean_segs; uint64_t *nd_free_base; |