From: Eric Sandeen Date: Mon, 14 Apr 2014 09:07:23 +0000 (+1000) Subject: xfs: remove unused calculation in xfs_dir2_sf_addname() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~55^2~8^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e06d148949bb79af429c46afb4b81bc31308f6e;p=pandora-kernel.git xfs: remove unused calculation in xfs_dir2_sf_addname() The "add_entsize" calculated here is never used. "incr_isize" accounts for the inode expansion of the old entries + parent + new entry all by itself. Once we've removed add_entsize there, it's just a pointless intermediate variable elsewhere, so remove it. For that matter, old_isize is gratuitous too, so nuke that. And add a few comments so the magic "+1's" and "+2's" make a bit more sense. Signed-off-by: Eric Sandeen Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- Reading git-diff-tree failed