Commit 3572ff98 authored by Chao Yu's avatar Chao Yu Committed by Jaegeuk Kim
Browse files

UPSTREAM: f2fs: fix to limit gc_pin_file_threshold



type of f2fs_inode.i_gc_failures, f2fs_inode_info.i_gc_failures, and
f2fs_sb_info.gc_pin_file_threshold is __le16, unsigned int, and u64,
so it will cause truncation during comparison and persistence.

Unifying variable of these three variables to unsigned short, and
add an upper boundary limitation for gc_pin_file_threshold.

Change-Id: I3b24870e7910624b04abd0402de3397d2f93f5bc
Signed-off-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit c521a6ab)
parent 345b6d6a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment