Whamcloud - gitweb
- landing b_fid.
[fs/lustre-release.git] / lustre / include / linux / lvfs_linux.h
1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  */ 
4 #ifndef __LVFS_LINUX_H__
5 #define __LVFS_LINUX_H__
6
7 #include <linux/kernel.h>
8 #include <linux/module.h>
9 #include <linux/fs.h>
10 #include <linux/sched.h>
11
12 #include <linux/lvfs.h>
13 /* we have made EXT3_IOC_SETFLAGS a Lustre constant */
14
15 #define l_file file
16 #define l_dentry dentry
17 #define l_inode inode
18
19 #define l_filp_open filp_open
20
21 struct lvfs_run_ctxt;
22 struct l_file *l_dentry_open(struct lvfs_run_ctxt *, struct l_dentry *,
23                              int flags);
24
25 struct l_linux_dirent {
26         struct list_head lld_list;
27         ino_t           lld_ino;
28         unsigned long   lld_off;
29         char            lld_name[LL_ID_NAMELEN];
30 };
31 struct l_readdir_callback {
32         struct l_linux_dirent *lrc_dirent;
33         struct list_head      *lrc_list;
34 };
35
36 #endif