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
531 __le32 seq;531 __le32 seq;
532} __attribute__ ((packed));532} __attribute__ ((packed));
533 533
534#define CEPH_LEASE_VALID (1 | 2) /* old and new bit values */
535#define CEPH_LEASE_PRIMARY_LINK 4 /* primary linkage */
536
534struct ceph_mds_reply_dirfrag {537struct ceph_mds_reply_dirfrag {
535 __le32 frag; /* fragment */538 __le32 frag; /* fragment */
536 __le32 auth; /* auth mds, if this is a delegation point */539 __le32 auth; /* auth mds, if this is a delegation point */