Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-6634 llog: destroy plain llog if init fails
[fs/lustre-release.git]
/
lustre
/
include
/
lustre_log.h
diff --git
a/lustre/include/lustre_log.h
b/lustre/include/lustre_log.h
index
6922954
..
7d26af2
100644
(file)
--- a/
lustre/include/lustre_log.h
+++ b/
lustre/include/lustre_log.h
@@
-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;