Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf9965d
)
Since have called mdd_la_get before and held lock yet,
author
fanyong
<fanyong>
Mon, 30 Oct 2006 03:27:22 +0000
(
03:27
+0000)
committer
fanyong
<fanyong>
Mon, 30 Oct 2006 03:27:22 +0000
(
03:27
+0000)
call __mdd_permission_internal directly.
lustre/mdd/mdd_object.c
patch
|
blob
|
history
diff --git
a/lustre/mdd/mdd_object.c
b/lustre/mdd/mdd_object.c
index
9842342
..
7811d29
100644
(file)
--- a/
lustre/mdd/mdd_object.c
+++ b/
lustre/mdd/mdd_object.c
@@
-664,7
+664,7
@@
int mdd_fix_attr(const struct lu_env *env, struct mdd_object *obj,
/* For tuncate (or setsize), we should have MAY_WRITE perm */
if (la->la_valid & (LA_SIZE | LA_BLOCKS)) {
- rc =
mdd_permission_internal(env, obj, MAY_WRITE
);
+ rc =
__mdd_permission_internal(env, obj, MAY_WRITE, 0
);
if (rc)
RETURN(rc);