]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dm thin: eliminate the no_free_space flag
authorMike Snitzer <snitzer@redhat.com>
Fri, 20 Dec 2013 23:09:02 +0000 (18:09 -0500)
committerMike Snitzer <snitzer@redhat.com>
Fri, 20 Dec 2013 23:15:18 +0000 (18:15 -0500)
commit454df470ca845935027871070ffbefc0eb97be06
tree01c763a98fe83255f3c8b1330368cbddf616f445
parent4c9aa0856f8f0ca7edd7b247cdfef348f39cf1ba
dm thin: eliminate the no_free_space flag

The pool's error_if_no_space flag can easily serve the same purpose that
no_free_space did, namely: control whether handle_unserviceable_bio()
will error a bio or requeue it.

This is cleaner since error_if_no_space is established when the pool's
features are processed during table load.  So it avoids managing the
no_free_space flag by taking the pool's spinlock.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-thin.c