projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
xfs: remove unused transaction callback variables
[deliverable/linux.git]
/
fs
/
xfs
/
xfs_log_cil.c
diff --git
a/fs/xfs/xfs_log_cil.c
b/fs/xfs/xfs_log_cil.c
index cfe97973ba36d1d586c3704b536aebce2e391af1..a844f77d2cc3e199a9959ddb7eb4d9c8df6c9ee1 100644
(file)
--- a/
fs/xfs/xfs_log_cil.c
+++ b/
fs/xfs/xfs_log_cil.c
@@
-17,7
+17,7
@@
#include "xfs.h"
#include "xfs_fs.h"
#include "xfs.h"
#include "xfs_fs.h"
-#include "xfs_
types
.h"
+#include "xfs_
shared
.h"
#include "xfs_log.h"
#include "xfs_trans.h"
#include "xfs_trans_priv.h"
#include "xfs_log.h"
#include "xfs_trans.h"
#include "xfs_trans_priv.h"
@@
-711,6
+711,20
@@
xlog_cil_push_foreground(
xlog_cil_push(log);
}
xlog_cil_push(log);
}
+bool
+xlog_cil_empty(
+ struct xlog *log)
+{
+ struct xfs_cil *cil = log->l_cilp;
+ bool empty = false;
+
+ spin_lock(&cil->xc_push_lock);
+ if (list_empty(&cil->xc_cil))
+ empty = true;
+ spin_unlock(&cil->xc_push_lock);
+ return empty;
+}
+
/*
* Commit a transaction with the given vector to the Committed Item List.
*
/*
* Commit a transaction with the given vector to the Committed Item List.
*
This page took
0.036205 seconds
and
5
git commands to generate.