blob: d29fd837c42cdf92e218d9f55d7073c137f38ca6 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Ryusuke Konishi8e656fd2010-08-27 00:23:02 +09002#ifndef NILFS_EXPORT_H
3#define NILFS_EXPORT_H
4
5#include <linux/exportfs.h>
6
7extern const struct export_operations nilfs_export_ops;
8
Vyacheslav Dubeykof5974c82012-07-30 14:42:10 -07009/**
10 * struct nilfs_fid - NILFS file id type
11 * @cno: checkpoint number
12 * @ino: inode number
13 * @gen: file generation (version) for NFS
14 * @parent_gen: parent generation (version) for NFS
15 * @parent_ino: parent inode number
16 */
Ryusuke Konishi8e656fd2010-08-27 00:23:02 +090017struct nilfs_fid {
18 u64 cno;
19 u64 ino;
20 u32 gen;
21
22 u32 parent_gen;
23 u64 parent_ino;
Ryusuke Konishie7a142a2016-05-23 16:23:23 -070024} __packed;
Ryusuke Konishi8e656fd2010-08-27 00:23:02 +090025
26#endif