Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-169 lov: add lsm refcounting
[fs/lustre-release.git]
/
lustre
/
liblustre
/
namei.c
diff --git
a/lustre/liblustre/namei.c
b/lustre/liblustre/namei.c
index
9e06c82
..
004461a
100644
(file)
--- a/
lustre/liblustre/namei.c
+++ b/
lustre/liblustre/namei.c
@@
-346,8
+346,7
@@
static int lookup_it_finish(struct ptlrpc_request *request, int offset,
if (md.lsm != NULL)
obd_free_memmd(sbi->ll_dt_exp, &md.lsm);
RETURN(inode ? PTR_ERR(inode) : -ENOMEM);
if (md.lsm != NULL)
obd_free_memmd(sbi->ll_dt_exp, &md.lsm);
RETURN(inode ? PTR_ERR(inode) : -ENOMEM);
- } else if (md.lsm != NULL &&
- llu_i2info(inode)->lli_smd != md.lsm) {
+ } else if (md.lsm != NULL) {
obd_free_memmd(sbi->ll_dt_exp, &md.lsm);
}
obd_free_memmd(sbi->ll_dt_exp, &md.lsm);
}
@@
-356,12
+355,9
@@
static int lookup_it_finish(struct ptlrpc_request *request, int offset,
/* If this is a stat, get the authoritative file size */
if (it->it_op == IT_GETATTR && S_ISREG(st->st_mode) &&
/* If this is a stat, get the authoritative file size */
if (it->it_op == IT_GETATTR && S_ISREG(st->st_mode) &&
- lli->lli_smd != NULL) {
- struct lov_stripe_md *lsm = lli->lli_smd;
+ lli->lli_has_smd) {
ldlm_error_t rc;
ldlm_error_t rc;
- LASSERT(lsm->lsm_object_id != 0);
-
/* bug 2334: drop MDS lock before acquiring OST lock */
ll_intent_drop_lock(it);
/* bug 2334: drop MDS lock before acquiring OST lock */
ll_intent_drop_lock(it);