ext3: replace ll_rw_block with other functions
ll_rw_block() is deprecated. Thus we replace it with other functions. CC: Jan Kara <jack@suse.cz> Signed-off-by: Zheng Liu <wenqing.lz@taobao.com> Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
parent
bcdd0c1600
commit
d03e1292c4
3 changed files with 18 additions and 15 deletions
|
@ -2231,11 +2231,11 @@ static journal_t *ext3_get_dev_journal(struct super_block *sb,
|
|||
goto out_bdev;
|
||||
}
|
||||
journal->j_private = sb;
|
||||
ll_rw_block(READ, 1, &journal->j_sb_buffer);
|
||||
wait_on_buffer(journal->j_sb_buffer);
|
||||
if (!buffer_uptodate(journal->j_sb_buffer)) {
|
||||
ext3_msg(sb, KERN_ERR, "I/O error on journal device");
|
||||
goto out_journal;
|
||||
if (!bh_uptodate_or_lock(journal->j_sb_buffer)) {
|
||||
if (bh_submit_read(journal->j_sb_buffer)) {
|
||||
ext3_msg(sb, KERN_ERR, "I/O error on journal device");
|
||||
goto out_journal;
|
||||
}
|
||||
}
|
||||
if (be32_to_cpu(journal->j_superblock->s_nr_users) != 1) {
|
||||
ext3_msg(sb, KERN_ERR,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue