btrfs: Fix bugs in zlib workspace
authorLi Zefan <lizf@cn.fujitsu.com>
Mon, 25 Oct 2010 07:11:43 +0000 (15:11 +0800)
committerLi Zefan <lizf@cn.fujitsu.com>
Wed, 22 Dec 2010 15:15:41 +0000 (23:15 +0800)
commit8844355df7f4e091b03cc131e1549631238b397b
tree90568648b57f05265def659b7dbf8f45baaaeb65
parent83a50de97fe96aca82389e061862ed760ece2283
btrfs: Fix bugs in zlib workspace

- Fix a race that can result in alloc_workspace > cpus.
- Fix to check num_workspace after wakeup.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
fs/btrfs/zlib.c