-
Yong Fan authored
b=13814 i=oleg.drokin i=sheng.yang (1) Difine some macros and variables if "disable-server" when configure. (2) Support to compile patchless client on HEAD. (3) Comment for some code copy issue.
Yong Fan authoredb=13814 i=oleg.drokin i=sheng.yang (1) Difine some macros and variables if "disable-server" when configure. (2) Support to compile patchless client on HEAD. (3) Comment for some code copy issue.
obd.h 1.01 KiB
/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
* vim:expandtab:shiftwidth=8:tabstop=8:
*/
#ifndef __LINUX_OBD_H
#define __LINUX_OBD_H
#ifndef __OBD_H
#error Do not #include this file directly. #include <obd.h> instead
#endif
#ifdef __KERNEL__
# include <linux/fs.h>
# include <linux/list.h>
# include <linux/sched.h> /* for struct task_struct, for current.h */
# include <asm/current.h> /* for smp_lock.h */
# include <linux/smp_lock.h>
# include <linux/proc_fs.h>
# include <linux/mount.h>
# ifndef HAVE_VFS_INTENT_PATCHES
# include <linux/lustre_intent.h>
# endif
#endif
typedef spinlock_t client_obd_lock_t;
static inline void client_obd_list_lock_init(client_obd_lock_t *lock)
{
spin_lock_init(lock);
}
static inline void client_obd_list_lock_done(client_obd_lock_t *lock)
{}
static inline void client_obd_list_lock(client_obd_lock_t *lock)
{
spin_lock(lock);
}
static inline void client_obd_list_unlock(client_obd_lock_t *lock)
{
spin_unlock(lock);
}
#endif /* __LINUX_OBD_H */