summaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
authorRitesh Harjani <riteshh@linux.ibm.com>2022-02-16 12:32:49 +0530
committerTheodore Ts'o <tytso@mit.edu>2022-02-25 21:34:56 -0500
commit6bc6c2bdf1baca6522b8d9ba976257d722423085 (patch)
treeeae3e902570dcacfa85057eb01b063ed32b333b3 /fs/ext4/ext4.h
parentbd8247eee1a2b22e2270b3933ab8dca9316b3718 (diff)
downloadlinux-stable-6bc6c2bdf1baca6522b8d9ba976257d722423085.tar.gz
linux-stable-6bc6c2bdf1baca6522b8d9ba976257d722423085.tar.bz2
linux-stable-6bc6c2bdf1baca6522b8d9ba976257d722423085.zip
ext4: add ext4_sb_block_valid() refactored out of ext4_inode_block_valid()
This API will be needed at places where we don't have an inode for e.g. while freeing blocks in ext4_group_add_blocks() Suggested-by: Jan Kara <jack@suse.cz> Signed-off-by: Ritesh Harjani <riteshh@linux.ibm.com> Link: https://lore.kernel.org/r/dd34a236543ad5ae7123eeebe0cb69e6bdd44f34.1644992610.git.riteshh@linux.ibm.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index 97c85ae185a9..0d4f284c0514 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -3707,6 +3707,9 @@ extern int ext4_inode_block_valid(struct inode *inode,
unsigned int count);
extern int ext4_check_blockref(const char *, unsigned int,
struct inode *, __le32 *, unsigned int);
+extern int ext4_sb_block_valid(struct super_block *sb, struct inode *inode,
+ ext4_fsblk_t start_blk, unsigned int count);
+
/* extents.c */
struct ext4_ext_path;