aboutsummaryrefslogtreecommitdiffstats
path: root/fs/logfs/logfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/logfs/logfs.h')
-rw-r--r--fs/logfs/logfs.h10
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);
598int logfs_init_areas(struct super_block *sb); 598int logfs_init_areas(struct super_block *sb);
599void logfs_cleanup_areas(struct super_block *sb); 599void logfs_cleanup_areas(struct super_block *sb);
600int logfs_open_area(struct logfs_area *area, size_t bytes); 600int logfs_open_area(struct logfs_area *area, size_t bytes);
601void __logfs_buf_write(struct logfs_area *area, u64 ofs, void *buf, size_t len, 601int __logfs_buf_write(struct logfs_area *area, u64 ofs, void *buf, size_t len,
602 int use_filler); 602 int use_filler);
603 603
604static inline void logfs_buf_write(struct logfs_area *area, u64 ofs, 604static 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
610static inline void logfs_buf_recover(struct logfs_area *area, u64 ofs, 610static 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 */