| 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
|---|---|
| 2 | #ifndef _FS_CEPH_TYPES_H |
| 3 | #define _FS_CEPH_TYPES_H |
| 4 | |
| 5 | /* needed before including ceph_fs.h */ |
| 6 | #include <linux/in.h> |
| 7 | #include <linux/types.h> |
| 8 | #include <linux/fcntl.h> |
| 9 | #include <linux/string.h> |
| 10 | |
| 11 | #include <linux/ceph/ceph_fs.h> |
| 12 | #include <linux/ceph/ceph_frag.h> |
| 13 | #include <linux/ceph/ceph_hash.h> |
| 14 | |
| 15 | /* |
| 16 | * Identify inodes by both their ino AND snapshot id (a u64). |
| 17 | */ |
| 18 | struct ceph_vino { |
| 19 | u64 ino; |
| 20 | u64 snap; |
| 21 | }; |
| 22 | |
| 23 | |
| 24 | /* context for the caps reservation mechanism */ |
| 25 | struct ceph_cap_reservation { |
| 26 | int count; |
| 27 | int used; |
| 28 | }; |
| 29 | |
| 30 | |
| 31 | #endif |
| 32 |
