summaryrefslogtreecommitdiffstats
path: root/fs/afs/write.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-09-03 19:37:45 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2014-11-19 19:01:22 +0100
commit3c981bfc57040c0016cfbfa6e9b312571eda2533 (patch)
tree11d6a259f9c03b6c8d981bf95e85651d8baeef56 /fs/afs/write.c
parentcifs: get rid of ->f_path.dentry->d_sb uses, add a new helper (diff)
downloadlinux-3c981bfc57040c0016cfbfa6e9b312571eda2533.tar.xz
linux-3c981bfc57040c0016cfbfa6e9b312571eda2533.zip
afs_fsync: don't bother with ->f_path.dentry
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/afs/write.c')
-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)
*/
int afs_fsync(struct file *file, loff_t start, loff_t end, int datasync)
{
- struct dentry *dentry = file->f_path.dentry;
- struct inode *inode = file->f_mapping->host;
+ struct inode *inode = file_inode(file);
struct afs_writeback *wb, *xwb;
- struct afs_vnode *vnode = AFS_FS_I(dentry->d_inode);
+ struct afs_vnode *vnode = AFS_FS_I(inode);
int ret;
- _enter("{%x:%u},{n=%pd},%d",
- vnode->fid.vid, vnode->fid.vnode, dentry,
+ _enter("{%x:%u},{n=%pD},%d",
+ vnode->fid.vid, vnode->fid.vnode, file,
datasync);
ret = filemap_write_and_wait_range(inode->i_mapping, start, end);