Re: [PATCH 1/3] bcache: remove redundant __GFP_NOWARN

Coly Li <[email protected]>
Newsgroups org.kernel.vger.linux-bcache,org.kernel.vger.linux-kernel
Message-ID <xgpbwq3j3hlowxo2efk46rzdku6ueevgxl6cb5baqgyqanwtzv@e72yn2apzqrd>
On Mon, Aug 11, 2025 at 08:36:35PM +0800, Qianfeng Rong wrote:
> GFP_NOWAIT already includes __GFP_NOWARN, so let's remove the redundant
> __GFP_NOWARN.
> 
> Signed-off-by: Qianfeng Rong <[email protected]>

Acked-by: Coly Li <[email protected]>

Do you want this patch to go upstream in my submission path?

Thanks.

Coly Li

> ---
>  drivers/md/bcache/btree.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/md/bcache/btree.c b/drivers/md/bcache/btree.c
> index 210b59007d98..a764ec149d7a 100644
> --- a/drivers/md/bcache/btree.c
> +++ b/drivers/md/bcache/btree.c
> @@ -371,7 +371,7 @@ static void do_btree_node_write(struct btree *b)
>  	SET_PTR_OFFSET(&k.key, 0, PTR_OFFSET(&k.key, 0) +
>  		       bset_sector_offset(&b->keys, i));
>  
> -	if (!bch_bio_alloc_pages(b->bio, __GFP_NOWARN|GFP_NOWAIT)) {
> +	if (!bch_bio_alloc_pages(b->bio, GFP_NOWAIT)) {
>  		struct bio_vec *bv;
>  		void *addr = (void *) ((unsigned long) i & ~(PAGE_SIZE - 1));
>  		struct bvec_iter_all iter_all;
> -- 
> 2.34.1
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.