]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: bio_alloc with __GFP_DIRECT_RECLAIM never fails
authorGao Xiang <gaoxiang25@huawei.com>
Thu, 31 Oct 2019 09:23:15 +0000 (17:23 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 15 Nov 2019 03:19:11 +0000 (22:19 -0500)
commit051237301f10f8c8254cfe2b8a050a88389e7c65
treeabff9db3e85a302c51438e7b1ff83c5054a3d229
parentb2a318964851488441e4b80e7d1a67ccd7d5ca03
ext4: bio_alloc with __GFP_DIRECT_RECLAIM never fails

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
[2] https://lore.kernel.org/r/20190830162812.GA10694@infradead.org
Cc: Theodore Ts'o <tytso@mit.edu>
Cc: Andreas Dilger <adilger.kernel@dilger.ca>
Cc: Ritesh Harjani <riteshh@linux.ibm.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Link: https://lore.kernel.org/r/20191031092315.139267-1-gaoxiang25@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/page-io.c
fs/ext4/readpage.c