diff options
Diffstat (limited to 'fs/gfs2/dir.c')
-rw-r--r-- | fs/gfs2/dir.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/gfs2/dir.c b/fs/gfs2/dir.c index f793e31a050e..2beb2f401aa2 100644 --- a/fs/gfs2/dir.c +++ b/fs/gfs2/dir.c | |||
@@ -1498,9 +1498,10 @@ struct inode *gfs2_dir_search(struct inode *dir, const struct qstr *name) | |||
1498 | if (dent) { | 1498 | if (dent) { |
1499 | if (IS_ERR(dent)) | 1499 | if (IS_ERR(dent)) |
1500 | return ERR_PTR(PTR_ERR(dent)); | 1500 | return ERR_PTR(PTR_ERR(dent)); |
1501 | inode = gfs2_inode_lookup(dir->i_sb, | 1501 | inode = gfs2_inode_lookup(dir->i_sb, |
1502 | be64_to_cpu(dent->de_inum.no_addr), | 1502 | be16_to_cpu(dent->de_type), |
1503 | be16_to_cpu(dent->de_type)); | 1503 | be64_to_cpu(dent->de_inum.no_addr), |
1504 | be64_to_cpu(dent->de_inum.no_formal_ino)); | ||
1504 | brelse(bh); | 1505 | brelse(bh); |
1505 | return inode; | 1506 | return inode; |
1506 | } | 1507 | } |