Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Btrfs: remove unused wait queue in struct extent_buffer

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>

authored by

Filipe Manana and committed by
Chris Mason
46fefe41 ea4ebde0

-1
-1
fs/btrfs/extent_io.h
··· 158 158 * to unlock 159 159 */ 160 160 wait_queue_head_t read_lock_wq; 161 - wait_queue_head_t lock_wq; 162 161 struct page *pages[INLINE_EXTENT_BUFFER_PAGES]; 163 162 #ifdef CONFIG_BTRFS_DEBUG 164 163 struct list_head leak_list;