diff options
author | zhangyi (F) <yi.zhang@huawei.com> | 2020-09-24 09:33:33 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2020-10-18 16:37:14 +0200 |
commit | 2d069c0889ef0decda7af6ecbdc63b680b767749 (patch) | |
tree | 11795ab514648fd4e5f814420e8ff4793215a6ba /fs/ext4/indirect.c | |
parent | ext4: introduce new metadata buffer read helpers (diff) | |
download | linux-2d069c0889ef0decda7af6ecbdc63b680b767749.tar.xz linux-2d069c0889ef0decda7af6ecbdc63b680b767749.zip |
ext4: use common helpers in all places reading metadata buffers
Revome all open codes that read metadata buffers, switch to use
ext4_read_bh_*() common helpers.
Signed-off-by: zhangyi (F) <yi.zhang@huawei.com>
Suggested-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20200924073337.861472-4-yi.zhang@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/indirect.c')
-rw-r--r-- | fs/ext4/indirect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/indirect.c b/fs/ext4/indirect.c index 23e504a40cd7..bb4e999116d0 100644 --- a/fs/ext4/indirect.c +++ b/fs/ext4/indirect.c @@ -163,7 +163,7 @@ static Indirect *ext4_get_branch(struct inode *inode, int depth, } if (!bh_uptodate_or_lock(bh)) { - if (bh_submit_read(bh) < 0) { + if (ext4_read_bh(bh, 0, NULL) < 0) { put_bh(bh); goto failure; } |