Whamcloud - gitweb
landing smfs.
[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 #include <linux/jbd.h>
12
13 #include <linux/lvfs.h>
14 /* we have made EXT3_IOC_SETFLAGS a Lustre constant */
15 #include <linux/ext3_fs.h>
16
17 #define l_file file
18 #define l_dentry dentry
19 #define l_inode inode
20
21 #define l_filp_open filp_open
22
23 struct lvfs_run_ctxt;
24 struct l_file *l_dentry_open(struct lvfs_run_ctxt *, struct l_dentry *,
25                              int flags);
26
27 struct l_linux_dirent {
28         struct list_head lld_list;
29         ino_t           lld_ino;
30         unsigned long   lld_off;
31         char            lld_name[LL_FID_NAMELEN];
32 };
33 struct l_readdir_callback {
34         struct l_linux_dirent *lrc_dirent;
35         struct list_head      *lrc_list;
36 };
37
38 #endif