diff options
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index fc3c558cb4f3..0f0ad3aa148a 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h | |||
@@ -1023,6 +1023,12 @@ static inline int f2fs_readonly(struct super_block *sb) | |||
1023 | return sb->s_flags & MS_RDONLY; | 1023 | return sb->s_flags & MS_RDONLY; |
1024 | } | 1024 | } |
1025 | 1025 | ||
1026 | static inline void f2fs_stop_checkpoint(struct f2fs_sb_info *sbi) | ||
1027 | { | ||
1028 | set_ckpt_flags(sbi->ckpt, CP_ERROR_FLAG); | ||
1029 | sbi->sb->s_flags |= MS_RDONLY; | ||
1030 | } | ||
1031 | |||
1026 | #define get_inode_mode(i) \ | 1032 | #define get_inode_mode(i) \ |
1027 | ((is_inode_flag_set(F2FS_I(i), FI_ACL_MODE)) ? \ | 1033 | ((is_inode_flag_set(F2FS_I(i), FI_ACL_MODE)) ? \ |
1028 | (F2FS_I(i)->i_acl_mode) : ((i)->i_mode)) | 1034 | (F2FS_I(i)->i_acl_mode) : ((i)->i_mode)) |
@@ -1048,7 +1054,7 @@ void f2fs_set_inode_flags(struct inode *); | |||
1048 | struct inode *f2fs_iget(struct super_block *, unsigned long); | 1054 | struct inode *f2fs_iget(struct super_block *, unsigned long); |
1049 | int try_to_free_nats(struct f2fs_sb_info *, int); | 1055 | int try_to_free_nats(struct f2fs_sb_info *, int); |
1050 | void update_inode(struct inode *, struct page *); | 1056 | void update_inode(struct inode *, struct page *); |
1051 | int update_inode_page(struct inode *); | 1057 | void update_inode_page(struct inode *); |
1052 | int f2fs_write_inode(struct inode *, struct writeback_control *); | 1058 | int f2fs_write_inode(struct inode *, struct writeback_control *); |
1053 | void f2fs_evict_inode(struct inode *); | 1059 | void f2fs_evict_inode(struct inode *); |
1054 | 1060 | ||