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 11:32:59 +0000 (13:32 +0200)
commit4edbdf57bc26a126aa3cbafd63fae4b00e002e2d
treee7fb8fbe05b6d01be820050dfb39db3c34895c91
parent9456239483424c55b86671c9ac19b4152a0c360c
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