Skip to content

Commit

Permalink
9p: migrate from sync_inode to filemap_fdatawrite_wbc
Browse files Browse the repository at this point in the history
We're going to remove sync_inode, so migrate to filemap_fdatawrite_wbc
instead.

Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Nikolay Borisov <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
  • Loading branch information
josefbacik authored and kdave committed Aug 23, 2021
1 parent b377630 commit 25d23cd
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions fs/9p/vfs_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -625,12 +625,7 @@ static void v9fs_mmap_vm_close(struct vm_area_struct *vma)
p9_debug(P9_DEBUG_VFS, "9p VMA close, %p, flushing", vma);

inode = file_inode(vma->vm_file);

if (!mapping_can_writeback(inode->i_mapping))
wbc.nr_to_write = 0;

might_sleep();
sync_inode(inode, &wbc);
filemap_fdatawrite_wbc(inode->i_mapping, &wbc);
}


Expand Down

0 comments on commit 25d23cd

Please sign in to comment.