OSDN Git Service

adfs_lookup_byname: .. *is* taken care of in fs/namei.c
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 1 May 2018 02:55:36 +0000 (22:55 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 22 May 2018 18:27:55 +0000 (14:27 -0400)
Cc: Russell King <linux@armlinux.org.uk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/adfs/dir.c

index 29444c8..77a2d6c 100644 (file)
@@ -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);