diff options
author | Kent Overstreet <koverstreet@google.com> | 2013-03-25 14:46:44 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2013-03-25 15:06:13 -0400 |
commit | b1a67b0f4c747ca10c96ebb24f04e2a74b3c298d (patch) | |
tree | 32ff70d72673de4e99ae3b8c517540ccbe6a547f /drivers/md/bcache/bcache.h | |
parent | 07e86ccb543bb1e748f32d6f0f18913d3f58d988 (diff) |
bcache: Style/checkpatch fixes
Took out some nested functions, and fixed some more checkpatch
complaints.
Signed-off-by: Kent Overstreet <koverstreet@google.com>
Cc: linux-bcache@vger.kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/bcache/bcache.h')
-rw-r--r-- | drivers/md/bcache/bcache.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/md/bcache/bcache.h b/drivers/md/bcache/bcache.h index d01a553f63f3..b2846e70149b 100644 --- a/drivers/md/bcache/bcache.h +++ b/drivers/md/bcache/bcache.h | |||
@@ -644,8 +644,8 @@ struct gc_stat { | |||
644 | * we'll continue to run normally for awhile with CACHE_SET_STOPPING set (i.e. | 644 | * we'll continue to run normally for awhile with CACHE_SET_STOPPING set (i.e. |
645 | * flushing dirty data). | 645 | * flushing dirty data). |
646 | * | 646 | * |
647 | * CACHE_SET_STOPPING_2 gets set at the last phase, when it's time to shut down the | 647 | * CACHE_SET_STOPPING_2 gets set at the last phase, when it's time to shut down |
648 | * allocation thread. | 648 | * the allocation thread. |
649 | */ | 649 | */ |
650 | #define CACHE_SET_UNREGISTERING 0 | 650 | #define CACHE_SET_UNREGISTERING 0 |
651 | #define CACHE_SET_STOPPING 1 | 651 | #define CACHE_SET_STOPPING 1 |
@@ -1012,11 +1012,11 @@ static inline struct bucket *PTR_BUCKET(struct cache_set *c, | |||
1012 | * searches - it told you where a key started. It's not used anymore, | 1012 | * searches - it told you where a key started. It's not used anymore, |
1013 | * and can probably be safely dropped. | 1013 | * and can probably be safely dropped. |
1014 | */ | 1014 | */ |
1015 | #define KEY(dev, sector, len) (struct bkey) \ | 1015 | #define KEY(dev, sector, len) \ |
1016 | { \ | 1016 | ((struct bkey) { \ |
1017 | .high = (1ULL << 63) | ((uint64_t) (len) << 20) | (dev), \ | 1017 | .high = (1ULL << 63) | ((uint64_t) (len) << 20) | (dev), \ |
1018 | .low = (sector) \ | 1018 | .low = (sector) \ |
1019 | } | 1019 | }) |
1020 | 1020 | ||
1021 | static inline void bkey_init(struct bkey *k) | 1021 | static inline void bkey_init(struct bkey *k) |
1022 | { | 1022 | { |