Whamcloud - gitweb
- small 64-bit warning fix
authorpschwan <pschwan>
Sun, 28 Apr 2002 19:53:31 +0000 (19:53 +0000)
committerpschwan <pschwan>
Sun, 28 Apr 2002 19:53:31 +0000 (19:53 +0000)
- removed namespace creation from OSC--it's fixed in the branch and doesn't
  belong there anyways.

lustre/llite/file.c
lustre/osc/osc_request.c

index b41e50c..9bcfcaa 100644 (file)
@@ -43,7 +43,8 @@
 
 int ll_inode_setattr(struct inode *inode, struct iattr *attr, int do_trunc);
 extern int ll_setattr(struct dentry *de, struct iattr *attr);
-extern inline struct obdo * ll_oa_from_inode(struct inode *inode, int valid);
+extern inline struct obdo * ll_oa_from_inode(struct inode *inode,
+                                             unsigned long valid);
 
 static int ll_file_open(struct inode *inode, struct file *file)
 {
index aca92f1..6135db2 100644 (file)
@@ -20,7 +20,6 @@
 #define DEBUG_SUBSYSTEM S_OSC
 
 #include <linux/module.h>
-#include <linux/random.h>
 #include <linux/lustre_dlm.h>
 #include <linux/obd_ost.h>
 
@@ -558,7 +557,6 @@ int osc_brw(int rw, struct obd_conn *conn, obd_count num_oa,
 static int osc_setup(struct obd_device *obddev, obd_count len, void *buf)
 {
         struct osc_obd *osc = &obddev->u.osc;
-        __u32 ns_id;
         int rc;
         ENTRY;
 
@@ -579,19 +577,9 @@ static int osc_setup(struct obd_device *obddev, obd_count len, void *buf)
         ptlrpc_init_client(NULL, LDLM_REQUEST_PORTAL, LDLM_REPLY_PORTAL,
                            osc->osc_ldlm_client);
 
-        get_random_bytes(&ns_id, sizeof(ns_id));
-        rc = ldlm_cli_namespace_new(obddev, osc->osc_ldlm_client, osc->osc_conn,
-                                    ns_id);
-        if (rc) {
-                CERROR("Couldn't create new namespace %u: %d\n", ns_id, rc);
-                GOTO(out_ldlm_client, rc);
-        }
-
         MOD_INC_USE_COUNT;
         RETURN(0);
 
- out_ldlm_client:
-        OBD_FREE(osc->osc_ldlm_client, sizeof(*osc->osc_ldlm_client));
  out_client:
         OBD_FREE(osc->osc_client, sizeof(*osc->osc_client));
  out_conn: