Commit 51b39f1d authored by Oleg Drokin's avatar Oleg Drokin Committed by Greg Kroah-Hartman

staging/lustre: Inline Lustre intent disposition functions

They are just one-liners, so no point in having them exported
and called through a different module.
Signed-off-by: default avatarOleg Drokin <green@linuxhacker.ru>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e476f2e5
......@@ -50,4 +50,19 @@ struct lookup_intent {
unsigned int it_lock_set:1;
};
static inline int it_disposition(struct lookup_intent *it, int flag)
{
return it->it_disposition & flag;
}
static inline void it_set_disposition(struct lookup_intent *it, int flag)
{
it->it_disposition |= flag;
}
static inline void it_clear_disposition(struct lookup_intent *it, int flag)
{
it->it_disposition &= ~flag;
}
#endif
......@@ -185,9 +185,6 @@ struct mdc_cache_waiter {
};
/* mdc/mdc_locks.c */
int it_disposition(struct lookup_intent *it, int flag);
void it_clear_disposition(struct lookup_intent *it, int flag);
void it_set_disposition(struct lookup_intent *it, int flag);
int it_open_error(int phase, struct lookup_intent *it);
static inline bool cl_is_lov_delay_create(unsigned int flags)
......
......@@ -50,24 +50,6 @@ struct mdc_getattr_args {
struct ldlm_enqueue_info *ga_einfo;
};
int it_disposition(struct lookup_intent *it, int flag)
{
return it->it_disposition & flag;
}
EXPORT_SYMBOL(it_disposition);
void it_set_disposition(struct lookup_intent *it, int flag)
{
it->it_disposition |= flag;
}
EXPORT_SYMBOL(it_set_disposition);
void it_clear_disposition(struct lookup_intent *it, int flag)
{
it->it_disposition &= ~flag;
}
EXPORT_SYMBOL(it_clear_disposition);
int it_open_error(int phase, struct lookup_intent *it)
{
if (it_disposition(it, DISP_OPEN_LEASE)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment