The counter for the number of allocated pages includes pages in the
mempool's reserve, so checking that the number of allocated pages is 0
needs to happen after we exit the mempool.
Signed-off-by: Kent Overstreet
---
drivers/md/dm-crypt.c | 8
1 file changed, 4 insertions(+), 4
On 6/2/18 11:45 AM, Kent Overstreet wrote:
> The counter for the number of allocated pages includes pages in the
> mempool's reserve, so checking that the number of allocated pages is 0
> needs to happen after we exit the mempool.
Looks good, but needs a fixes line. I'll add one.
--
Jens Axboe