Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755362AbcJUNGD (ORCPT ); Fri, 21 Oct 2016 09:06:03 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:57803 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752343AbcJUNGB (ORCPT ); Fri, 21 Oct 2016 09:06:01 -0400 Date: Fri, 21 Oct 2016 06:05:58 -0700 From: Christoph Hellwig To: Richard Weinberger Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, dedekind1@gmail.com, adrian.hunter@intel.com, tytso@mit.edu, jaegeuk@kernel.org, david@sigma-star.at, wd@denx.de, sbabic@denx.de, dengler@linutronix.de Subject: Re: [PATCH 01/26] fscrypto: Add buffer operations Message-ID: <20161021130558.GA2411@infradead.org> References: <1477054121-10198-1-git-send-email-richard@nod.at> <1477054121-10198-2-git-send-email-richard@nod.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1477054121-10198-2-git-send-email-richard@nod.at> User-Agent: Mutt/1.6.1 (2016-04-27) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 467 Lines: 9 On Fri, Oct 21, 2016 at 02:48:16PM +0200, Richard Weinberger wrote: > Not all filesystems operate on pages, therefore offer > operations to en/decrypt buffers. > Of course these buffers have to be allocated in a way such that > the kernel crypto framework can work with them. Which means they need to be backed by the page allocator eventually. I think we'd better off providing the pages from ubifs from the API point of view. What are the issues with doing that?