Whamcloud - gitweb
- revert the b=1934 fix from 1/16 to stop llmount from hanging
[fs/lustre-release.git] / lustre / include / linux / lvfs_linux.h
1 #ifndef __LVFS_LINUX_H__
2 #define __LVFS_LINUX_H__
3
4 #include <linux/kernel.h>
5 #include <linux/module.h>
6 #include <linux/fs.h>
7 #include <linux/sched.h>
8 #include <linux/jbd.h>
9
10 #include <linux/lvfs.h>
11 /* we have made EXT3_IOC_SETFLAGS a Lustre constant */
12 #include <linux/ext3_fs.h>
13
14 #define l_file file
15 #define l_dentry dentry
16 #define l_inode inode
17
18 #define l_filp_open filp_open
19
20 struct obd_run_ctxt;
21 struct l_file *l_dentry_open(struct obd_run_ctxt *, struct l_dentry *,
22                              int flags);
23
24 struct l_linux_dirent {
25         ino_t           d_ino;
26         unsigned long   d_off;
27         unsigned short  d_reclen;
28         char            d_name[1]; 
29 };
30
31 struct l_readdir_callback {
32         struct l_linux_dirent *current_dir;
33         struct l_linux_dirent *previous;
34         int count;
35         int error;
36 };
37
38 #endif