Commit eca616f8 authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

f2fs: avoid freed stat information

The write_checkpoint can update stat information, so we should destroy the stat
structure after it.
Reviewed-by: default avatarChao Yu <>
Signed-off-by: default avatarJaegeuk Kim <>
parent 5ac9f36f
......@@ -498,7 +498,6 @@ static void f2fs_put_super(struct super_block *sb)
......@@ -514,6 +513,9 @@ static void f2fs_put_super(struct super_block *sb)
write_checkpoint(sbi, &cpc);
/* write_checkpoint can update stat informaion */
* normally superblock is clean, so we need to release this.
* In addition, EIO will skip do checkpoint, we need this as well.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment