Whamcloud - gitweb
LU-12657 llite: forget cached ACLs properly
[fs/lustre-release.git] / lustre / llite / pcc.c
index c779c72..b99c702 100644 (file)
@@ -1699,15 +1699,8 @@ int pcc_fsync(struct file *file, loff_t start, loff_t end,
        if (!*cached)
                RETURN(0);
 
-#ifdef HAVE_FILE_FSYNC_4ARGS
        rc = file_inode(pcc_file)->i_fop->fsync(pcc_file,
                                                start, end, datasync);
-#elif defined(HAVE_FILE_FSYNC_2ARGS)
-       rc = file_inode(pcc_file)->i_fop->fsync(pcc_file, datasync);
-#else
-       rc = file_inode(pcc_file)->i_fop->fsync(pcc_file,
-                               file_dentry(dentry), datasync);
-#endif
 
        pcc_io_fini(inode);
        RETURN(rc);
@@ -2492,13 +2485,9 @@ int pcc_ioctl_state(struct file *file, struct inode *inode,
        state->pccs_type = pcci->pcci_type;
        state->pccs_open_count = count;
        state->pccs_flags = ll_i2info(inode)->lli_pcc_state;
-#ifdef HAVE_DENTRY_PATH_RAW
        path = dentry_path_raw(pcci->pcci_path.dentry, buf, buf_len);
        if (IS_ERR(path))
                GOTO(out_unlock, rc = PTR_ERR(path));
-#else
-       path = "UNKNOWN";
-#endif
 
        if (strlcpy(state->pccs_path, path, buf_len) >= buf_len)
                GOTO(out_unlock, rc = -ENAMETOOLONG);