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-11014 mdc: remove obsolete intent opcodes
[fs/lustre-release.git]
/
lustre
/
include
/
obd.h
diff --git
a/lustre/include/obd.h
b/lustre/include/obd.h
index
f16f2ab
..
fa3b407
100644
(file)
--- a/
lustre/include/obd.h
+++ b/
lustre/include/obd.h
@@
-791,8
+791,6
@@
static inline int it_to_lock_mode(struct lookup_intent *it)
return LCK_PR;
else if (it->it_op & IT_GETXATTR)
return LCK_PR;
return LCK_PR;
else if (it->it_op & IT_GETXATTR)
return LCK_PR;
- else if (it->it_op & IT_SETXATTR)
- return LCK_PW;
LASSERTF(0, "Invalid it_op: %d\n", it->it_op);
return -EINVAL;
LASSERTF(0, "Invalid it_op: %d\n", it->it_op);
return -EINVAL;
@@
-821,7
+819,7
@@
enum md_cli_flags {
*/
static inline bool it_has_reply_body(const struct lookup_intent *it)
{
*/
static inline bool it_has_reply_body(const struct lookup_intent *it)
{
- return it->it_op & (IT_OPEN | IT_
UNLINK | IT_
LOOKUP | IT_GETATTR);
+ return it->it_op & (IT_OPEN | IT_LOOKUP | IT_GETATTR);
}
struct md_op_data {
}
struct md_op_data {