diff options
Diffstat (limited to 'fs/ocfs2/export.c')
| -rw-r--r-- | fs/ocfs2/export.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/fs/ocfs2/export.c b/fs/ocfs2/export.c index bc48177bd183..c3bbc198f9ce 100644 --- a/fs/ocfs2/export.c +++ b/fs/ocfs2/export.c | |||
| @@ -88,8 +88,6 @@ static struct dentry *ocfs2_get_parent(struct dentry *child) | |||
| 88 | struct dentry *parent; | 88 | struct dentry *parent; |
| 89 | struct inode *inode; | 89 | struct inode *inode; |
| 90 | struct inode *dir = child->d_inode; | 90 | struct inode *dir = child->d_inode; |
| 91 | struct buffer_head *dirent_bh = NULL; | ||
| 92 | struct ocfs2_dir_entry *dirent; | ||
| 93 | 91 | ||
| 94 | mlog_entry("(0x%p, '%.*s')\n", child, | 92 | mlog_entry("(0x%p, '%.*s')\n", child, |
| 95 | child->d_name.len, child->d_name.name); | 93 | child->d_name.len, child->d_name.name); |
| @@ -105,8 +103,7 @@ static struct dentry *ocfs2_get_parent(struct dentry *child) | |||
| 105 | goto bail; | 103 | goto bail; |
| 106 | } | 104 | } |
| 107 | 105 | ||
| 108 | status = ocfs2_find_files_on_disk("..", 2, &blkno, dir, &dirent_bh, | 106 | status = ocfs2_lookup_ino_from_name(dir, "..", 2, &blkno); |
| 109 | &dirent); | ||
| 110 | if (status < 0) { | 107 | if (status < 0) { |
| 111 | parent = ERR_PTR(-ENOENT); | 108 | parent = ERR_PTR(-ENOENT); |
| 112 | goto bail_unlock; | 109 | goto bail_unlock; |
| @@ -131,9 +128,6 @@ static struct dentry *ocfs2_get_parent(struct dentry *child) | |||
| 131 | bail_unlock: | 128 | bail_unlock: |
| 132 | ocfs2_meta_unlock(dir, 0); | 129 | ocfs2_meta_unlock(dir, 0); |
| 133 | 130 | ||
| 134 | if (dirent_bh) | ||
| 135 | brelse(dirent_bh); | ||
| 136 | |||
| 137 | bail: | 131 | bail: |
| 138 | mlog_exit_ptr(parent); | 132 | mlog_exit_ptr(parent); |
| 139 | 133 | ||
