* [PATCH] md: Reduce flag condition
@ 2024-05-13 6:47 Tse-Chia.Chang
0 siblings, 0 replies; only message in thread
From: Tse-Chia.Chang @ 2024-05-13 6:47 UTC (permalink / raw
To: snitzer; +Cc: agk, mpatocka, dm-devel, linux-kernel, Tse-Chia.Chang
Clear DM_COPYD_IGNORE_ERROR will have no effect regardless of whether
it is set in the flags. Therefore, this patch reduces one conditional
check.
Signed-off-by: Tse-Chia.Chang <merqqcury@gmail.com>
---
drivers/md/dm-kcopyd.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/md/dm-kcopyd.c b/drivers/md/dm-kcopyd.c
index 6ea75436a..7a21875b1 100644
--- a/drivers/md/dm-kcopyd.c
+++ b/drivers/md/dm-kcopyd.c
@@ -817,8 +817,7 @@ void dm_kcopyd_copy(struct dm_kcopyd_client *kc, struct dm_io_region *from,
/*
* If we need to write sequentially, errors cannot be ignored.
*/
- if (job->flags & BIT(DM_KCOPYD_WRITE_SEQ) &&
- job->flags & BIT(DM_KCOPYD_IGNORE_ERROR))
+ if (job->flags & BIT(DM_KCOPYD_WRITE_SEQ))
job->flags &= ~BIT(DM_KCOPYD_IGNORE_ERROR);
if (from) {
--
2.34.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-05-13 6:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-13 6:47 [PATCH] md: Reduce flag condition Tse-Chia.Chang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).