diff options
Diffstat (limited to 'fs/logfs/logfs.h')
-rw-r--r-- | fs/logfs/logfs.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/logfs/logfs.h b/fs/logfs/logfs.h index 0a3df1a0c93..32bf55616e5 100644 --- a/fs/logfs/logfs.h +++ b/fs/logfs/logfs.h | |||
@@ -598,19 +598,19 @@ void freeseg(struct super_block *sb, u32 segno); | |||
598 | int logfs_init_areas(struct super_block *sb); | 598 | int logfs_init_areas(struct super_block *sb); |
599 | void logfs_cleanup_areas(struct super_block *sb); | 599 | void logfs_cleanup_areas(struct super_block *sb); |
600 | int logfs_open_area(struct logfs_area *area, size_t bytes); | 600 | int logfs_open_area(struct logfs_area *area, size_t bytes); |
601 | void __logfs_buf_write(struct logfs_area *area, u64 ofs, void *buf, size_t len, | 601 | int __logfs_buf_write(struct logfs_area *area, u64 ofs, void *buf, size_t len, |
602 | int use_filler); | 602 | int use_filler); |
603 | 603 | ||
604 | static inline void logfs_buf_write(struct logfs_area *area, u64 ofs, | 604 | static inline int logfs_buf_write(struct logfs_area *area, u64 ofs, |
605 | void *buf, size_t len) | 605 | void *buf, size_t len) |
606 | { | 606 | { |
607 | __logfs_buf_write(area, ofs, buf, len, 0); | 607 | return __logfs_buf_write(area, ofs, buf, len, 0); |
608 | } | 608 | } |
609 | 609 | ||
610 | static inline void logfs_buf_recover(struct logfs_area *area, u64 ofs, | 610 | static inline int logfs_buf_recover(struct logfs_area *area, u64 ofs, |
611 | void *buf, size_t len) | 611 | void *buf, size_t len) |
612 | { | 612 | { |
613 | __logfs_buf_write(area, ofs, buf, len, 1); | 613 | return __logfs_buf_write(area, ofs, buf, len, 1); |
614 | } | 614 | } |
615 | 615 | ||
616 | /* super.c */ | 616 | /* super.c */ |