1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
4 * This file is part of Lustre, http://www.lustre.org
7 * See also lustre_idl.h for wire formats of requests.
10 #ifndef _LINUX_LUSTRE_MDS_H
11 #define _LINUX_LUSTRE_MDS_H
14 #error Do not #include this file directly. #include <lustre_mds.h> instead
18 # include <linux/fs.h>
19 # include <linux/dcache.h>
20 # ifdef CONFIG_FS_POSIX_ACL
21 # ifdef HAVE_XATTR_ACL
22 # include <linux/xattr_acl.h>
24 # ifdef HAVE_LINUX_POSIX_ACL_XATTR_H
25 # include <linux/posix_acl_xattr.h>
28 # ifndef HAVE_VFS_INTENT_PATCHES
29 # include <linux/lustre_intent.h>
34 struct ptlrpc_request;
40 struct dentry *mds_fid2locked_dentry(struct obd_device *obd, struct ll_fid *fid,
41 struct vfsmount **mnt, int lock_mode,
42 struct lustre_handle *lockh,
44 struct dentry *mds_fid2dentry(struct mds_obd *mds, struct ll_fid *fid,
45 struct vfsmount **mnt);
46 int mds_update_server_data(struct obd_device *, int force_sync);
49 int mds_fs_setup(struct obd_device *obddev, struct vfsmount *mnt);
50 int mds_fs_cleanup(struct obd_device *obddev);