Whamcloud - gitweb
LU-6634 llog: destroy plain llog if init fails
[fs/lustre-release.git] / lustre / include / lustre_log.h
index 6922954..7d26af2 100644 (file)
@@ -497,6 +497,11 @@ static inline int llog_connect(struct llog_ctxt *ctxt,
        RETURN(rc);
 }
 
+static inline int llog_is_full(struct llog_handle *llh)
+{
+       return llh->lgh_last_idx >= LLOG_HDR_BITMAP_SIZE(llh->lgh_hdr) - 1;
+}
+
 struct llog_cfg_rec {
        struct llog_rec_hdr     lcr_hdr;
        struct lustre_cfg       lcr_cfg;