File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -983,18 +983,11 @@ int ntfs_set_state(struct ntfs_sb_info *sbi, enum NTFS_DIRTY_FLAGS dirty)
983
983
if (err )
984
984
return err ;
985
985
986
- mark_inode_dirty (& ni -> vfs_inode );
986
+ mark_inode_dirty_sync (& ni -> vfs_inode );
987
987
/* verify(!ntfs_update_mftmirr()); */
988
988
989
- /*
990
- * If we used wait=1, sync_inode_metadata waits for the io for the
991
- * inode to finish. It hangs when media is removed.
992
- * So wait=0 is sent down to sync_inode_metadata
993
- * and filemap_fdatawrite is used for the data blocks.
994
- */
995
- err = sync_inode_metadata (& ni -> vfs_inode , 0 );
996
- if (!err )
997
- err = filemap_fdatawrite (ni -> vfs_inode .i_mapping );
989
+ /* write mft record on disk. */
990
+ err = _ni_write_inode (& ni -> vfs_inode , 1 );
998
991
999
992
return err ;
1000
993
}
You can’t perform that action at this time.
0 commit comments