From patchwork Thu Apr 18 18:41:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: hubcap@kernel.org X-Patchwork-Id: 10907873 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2CAFF1515 for ; Thu, 18 Apr 2019 18:43:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 167F428D5D for ; Thu, 18 Apr 2019 18:43:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0B0CB28D60; Thu, 18 Apr 2019 18:43:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A0B6F28D5D for ; Thu, 18 Apr 2019 18:43:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390028AbfDRSnA (ORCPT ); Thu, 18 Apr 2019 14:43:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:60848 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390020AbfDRSnA (ORCPT ); Thu, 18 Apr 2019 14:43:00 -0400 Received: from localhost.localdomain (unknown [24.213.116.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 31C63217D7; Thu, 18 Apr 2019 18:42:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555612979; bh=e9qYp9DqQomhNOjIfUMGW3bstG/kjVq6mH2Arzg6t/Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m4HapY9nu9lwWH5EkWxS21h+7rqP2AFM0utbw4BUuKEMYJWZdBU8nEh+cONqVqgmu Tezx2gJiVoEykOh/9U4CdElTmfmu76eXQxLFLO92qMf9N8VyYKzjqvPjAPFJv4FxVz F2fK+ZEhSRZfzUzfdxaAzK4dk6cVnDRqWzf2lDt4= From: hubcap@kernel.org To: linux-fsdevel@vger.kernel.org, christoph@lameter.com Cc: Martin Brandenburg , Mike Marshall Subject: [PATCH 18/22] orangefs: implement writepages Date: Thu, 18 Apr 2019 14:41:10 -0400 Message-Id: <20190418184113.9152-19-hubcap@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190418184113.9152-1-hubcap@kernel.org> References: <20190418184113.9152-1-hubcap@kernel.org> MIME-Version: 1.0 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 From: Martin Brandenburg Go through pages and look for a consecutive writable region. After finding a number of consecutive writable pages or when finding that the next page's dirty range is not contiguous and cannot be written as one request, send the write to the server. The number of pages is determined by the client-core's buffer size. Signed-off-by: Martin Brandenburg Signed-off-by: Mike Marshall --- fs/orangefs/file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/orangefs/file.c b/fs/orangefs/file.c index f409ac5d3410..405449ce4b02 100644 --- a/fs/orangefs/file.c +++ b/fs/orangefs/file.c @@ -386,6 +386,7 @@ static int orangefs_file_release(struct inode *inode, struct file *file) gossip_debug(GOSSIP_INODE_DEBUG, "flush_racache finished\n"); } + } return 0; }