diff options
Diffstat (limited to 'fs/xfs/xfs_dir2_data.c')
-rw-r--r-- | fs/xfs/xfs_dir2_data.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/fs/xfs/xfs_dir2_data.c b/fs/xfs/xfs_dir2_data.c index 13fa0d6b4ff7..32d657fbe6a4 100644 --- a/fs/xfs/xfs_dir2_data.c +++ b/fs/xfs/xfs_dir2_data.c | |||
@@ -68,17 +68,10 @@ __xfs_dir3_data_check( | |||
68 | hdr = bp->b_addr; | 68 | hdr = bp->b_addr; |
69 | 69 | ||
70 | /* | 70 | /* |
71 | * We can be passed a null dp here from a verifier, so manually | 71 | * We can be passed a null dp here from a verifier, so we need to go the |
72 | * configure the ops here in that case. | 72 | * hard way to get them. |
73 | */ | 73 | */ |
74 | if (dp) | 74 | ops = xfs_dir_get_ops(mp, dp); |
75 | ops = dp->d_ops; | ||
76 | else if (xfs_sb_version_hascrc(&mp->m_sb)) | ||
77 | ops = &xfs_dir3_ops; | ||
78 | else if (xfs_sb_version_hasftype(&mp->m_sb)) | ||
79 | ops = &xfs_dir2_ftype_ops; | ||
80 | else | ||
81 | ops = &xfs_dir2_ops; | ||
82 | 75 | ||
83 | switch (hdr->magic) { | 76 | switch (hdr->magic) { |
84 | case cpu_to_be32(XFS_DIR3_BLOCK_MAGIC): | 77 | case cpu_to_be32(XFS_DIR3_BLOCK_MAGIC): |