aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-09-03 13:37:45 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2014-11-19 13:01:22 -0500
commit3c981bfc57040c0016cfbfa6e9b312571eda2533 (patch)
tree11d6a259f9c03b6c8d981bf95e85651d8baeef56
parent7119e220a7aed7b6e6df02ddfaa2c5f8df2e4e3d (diff)
afs_fsync: don't bother with ->f_path.dentry
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--fs/afs/write.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/fs/afs/write.c b/fs/afs/write.c
index d148138325c3..c13cb08964ed 100644
--- a/fs/afs/write.c
+++ b/fs/afs/write.c
@@ -682,14 +682,13 @@ int afs_writeback_all(struct afs_vnode *vnode)
682 */ 682 */
683int afs_fsync(struct file *file, loff_t start, loff_t end, int datasync) 683int afs_fsync(struct file *file, loff_t start, loff_t end, int datasync)
684{ 684{
685 struct dentry *dentry = file->f_path.dentry; 685 struct inode *inode = file_inode(file);
686 struct inode *inode = file->f_mapping->host;
687 struct afs_writeback *wb, *xwb; 686 struct afs_writeback *wb, *xwb;
688 struct afs_vnode *vnode = AFS_FS_I(dentry->d_inode); 687 struct afs_vnode *vnode = AFS_FS_I(inode);
689 int ret; 688 int ret;
690 689
691 _enter("{%x:%u},{n=%pd},%d", 690 _enter("{%x:%u},{n=%pD},%d",
692 vnode->fid.vid, vnode->fid.vnode, dentry, 691 vnode->fid.vid, vnode->fid.vnode, file,
693 datasync); 692 datasync);
694 693
695 ret = filemap_write_and_wait_range(inode->i_mapping, start, end); 694 ret = filemap_write_and_wait_range(inode->i_mapping, start, end);