[Devel] [PATCH RHEL7 COMMIT] ext4: Introduce __ext4_es_lookup_extent()
Vasily Averin
vvs at virtuozzo.com
Tue Jul 21 07:44:50 MSK 2020
The commit is pushed to "branch-rh7-3.10.0-1127.10.1.vz7.162.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-1127.10.1.vz7.162.10
------>
commit e535413d3522e80f5ecad30e238eb34a215806ae
Author: Kirill Tkhai <ktkhai at virtuozzo.com>
Date: Tue Jul 21 07:44:49 2020 +0300
ext4: Introduce __ext4_es_lookup_extent()
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 66babd97732d4..472103bdd9886 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 ddebb0e255ca4..1d82ed9c93aab 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