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

Submitted by Kirill Tkhai on July 20, 2020, 11:03 a.m.

Details

Message ID 159524301483.71004.520490362949045897.stgit@localhost.localdomain
State New
Series "Series without cover letter"
Headers show

Commit Message

Kirill Tkhai July 20, 2020, 11:03 a.m.
Add @flags argument, currently unused.

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

Patch hide | download patch | download mbox

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)
 {