From 408dc3d84274e5c51e0fd57a7bb80c5303cd05fb Mon Sep 17 00:00:00 2001 From: kalpak Date: Thu, 31 Jul 2008 07:51:03 +0000 Subject: [PATCH] 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. --- lustre/liblustre/rw.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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(); -- 1.8.3.1