xfs: make dir2 ftype offset pointers explicit
authorDave Chinner <dchinner@redhat.com>
Tue, 29 Oct 2013 11:11:55 +0000 (22:11 +1100)
committerBen Myers <bpm@sgi.com>
Wed, 30 Oct 2013 18:52:38 +0000 (13:52 -0500)
commitb01ef655d8b9753c3d25e4c22e0a4e7c442fe5e1
tree278f8f66e6c01e9954cf66f1f46b8a01c35d432d
parent1c9a5b2e3045b91a10335adcc73267c304cb5dc0
xfs: make dir2 ftype offset pointers explicit

Rather than hiding the ftype field size accounting inside the dirent
padding for the ".." and first entry offset functions for v2
directory formats, add explicit functions that calculate it
correctly.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_da_format.c