diff options
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index a8ccbceb869a..3f07b504f6d8 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h | |||
@@ -491,6 +491,7 @@ enum page_type { | |||
491 | struct f2fs_io_info { | 491 | struct f2fs_io_info { |
492 | enum page_type type; /* contains DATA/NODE/META/META_FLUSH */ | 492 | enum page_type type; /* contains DATA/NODE/META/META_FLUSH */ |
493 | int rw; /* contains R/RS/W/WS with REQ_META/REQ_PRIO */ | 493 | int rw; /* contains R/RS/W/WS with REQ_META/REQ_PRIO */ |
494 | block_t blk_addr; /* block address to be written */ | ||
494 | }; | 495 | }; |
495 | 496 | ||
496 | #define is_read_io(rw) (((rw) & 1) == READ) | 497 | #define is_read_io(rw) (((rw) & 1) == READ) |
@@ -1414,10 +1415,10 @@ int f2fs_trim_fs(struct f2fs_sb_info *, struct fstrim_range *); | |||
1414 | struct page *get_sum_page(struct f2fs_sb_info *, unsigned int); | 1415 | struct page *get_sum_page(struct f2fs_sb_info *, unsigned int); |
1415 | void write_meta_page(struct f2fs_sb_info *, struct page *); | 1416 | void write_meta_page(struct f2fs_sb_info *, struct page *); |
1416 | void write_node_page(struct f2fs_sb_info *, struct page *, | 1417 | void write_node_page(struct f2fs_sb_info *, struct page *, |
1417 | struct f2fs_io_info *, unsigned int, block_t, block_t *); | 1418 | unsigned int, struct f2fs_io_info *); |
1418 | void write_data_page(struct page *, struct dnode_of_data *, block_t *, | 1419 | void write_data_page(struct page *, struct dnode_of_data *, |
1419 | struct f2fs_io_info *); | 1420 | struct f2fs_io_info *); |
1420 | void rewrite_data_page(struct page *, block_t, struct f2fs_io_info *); | 1421 | void rewrite_data_page(struct page *, struct f2fs_io_info *); |
1421 | void recover_data_page(struct f2fs_sb_info *, struct page *, | 1422 | void recover_data_page(struct f2fs_sb_info *, struct page *, |
1422 | struct f2fs_summary *, block_t, block_t); | 1423 | struct f2fs_summary *, block_t, block_t); |
1423 | void allocate_data_block(struct f2fs_sb_info *, struct page *, | 1424 | void allocate_data_block(struct f2fs_sb_info *, struct page *, |
@@ -1464,8 +1465,9 @@ void destroy_checkpoint_caches(void); | |||
1464 | * data.c | 1465 | * data.c |
1465 | */ | 1466 | */ |
1466 | void f2fs_submit_merged_bio(struct f2fs_sb_info *, enum page_type, int); | 1467 | void f2fs_submit_merged_bio(struct f2fs_sb_info *, enum page_type, int); |
1467 | int f2fs_submit_page_bio(struct f2fs_sb_info *, struct page *, block_t, int); | 1468 | int f2fs_submit_page_bio(struct f2fs_sb_info *, struct page *, |
1468 | void f2fs_submit_page_mbio(struct f2fs_sb_info *, struct page *, block_t, | 1469 | struct f2fs_io_info *); |
1470 | void f2fs_submit_page_mbio(struct f2fs_sb_info *, struct page *, | ||
1469 | struct f2fs_io_info *); | 1471 | struct f2fs_io_info *); |
1470 | int reserve_new_block(struct dnode_of_data *); | 1472 | int reserve_new_block(struct dnode_of_data *); |
1471 | int f2fs_reserve_block(struct dnode_of_data *, pgoff_t); | 1473 | int f2fs_reserve_block(struct dnode_of_data *, pgoff_t); |