[Devel] [PATCH RH9 2/2] dm-tracking: Do not return EAGAIN in case of there is no changed clu
Kirill Tkhai
ktkhai at virtuozzo.com
Wed Oct 27 18:08:53 MSK 2021
Return nothing (we do not call DMEMIT() in this case) instead.
EAGAIN may confuse a user.
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
drivers/md/dm-tracking.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/md/dm-tracking.c b/drivers/md/dm-tracking.c
index a8880a83d270..e66060246acc 100644
--- a/drivers/md/dm-tracking.c
+++ b/drivers/md/dm-tracking.c
@@ -213,7 +213,7 @@ static int tracking_get_next(struct dm_tracking *dmt, char *result,
{
unsigned int i, sz = 0, nr_clus = dmt->nr_clus, prev = dmt->cursor;
void *bitmap = dmt->bitmap;
- int ret = -EAGAIN;
+ int ret = 0;
if (WARN_ON_ONCE(prev > nr_clus - 1))
prev = 0;
More information about the Devel
mailing list