f2fs.h (82e0a5aa5ddf794b3e1b21fcd091228736871882) f2fs.h (dcf25fe8fcf4e68057d02e453e7ccf93fa1d1071)
1/*
2 * fs/f2fs/f2fs.h
3 *
4 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 * http://www.samsung.com/
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

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

159};
160
161#define DEF_BATCHED_TRIM_SECTIONS 32
162#define BATCHED_TRIM_SEGMENTS(sbi) \
163 (SM_I(sbi)->trim_sections * (sbi)->segs_per_sec)
164#define BATCHED_TRIM_BLOCKS(sbi) \
165 (BATCHED_TRIM_SEGMENTS(sbi) << (sbi)->log_blocks_per_seg)
166#define DEF_CP_INTERVAL 60 /* 60 secs */
1/*
2 * fs/f2fs/f2fs.h
3 *
4 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 * http://www.samsung.com/
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

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

159};
160
161#define DEF_BATCHED_TRIM_SECTIONS 32
162#define BATCHED_TRIM_SEGMENTS(sbi) \
163 (SM_I(sbi)->trim_sections * (sbi)->segs_per_sec)
164#define BATCHED_TRIM_BLOCKS(sbi) \
165 (BATCHED_TRIM_SEGMENTS(sbi) << (sbi)->log_blocks_per_seg)
166#define DEF_CP_INTERVAL 60 /* 60 secs */
167#define DEF_IDLE_INTERVAL 120 /* 2 mins */
167#define DEF_IDLE_INTERVAL 5 /* 5 secs */
168
169struct cp_control {
170 int reason;
171 __u64 trim_start;
172 __u64 trim_end;
173 __u64 trim_minlen;
174 __u64 trimmed;
175};

--- 2217 unchanged lines hidden ---
168
169struct cp_control {
170 int reason;
171 __u64 trim_start;
172 __u64 trim_end;
173 __u64 trim_minlen;
174 __u64 trimmed;
175};

--- 2217 unchanged lines hidden ---