segment.h (a60108f7dfb5867da1ad9c777d2fbbe47e4dbdd7) segment.h (4e0197f9932f70cc7be8744aa0ed4dd9b5d97d85)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * fs/f2fs/segment.h
4 *
5 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
6 * http://www.samsung.com/
7 */
8#include <linux/blkdev.h>

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

132 (BITS_TO_LONGS(nr) * sizeof(unsigned long))
133
134#define SECTOR_FROM_BLOCK(blk_addr) \
135 (((sector_t)blk_addr) << F2FS_LOG_SECTORS_PER_BLOCK)
136#define SECTOR_TO_BLOCK(sectors) \
137 ((sectors) >> F2FS_LOG_SECTORS_PER_BLOCK)
138
139/*
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * fs/f2fs/segment.h
4 *
5 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
6 * http://www.samsung.com/
7 */
8#include <linux/blkdev.h>

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

132 (BITS_TO_LONGS(nr) * sizeof(unsigned long))
133
134#define SECTOR_FROM_BLOCK(blk_addr) \
135 (((sector_t)blk_addr) << F2FS_LOG_SECTORS_PER_BLOCK)
136#define SECTOR_TO_BLOCK(sectors) \
137 ((sectors) >> F2FS_LOG_SECTORS_PER_BLOCK)
138
139/*
140 * indicate a block allocation direction: RIGHT and LEFT.
141 * RIGHT means allocating new sections towards the end of volume.
142 * LEFT means the opposite direction.
143 */
144enum {
145 ALLOC_RIGHT = 0,
146 ALLOC_LEFT
147};
148
149/*
150 * In the victim_sel_policy->alloc_mode, there are three block allocation modes.
151 * LFS writes data sequentially with cleaning operations.
152 * SSR (Slack Space Recycle) reuses obsolete space without cleaning operations.
153 * AT_SSR (Age Threshold based Slack Space Recycle) merges fragments into
154 * fragmented segment which has similar aging degree.
155 */
156enum {
157 LFS = 0,

--- 812 unchanged lines hidden ---
140 * In the victim_sel_policy->alloc_mode, there are three block allocation modes.
141 * LFS writes data sequentially with cleaning operations.
142 * SSR (Slack Space Recycle) reuses obsolete space without cleaning operations.
143 * AT_SSR (Age Threshold based Slack Space Recycle) merges fragments into
144 * fragmented segment which has similar aging degree.
145 */
146enum {
147 LFS = 0,

--- 812 unchanged lines hidden ---