Merge branch 'for-lustre' into for-next
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 19 Nov 2014 18:01:59 +0000 (13:01 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 19 Nov 2014 18:01:59 +0000 (13:01 -0500)
1  2 
drivers/staging/lustre/lustre/llite/file.c

@@@ -2622,10 -2611,15 +2611,9 @@@ int cl_sync_file_range(struct inode *in
        return result;
  }
  
 -/*
 - * When dentry is provided (the 'else' case), *file->f_dentry may be
 - * null and dentry must be used directly rather than pulled from
 - * *file->f_dentry as is done otherwise.
 - */
 -
  int ll_fsync(struct file *file, loff_t start, loff_t end, int datasync)
  {
-       struct dentry *dentry = file->f_dentry;
-       struct inode *inode = dentry->d_inode;
+       struct inode *inode = file_inode(file);
        struct ll_inode_info *lli = ll_i2info(inode);
        struct ptlrpc_request *req;
        struct obd_capa *oc;