Skip to content

Commit

Permalink
ext4: treat buffers contining write errors as valid in ext4_sb_bread()
Browse files Browse the repository at this point in the history
In commit 7963e5a ("ext4: treat buffers with write errors as
containing valid data") we missed changing ext4_sb_bread() to use
ext4_buffer_uptodate().  So fix this oversight.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
  • Loading branch information
Theodore Ts'o committed Dec 23, 2019
1 parent 46cf053 commit cf2834a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ext4/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ ext4_sb_bread(struct super_block *sb, sector_t block, int op_flags)

if (bh == NULL)
return ERR_PTR(-ENOMEM);
if (buffer_uptodate(bh))
if (ext4_buffer_uptodate(bh))
return bh;
ll_rw_block(REQ_OP_READ, REQ_META | op_flags, 1, &bh);
wait_on_buffer(bh);
Expand Down

0 comments on commit cf2834a

Please sign in to comment.