summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/f2fs.h
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-12-07 16:23:32 -0800
committerJaegeuk Kim <jaegeuk@kernel.org>2016-12-07 18:56:50 -0800
commit5eba8c5d1fb3af28b2073ba5228d4998196c1bcc (patch)
treec873248bed74d949213de8a3c42438b2b8dfef14 /fs/f2fs/f2fs.h
parenta2125ff7dd1ed3a2a53cdc1f8f9c9cec9cfaa7ab (diff)
downloadop-kernel-dev-5eba8c5d1fb3af28b2073ba5228d4998196c1bcc.zip
op-kernel-dev-5eba8c5d1fb3af28b2073ba5228d4998196c1bcc.tar.gz
f2fs: fix to access nullified flush_cmd_control pointer
f2fs_sync_file() remount_ro - f2fs_readonly - destroy_flush_cmd_control - f2fs_issue_flush - no fcc pointer! So, this patch doesn't free fcc in this case, but just stop its kernel thread which sends flush commands. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r--fs/f2fs/f2fs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index 35dbab1..137bbf0 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -2103,7 +2103,7 @@ void f2fs_balance_fs(struct f2fs_sb_info *, bool);
void f2fs_balance_fs_bg(struct f2fs_sb_info *);
int f2fs_issue_flush(struct f2fs_sb_info *);
int create_flush_cmd_control(struct f2fs_sb_info *);
-void destroy_flush_cmd_control(struct f2fs_sb_info *);
+void destroy_flush_cmd_control(struct f2fs_sb_info *, bool);
void invalidate_blocks(struct f2fs_sb_info *, block_t);
bool is_checkpointed_data(struct f2fs_sb_info *, block_t);
void refresh_sit_entry(struct f2fs_sb_info *, block_t, block_t);
OpenPOWER on IntegriCloud