On Thu, Sep 6, 2012 at 3:51 PM, Josef Bacik wrote:
> Mitch reported a problem where you could get an ENOSPC error when untarring
> a kernel git tree onto a 16gb file system with compress-force=zlib. This is
> because compression is a huge pain, it will return from ->writepages()
> without having
> + if (atomic_read(&root->fs_info->async_delalloc_pages))
> + wait_event(root->fs_info->async_submit_wait,
> + !atomic_read(&root->fs_info->async_delalloc_pages));
The very first thing wait_event_*() family does is test the condition.
You don'