hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I9DN5Z CVE: NA
--------------------------------
Will use it with latter patch.
Signed-off-by: Yang Erkun yangerkun@huawei.com --- fs/iomap/buffered-io.c | 3 ++- include/linux/iomap.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/fs/iomap/buffered-io.c b/fs/iomap/buffered-io.c index a989953007fa..b38c666b4ac9 100644 --- a/fs/iomap/buffered-io.c +++ b/fs/iomap/buffered-io.c @@ -146,13 +146,14 @@ static void ifs_clear_range_dirty(struct folio *folio, spin_unlock_irqrestore(&ifs->state_lock, flags); }
-static void iomap_clear_range_dirty(struct folio *folio, size_t off, size_t len) +void iomap_clear_range_dirty(struct folio *folio, size_t off, size_t len) { struct iomap_folio_state *ifs = folio->private;
if (ifs) ifs_clear_range_dirty(folio, ifs, off, len); } +EXPORT_SYMBOL_GPL(iomap_clear_range_dirty);
static void ifs_set_range_dirty(struct folio *folio, struct iomap_folio_state *ifs, size_t off, size_t len) diff --git a/include/linux/iomap.h b/include/linux/iomap.h index 4d9eacc9d7c3..e0320f2fae65 100644 --- a/include/linux/iomap.h +++ b/include/linux/iomap.h @@ -270,6 +270,7 @@ int iomap_read_folio(struct folio *folio, const struct iomap_ops *ops); void iomap_readahead(struct readahead_control *, const struct iomap_ops *ops); bool iomap_is_partially_uptodate(struct folio *, size_t from, size_t count); bool iomap_is_fully_dirty(struct folio *, size_t from, size_t count); +void iomap_clear_range_dirty(struct folio *, size_t off, size_t len); struct folio *iomap_get_folio(struct iomap_iter *iter, loff_t pos, size_t len); bool iomap_release_folio(struct folio *folio, gfp_t gfp_flags); void iomap_invalidate_folio(struct folio *folio, size_t offset, size_t len);