diff options
| author | Dave Chinner <dchinner@redhat.com> | 2013-04-03 16:11:20 +1100 | 
|---|---|---|
| committer | Ben Myers <bpm@sgi.com> | 2013-04-27 11:51:56 -0500 | 
| commit | f5f3d9b0161633e8943520e83df634ad540b3b7f (patch) | |
| tree | bd1a014fd6472904e53d7680e5692b49431ca6ab /fs/xfs/xfs_dir2_sf.c | |
| parent | f948dd76dde021c050c7c35720dc066a8b9a5e35 (diff) | |
| download | olio-linux-3.10-f5f3d9b0161633e8943520e83df634ad540b3b7f.tar.xz olio-linux-3.10-f5f3d9b0161633e8943520e83df634ad540b3b7f.zip  | |
xfs: add CRC checks to block format directory blocks
Now that directory buffers are made from a single struct xfs_buf, we
can add CRC calculation and checking callbacks. While there, add all
the fields to the on disk structures for future functionality such
as d_type support, uuids, block numbers, owner inode, etc.
To distinguish between the different on disk formats, change the
magic numbers for the new format directory blocks.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_dir2_sf.c')
| -rw-r--r-- | fs/xfs/xfs_dir2_sf.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_dir2_sf.c b/fs/xfs/xfs_dir2_sf.c index 1b9fc3ec7e4..b9756228e9c 100644 --- a/fs/xfs/xfs_dir2_sf.c +++ b/fs/xfs/xfs_dir2_sf.c @@ -278,7 +278,7 @@ xfs_dir2_block_to_sf(  	 * Set up to loop over the block's entries.  	 */  	btp = xfs_dir2_block_tail_p(mp, hdr); -	ptr = (char *)(hdr + 1); +	ptr = (char *)xfs_dir3_data_entry_p(hdr);  	endptr = (char *)xfs_dir2_block_leaf_p(btp);  	sfep = xfs_dir2_sf_firstentry(sfp);  	/*  |