History

ceph: track primary dentry link

Newer versions of the MDS will flag a dentry as "primary". In later patches, we'll need to consult this info, so track it in di->flags.

Jeff Layton committed 6 years ago

Commit f5e17ae1 parent 3bb48b44 files · +12 −1Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/ceph/ceph_fs.h+3−0
@@ -531,6 +531,9 @@ struct ceph_mds_reply_lease { · 530 unmodified lines
531531 __le32 seq;
532532 } __attribute__ ((packed));
533533
534+#define CEPH_LEASE_VALID (1 | 2) /* old and new bit values */
535+#define CEPH_LEASE_PRIMARY_LINK 4 /* primary linkage */
536+
534537 struct ceph_mds_reply_dirfrag {
535538 __le32 frag; /* fragment */
536539 __le32 auth; /* auth mds, if this is a delegation point */