* [PATCH] rbd: Convert to use the preferred fallthrough macro
@ 2020-08-19 8:53 Miaohe Lin
2020-08-19 13:03 ` Jens Axboe
0 siblings, 1 reply; 4+ messages in thread
From: Miaohe Lin @ 2020-08-19 8:53 UTC (permalink / raw)
To: idryomov, axboe, dongsheng.yang
Cc: ceph-devel, linux-block, linux-kernel, linmiaohe
Convert the uses of fallthrough comments to fallthrough macro.
Signed-off-by: Hongxiang Lou <louhongxiang@huawei.com>
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
---
drivers/block/rbd.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
index d9c0e7d154f9..011539039693 100644
--- a/drivers/block/rbd.c
+++ b/drivers/block/rbd.c
@@ -3293,7 +3293,7 @@ static bool rbd_obj_advance_copyup(struct rbd_obj_request *obj_req, int *result)
case __RBD_OBJ_COPYUP_OBJECT_MAPS:
if (!pending_result_dec(&obj_req->pending, result))
return false;
- /* fall through */
+ fallthrough;
case RBD_OBJ_COPYUP_OBJECT_MAPS:
if (*result) {
rbd_warn(rbd_dev, "snap object map update failed: %d",
@@ -3312,7 +3312,7 @@ static bool rbd_obj_advance_copyup(struct rbd_obj_request *obj_req, int *result)
case __RBD_OBJ_COPYUP_WRITE_OBJECT:
if (!pending_result_dec(&obj_req->pending, result))
return false;
- /* fall through */
+ fallthrough;
case RBD_OBJ_COPYUP_WRITE_OBJECT:
return true;
default:
@@ -3399,7 +3399,7 @@ static bool rbd_obj_advance_write(struct rbd_obj_request *obj_req, int *result)
case __RBD_OBJ_WRITE_COPYUP:
if (!rbd_obj_advance_copyup(obj_req, result))
return false;
- /* fall through */
+ fallthrough;
case RBD_OBJ_WRITE_COPYUP:
if (*result) {
rbd_warn(rbd_dev, "copyup failed: %d", *result);
@@ -3592,7 +3592,7 @@ static bool rbd_img_advance(struct rbd_img_request *img_req, int *result)
case __RBD_IMG_OBJECT_REQUESTS:
if (!pending_result_dec(&img_req->pending, result))
return false;
- /* fall through */
+ fallthrough;
case RBD_IMG_OBJECT_REQUESTS:
return true;
default:
--
2.19.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] rbd: Convert to use the preferred fallthrough macro
2020-08-19 8:53 [PATCH] rbd: Convert to use the preferred fallthrough macro Miaohe Lin
@ 2020-08-19 13:03 ` Jens Axboe
2020-08-19 13:31 ` Ilya Dryomov
0 siblings, 1 reply; 4+ messages in thread
From: Jens Axboe @ 2020-08-19 13:03 UTC (permalink / raw)
To: Miaohe Lin, idryomov, dongsheng.yang
Cc: ceph-devel, linux-block, linux-kernel
On 8/19/20 1:53 AM, Miaohe Lin wrote:
> Convert the uses of fallthrough comments to fallthrough macro.
Applied, thanks.
--
Jens Axboe
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] rbd: Convert to use the preferred fallthrough macro
2020-08-19 13:03 ` Jens Axboe
@ 2020-08-19 13:31 ` Ilya Dryomov
2020-08-19 13:32 ` Jens Axboe
0 siblings, 1 reply; 4+ messages in thread
From: Ilya Dryomov @ 2020-08-19 13:31 UTC (permalink / raw)
To: Jens Axboe
Cc: Miaohe Lin, Dongsheng Yang, Ceph Development, linux-block, LKML
On Wed, Aug 19, 2020 at 3:03 PM Jens Axboe <axboe@kernel.dk> wrote:
>
> On 8/19/20 1:53 AM, Miaohe Lin wrote:
> > Convert the uses of fallthrough comments to fallthrough macro.
>
> Applied, thanks.
Hi Jens,
This has already been folded into another patch in ceph-client.git.
Please drop it.
Thanks,
Ilya
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] rbd: Convert to use the preferred fallthrough macro
2020-08-19 13:31 ` Ilya Dryomov
@ 2020-08-19 13:32 ` Jens Axboe
0 siblings, 0 replies; 4+ messages in thread
From: Jens Axboe @ 2020-08-19 13:32 UTC (permalink / raw)
To: Ilya Dryomov
Cc: Miaohe Lin, Dongsheng Yang, Ceph Development, linux-block, LKML
On 8/19/20 6:31 AM, Ilya Dryomov wrote:
> On Wed, Aug 19, 2020 at 3:03 PM Jens Axboe <axboe@kernel.dk> wrote:
>>
>> On 8/19/20 1:53 AM, Miaohe Lin wrote:
>>> Convert the uses of fallthrough comments to fallthrough macro.
>>
>> Applied, thanks.
>
> Hi Jens,
>
> This has already been folded into another patch in ceph-client.git.
> Please drop it.
Dropped.
--
Jens Axboe
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-08-19 13:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-19 8:53 [PATCH] rbd: Convert to use the preferred fallthrough macro Miaohe Lin
2020-08-19 13:03 ` Jens Axboe
2020-08-19 13:31 ` Ilya Dryomov
2020-08-19 13:32 ` Jens Axboe
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.