From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from zeniv.linux.org.uk ([195.92.253.2]:41086 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751884AbeEMVaT (ORCPT ); Sun, 13 May 2018 17:30:19 -0400 From: Al Viro To: linux-fsdevel@vger.kernel.org Cc: Russell King Subject: [PATCH 12/15] adfs_lookup_byname: .. *is* taken care of in fs/namei.c Date: Sun, 13 May 2018 22:30:14 +0100 Message-Id: <20180513213017.31269-12-viro@ZenIV.linux.org.uk> In-Reply-To: <20180513213017.31269-1-viro@ZenIV.linux.org.uk> References: <20180513212612.GV30522@ZenIV.linux.org.uk> <20180513213017.31269-1-viro@ZenIV.linux.org.uk> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: From: Al Viro Cc: Russell King Signed-off-by: Al Viro --- fs/adfs/dir.c | 14 -------------- 1 file changed, 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); -- 2.11.0