diff options
Diffstat (limited to 'fs/logfs/logfs.h')
-rw-r--r-- | fs/logfs/logfs.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/logfs/logfs.h b/fs/logfs/logfs.h index e3082abe9e3b..72592114a28f 100644 --- a/fs/logfs/logfs.h +++ b/fs/logfs/logfs.h | |||
@@ -151,7 +151,8 @@ struct logfs_device_ops { | |||
151 | int (*write_sb)(struct super_block *sb, struct page *page); | 151 | int (*write_sb)(struct super_block *sb, struct page *page); |
152 | int (*readpage)(void *_sb, struct page *page); | 152 | int (*readpage)(void *_sb, struct page *page); |
153 | void (*writeseg)(struct super_block *sb, u64 ofs, size_t len); | 153 | void (*writeseg)(struct super_block *sb, u64 ofs, size_t len); |
154 | int (*erase)(struct super_block *sb, loff_t ofs, size_t len); | 154 | int (*erase)(struct super_block *sb, loff_t ofs, size_t len, |
155 | int ensure_write); | ||
155 | void (*sync)(struct super_block *sb); | 156 | void (*sync)(struct super_block *sb); |
156 | void (*put_device)(struct super_block *sb); | 157 | void (*put_device)(struct super_block *sb); |
157 | }; | 158 | }; |
@@ -327,6 +328,7 @@ struct logfs_super { | |||
327 | u64 s_feature_compat; | 328 | u64 s_feature_compat; |
328 | u64 s_feature_flags; | 329 | u64 s_feature_flags; |
329 | u64 s_sb_ofs[2]; | 330 | u64 s_sb_ofs[2]; |
331 | struct page *s_erase_page; /* for dev_bdev.c */ | ||
330 | /* alias.c fields */ | 332 | /* alias.c fields */ |
331 | struct btree_head32 s_segment_alias; /* remapped segments */ | 333 | struct btree_head32 s_segment_alias; /* remapped segments */ |
332 | int s_no_object_aliases; | 334 | int s_no_object_aliases; |
@@ -572,7 +574,7 @@ int get_page_reserve(struct inode *inode, struct page *page); | |||
572 | extern struct logfs_block_ops indirect_block_ops; | 574 | extern struct logfs_block_ops indirect_block_ops; |
573 | 575 | ||
574 | /* segment.c */ | 576 | /* segment.c */ |
575 | int logfs_erase_segment(struct super_block *sb, u32 ofs); | 577 | int logfs_erase_segment(struct super_block *sb, u32 ofs, int ensure_erase); |
576 | int wbuf_read(struct super_block *sb, u64 ofs, size_t len, void *buf); | 578 | int wbuf_read(struct super_block *sb, u64 ofs, size_t len, void *buf); |
577 | int logfs_segment_read(struct inode *inode, struct page *page, u64 ofs, u64 bix, | 579 | int logfs_segment_read(struct inode *inode, struct page *page, u64 ofs, u64 bix, |
578 | level_t level); | 580 | level_t level); |