]> git.karo-electronics.de Git - linux-beck.git/commitdiff
include/linux/backing-dev-defs.h: shrink struct backing_dev_info
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 13 Dec 2016 00:43:29 +0000 (16:43 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 13 Dec 2016 02:55:08 +0000 (18:55 -0800)
Move the 4-byte `capabilities' field next to other 4-byte things.
Shrinks sizeof(backing_dev_info) by 8 bytes on x86_64.

Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/backing-dev-defs.h

index b8144b2d59ce7f59349fdffbaebe2ad86bb9433f..0b5b1af35e5ea83c4d0a9bb33e2fbb8207002ecd 100644 (file)
@@ -137,12 +137,12 @@ struct backing_dev_info {
        struct list_head bdi_list;
        unsigned long ra_pages; /* max readahead in PAGE_SIZE units */
        unsigned long io_pages; /* max allowed IO size */
-       unsigned int capabilities; /* Device capabilities */
        congested_fn *congested_fn; /* Function pointer if device is md/dm */
        void *congested_data;   /* Pointer to aux data for congested func */
 
        char *name;
 
+       unsigned int capabilities; /* Device capabilities */
        unsigned int min_ratio;
        unsigned int max_ratio, max_prop_frac;