]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: sanity check segment count
authorJin Qian <jinqian@google.com>
Tue, 25 Apr 2017 23:28:48 +0000 (16:28 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 14 May 2017 12:08:30 +0000 (14:08 +0200)
commit6442a7f5d793a5d778d1f0cc62840a3f20dc1d72
tree0c1f444a0bec670ac84e922ea1cb57f84e204d3d
parent853151191ef2b62fa02c4a9fdeb90a8baeb3d911
f2fs: sanity check segment count

commit b9dd46188edc2f0d1f37328637860bb65a771124 upstream.

F2FS uses 4 bytes to represent block address. As a result, supported
size of disk is 16 TB and it equals to 16 * 1024 * 1024 / 2 segments.

Signed-off-by: Jin Qian <jinqian@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/f2fs/super.c
include/linux/f2fs_fs.h