summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/super.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2019-02-25 18:46:45 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2019-03-13 02:59:18 +0100
commit428e3bcf07696ff252b7ff3ff7711c2b9bbdb908 (patch)
treeac45ae40c6165175976cc197c5b4e201ca9df644 /fs/f2fs/super.c
parentf2fs: no need to take page lock in readdir (diff)
downloadlinux-428e3bcf07696ff252b7ff3ff7711c2b9bbdb908.tar.xz
linux-428e3bcf07696ff252b7ff3ff7711c2b9bbdb908.zip
f2fs: give random value to i_generation
This follows to give random number to i_generation along with commit 232530680290b ("ext4: improve smp scalability for inode generation") This can be used for DUN for UFS HW encryption. Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to '')
-rw-r--r--fs/f2fs/super.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 45121190a2ba..42eb5c86330a 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -3129,7 +3129,6 @@ try_onemore:
sb->s_maxbytes = sbi->max_file_blocks <<
le32_to_cpu(raw_super->log_blocksize);
sb->s_max_links = F2FS_LINK_MAX;
- get_random_bytes(&sbi->s_next_generation, sizeof(u32));
#ifdef CONFIG_QUOTA
sb->dq_op = &f2fs_quota_operations;