]> sourceware.org Git - lvm2.git/commit
[label] Use bcache_abort_fd() to ensure blocks are no longer in the cache.
authorJoe Thornber <ejt@redhat.com>
Mon, 28 Oct 2019 15:01:47 +0000 (15:01 +0000)
committerJoe Thornber <ejt@redhat.com>
Mon, 28 Oct 2019 15:01:47 +0000 (15:01 +0000)
commit6b0d969b2a85ba69046afa26af4d7bcddddbccd5
treea371cc1663df82047979ba483687001d6bddbbea
parent2938b4dcca0a1df661758abfab7f402ea7aab018
[label] Use bcache_abort_fd() to ensure blocks are no longer in the cache.

The return value from bcache_invalidate_fd() was not being checked.

So I've introduced a little function, _invalidate_fd() that always
calls bcache_abort_fd() if the write fails.
lib/label/label.c
This page took 0.028739 seconds and 5 git commands to generate.