fs/ntfs3: Write immediately updated ntfs state
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
This commit is contained in:
parent
87d1888aa4
commit
06ccfb0064
@ -983,18 +983,11 @@ out:
|
|||||||
if (err)
|
if (err)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
mark_inode_dirty(&ni->vfs_inode);
|
mark_inode_dirty_sync(&ni->vfs_inode);
|
||||||
/* verify(!ntfs_update_mftmirr()); */
|
/* verify(!ntfs_update_mftmirr()); */
|
||||||
|
|
||||||
/*
|
/* write mft record on disk. */
|
||||||
* If we used wait=1, sync_inode_metadata waits for the io for the
|
err = _ni_write_inode(&ni->vfs_inode, 1);
|
||||||
* inode to finish. It hangs when media is removed.
|
|
||||||
* So wait=0 is sent down to sync_inode_metadata
|
|
||||||
* and filemap_fdatawrite is used for the data blocks.
|
|
||||||
*/
|
|
||||||
err = sync_inode_metadata(&ni->vfs_inode, 0);
|
|
||||||
if (!err)
|
|
||||||
err = filemap_fdatawrite(ni->vfs_inode.i_mapping);
|
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user