From: Chao Yu Date: Wed, 20 Aug 2014 10:36:46 +0000 (+0800) Subject: f2fs: fix incorrect calculation with total/free inode num X-Git-Tag: fixes-v3.17-rc4~30^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c200b1aa6cb460ce8c3ecf6fdc690d3949c3cc5d;p=pandora-kernel.git f2fs: fix incorrect calculation with total/free inode num Theoretically, our total inodes number is the same as total node number, but there are three node ids are reserved in f2fs, they are 0, 1 (node nid), and 2 (meta nid), and they should never be used by user, so our total/free inode number calculated in ->statfs is wrong. This patch indroduces F2FS_RESERVED_NODE_NUM and then fixes this issue by recalculating total/free inode number with the macro. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim --- Reading git-diff-tree failed