[Devel] [PATCH RH7 1/3] ext4: Introduce __ext4_es_lookup_extent()

Kirill Tkhai ktkhai at virtuozzo.com
Mon Jul 20 14:03:35 MSK 2020


Add @flags argument, currently unused.

Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 fs/ext4/extents_status.c |    4 ++--
 fs/ext4/extents_status.h |   10 ++++++++--
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/fs/ext4/extents_status.c b/fs/ext4/extents_status.c
index 66babd97732d..472103bdd988 100644
--- a/fs/ext4/extents_status.c
+++ b/fs/ext4/extents_status.c
@@ -785,8 +785,8 @@ static inline void ext4_es_stats_inc(struct percpu_counter *fbc)
  *
  * Return: 1 on found, 0 on not
  */
-int ext4_es_lookup_extent(struct inode *inode, ext4_lblk_t lblk,
-			  struct extent_status *es)
+int __ext4_es_lookup_extent(struct inode *inode, ext4_lblk_t lblk,
+			  struct extent_status *es, int flags)
 {
 	struct ext4_es_tree *tree;
 	struct ext4_es_stats *stats;
diff --git a/fs/ext4/extents_status.h b/fs/ext4/extents_status.h
index ddebb0e255ca..1d82ed9c93aa 100644
--- a/fs/ext4/extents_status.h
+++ b/fs/ext4/extents_status.h
@@ -89,8 +89,14 @@ extern int ext4_es_remove_extent(struct inode *inode, ext4_lblk_t lblk,
 extern void ext4_es_find_delayed_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,
-				 struct extent_status *es);
+extern int __ext4_es_lookup_extent(struct inode *inode, ext4_lblk_t lblk,
+				 struct extent_status *es, int flags);
+
+static inline int ext4_es_lookup_extent(struct inode *inode, ext4_lblk_t lblk,
+					struct extent_status *es)
+{
+	return __ext4_es_lookup_extent(inode, lblk, es, 0);
+}
 
 static inline int ext4_es_is_written(struct extent_status *es)
 {




More information about the Devel mailing list