f2fs: sanity check segment count

commit b9dd46188e 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>
This commit is contained in:
Jin Qian 2017-04-25 16:28:48 -07:00 • committed by Greg Kroah-Hartman
commit 93862955cb
2 changed files with 13 additions and 0 deletions