Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp426403pxu; Thu, 26 Nov 2020 02:11:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJzGqvfba9WswY34vyydAyzrHfqbhKZMUP6H/2MaheeumzCu+Tkq2AKV0r8PzSW3QMqDalma X-Received: by 2002:a50:9eae:: with SMTP id a43mr1746147edf.109.1606385482249; Thu, 26 Nov 2020 02:11:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606385482; cv=none; d=google.com; s=arc-20160816; b=p12WGzcg8ILph6TM3m1e4GL645drWB0AYMVtkdDjfBuKjO82Y2M2rHBF8mmpCzbD8/ 5Tfop76zGsFueHdENk9Sy63EMKfjc0ht/6Uk8VHRvkq3fMdPN0iLL9Viw07PFNG3VipH PhNrWJZsF4b7pGxUoORJ+zkkMONVKDgrl474B3+3LlmJN9IB+f9IAJl+zl1j2o3AkAFr DJAWFgowOxlllTPlY8yIOOU90Cdf1P6Vdu77lDNFYKBf6aegwajcA4zIZuz0gzBkvDeY rMRVroZ97Qsq6LVXOaSDAmPhTUtOTz4UO8cAVIrkK/S44W0N1kVO+uXN24Obf1a6Cz43 JKDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=+2uWi4z4Wlf1VXLPSu+J9lzezHiGWHAbNt3wIxtGuTk=; b=wChDWhUmqtJJuwGfW5IfCkHcfHseUBEPOeDLkvncTgE0Lc22cYp6nZlEKzj8ZfZINC o0h0Je7CJdHCFnmtVhZ4zIQlc6aj+JWdlH0HqGB4tsE1ywBfdNGP0zFNFtjaJIwnxCwq QccR5KSUGoVp6u8CwTIK34+5ibKieE54UVoIlEX3pJ1dfxx4k52p3BmQaRpkztU+h7qm T+CWYWQyF3qiozTvnE5/aCoUothfX5DBVnr2vJbt83jhxzLn50M2DGJBJVmNWZlASUnd K7imigHY9jKx2ZbezeOFYpV+fExuvAaGCMYniC5HN0NlMWeAEJjdlsxmp4U7voBRJmKi 9tVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bz2si2856901ejc.558.2020.11.26.02.10.50; Thu, 26 Nov 2020 02:11:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388250AbgKZHFC (ORCPT + 99 others); Thu, 26 Nov 2020 02:05:02 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:7991 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388248AbgKZHFC (ORCPT ); Thu, 26 Nov 2020 02:05:02 -0500 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4ChTK73XWYzhhl6; Thu, 26 Nov 2020 15:04:43 +0800 (CST) Received: from [10.136.114.67] (10.136.114.67) by smtp.huawei.com (10.3.19.211) with Microsoft SMTP Server (TLS) id 14.3.487.0; Thu, 26 Nov 2020 15:04:56 +0800 Subject: Re: [PATCH 2/9] f2fs: remove f2fs_dir_open() To: Eric Biggers , CC: , , , References: <20201125002336.274045-1-ebiggers@kernel.org> <20201125002336.274045-3-ebiggers@kernel.org> From: Chao Yu Message-ID: <9522461b-b854-76ac-29c7-160f0f078823@huawei.com> Date: Thu, 26 Nov 2020 15:04:55 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20201125002336.274045-3-ebiggers@kernel.org> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.136.114.67] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On 2020/11/25 8:23, Eric Biggers wrote: > From: Eric Biggers > > Since encrypted directories can be opened without their encryption key > being available, and each readdir tries to set up the key, trying to set readdir -> readdir/lookup? > up the key in ->open() too isn't really useful. > > Just remove it so that directories don't need an ->open() method > anymore, and so that we eliminate a use of fscrypt_get_encryption_info() > (which I'd like to stop exporting to filesystems). > > Signed-off-by: Eric Biggers Reviewed-by: Chao Yu Thanks,