summaryrefslogtreecommitdiff
path: root/fs/f2fs/file.c
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2015-06-08 13:28:03 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2015-06-08 11:20:51 -0700
commitc5bda1c8b13ad7840ae0e8c9a2926df686ba6e06 (patch)
tree8de3110094792cbbab37362724cf30f6fe758551 /fs/f2fs/file.c
parent09d54cdd207bb3b07e00983f2f50bd68c354ce31 (diff)
f2fs: skip committing valid superblock
In recovery procedure for superblock, we try to write data of valid superblock into invalid one for recovery, work should be finished here, but then still we will write the valid one with its original data. This operation is not needed. Let's skip doing this unnecessary work. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/file.c')
-rw-r--r--fs/f2fs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index 4d42d66acd96..096e08ca3945 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -1530,7 +1530,7 @@ static int f2fs_ioc_get_encryption_pwsalt(struct file *filp, unsigned long arg)
/* update superblock with uuid */
generate_random_uuid(sbi->raw_super->encrypt_pw_salt);
- err = f2fs_commit_super(sbi);
+ err = f2fs_commit_super(sbi, false);
mnt_drop_write_file(filp);
if (err) {