diff options
author | Mike Snitzer <snitzer@redhat.com> | 2013-12-05 21:03:33 (GMT) |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2014-01-07 15:14:28 (GMT) |
commit | 399caddfb16f5fa30c66056a32477cf95c947e2b (patch) | |
tree | c7afb7ccdaa87205419b3715bc18b5209efde61b /fs/befs | |
parent | 6f7f51d4344d530f725e9c932fa44f00ba363fa2 (diff) | |
download | linux-399caddfb16f5fa30c66056a32477cf95c947e2b.tar.xz |
dm thin: cleanup and improve no space handling
Factor out_of_data_space() out of alloc_data_block(). Eliminate the use
of 'no_free_space' as a latch in alloc_data_block() -- this is no longer
needed now that we switch to read-only mode when we run out of data or
metadata space. In a later patch, the 'no_free_space' flag will be
eliminated entirely (in favor of checking metadata rather than relying
on a transient flag).
Move no metdata space handling into metdata_operation_failed(). Set
no_free_space when metadata space is exhausted too. This is useful,
because it offers consistency, for the following patch that will requeue
data IOs if no_free_space.
Also, rename no_space() to retry_bios_on_resume().
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Acked-by: Joe Thornber <ejt@redhat.com>
Diffstat (limited to 'fs/befs')
0 files changed, 0 insertions, 0 deletions