Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2496019rdb; Wed, 21 Feb 2024 09:16:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXqB6XFHkzvw+w+/nSftFUoUOBalPlhAXl5e7a070WrJku1pIQXBKdtMLu0EIFrJhJRAsxZFFXuAC4V/dIJH4sdcgMyna8/3uswUFIqZg== X-Google-Smtp-Source: AGHT+IFMR+cR88DgX9kSfAKFkVa6k5umY0C4EEd+t+48gpoEnbquc1IcriHXXA+h6CEm2S3/ESYW X-Received: by 2002:a17:90a:744e:b0:29a:1ad0:632 with SMTP id o14-20020a17090a744e00b0029a1ad00632mr1812228pjk.39.1708535780903; Wed, 21 Feb 2024 09:16:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708535780; cv=pass; d=google.com; s=arc-20160816; b=U8K8ETcSxt00TM/YUec2C1M1uaFhyM9iDjkPw0esvvgY/Y5Y7ScMCFDwK73trcGOwS 7ry7MAZgdO2h+HrpcylTf3FItvCsl6rZE3zuuIGyLxlZ0L79s0zx6oYv4SWoigrHpI93 hWXxQD0PLC+viLrwkOzHenUXiEAkCxZVWiS7usY8drCAfb6a5Ozk9iLLh3a26n7LEXgj 4JQxFMUc5SzNdCzt4ZmNl03JPIIZbAzX1pYS4lE7p5h46rr6AfDM5t4RXT0hxlLICWl2 D/OJIiSsqK/93eNGL6S77HHmD4c41ObFTrmPq2TJJ1uoa4GgQmQNM0isL6ykdUZy52rt lvIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=RVHkl1+gHuQ53whsCv6aHWAEO4kmheKoUmT6NcMFQk8=; fh=8tdzVCq0eMaTapAm4yEzDtdxr6Vp38VIgLMUbBssKM0=; b=ylbCBtdnbXPRZ/DbKWOJ8H8MuyRs8HJwT2K/c4s1XW/z4yL8PwD66orFoUMsl2r/0i hrdUcDii4mqd1AbxoPeDCbht+2Jm/wpYBZ6lCVR8dFj2FHdSRvTo9jhPddLkHP65Rpjm a9CaARhQJOwZwO02VOrwACKxwekKtNHz8D9mLoq8FNxVHID3D3kE4QjWI/YKV0fQ1ktq zLn9gJqDvf71SwmyfZKNSTG65J9mdlmDf/bCUlA1fgHXENkJV5wfRnIzm62MGg7ZbaGG fn2+1QYZT+5if77oCPOwFpfZ6AiPMuhckjCa/vZ3W4JXehfbind/laJhIs7BPtdNL5d7 WC5A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-ext4+bounces-1350-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1350-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id gt14-20020a17090af2ce00b002995d9514dasi1860765pjb.119.2024.02.21.09.16.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 09:16:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-1350-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-ext4+bounces-1350-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1350-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id BB084B22540 for ; Wed, 21 Feb 2024 17:15:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1CE5984FD2; Wed, 21 Feb 2024 17:14:53 +0000 (UTC) X-Original-To: linux-ext4@vger.kernel.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5DEA683CA4; Wed, 21 Feb 2024 17:14:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708535692; cv=none; b=Ts6f2FFAoG5Zs86Q/8DaoVyFdiBoldn+Rk76ELF7nY6p6i5rcv0PoSMVSyWHk7qkcdh/IBR2eflBSSUMQyXTi1w5/Hzuof8WT++LfjtJy7fjEliunXw/VV7fwtimBsoYQbhcMycGm+RKBaiNSqalfhhE2TJg/jb71lSZlbK6gZk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708535692; c=relaxed/simple; bh=1Ao/c/JxfzxL9II9Yp4/ihYQEUaG7i9u2Xgh2Znp3r4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DF53FKBjWeq5bz8WeizEwHYuzp2fz/VrRSKKBxMR1gyStwnSZQ3cchBNQfW8hDcGMEfDfbyFPzOuYK2iSMDdQP7BtAraQL+t48yrqfBdAbB4PRbX8Viw132PFuIUfxGtfvFIJuSDpEA3lStMthD/wdZGVmhO+11O+9LWsBMD7tM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 8156422053; Wed, 21 Feb 2024 17:14:49 +0000 (UTC) Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 4842E139D0; Wed, 21 Feb 2024 17:14:49 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id +R+oC4kv1mV8KgAAD6G6ig (envelope-from ); Wed, 21 Feb 2024 17:14:49 +0000 From: Gabriel Krisman Bertazi To: ebiggers@kernel.org, viro@zeniv.linux.org.uk, jaegeuk@kernel.org Cc: tytso@mit.edu, amir73il@gmail.com, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, brauner@kernel.org, Gabriel Krisman Bertazi Subject: [PATCH v7 09/10] ubifs: Configure dentry operations at dentry-creation time Date: Wed, 21 Feb 2024 12:14:11 -0500 Message-ID: <20240221171412.10710-10-krisman@suse.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240221171412.10710-1-krisman@suse.de> References: <20240221171412.10710-1-krisman@suse.de> Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Level: Authentication-Results: smtp-out1.suse.de; none X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [-4.00 / 50.00]; REPLY(-4.00)[] X-Spam-Score: -4.00 X-Rspamd-Queue-Id: 8156422053 X-Spam-Flag: NO fscrypt now supports configuring dentry operations at dentry-creation time through the preset sb->s_d_op, instead of at lookup time. Enable this in ubifs, since the lookup-time mechanism is going away. Signed-off-by: Gabriel Krisman Bertazi --- fs/ubifs/dir.c | 1 - fs/ubifs/super.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c index 3b13c648d490..51b9a10a9851 100644 --- a/fs/ubifs/dir.c +++ b/fs/ubifs/dir.c @@ -205,7 +205,6 @@ static struct dentry *ubifs_lookup(struct inode *dir, struct dentry *dentry, dbg_gen("'%pd' in dir ino %lu", dentry, dir->i_ino); err = fscrypt_prepare_lookup(dir, dentry, &nm); - generic_set_encrypted_ci_d_ops(dentry); if (err == -ENOENT) return d_splice_alias(NULL, dentry); if (err) diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index 09e270d6ed02..304646b03e99 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c @@ -2239,6 +2239,7 @@ static int ubifs_fill_super(struct super_block *sb, void *data, int silent) goto out_umount; } + generic_set_sb_d_ops(sb); sb->s_root = d_make_root(root); if (!sb->s_root) { err = -ENOMEM; -- 2.43.0