diff options
author | Dave Chinner <dchinner@redhat.com> | 2013-04-03 01:11:20 -0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2013-04-27 12:51:56 -0400 |
commit | f5f3d9b0161633e8943520e83df634ad540b3b7f (patch) | |
tree | bd1a014fd6472904e53d7680e5692b49431ca6ab /fs/xfs/xfs_dir2_node.c | |
parent | f948dd76dde021c050c7c35720dc066a8b9a5e35 (diff) |
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_node.c')
-rw-r--r-- | fs/xfs/xfs_dir2_node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_dir2_node.c b/fs/xfs/xfs_dir2_node.c index 5980f9b7fa9b..985d70bc391d 100644 --- a/fs/xfs/xfs_dir2_node.c +++ b/fs/xfs/xfs_dir2_node.c | |||
@@ -1588,7 +1588,7 @@ xfs_dir2_node_addname_int( | |||
1588 | if (unlikely((error = xfs_dir2_grow_inode(args, | 1588 | if (unlikely((error = xfs_dir2_grow_inode(args, |
1589 | XFS_DIR2_DATA_SPACE, | 1589 | XFS_DIR2_DATA_SPACE, |
1590 | &dbno)) || | 1590 | &dbno)) || |
1591 | (error = xfs_dir2_data_init(args, dbno, &dbp)))) | 1591 | (error = xfs_dir3_data_init(args, dbno, &dbp)))) |
1592 | return error; | 1592 | return error; |
1593 | 1593 | ||
1594 | /* | 1594 | /* |