block/DAC960.c: make some arrays static const, shrinks object size
[sfrench/cifs-2.6.git] / drivers / md / bcache / bcache.h
index 0bd505c619433cab1ca460853a20e411b1139661..83504dd8100ab2a80d7f0e737e50266de41add32 100644 (file)
@@ -275,8 +275,8 @@ struct bcache_device {
 
        int (*cache_miss)(struct btree *b, struct search *s,
                          struct bio *bio, unsigned int sectors);
-       int (*ioctl) (struct bcache_device *d, fmode_t mode,
-                     unsigned int cmd, unsigned long arg);
+       int (*ioctl)(struct bcache_device *d, fmode_t mode,
+                    unsigned int cmd, unsigned long arg);
 };
 
 struct io {
@@ -614,8 +614,8 @@ struct cache_set {
        uint16_t                min_prio;
 
        /*
-        * max(gen - last_gc) for all buckets. When it gets too big we have to gc
-        * to keep gens from wrapping around.
+        * max(gen - last_gc) for all buckets. When it gets too big we have to
+        * gc to keep gens from wrapping around.
         */
        uint8_t                 need_gc;
        struct gc_stat          gc_stats;
@@ -881,11 +881,11 @@ static inline uint8_t bucket_gc_gen(struct bucket *b)
 #define BUCKET_GC_GEN_MAX      96U
 
 #define kobj_attribute_write(n, fn)                                    \
-       static struct kobj_attribute ksysfs_##n = __ATTR(n, S_IWUSR, NULL, fn)
+       static struct kobj_attribute ksysfs_##n = __ATTR(n, 0200, NULL, fn)
 
 #define kobj_attribute_rw(n, show, store)                              \
        static struct kobj_attribute ksysfs_##n =                       \
-               __ATTR(n, S_IWUSR|S_IRUSR, show, store)
+               __ATTR(n, 0600, show, store)
 
 static inline void wake_up_allocators(struct cache_set *c)
 {