f2fs: fix to use per-inode maxbytes
authorChengguang Xu <cgxu519@mykernel.net>
Wed, 13 Jan 2021 05:21:54 +0000 (13:21 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 27 Jan 2021 23:20:06 +0000 (15:20 -0800)
commit6d1451bf7f84ea45035553ae566b3c91661d902b
treefba90e899514861853587a3d5d3d25ff41cc0a2e
parent3afae09ffea5e08f523823be99a784675995d6bb
f2fs: fix to use per-inode maxbytes

F2FS inode may have different max size, e.g. compressed file have
less blkaddr entries in all its direct-node blocks, result in being
with less max filesize. So change to use per-inode maxbytes.

Suggested-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Chengguang Xu <cgxu519@mykernel.net>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/super.c