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-6158 mdt: always shrink_capsule in getxattr_all
[fs/lustre-release.git]
/
lustre
/
mdt
/
mdt_lvb.c
diff --git
a/lustre/mdt/mdt_lvb.c
b/lustre/mdt/mdt_lvb.c
index
d81b21f
..
22cc7ce
100644
(file)
--- a/
lustre/mdt/mdt_lvb.c
+++ b/
lustre/mdt/mdt_lvb.c
@@
-114,7
+114,8
@@
static int mdt_lvbo_fill(struct ldlm_lock *lock, void *lvb, int lvblen)
RETURN(rc);
}
- if (!ldlm_has_layout(lock))
+ /* Only fill layout if layout lock is granted */
+ if (!ldlm_has_layout(lock) || lock->l_granted_mode != lock->l_req_mode)
RETURN(0);
/* layout lock will be granted to client, fill in lvb with layout */