]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: make xattr inode reads faster
authorTahsin Erdogan <tahsin@google.com>
Sun, 6 Aug 2017 04:07:01 +0000 (00:07 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 6 Aug 2017 04:07:01 +0000 (00:07 -0400)
commit3120c16c5d9997168019a17467f7c88372d93ab2
tree8fc510c6e2da691b84598b8b2cb13aeb92d00288
parent4a14b02b6d43d3ce70a206d28082868909b3aa35
ext4: make xattr inode reads faster

ext4_xattr_inode_read() currently reads each block sequentially while
waiting for io operation to complete before moving on to the next
block. This prevents request merging in block layer.

Add a ext4_bread_batch() function that starts reads for all blocks
then optionally waits for them to complete. A similar logic is used
in ext4_find_entry(), so update that code to use the new function.

Signed-off-by: Tahsin Erdogan <tahsin@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/inode.c
fs/ext4/namei.c
fs/ext4/xattr.c