From: kalpak Date: Thu, 31 Jul 2008 07:51:03 +0000 (+0000) Subject: b=16227 X-Git-Tag: v1_7_100~1^333~1 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=408dc3d84274e5c51e0fd57a7bb80c5303cd05fb;p=fs%2Flustre-release.git b=16227 i=adilger i=shadow add lsm argument to obd_get_info. For some get_info calls the lsm was being sent as part of the key which was a hack. Now lsm can be sent as an argument. --- diff --git a/lustre/liblustre/rw.c b/lustre/liblustre/rw.c index 690c421..445a7fe 100644 --- a/lustre/liblustre/rw.c +++ b/lustre/liblustre/rw.c @@ -110,8 +110,7 @@ static int llu_lock_to_stripe_offset(struct inode *inode, struct ldlm_lock *lock struct { char name[16]; struct ldlm_lock *lock; - struct lov_stripe_md *lsm; - } key = { .name = KEY_LOCK_TO_STRIPE, .lock = lock, .lsm = lsm }; + } key = { .name = KEY_LOCK_TO_STRIPE, .lock = lock }; __u32 stripe, vallen = sizeof(stripe); int rc; ENTRY; @@ -120,7 +119,7 @@ static int llu_lock_to_stripe_offset(struct inode *inode, struct ldlm_lock *lock RETURN(0); /* get our offset in the lov */ - rc = obd_get_info(exp, sizeof(key), &key, &vallen, &stripe); + rc = obd_get_info(exp, sizeof(key), &key, &vallen, &stripe, lsm); if (rc != 0) { CERROR("obd_get_info: rc = %d\n", rc); LBUG();