diff options
author | Kent Overstreet <kmo@daterainc.com> | 2013-11-01 02:46:42 +0400 |
---|---|---|
committer | Kent Overstreet <kmo@daterainc.com> | 2013-11-11 09:56:33 +0400 |
commit | 81ab4190ac17df41686a37c97f701623276b652a (patch) | |
tree | be7f48b5ad6d36fadbac4658d37953d324d760d0 /drivers/md/bcache/util.h | |
parent | 2599b53b7b0ea6103d1661dca74d35480cb8fa1f (diff) | |
download | linux-81ab4190ac17df41686a37c97f701623276b652a.tar.xz |
bcache: Pull on disk data structures out into a separate header
Now, the on disk data structures are in a header that can be exported to
userspace - and having them all centralized is nice too.
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Diffstat (limited to 'drivers/md/bcache/util.h')
-rw-r--r-- | drivers/md/bcache/util.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/md/bcache/util.h b/drivers/md/bcache/util.h index ea345c6896f4..38ae7a4ce928 100644 --- a/drivers/md/bcache/util.h +++ b/drivers/md/bcache/util.h @@ -27,16 +27,6 @@ struct closure; #endif -#define BITMASK(name, type, field, offset, size) \ -static inline uint64_t name(const type *k) \ -{ return (k->field >> offset) & ~(((uint64_t) ~0) << size); } \ - \ -static inline void SET_##name(type *k, uint64_t v) \ -{ \ - k->field &= ~(~((uint64_t) ~0 << size) << offset); \ - k->field |= v << offset; \ -} - #define DECLARE_HEAP(type, name) \ struct { \ size_t size, used; \ |