X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Finclude%2Fobd.h;h=fa3b407833e9bc49533cafcd1301ac8b28c9972e;hp=f16f2abd780e73d96ba98f1cbfb6f0221ddebe0a;hb=511ea5850f2553d14891aeda7972d0526c67a3af;hpb=2103f016161f0fad6b1ff022f5fed8ad38d028e9;ds=sidebyside diff --git a/lustre/include/obd.h b/lustre/include/obd.h index f16f2ab..fa3b407 100644 --- 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; - else if (it->it_op & IT_SETXATTR) - return LCK_PW; 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) { - 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 {