aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/f2fs/sysfs.c
diff options
context:
space:
mode:
authorLongPing Wei <weilongping@oppo.com>2024-10-29 18:49:07 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2024-11-01 01:24:41 +0000
commit1df2bc3c8252261860787a02f61797a914b99163 (patch)
tree313f182c154e4205a5822fdbcae687ee838b0811 /fs/f2fs/sysfs.c
parentf2fs: clean up opened code w/ {get,set}_nid() (diff)
downloadwireguard-linux-1df2bc3c8252261860787a02f61797a914b99163.tar.xz
wireguard-linux-1df2bc3c8252261860787a02f61797a914b99163.zip
f2fs: clean up the unused variable additional_reserved_segments
additional_reserved_segments was introduced by commit 300a842937fb ("f2fs: fix to reserve space for IO align feature"), and its initialization was deleted by commit 87161a2b0aed ("f2fs: deprecate io_bits"). Signed-off-by: LongPing Wei <weilongping@oppo.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/sysfs.c')
-rw-r--r--fs/f2fs/sysfs.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/f2fs/sysfs.c b/fs/f2fs/sysfs.c
index e51304bc65ea..bdbf24db667b 100644
--- a/fs/f2fs/sysfs.c
+++ b/fs/f2fs/sysfs.c
@@ -501,9 +501,7 @@ out:
if (a->struct_type == RESERVED_BLOCKS) {
spin_lock(&sbi->stat_lock);
if (t > (unsigned long)(sbi->user_block_count -
- F2FS_OPTION(sbi).root_reserved_blocks -
- SEGS_TO_BLKS(sbi,
- SM_I(sbi)->additional_reserved_segments))) {
+ F2FS_OPTION(sbi).root_reserved_blocks)) {
spin_unlock(&sbi->stat_lock);
return -EINVAL;
}