Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2803297rdb; Mon, 12 Feb 2024 18:21:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWXV3zyxLwZrKB8wC0wG+n2y5v0AH5Xzug1Arw8Qu1Ckho1h3dqz770va/m7usebo3ryv5RRBskK0/rOKiI3wwu7nl4Q9OcdA/+Xi9bpw== X-Google-Smtp-Source: AGHT+IGU/3Maoxb/eMVZhTJdVRhPKvGRnvRExSKUwNJq5xZZHb+t8QH27hKAif5so7w9bwXgl84D X-Received: by 2002:a05:6512:1248:b0:511:7c91:21d3 with SMTP id fb8-20020a056512124800b005117c9121d3mr7181577lfb.26.1707790873735; Mon, 12 Feb 2024 18:21:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707790873; cv=pass; d=google.com; s=arc-20160816; b=egJah2EU6EM2Emrs4fPc/utHazhtVVYv/nVxUta7oUJxw51MBAs6R/lnTKIQpVS8hw JUoF4dqD5sRAYNIBHI/ojTKWyMpIbnpAWRQppHJfywelVtJZ4e3G6N3k+fFrVvdKwUPE XCxRyQytjHskHOxSY0d/1oMu99Yph6YWdZsY8DYshOVV2cXT1TWADCJ/stYEOnCfJdUw 7QsE+n18v2zVfivgdgUOxOPfulm5fyDHERp0lvoHMjoFhOoX5O5tJDfMhGO9i6BUWNYr N4rMr2vXRPULza4YhALqJpD4OTVROPVAO/JwnmuFj+kRhk/zPLfis2oEW6yh937pnjOs ep5Q== 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:dkim-signature:dkim-signature :dkim-signature:dkim-signature; bh=RVHkl1+gHuQ53whsCv6aHWAEO4kmheKoUmT6NcMFQk8=; fh=KLlnIxMdH4IDdYjPbaqLzmRmHrU21olJIpV5hIDy4W8=; b=g6ZLuC6UHw9sN5Y4UCLn6fnF9wzBOdS7hnFob0XKEY4q0Sz+ofQpzgeINpnxTQGhEg xyRwJRrT1pJa2pFrSaNuctFCZOekUsWDnOGRHusphb0606MYYNz8r3ZAWTeh9akPI/Hy TigDg5EqwJzBK8wNySyqd2KlZdW/FFHNMSvZ73Vl6mBfP40Ay9xP+P/88TWcY95T3H3G h7HwdUaHQWNOFwGzGqWu288ClAmvUEiYWlyy02FDh3vguBp2Ae1JC04u0p/MN0LqpgkY Jmwd57XIIjA4o8lBSeHaj0nl+Z0sIFceEUkIE0EUsexggajCiuauuVYab2M+d9Uuyy6X wcdw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Rsrh2VJx; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Rsrh2VJx; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-ext4+bounces-1213-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1213-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de X-Forwarded-Encrypted: i=2; AJvYcCXn0bvFbThgCiG4qV64DAEMiM5FI8a4DSMG49zefSS022mCAaTz1cfUAj2e0r+86D289UD3xLN0KKnBK0pxwRJpg6T2Q6ubmpORoL68UQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id l18-20020a1709065a9200b00a3c00b1fd6dsi772888ejq.771.2024.02.12.18.21.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 18:21:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-1213-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Rsrh2VJx; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Rsrh2VJx; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-ext4+bounces-1213-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1213-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (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 am.mirrors.kernel.org (Postfix) with ESMTPS id AE6A11F26327 for ; Tue, 13 Feb 2024 02:14:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E6DD48F77; Tue, 13 Feb 2024 02:14:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="Rsrh2VJx"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="8UdpJYFW"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="Rsrh2VJx"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="8UdpJYFW" X-Original-To: linux-ext4@vger.kernel.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (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 03BF6610E; Tue, 13 Feb 2024 02:13:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707790440; cv=none; b=KEbMlFA83r35I3PGr2qD6OkJ8gqCRem4tdqKCemG6wZLqNiFTXZicoqM3mMIIPr1VQeSZ7NeTMB7YD8ZBiJRE/H0l5iRg4GD+7766VdsCltDVepVF4u7fiRPONF8sLc5Vr3Cy9bknjdihT0ncUCN5V/Ba0jXeaU+Hk+McKE1khA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707790440; c=relaxed/simple; bh=1Ao/c/JxfzxL9II9Yp4/ihYQEUaG7i9u2Xgh2Znp3r4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bJ9NW9sYCOXbe8Nub4M0S2YRZL7L0P+LLlvD07DDmOnWRkqiERPNcGfPFxl2mPH6poEcloIIijAYMg2dsu9cCEjwTpGvx6/zIoRye+aWkBl3xRfim7qHVNW2h6lSiBIyg13GYBjPDgTtu7bjgQ/34rO6l6+nPYyoHJpeUGKjhuA= 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; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=Rsrh2VJx; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=8UdpJYFW; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=Rsrh2VJx; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=8UdpJYFW; arc=none smtp.client-ip=195.135.223.131 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 [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-out2.suse.de (Postfix) with ESMTPS id 78E971F7A0; Tue, 13 Feb 2024 02:13:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1707790437; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RVHkl1+gHuQ53whsCv6aHWAEO4kmheKoUmT6NcMFQk8=; b=Rsrh2VJx29Ga0UNe29VajDeeb5BJPu+sCIp7TaVJbtcS3C6Jfa9eeYpvuC88gaVQU4UYng H2Lat5/i1aIrjRatyM3v3zIxuXA+7/PTKBm6hxmcRAF8G8zB4WGR5OWJBec6mkHGQ3CiGs BUdccngycvE6o5KrvzVcmNlzQI7Vvxo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1707790437; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RVHkl1+gHuQ53whsCv6aHWAEO4kmheKoUmT6NcMFQk8=; b=8UdpJYFWgLqiQlzE5nhvo48s8dVJdo+nALXqbJ0aMcVBPCE0QJls536A/6TlvudvvH6UkS o2z0D8XJUMXXAOCA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1707790437; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RVHkl1+gHuQ53whsCv6aHWAEO4kmheKoUmT6NcMFQk8=; b=Rsrh2VJx29Ga0UNe29VajDeeb5BJPu+sCIp7TaVJbtcS3C6Jfa9eeYpvuC88gaVQU4UYng H2Lat5/i1aIrjRatyM3v3zIxuXA+7/PTKBm6hxmcRAF8G8zB4WGR5OWJBec6mkHGQ3CiGs BUdccngycvE6o5KrvzVcmNlzQI7Vvxo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1707790437; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RVHkl1+gHuQ53whsCv6aHWAEO4kmheKoUmT6NcMFQk8=; b=8UdpJYFWgLqiQlzE5nhvo48s8dVJdo+nALXqbJ0aMcVBPCE0QJls536A/6TlvudvvH6UkS o2z0D8XJUMXXAOCA== 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 3E28E13A4B; Tue, 13 Feb 2024 02:13:57 +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 mzjuCGXQymUveAAAD6G6ig (envelope-from ); Tue, 13 Feb 2024 02:13:57 +0000 From: Gabriel Krisman Bertazi To: ebiggers@kernel.org, viro@zeniv.linux.org.uk Cc: jaegeuk@kernel.org, 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 v6 09/10] ubifs: Configure dentry operations at dentry-creation time Date: Mon, 12 Feb 2024 21:13:20 -0500 Message-ID: <20240213021321.1804-10-krisman@suse.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240213021321.1804-1-krisman@suse.de> References: <20240213021321.1804-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 Authentication-Results: smtp-out2.suse.de; none X-Spamd-Result: default: False [4.90 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; R_MISSING_CHARSET(2.50)[]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; BROKEN_CONTENT_TYPE(1.50)[]; R_RATELIMIT(0.00)[to_ip_from(RLzk7q5dcbbphp39zi8hi5jhbt)]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; RCPT_COUNT_SEVEN(0.00)[10]; MID_CONTAINS_FROM(1.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_CC(0.00)[kernel.org,mit.edu,gmail.com,vger.kernel.org,lists.sourceforge.net,suse.de]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-0.00)[19.78%] X-Spam-Level: **** X-Spam-Score: 4.90 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