From: Honggang LI <honggangli@163.com>
To: Leon Romanovsky <leon@kernel.org>
Cc: haris.iqbal@ionos.com, jinpu.wang@ionos.com, jgg@ziepe.ca,
danil.kipnis@cloud.ionos.com, linux-rdma@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] RDMA/rtrs: client: Fix clt_path::max_pages_per_mr calculation
Date: Mon, 29 Dec 2025 10:49:15 +0800 [thread overview]
Message-ID: <aVHsK0D_SpJcn9wu@fedora> (raw)
In-Reply-To: <20251225123332.GI11869@unreal>
On Thu, Dec 25, 2025 at 02:33:32PM +0200, Leon Romanovsky wrote:
> Please put changelog under --- marker, below Signed-off-by tags.
OK.
> > do_div(max_pages_per_mr, (1ull << mr_page_shift));
> > + if ((u32)max_pages_per_mr == 0)
> > + max_pages_per_mr = U32_MAX;
>
> It is "max_pages_per_mr = min_not_zero((u32)max_pages_per_mr, U32_MAX)"
>
Will replace it with `min_not_zero` in v3.
Thanks
prev parent reply other threads:[~2025-12-29 2:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-24 9:50 [PATCH v2] RDMA/rtrs: client: Fix clt_path::max_pages_per_mr calculation Honggang LI
2025-12-24 11:36 ` Michael Gur
2025-12-25 12:33 ` Leon Romanovsky
2025-12-29 2:49 ` Honggang LI [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aVHsK0D_SpJcn9wu@fedora \
--to=honggangli@163.com \
--cc=danil.kipnis@cloud.ionos.com \
--cc=haris.iqbal@ionos.com \
--cc=jgg@ziepe.ca \
--cc=jinpu.wang@ionos.com \
--cc=leon@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 NNTP newsgroup(s).