summaryrefslogtreecommitdiffstats
path: root/fs/ext4/extents_status.h
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2019-08-11 16:32:41 -0400
committerTheodore Ts'o <tytso@mit.edu>2019-08-11 16:32:41 -0400
commitbb5835edcdf8bf78bbe51cff13e332c439bc0567 (patch)
tree74e9498c0cb0f42a3158d0a892181316e5a8a243 /fs/ext4/extents_status.h
parent1ad3ea6e0a694b0486eb2cbe60378ad0fbf23642 (diff)
downloadlinux-bb5835edcdf8bf78bbe51cff13e332c439bc0567.tar.gz
linux-bb5835edcdf8bf78bbe51cff13e332c439bc0567.tar.bz2
linux-bb5835edcdf8bf78bbe51cff13e332c439bc0567.zip
ext4: add new ioctl EXT4_IOC_GET_ES_CACHE
For debugging reasons, it's useful to know the contents of the extent cache. Since the extent cache contains much of what is in the fiemap ioctl, use an fiemap-style interface to return this information. Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/extents_status.h')
-rw-r--r--fs/ext4/extents_status.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/extents_status.h b/fs/ext4/extents_status.h
index e16785f431e7..eb56a1289031 100644
--- a/fs/ext4/extents_status.h
+++ b/fs/ext4/extents_status.h
@@ -140,6 +140,7 @@ extern void ext4_es_find_extent_range(struct inode *inode,
ext4_lblk_t lblk, ext4_lblk_t end,
struct extent_status *es);
extern int ext4_es_lookup_extent(struct inode *inode, ext4_lblk_t lblk,
+ ext4_lblk_t *next_lblk,
struct extent_status *es);
extern bool ext4_es_scan_range(struct inode *inode,
int (*matching_fn)(struct extent_status *es),