f2fs.h (7525dec4b34c80b3015c3f2ac143fd2bfc1febc3) f2fs.h (fa36f5ff74f0daf536647d418cafc0f19d5b116c)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * fs/f2fs/f2fs.h
4 *
5 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
6 * http://www.samsung.com/
7 */
8#ifndef _LINUX_F2FS_H

--- 4274 unchanged lines hidden (view full) ---

4283 unsigned int llen, unsigned int c_len);
4284int f2fs_read_multi_pages(struct compress_ctx *cc, struct bio **bio_ret,
4285 unsigned nr_pages, sector_t *last_block_in_bio,
4286 bool is_readahead, bool for_write);
4287struct decompress_io_ctx *f2fs_alloc_dic(struct compress_ctx *cc);
4288void f2fs_decompress_end_io(struct decompress_io_ctx *dic, bool failed,
4289 bool in_task);
4290void f2fs_put_page_dic(struct page *page, bool in_task);
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * fs/f2fs/f2fs.h
4 *
5 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
6 * http://www.samsung.com/
7 */
8#ifndef _LINUX_F2FS_H

--- 4274 unchanged lines hidden (view full) ---

4283 unsigned int llen, unsigned int c_len);
4284int f2fs_read_multi_pages(struct compress_ctx *cc, struct bio **bio_ret,
4285 unsigned nr_pages, sector_t *last_block_in_bio,
4286 bool is_readahead, bool for_write);
4287struct decompress_io_ctx *f2fs_alloc_dic(struct compress_ctx *cc);
4288void f2fs_decompress_end_io(struct decompress_io_ctx *dic, bool failed,
4289 bool in_task);
4290void f2fs_put_page_dic(struct page *page, bool in_task);
4291unsigned int f2fs_cluster_blocks_are_contiguous(struct dnode_of_data *dn);
4291unsigned int f2fs_cluster_blocks_are_contiguous(struct dnode_of_data *dn,
4292 unsigned int ofs_in_node);
4292int f2fs_init_compress_ctx(struct compress_ctx *cc);
4293void f2fs_destroy_compress_ctx(struct compress_ctx *cc, bool reuse);
4294void f2fs_init_compress_info(struct f2fs_sb_info *sbi);
4295int f2fs_init_compress_inode(struct f2fs_sb_info *sbi);
4296void f2fs_destroy_compress_inode(struct f2fs_sb_info *sbi);
4297int f2fs_init_page_array_cache(struct f2fs_sb_info *sbi);
4298void f2fs_destroy_page_array_cache(struct f2fs_sb_info *sbi);
4299int __init f2fs_init_compress_cache(void);

--- 40 unchanged lines hidden (view full) ---

4340 bool failed, block_t blkaddr, bool in_task)
4341{
4342 WARN_ON_ONCE(1);
4343}
4344static inline void f2fs_put_page_dic(struct page *page, bool in_task)
4345{
4346 WARN_ON_ONCE(1);
4347}
4293int f2fs_init_compress_ctx(struct compress_ctx *cc);
4294void f2fs_destroy_compress_ctx(struct compress_ctx *cc, bool reuse);
4295void f2fs_init_compress_info(struct f2fs_sb_info *sbi);
4296int f2fs_init_compress_inode(struct f2fs_sb_info *sbi);
4297void f2fs_destroy_compress_inode(struct f2fs_sb_info *sbi);
4298int f2fs_init_page_array_cache(struct f2fs_sb_info *sbi);
4299void f2fs_destroy_page_array_cache(struct f2fs_sb_info *sbi);
4300int __init f2fs_init_compress_cache(void);

--- 40 unchanged lines hidden (view full) ---

4341 bool failed, block_t blkaddr, bool in_task)
4342{
4343 WARN_ON_ONCE(1);
4344}
4345static inline void f2fs_put_page_dic(struct page *page, bool in_task)
4346{
4347 WARN_ON_ONCE(1);
4348}
4348static inline unsigned int f2fs_cluster_blocks_are_contiguous(struct dnode_of_data *dn) { return 0; }
4349static inline unsigned int f2fs_cluster_blocks_are_contiguous(
4350 struct dnode_of_data *dn, unsigned int ofs_in_node) { return 0; }
4349static inline bool f2fs_sanity_check_cluster(struct dnode_of_data *dn) { return false; }
4350static inline int f2fs_init_compress_inode(struct f2fs_sb_info *sbi) { return 0; }
4351static inline void f2fs_destroy_compress_inode(struct f2fs_sb_info *sbi) { }
4352static inline int f2fs_init_page_array_cache(struct f2fs_sb_info *sbi) { return 0; }
4353static inline void f2fs_destroy_page_array_cache(struct f2fs_sb_info *sbi) { }
4354static inline int __init f2fs_init_compress_cache(void) { return 0; }
4355static inline void f2fs_destroy_compress_cache(void) { }
4356static inline void f2fs_invalidate_compress_page(struct f2fs_sb_info *sbi,

--- 273 unchanged lines hidden ---
4351static inline bool f2fs_sanity_check_cluster(struct dnode_of_data *dn) { return false; }
4352static inline int f2fs_init_compress_inode(struct f2fs_sb_info *sbi) { return 0; }
4353static inline void f2fs_destroy_compress_inode(struct f2fs_sb_info *sbi) { }
4354static inline int f2fs_init_page_array_cache(struct f2fs_sb_info *sbi) { return 0; }
4355static inline void f2fs_destroy_page_array_cache(struct f2fs_sb_info *sbi) { }
4356static inline int __init f2fs_init_compress_cache(void) { return 0; }
4357static inline void f2fs_destroy_compress_cache(void) { }
4358static inline void f2fs_invalidate_compress_page(struct f2fs_sb_info *sbi,

--- 273 unchanged lines hidden ---