From mboxrd@z Thu Jan 1 00:00:00 1970 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 11022368283 for ; Tue, 18 Nov 2025 16:01:01 +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=1763481666; cv=none; b=Xg307yvDb0axKO2gRe/4J6T14VyFsFBRHScdJPJvYvFtRgZdwtdMBH9PpSbGrhcq8sxeU5x6nhUlg5EQ81/RM277+HgUcxJWs8PoyhV7kmWwwc1vu9x9DuXImZylLta5eWzG/jeLxYpxJpIheiFDju9/3ZQkNBxzPA6bkmeZ5Kw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763481666; c=relaxed/simple; bh=G/PcL32W6pN6LJNIU48lHEYBuakJhvRcUWn4ANif34c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Mo6sZko7qW+JhgtfOfKbXfUNOZWRd4K+ScxixbTdNyt3Jl789IhsDTYLQF+xBkC8zgGEYs3lOKSpSVL1tyHn7wtanOSU3sJlRG8h5ds6T6PmO/AfnErkZTs5LiU2H5SA9gICwFRoZBHpJfNNl+BFRJNNZmjgfrjGbLCnORuXgtQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=SYd3M0L/; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=SYd3M0L/; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="SYd3M0L/"; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="SYd3M0L/" Received: from imap1.dmz-prg2.suse.org (unknown [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 4713E21213; Tue, 18 Nov 2025 16:01:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1763481660; 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; bh=f1yQrO6NNXsyK4sDSdaeK2nzBywWbKW9HcWTS+j25H8=; b=SYd3M0L/PGYwZOrnWn2WcCc92FToUSznRJKpUdF3czJyFmYpNrWLS0h+1WgoYarc4BzGkA yWdCjQyvO9VEhEdBiNBHgE8Ovcw8By+Q0D9xC8ByrsBvyn1/OGQ+X3Y0s7OSQO9qp83Twv fQ9Yj0UH4r5J5tRHPJxZ/5Ln75BUwlQ= Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1763481660; 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; bh=f1yQrO6NNXsyK4sDSdaeK2nzBywWbKW9HcWTS+j25H8=; b=SYd3M0L/PGYwZOrnWn2WcCc92FToUSznRJKpUdF3czJyFmYpNrWLS0h+1WgoYarc4BzGkA yWdCjQyvO9VEhEdBiNBHgE8Ovcw8By+Q0D9xC8ByrsBvyn1/OGQ+X3Y0s7OSQO9qp83Twv fQ9Yj0UH4r5J5tRHPJxZ/5Ln75BUwlQ= 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 2F3B33EA61; Tue, 18 Nov 2025 16:01:00 +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 nJGyCjyYHGkSWgAAD6G6ig (envelope-from ); Tue, 18 Nov 2025 16:01:00 +0000 From: Daniel Vacek To: Chris Mason , Josef Bacik , David Sterba Cc: Daniel Vacek , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v7 0/7] btrfs: add fscrypt support, PART 1 Date: Tue, 18 Nov 2025 17:00:35 +0100 Message-ID: <20251118160043.3005684-1-neelx@suse.com> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-2.80 / 50.00]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_DN_SOME(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.com:mid]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FUZZY_RATELIMITED(0.00)[rspamd.com]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; RCPT_COUNT_FIVE(0.00)[6]; RCVD_TLS_ALL(0.00)[] X-Spam-Flag: NO X-Spam-Score: -2.80 X-Spam-Level: This is a revive of former work [1] of Omar, Sweet Tea and Josef to bring native encryption support to btrfs. It will come in more parts. The first part this time is splitting the simple and isolated stuff out first to reduce the size of the final patchset. Changes: * v7 - Drop the checksum patch for now. It will make more sense later. - Drop the btrfs/330 fix. It seems no longer needed after the years. * v6 vs v5 [1] is mostly rebase to the latest for-next and cleaning up the conflicts. The remaining part needs further cleanup and a bit of redesign and it will follow later. [1] https://lore.kernel.org/linux-btrfs/cover.1706116485.git.josef@toxicpanda.com/ Josef Bacik (4): btrfs: add orig_logical to btrfs_bio btrfs: don't rewrite ret from inode_permission btrfs: move inode_to_path higher in backref.c btrfs: don't search back for dir inode item in INO_LOOKUP_USER Omar Sandoval (1): btrfs: disable various operations on encrypted inodes Sweet Tea Dorminy (1): btrfs: disable verity on encrypted inodes fs/btrfs/backref.c | 68 +++++++++++++++++++++----------------------- fs/btrfs/bio.c | 10 +++++++ fs/btrfs/bio.h | 2 ++ fs/btrfs/file-item.c | 2 +- fs/btrfs/inode.c | 4 +++ fs/btrfs/ioctl.c | 27 +++--------------- fs/btrfs/reflink.c | 7 +++++ fs/btrfs/verity.c | 3 ++ 8 files changed, 63 insertions(+), 60 deletions(-) -- 2.51.0