f2fs.h (a4c3ecaaadac5693f555cfef1c9eecf4c39df818) f2fs.h (4d3aed70902f299ff2ed7048ef44f0d4d573d786)
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

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

131 char *s_qf_names[MAXQUOTAS];
132 int s_jquota_fmt; /* Format of quota to use */
133#endif
134 /* For which write hints are passed down to block layer */
135 int whint_mode;
136 int alloc_mode; /* segment allocation policy */
137 int fsync_mode; /* fsync policy */
138 bool test_dummy_encryption; /* test dummy encryption */
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

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

131 char *s_qf_names[MAXQUOTAS];
132 int s_jquota_fmt; /* Format of quota to use */
133#endif
134 /* For which write hints are passed down to block layer */
135 int whint_mode;
136 int alloc_mode; /* segment allocation policy */
137 int fsync_mode; /* fsync policy */
138 bool test_dummy_encryption; /* test dummy encryption */
139 block_t unusable_cap; /* Amount of space allowed to be
140 * unusable when disabling checkpoint
141 */
139};
140
141#define F2FS_FEATURE_ENCRYPT 0x0001
142#define F2FS_FEATURE_BLKZONED 0x0002
143#define F2FS_FEATURE_ATOMIC_WRITE 0x0004
144#define F2FS_FEATURE_EXTRA_ATTR 0x0008
145#define F2FS_FEATURE_PRJQUOTA 0x0010
146#define F2FS_FEATURE_INODE_CHKSUM 0x0020

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

3080void f2fs_invalidate_blocks(struct f2fs_sb_info *sbi, block_t addr);
3081bool f2fs_is_checkpointed_data(struct f2fs_sb_info *sbi, block_t blkaddr);
3082void f2fs_drop_discard_cmd(struct f2fs_sb_info *sbi);
3083void f2fs_stop_discard_thread(struct f2fs_sb_info *sbi);
3084bool f2fs_issue_discard_timeout(struct f2fs_sb_info *sbi);
3085void f2fs_clear_prefree_segments(struct f2fs_sb_info *sbi,
3086 struct cp_control *cpc);
3087void f2fs_dirty_to_prefree(struct f2fs_sb_info *sbi);
142};
143
144#define F2FS_FEATURE_ENCRYPT 0x0001
145#define F2FS_FEATURE_BLKZONED 0x0002
146#define F2FS_FEATURE_ATOMIC_WRITE 0x0004
147#define F2FS_FEATURE_EXTRA_ATTR 0x0008
148#define F2FS_FEATURE_PRJQUOTA 0x0010
149#define F2FS_FEATURE_INODE_CHKSUM 0x0020

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

3083void f2fs_invalidate_blocks(struct f2fs_sb_info *sbi, block_t addr);
3084bool f2fs_is_checkpointed_data(struct f2fs_sb_info *sbi, block_t blkaddr);
3085void f2fs_drop_discard_cmd(struct f2fs_sb_info *sbi);
3086void f2fs_stop_discard_thread(struct f2fs_sb_info *sbi);
3087bool f2fs_issue_discard_timeout(struct f2fs_sb_info *sbi);
3088void f2fs_clear_prefree_segments(struct f2fs_sb_info *sbi,
3089 struct cp_control *cpc);
3090void f2fs_dirty_to_prefree(struct f2fs_sb_info *sbi);
3088int f2fs_disable_cp_again(struct f2fs_sb_info *sbi);
3091block_t f2fs_get_unusable_blocks(struct f2fs_sb_info *sbi);
3092int f2fs_disable_cp_again(struct f2fs_sb_info *sbi, block_t unusable);
3089void f2fs_release_discard_addrs(struct f2fs_sb_info *sbi);
3090int f2fs_npages_for_summary_flush(struct f2fs_sb_info *sbi, bool for_ra);
3091void f2fs_allocate_new_segments(struct f2fs_sb_info *sbi);
3092int f2fs_trim_fs(struct f2fs_sb_info *sbi, struct fstrim_range *range);
3093bool f2fs_exist_trim_candidates(struct f2fs_sb_info *sbi,
3094 struct cp_control *cpc);
3095struct page *f2fs_get_sum_page(struct f2fs_sb_info *sbi, unsigned int segno);
3096void f2fs_update_meta_page(struct f2fs_sb_info *sbi, void *src,

--- 631 unchanged lines hidden ---
3093void f2fs_release_discard_addrs(struct f2fs_sb_info *sbi);
3094int f2fs_npages_for_summary_flush(struct f2fs_sb_info *sbi, bool for_ra);
3095void f2fs_allocate_new_segments(struct f2fs_sb_info *sbi);
3096int f2fs_trim_fs(struct f2fs_sb_info *sbi, struct fstrim_range *range);
3097bool f2fs_exist_trim_candidates(struct f2fs_sb_info *sbi,
3098 struct cp_control *cpc);
3099struct page *f2fs_get_sum_page(struct f2fs_sb_info *sbi, unsigned int segno);
3100void f2fs_update_meta_page(struct f2fs_sb_info *sbi, void *src,

--- 631 unchanged lines hidden ---