X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;ds=sidebyside;f=lustre%2Finclude%2Flinux%2Flustre_compat25.h;fp=lustre%2Finclude%2Flinux%2Flustre_compat25.h;h=6187194c9a5c4e95d52ef531e41242a9f5071fcf;hb=3e7573cc14a331f01150814495e2345793e22f06;hp=880e6eb17aa599f376fcf1ffacbdddbdac63071d;hpb=c759f236bf5d7807ff6cf2d635393c4b7c85c744;p=fs%2Flustre-release.git diff --git a/lustre/include/linux/lustre_compat25.h b/lustre/include/linux/lustre_compat25.h index 880e6eb..6187194 100644 --- a/lustre/include/linux/lustre_compat25.h +++ b/lustre/include/linux/lustre_compat25.h @@ -101,25 +101,6 @@ static inline void ll_set_fs_pwd(struct fs_struct *fs, struct vfsmount *mnt, generic_permission(inode, mask, check_acl) #endif -#ifdef HAVE_DENTRY_OPEN_USE_PATH -#define ll_dentry_open(a,b,c) dentry_open(a,b,c) -#else -/* - * dentry_open handles its own reference counting since Linux v3.6 - * (commit 765927b2). Callers should free their own references. - * - * Prior versions expected the caller to increment the references. - * The references are retained on success and freed on error. - */ -static inline struct file *ll_dentry_open(struct path *path, int flags, - const struct cred *cred) -{ - mntget(path->mnt); - dget(path->dentry); - return dentry_open(path->dentry, path->mnt, flags, cred); -} -#endif - #ifdef HAVE_4ARGS_VFS_SYMLINK #define ll_vfs_symlink(dir, dentry, mnt, path, mode) \ vfs_symlink(dir, dentry, path, mode)