Move the definition of f2fs_folio_state to f2fs.h for upcoming changes to PAGE_PRIVATE functions. No logical change.
Signed-off-by: Nanzhe Zhao <[email protected]> --- fs/f2fs/data.c | 4 ---- fs/f2fs/f2fs.h | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index f70efb040c73..3a40db6894fc 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -35,10 +35,6 @@ static struct kmem_cache *ffs_entry_slab; static mempool_t *bio_post_read_ctx_pool; static struct bio_set f2fs_bioset; -struct f2fs_folio_state { - spinlock_t state_lock; - unsigned int read_pages_pending; -}; #define F2FS_BIO_POOL_SIZE NR_CURSEG_TYPE diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index a6e7368fc40a..bdcd446f6b18 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -2042,6 +2042,11 @@ struct f2fs_sb_info { #endif }; +struct f2fs_folio_state { + spinlock_t state_lock; + unsigned int read_pages_pending; +}; + /* Definitions to access f2fs_sb_info */ #define SEGS_TO_BLKS(sbi, segs) \ ((segs) << (sbi)->log_blocks_per_seg) -- 2.34.1 _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
