xfs: remove unused calculation in xfs_dir2_sf_addname()
authorEric Sandeen <sandeen@sandeen.net>
Mon, 14 Apr 2014 09:07:23 +0000 (19:07 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 14 Apr 2014 09:07:23 +0000 (19:07 +1000)
commit5e06d148949bb79af429c46afb4b81bc31308f6e
tree19b06d2e1190627c989a6e0a000bfeb6b59229d1
parente5e98bc64df122c3c0fb562c53dac5c5dfc64975
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 <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_dir2_sf.c