]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dm: Make use of __assign_bit() API
authorHongbo Li <lihongbo22@huawei.com>
Mon, 2 Sep 2024 13:11:23 +0000 (21:11 +0800)
committerMikulas Patocka <mpatocka@redhat.com>
Mon, 2 Sep 2024 14:53:53 +0000 (16:53 +0200)
commit26207c6332e83583a74228da9e5278d4fe5d26cf
tree4a5d0bf4d4d3c043889639c31ba92392a94c86ce
parent35c9f09b5691d6dff1f3e62fe1825fa10b644b45
dm: Make use of __assign_bit() API

We have for some time the __assign_bit() API to replace
open coded
    if (foo)
        __set_bit(n, bar);
    else
        __clear_bit(n, bar);

Use this API to simplify the code. No functional change
intended.

Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm-clone-metadata.c