summaryrefslogtreecommitdiffstats
path: root/drivers/md/bcache/util.h
diff options
context:
space:
mode:
authorKent Overstreet2013-07-31 09:03:54 +0200
committerKent Overstreet2013-11-11 06:56:40 +0100
commit65d22e911bfc4f46cda4751f1b1926b43c316c14 (patch)
tree2d860067f2cb0d25a3fda0b9d3873d911ce364fe /drivers/md/bcache/util.h
parentbcache: Kill sequential_merge option (diff)
downloadkernel-qcow2-linux-65d22e911bfc4f46cda4751f1b1926b43c316c14.tar.gz
kernel-qcow2-linux-65d22e911bfc4f46cda4751f1b1926b43c316c14.tar.xz
kernel-qcow2-linux-65d22e911bfc4f46cda4751f1b1926b43c316c14.zip
bcache: Move spinlock into struct time_stats
Minor cleanup. Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Diffstat (limited to 'drivers/md/bcache/util.h')
-rw-r--r--drivers/md/bcache/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/bcache/util.h b/drivers/md/bcache/util.h
index 8ce5aab55962..362c4b3f8b4a 100644
--- a/drivers/md/bcache/util.h
+++ b/drivers/md/bcache/util.h
@@ -378,6 +378,7 @@ ssize_t bch_snprint_string_list(char *buf, size_t size, const char * const list[
ssize_t bch_read_string_list(const char *buf, const char * const list[]);
struct time_stats {
+ spinlock_t lock;
/*
* all fields are in nanoseconds, averages are ewmas stored left shifted
* by 8