From patchwork Fri May 22 00:40:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaegeuk Kim X-Patchwork-Id: 6460711 Return-Path: X-Original-To: patchwork-linux-fsdevel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 542979F399 for ; Fri, 22 May 2015 00:41:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8193620555 for ; Fri, 22 May 2015 00:41:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8840C20553 for ; Fri, 22 May 2015 00:41:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756287AbbEVAk5 (ORCPT ); Thu, 21 May 2015 20:40:57 -0400 Received: from mail.kernel.org ([198.145.29.136]:47760 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756273AbbEVAkz (ORCPT ); Thu, 21 May 2015 20:40:55 -0400 Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E721620557; Fri, 22 May 2015 00:40:54 +0000 (UTC) Received: from localhost (mobile-166-171-251-146.mycingular.net [166.171.251.146]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 24AD620552; Fri, 22 May 2015 00:40:54 +0000 (UTC) From: Jaegeuk Kim To: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Cc: Jaegeuk Kim Subject: [PATCH 3/3] f2fs crypto: preallocate BIO_MAX_PAGES for writeback Date: Thu, 21 May 2015 17:40:25 -0700 Message-Id: <1432255225-76792-3-git-send-email-jaegeuk@kernel.org> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1432255225-76792-1-git-send-email-jaegeuk@kernel.org> References: <1432255225-76792-1-git-send-email-jaegeuk@kernel.org> X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch changes the number of preallocated pages to BIO_MAX_PAGES to prepare writeback encryption. Signed-off-by: Jaegeuk Kim --- fs/f2fs/crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/crypto.c b/fs/f2fs/crypto.c index 2ceee68..cfe5a04 100644 --- a/fs/f2fs/crypto.c +++ b/fs/f2fs/crypto.c @@ -48,7 +48,7 @@ /* Encryption added and removed here! (L: */ -static unsigned int num_prealloc_crypto_pages = 32; +static unsigned int num_prealloc_crypto_pages = BIO_MAX_PAGES; static unsigned int num_prealloc_crypto_ctxs = 128; module_param(num_prealloc_crypto_pages, uint, 0444);