diff options
author | Chao Yu <yuchao0@huawei.com> | 2018-05-26 13:03:35 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-05-31 21:31:52 +0300 |
commit | aec2f729fca13661e9bc651839ae23bf8367195a (patch) | |
tree | 802657785438ea1c5c529c716bcf0872d3935414 /fs/f2fs/data.c | |
parent | 64c74a7ab505ea40d1b3e5d02735ecab08ae1b14 (diff) | |
download | linux-aec2f729fca13661e9bc651839ae23bf8367195a.tar.xz |
f2fs: clean up with clear_radix_tree_dirty_tag
Introduce clear_radix_tree_dirty_tag to include common codes for cleanup.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r-- | fs/f2fs/data.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 98a12526e3d0..9d3e2e1c1e33 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -2594,6 +2594,17 @@ const struct address_space_operations f2fs_dblock_aops = { #endif }; +void clear_radix_tree_dirty_tag(struct page *page) +{ + struct address_space *mapping = page_mapping(page); + unsigned long flags; + + xa_lock_irqsave(&mapping->i_pages, flags); + radix_tree_tag_clear(&mapping->i_pages, page_index(page), + PAGECACHE_TAG_DIRTY); + xa_unlock_irqrestore(&mapping->i_pages, flags); +} + int __init f2fs_init_post_read_processing(void) { bio_post_read_ctx_cache = KMEM_CACHE(bio_post_read_ctx, 0); |