45
45
* What we do is just kick off a commit and wait on it. This will snapshot the
49
51
int ext4_sync_file(struct file *file, struct dentry *dentry, int datasync)
51
53
struct inode *inode = dentry->d_inode;
52
55
journal_t *journal = EXT4_SB(inode->i_sb)->s_journal;
55
59
J_ASSERT(ext4_journal_current_handle() == NULL);
57
61
trace_ext4_sync_file(file, dentry, datasync);
61
75
* The caller's filemap_fdatawrite()/wait will sync the data.
70
80
* filemap_fdatawrite won't do anything (the buffers are clean).