From: pschwan Date: Sun, 28 Apr 2002 19:53:31 +0000 (+0000) Subject: - small 64-bit warning fix X-Git-Tag: 0.4.2~312 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=4df2b143a386492f5478c432102fc5aee08f1849;p=fs%2Flustre-release.git - small 64-bit warning fix - removed namespace creation from OSC--it's fixed in the branch and doesn't belong there anyways. --- diff --git a/lustre/llite/file.c b/lustre/llite/file.c index b41e50c..9bcfcaa 100644 --- a/lustre/llite/file.c +++ b/lustre/llite/file.c @@ -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) { diff --git a/lustre/osc/osc_request.c b/lustre/osc/osc_request.c index aca92f1..6135db2 100644 --- a/lustre/osc/osc_request.c +++ b/lustre/osc/osc_request.c @@ -20,7 +20,6 @@ #define DEBUG_SUBSYSTEM S_OSC #include -#include #include #include @@ -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: