diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2018-05-01 04:55:36 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-05-22 20:27:55 +0200 |
commit | 686bb96d1bddac7b3f4029bb7bd0a268fce45f03 (patch) | |
tree | 98c9fa567dff7ca90f5feb2d77919e68710902a8 /fs/adfs | |
parent | romfs_lookup: switch to d_splice_alias() (diff) | |
download | linux-686bb96d1bddac7b3f4029bb7bd0a268fce45f03.tar.xz linux-686bb96d1bddac7b3f4029bb7bd0a268fce45f03.zip |
adfs_lookup_byname: .. *is* taken care of in fs/namei.c
Cc: Russell King <linux@armlinux.org.uk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/adfs')
-rw-r--r-- | fs/adfs/dir.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/fs/adfs/dir.c b/fs/adfs/dir.c index 29444c83da48..77a2d6ca3c60 100644 --- a/fs/adfs/dir.c +++ b/fs/adfs/dir.c @@ -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); |