]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Btrfs: remove unused wait queue in struct extent_buffer
authorFilipe Manana <fdmanana@gmail.com>
Mon, 16 Jun 2014 12:14:25 +0000 (13:14 +0100)
committerChris Mason <clm@fb.com>
Thu, 19 Jun 2014 21:20:28 +0000 (14:20 -0700)
The lock_wq wait queue is not used anywhere, therefore just remove it.
On a x86_64 system, this reduced sizeof(struct extent_buffer) from 320
bytes down to 296 bytes, which means a 4Kb page can now be used for
13 extent buffers instead of 12.

Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/extent_io.h

index 15ce5f2a2b624ff0a28d9276637084327a9afdcd..ccc264e7bde12760035dacfd40cafb25b663de4e 100644 (file)
@@ -158,7 +158,6 @@ struct extent_buffer {
         * to unlock
         */
        wait_queue_head_t read_lock_wq;
-       wait_queue_head_t lock_wq;
        struct page *pages[INLINE_EXTENT_BUFFER_PAGES];
 #ifdef CONFIG_BTRFS_DEBUG
        struct list_head leak_list;