]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: generalize extents status tree search functions
authorEric Whitney <enwlinux@gmail.com>
Mon, 1 Oct 2018 18:10:39 +0000 (14:10 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 1 Oct 2018 18:10:39 +0000 (14:10 -0400)
commitaa17477ebbdd95909f6af1711a57e0273eaa235b
treea1de381c9d990257c627f792255154ff9c21d561
parent5dfa044c3a3b9125da254b1d9969551d27523c1c
ext4: generalize extents status tree search functions

Ext4 contains a few functions that are used to search for delayed
extents or blocks in the extents status tree.  Rather than duplicate
code to add new functions to search for extents with different status
values, such as written or a combination of delayed and unwritten,
generalize the existing code to search for caller-specified extents
status values.  Also, move this code into extents_status.c where it
is better associated with the data structures it operates upon, and
where it can be more readily used to implement new extents status tree
functions that might want a broader scope for i_es_lock.

Three missing static specifiers in RFC version of patch reported and
fixed by Fengguang Wu <fengguang.wu@intel.com>.

Signed-off-by: Eric Whitney <enwlinux@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/extents.c
fs/ext4/extents_status.c
fs/ext4/extents_status.h
fs/ext4/inode.c
include/trace/events/ext4.h