Re: [PATCH v2] ext4: bio_alloc with __GFP_DIRECT_RECLAIM never fails
From: Gao Xiang <hidden>
Date: 2019-11-15 03:21:54
Also in:
lkml
From: Gao Xiang <hidden>
Date: 2019-11-15 03:21:54
Also in:
lkml
Hi Ted, On Thu, Nov 14, 2019 at 10:19:53PM -0500, Theodore Y. Ts'o wrote:
On Thu, Oct 31, 2019 at 05:29:58PM +0800, Chao Yu wrote:quoted
On 2019/10/31 17:23, Gao Xiang wrote:quoted
Similar to [1] [2], bio_alloc with __GFP_DIRECT_RECLAIM flags guarantees bio allocation under some given restrictions, as stated in block/bio.c and fs/direct-io.c So here it's ok to not check for NULL value from bio_alloc(). [1] https://lore.kernel.org/r/20191030035518.65477-1-gaoxiang25@huawei.com (local) [2] https://lore.kernel.org/r/20190830162812.GA10694@infradead.org (local) Cc: Theodore Ts'o <tytso@mit.edu> Cc: Andreas Dilger <adilger.kernel@dilger.ca> Cc: Ritesh Harjani <redacted> Cc: Chao Yu <redacted> Signed-off-by: Gao Xiang <redacted>Reviewed-by: Chao Yu <redacted>Thanks, applied. - Ted
Thanks for considering this. Have a nice day. Thanks, Gao Xiang