diff options
-rw-r--r-- | fs/xfs/libxfs/xfs_inode_buf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_inode_buf.c b/fs/xfs/libxfs/xfs_inode_buf.c index 977245de8953..37ee7f01a35d 100644 --- a/fs/xfs/libxfs/xfs_inode_buf.c +++ b/fs/xfs/libxfs/xfs_inode_buf.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include "xfs_icache.h" | 29 | #include "xfs_icache.h" |
30 | #include "xfs_trans.h" | 30 | #include "xfs_trans.h" |
31 | #include "xfs_ialloc.h" | 31 | #include "xfs_ialloc.h" |
32 | #include "xfs_dir2.h" | ||
32 | 33 | ||
33 | /* | 34 | /* |
34 | * Check that none of the inode's in the buffer have a next | 35 | * Check that none of the inode's in the buffer have a next |
@@ -398,6 +399,8 @@ xfs_dinode_verify( | |||
398 | return false; | 399 | return false; |
399 | 400 | ||
400 | mode = be16_to_cpu(dip->di_mode); | 401 | mode = be16_to_cpu(dip->di_mode); |
402 | if (mode && xfs_mode_to_ftype(mode) == XFS_DIR3_FT_UNKNOWN) | ||
403 | return false; | ||
401 | 404 | ||
402 | /* No zero-length symlinks/dirs. */ | 405 | /* No zero-length symlinks/dirs. */ |
403 | if ((S_ISLNK(mode) || S_ISDIR(mode)) && dip->di_size == 0) | 406 | if ((S_ISLNK(mode) || S_ISDIR(mode)) && dip->di_size == 0) |