mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-15 19:45:26 +00:00
fs/ntfs3: Simplify ntfs_update_mftmirr function
Make err assignment in one place. Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
This commit is contained in:
parent
3929042111
commit
ba11892889
1 changed files with 1 additions and 3 deletions
|
@ -825,7 +825,6 @@ void ntfs_update_mftmirr(struct ntfs_sb_info *sbi, int wait)
|
|||
if (!(sbi->flags & NTFS_FLAGS_MFTMIRR))
|
||||
return;
|
||||
|
||||
err = 0;
|
||||
bytes = sbi->mft.recs_mirr << sbi->record_bits;
|
||||
block1 = sbi->mft.lbo >> sb->s_blocksize_bits;
|
||||
block2 = sbi->mft.lbo2 >> sb->s_blocksize_bits;
|
||||
|
@ -855,8 +854,7 @@ void ntfs_update_mftmirr(struct ntfs_sb_info *sbi, int wait)
|
|||
put_bh(bh1);
|
||||
bh1 = NULL;
|
||||
|
||||
if (wait)
|
||||
err = sync_dirty_buffer(bh2);
|
||||
err = wait ? sync_dirty_buffer(bh2) : 0;
|
||||
|
||||
put_bh(bh2);
|
||||
if (err)
|
||||
|
|
Loading…
Add table
Reference in a new issue