We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3929042 commit ba11892Copy full SHA for ba11892
fs/ntfs3/fsntfs.c
@@ -825,7 +825,6 @@ void ntfs_update_mftmirr(struct ntfs_sb_info *sbi, int wait)
825
if (!(sbi->flags & NTFS_FLAGS_MFTMIRR))
826
return;
827
828
- err = 0;
829
bytes = sbi->mft.recs_mirr << sbi->record_bits;
830
block1 = sbi->mft.lbo >> sb->s_blocksize_bits;
831
block2 = sbi->mft.lbo2 >> sb->s_blocksize_bits;
@@ -855,8 +854,7 @@ void ntfs_update_mftmirr(struct ntfs_sb_info *sbi, int wait)
855
854
put_bh(bh1);
856
bh1 = NULL;
857
858
- if (wait)
859
- err = sync_dirty_buffer(bh2);
+ err = wait ? sync_dirty_buffer(bh2) : 0;
860
861
put_bh(bh2);
862
if (err)
0 commit comments