Whamcloud - gitweb
LU-12477 lustre: remove obsolete config checks
[fs/lustre-release.git] / lustre / llite / llite_nfs.c
index 6f0d511..e079eb4 100644 (file)
@@ -177,17 +177,9 @@ ll_iget_for_nfs(struct super_block *sb, struct lu_fid *fid, struct lu_fid *paren
  * 2 -- contains child file handle and parent file handle;
  * 255 -- error.
  */
-#ifndef HAVE_ENCODE_FH_PARENT
-static int ll_encode_fh(struct dentry *de, u32 *fh, int *plen,
-                       int connectable)
-{
-       struct inode *inode = de->d_inode;
-       struct inode *parent = de->d_parent->d_inode;
-#else
 static int ll_encode_fh(struct inode *inode, u32 *fh, int *plen,
                        struct inode *parent)
 {
-#endif
        int fileid_len = sizeof(struct lustre_file_handle) / 4;
        struct lustre_file_handle *lfh = (void *)fh;