[PATCH 1/9] mm: export mapping_seek_hole_data()

Dave Chinner
2022-11-15T01:30:54Z

From: Dave Chinner <dchinner@redhat.com>

XFS needs this for finding cached dirty data regions when cleaning
up short writes, so it needs to be exported as XFS can be built as a
module.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
---
mm/filemap.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/mm/filemap.c b/mm/filemap.c
index 08341616ae7a..07d255c41c43 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -2925,6 +2925,7 @@ loff_t mapping_seek_hole_data(struct address_space *mapping, loff_t start,
return end;
return start;
}
+EXPORT_SYMBOL_GPL(mapping_seek_hole_data);

#ifdef CONFIG_MMU
#define MMAP_LOTSAMISS (100)
--
2.37.2