]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore: add OBJ_ADDR_MAX, NULL
authorSamuel Just <sjust@redhat.com>
Fri, 5 Mar 2021 07:43:17 +0000 (07:43 +0000)
committerSamuel Just <sjust@redhat.com>
Wed, 14 Apr 2021 07:11:05 +0000 (00:11 -0700)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/os/seastore/seastore_types.h

index 3272712dc4f4874d8fb01284b8c34d0bb8cc6777..b56b51450e8dcd4c3a9fe78779453435407bb24d 100644 (file)
@@ -195,6 +195,8 @@ struct __attribute((packed)) paddr_le_t {
 std::ostream &operator<<(std::ostream &out, const paddr_t &rhs);
 
 using objaddr_t = uint32_t;
+constexpr objaddr_t OBJ_ADDR_MAX = std::numeric_limits<objaddr_t>::max();
+constexpr objaddr_t OBJ_ADDR_NULL = OBJ_ADDR_MAX - 1;
 
 /* Monotonically increasing identifier for the location of a
  * journal_record.