]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: shortform directory offsets change for dir3 format
authorDave Chinner <dchinner@redhat.com>
Wed, 3 Apr 2013 05:11:24 +0000 (16:11 +1100)
committerBen Myers <bpm@sgi.com>
Sat, 27 Apr 2013 17:24:32 +0000 (12:24 -0500)
commit006acd0efd0bbad7ad3965ac8061f0f746c2f6bb
treea2e9a94af4d27297e7ef7f147137e6c4fa099513
parent2eb5d3f7eea5f064ddf411d5f034deb5bdbaa80d
xfs: shortform directory offsets change for dir3 format

Because the header size for the CRC enabled directory blocks is
larger, the offset of the first entry into a directory block is
different to the dir2 format. The shortform directory stores the
dirent's offset so that it doesn't change when moving from shortform
to block form and back again, and hence it needs to take into
account the different header sizes to maintain the correct offsets.

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_dir2_format.h
fs/xfs/xfs_dir2_sf.c