]> git.karo-electronics.de Git - linux-beck.git/commit
f2fs: introduce max_file_blocks in sbi
authorChao Yu <chao2.yu@samsung.com>
Thu, 31 Dec 2015 06:35:37 +0000 (14:35 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 4 Jan 2016 05:40:04 +0000 (21:40 -0800)
commite0afc4d6d0d3e7e5a99f691bc64ae7c74bea790e
tree76cdea35b5c446a7b0137c1a4849f47d7d801e35
parent3a9e6433a367211a172cb7b4d5b727c720bd0de0
f2fs: introduce max_file_blocks in sbi

Introduce max_file_blocks in sbi to store max block index of file in f2fs,
it could be used to avoid unneeded calculation of max block index in
runtime.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
[Jaegeuk Kim: fix overflow of sbi->max_file_blocks]
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
fs/f2fs/f2fs.h
fs/f2fs/super.c