Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D984FC433EF for ; Fri, 24 Jun 2022 02:04:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229740AbiFXCEe (ORCPT ); Thu, 23 Jun 2022 22:04:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229499AbiFXCEd (ORCPT ); Thu, 23 Jun 2022 22:04:33 -0400 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D33EE4D608 for ; Thu, 23 Jun 2022 19:04:30 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=joseph.qi@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0VHEZgh1_1656036266; Received: from 30.225.24.95(mailfrom:joseph.qi@linux.alibaba.com fp:SMTPD_---0VHEZgh1_1656036266) by smtp.aliyun-inc.com; Fri, 24 Jun 2022 10:04:27 +0800 Message-ID: Date: Fri, 24 Jun 2022 10:04:26 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH 48/51] fs/ocfs2: Use the enum req_op and blk_opf_t types Content-Language: en-US To: Bart Van Assche , Jens Axboe Cc: linux-block@vger.kernel.org, Christoph Hellwig , Mark Fasheh , Joel Becker References: <20220623180528.3595304-1-bvanassche@acm.org> <20220623180528.3595304-49-bvanassche@acm.org> From: Joseph Qi In-Reply-To: <20220623180528.3595304-49-bvanassche@acm.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On 6/24/22 2:05 AM, Bart Van Assche wrote: > Improve static type checking by using the enum req_op type for variables > that represent a request operation and the new blk_opf_t type for > variables that represent request flags. > > Cc: Mark Fasheh > Cc: Joel Becker > Cc: Joseph Qi > Signed-off-by: Bart Van Assche Looks fine to me. Acked-by: Joseph Qi > --- > fs/ocfs2/cluster/heartbeat.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/fs/ocfs2/cluster/heartbeat.c b/fs/ocfs2/cluster/heartbeat.c > index ea0e70c0fce0..e955aca87936 100644 > --- a/fs/ocfs2/cluster/heartbeat.c > +++ b/fs/ocfs2/cluster/heartbeat.c > @@ -503,8 +503,8 @@ static void o2hb_bio_end_io(struct bio *bio) > static struct bio *o2hb_setup_one_bio(struct o2hb_region *reg, > struct o2hb_bio_wait_ctxt *wc, > unsigned int *current_slot, > - unsigned int max_slots, int op, > - int op_flags) > + unsigned int max_slots, enum req_op op, > + blk_opf_t op_flags) > { > int len, current_page; > unsigned int vec_len, vec_start;