Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / lustre / llite / llite_nfs.c
index a568f0a..8892862 100644 (file)
@@ -27,6 +27,9 @@
 #define DEBUG_SUBSYSTEM S_LLITE
 #include <lustre_lite.h>
 #include "llite_internal.h"
+#ifdef HAVE_LINUX_EXPORTFS_H
+#include <linux/exportfs.h>
+#endif
 
 static int ll_nfs_test_inode(struct inode *inode, void *opaque)
 {
@@ -67,7 +70,7 @@ static struct inode *search_inode_for_lustre(struct super_block *sb,
                 RETURN(ERR_PTR(rc));
         }
 
-        rc = ll_prep_inode(&inode, req, REPLY_REC_OFF, sb);
+        rc = ll_prep_inode(&inode, req, sb);
         ptlrpc_req_finished(req);
         if (rc)
                 RETURN(ERR_PTR(rc));
@@ -210,13 +213,13 @@ static struct dentry *ll_get_parent(struct dentry *dchild)
                         dir->i_ino, PFID(ll_inode2fid(dir)));
 
         rc = md_getattr_name(sbi->ll_md_exp, ll_inode2fid(dir), NULL,
-                             dotdot, strlen(dotdot) + 1, 0, 0, &req);
+                             dotdot, strlen(dotdot) + 1, 0, 0,
+                             ll_i2suppgid(dir), &req);
         if (rc) {
                 CERROR("failure %d inode %lu get parent\n", rc, dir->i_ino);
                 RETURN(ERR_PTR(rc));
         }
-        body = lustre_msg_buf(req->rq_repmsg, REPLY_REC_OFF, sizeof(*body)); 
-       
+        body = req_capsule_server_get(&req->rq_pill, &RMF_MDT_BODY);
         LASSERT(body->valid & OBD_MD_FLID);
         
         CDEBUG(D_INFO, "parent for "DFID" is "DFID"\n",