hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
kernel/fs/nfsd/nfsfh.h
....@@ -35,15 +35,15 @@
3535
3636 bool fh_locked; /* inode locked by us */
3737 bool fh_want_write; /* remount protection taken */
38
-
38
+ int fh_flags; /* FH flags */
3939 #ifdef CONFIG_NFSD_V3
4040 bool fh_post_saved; /* post-op attrs saved */
4141 bool fh_pre_saved; /* pre-op attrs saved */
4242
4343 /* Pre-op attributes saved during fh_lock */
4444 __u64 fh_pre_size; /* size before operation */
45
- struct timespec fh_pre_mtime; /* mtime before oper */
46
- struct timespec fh_pre_ctime; /* ctime before oper */
45
+ struct timespec64 fh_pre_mtime; /* mtime before oper */
46
+ struct timespec64 fh_pre_ctime; /* ctime before oper */
4747 /*
4848 * pre-op nfsv4 change attr: note must check IS_I_VERSION(inode)
4949 * to find out if it is valid.
....@@ -56,6 +56,9 @@
5656 #endif /* CONFIG_NFSD_V3 */
5757
5858 } svc_fh;
59
+#define NFSD4_FH_FOREIGN (1<<0)
60
+#define SET_FH_FLAG(c, f) ((c)->fh_flags |= (f))
61
+#define HAS_FH_FLAG(c, f) ((c)->fh_flags & (f))
5962
6063 enum nfsd_fsid {
6164 FSID_DEV = 0,