]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: tolerate -ENOENT for discard operations
authorJosh Durgin <josh.durgin@inktank.com>
Mon, 7 Apr 2014 23:54:10 +0000 (16:54 -0700)
committerIlya Dryomov <idryomov@redhat.com>
Tue, 14 Oct 2014 17:03:33 +0000 (21:03 +0400)
commit6873abfb6a6dfe200ea1236516c2cf4d979f5cbb
tree47ddd34a1db3d1f6adeea09624733f1301ab10a8
parent9899a862021b26106e794b5cb0b8cd9c26d8fac3
rbd: tolerate -ENOENT for discard operations

Discard may try to delete an object from a non-layered image that does not exist.
If this occurs, the image already has no data in that range, so change the
result to success.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
drivers/block/rbd.c