From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6803B3FB059; Mon, 2 Mar 2026 14:27:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772461642; cv=none; b=OApW7cXz6LBq+nip1tUu9Z2vNZStM0nz0qHOBkYRlGYxizcp1X4DgzjqWYi/ahtxfXzbRwURVRoMM/DARJTwu1YQrIlNx5OCK/P9tAFAKsUIli5amx/MUrBiI8wUv+FP87D3g7EQTVH8ujJ8dYAER0WUTy0q4GPjrzWwA6/xgf0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772461642; c=relaxed/simple; bh=wW9EUyVuujXOwrypBxDwFKywJlhyz1UK5BScvNNRfRE=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=ZnLwegMxn0NB8Nlb7Ooc5NPxtwSHu5OSjBdB5LPOz03Ne92wuujnbsbYu0BQO2lcvyas21i53eLWzRMPrxDWFfkZlAUoZNnG8qOVJtLurNW+pYNrm+9WjjChqUsQdy7ABUx/Yzv9y4cffH6dKs6nhIGh6Zr+fgnnaxWQTwxh3zc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 9364F68B05; Mon, 2 Mar 2026 15:27:18 +0100 (CET) Date: Mon, 2 Mar 2026 15:27:18 +0100 From: Christoph Hellwig To: Eric Biggers Cc: "Theodore Y. Ts'o" , Jaegeuk Kim , linux-fscrypt@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: dropping the non-inline mode for fscrypt? Message-ID: <20260302142718.GA25174@lst.de> Precedence: bulk X-Mailing-List: linux-fscrypt@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.17 (2007-11-01) After just having run into another issue with missing testing for one of the path, I'd like to ask if we should look into dropping the non-inline mode for block based fscrypt? I did a few simple fio based benchmarks, and writes are a minimal amount fast for the inline mode, while the reverse is true for reads. The big blocker seems to be this comment in fscrypt_select_encryption_impl: /* * When a page contains multiple logically contiguous filesystem blocks, * some filesystem code only calls fscrypt_mergeable_bio() for the first * block in the page. This is fine for most of fscrypt's IV generation * strategies, where contiguous blocks imply contiguous IVs. But it * doesn't work with IV_INO_LBLK_32. For now, simply exclude * IV_INO_LBLK_32 with blocksize != PAGE_SIZE from inline encryption. */ from touching the file system callers lately, the only obvious place for this is fscrypt_zeroout_range_inline_crypt helper, or did I miss anything else? Does anyone have a good xfstests setup for the IV_INO_LBLK_32 mode?