---
fs/f2fs/f2fs.h | 2 +-
fs/f2fs/file.c | 2 +-
- fs/f2fs/gc.c | 21 ++++++++++++++++++---
- 3 files changed, 20 insertions(+), 5 deletions(-)
+ fs/f2fs/gc.c | 22 +++++++++++++++++++---
+ 3 files changed, 21 insertions(+), 5 deletions(-)
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
static int f2fs_ioc_enable_verity(struct file *filp, unsigned long arg)
--- a/fs/f2fs/gc.c
+++ b/fs/f2fs/gc.c
-@@ -1976,8 +1976,9 @@ static void update_fs_metadata(struct f2
+@@ -7,6 +7,7 @@
+ */
+ #include <linux/fs.h>
+ #include <linux/module.h>
++#include <linux/mount.h>
+ #include <linux/backing-dev.h>
+ #include <linux/init.h>
+ #include <linux/f2fs_fs.h>
+@@ -1976,8 +1977,9 @@ static void update_fs_metadata(struct f2
}
}
__u64 old_block_count, shrunk_blocks;
struct cp_control cpc = { CP_RESIZE, 0, 0, 0 };
unsigned int secs;
-@@ -2015,12 +2016,18 @@ int f2fs_resize_fs(struct f2fs_sb_info *
+@@ -2015,12 +2017,18 @@ int f2fs_resize_fs(struct f2fs_sb_info *
return -EINVAL;
}
/* stop CP to protect MAIN_SEC in free_segment_range */
f2fs_lock_op(sbi);
-@@ -2040,10 +2047,18 @@ int f2fs_resize_fs(struct f2fs_sb_info *
+@@ -2040,10 +2048,18 @@ int f2fs_resize_fs(struct f2fs_sb_info *
out_unlock:
f2fs_unlock_op(sbi);
up_write(&sbi->gc_lock);