]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - libbcachefs/bcachefs.h
Update bcachefs sources to f38382c574 bcachefs: Improve key marking interface
[bcachefs-tools-debian] / libbcachefs / bcachefs.h
index d6dc3bd457d33c5c36e7734df717d15fb69b6d7b..09afbed9511f09c8aff91663abf1fa978e70352e 100644 (file)
@@ -842,4 +842,9 @@ static inline s64 bch2_current_time(struct bch_fs *c)
        return timespec_to_bch2_time(c, now);
 }
 
+static inline bool bch2_dev_exists2(const struct bch_fs *c, unsigned dev)
+{
+       return dev < c->sb.nr_devices && c->devs[dev];
+}
+
 #endif /* _BCACHEFS_H */