aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/segment.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/f2fs/segment.h')
-rw-r--r--fs/f2fs/segment.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/f2fs/segment.h b/fs/f2fs/segment.h
index ee44d346ea44..975c33df65c7 100644
--- a/fs/f2fs/segment.h
+++ b/fs/f2fs/segment.h
@@ -183,7 +183,7 @@ struct segment_allocation {
183 * this value is set in page as a private data which indicate that 183 * this value is set in page as a private data which indicate that
184 * the page is atomically written, and it is in inmem_pages list. 184 * the page is atomically written, and it is in inmem_pages list.
185 */ 185 */
186#define ATOMIC_WRITTEN_PAGE 0x0000ffff 186#define ATOMIC_WRITTEN_PAGE ((unsigned long)-1)
187 187
188#define IS_ATOMIC_WRITTEN_PAGE(page) \ 188#define IS_ATOMIC_WRITTEN_PAGE(page) \
189 (page_private(page) == (unsigned long)ATOMIC_WRITTEN_PAGE) 189 (page_private(page) == (unsigned long)ATOMIC_WRITTEN_PAGE)
@@ -191,6 +191,7 @@ struct segment_allocation {
191struct inmem_pages { 191struct inmem_pages {
192 struct list_head list; 192 struct list_head list;
193 struct page *page; 193 struct page *page;
194 block_t old_addr; /* for revoking when fail to commit */
194}; 195};
195 196
196struct sit_info { 197struct sit_info {
@@ -257,6 +258,8 @@ struct victim_selection {
257struct curseg_info { 258struct curseg_info {
258 struct mutex curseg_mutex; /* lock for consistency */ 259 struct mutex curseg_mutex; /* lock for consistency */
259 struct f2fs_summary_block *sum_blk; /* cached summary block */ 260 struct f2fs_summary_block *sum_blk; /* cached summary block */
261 struct rw_semaphore journal_rwsem; /* protect journal area */
262 struct f2fs_journal *journal; /* cached journal info */
260 unsigned char alloc_type; /* current allocation type */ 263 unsigned char alloc_type; /* current allocation type */
261 unsigned int segno; /* current segment number */ 264 unsigned int segno; /* current segment number */
262 unsigned short next_blkoff; /* next block offset to write */ 265 unsigned short next_blkoff; /* next block offset to write */