mirror of
https://github.com/torvalds/linux.git
synced 2024-12-03 09:31:26 +00:00
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: Oleg Drokin <green@linuxhacker.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e476f2e55a
commit
51b39f1d36
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user