Skip to content

Commit

Permalink
adfs_lookup_byname: .. *is* taken care of in fs/namei.c
Browse files Browse the repository at this point in the history
Cc: Russell King <[email protected]>
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed May 22, 2018
1 parent 8130c15 commit 686bb96
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions fs/adfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,20 +146,6 @@ adfs_dir_lookup_byname(struct inode *inode, const struct qstr *name, struct obje

obj->parent_id = inode->i_ino;

/*
* '.' is handled by reserved_lookup() in fs/namei.c
*/
if (name->len == 2 && name->name[0] == '.' && name->name[1] == '.') {
/*
* Currently unable to fill in the rest of 'obj',
* but this is better than nothing. We need to
* ascend one level to find it's parent.
*/
obj->name_len = 0;
obj->file_id = obj->parent_id;
goto free_out;
}

read_lock(&adfs_dir_lock);

ret = ops->setpos(&dir, 0);
Expand Down

0 comments on commit 686bb96

Please sign in to comment.