]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/ceph/dir.c
drop unused dentry argument to ->fsync
[net-next-2.6.git] / fs / ceph / dir.c
index 4fd30900eff7f7cc17e92c6ecfc962547aa7f343..0057f4a07347d78a2d607aee4657d1ed6067b97c 100644 (file)
@@ -1107,10 +1107,9 @@ static ssize_t ceph_read_dir(struct file *file, char __user *buf, size_t size,
  * an fsync() on a dir will wait for any uncommitted directory
  * operations to commit.
  */
-static int ceph_dir_fsync(struct file *file, struct dentry *dentry,
-                         int datasync)
+static int ceph_dir_fsync(struct file *file, int datasync)
 {
-       struct inode *inode = dentry->d_inode;
+       struct inode *inode = file->f_path.dentry->d_inode;
        struct ceph_inode_info *ci = ceph_inode(inode);
        struct list_head *head = &ci->i_unsafe_dirops;
        struct ceph_mds_request *req;