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:00:22 +0000 (14:00 +0200)
commit93862955cbf485215f0677229292d0f358af55fc
tree8da8745471329000ff6542cd9c81e35a71da2228
parent265d382cc8db2ad14eba3398041606cf44e7ec89
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