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.
Showing the changes to include/linux (1 of 4 files). Show all
Unified · Split
| @@ -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 | |||
| 534 | struct ceph_mds_reply_dirfrag { | 537 | struct 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 */ |