Re: [f2fs-dev] [PATCH V3 6/6] xfs: ignore discard return value

Christoph Hellwig
2025-11-26T10:33:35Z

On Wed, Nov 26, 2025 at 10:37:10AM +0800, Yongpeng Yang wrote:
>> xfs_gbno_to_daddr(xg, busyp->bno),
>> XFS_FSB_TO_BB(mp, busyp->length),
>> GFP_KERNEL, &bio);
>
> If blk_alloc_discard_bio() fails to allocate a bio inside
> __blkdev_issue_discard(),

It won't, because mempool allocations will not fail if they can
sleep as they can here.