From patchwork Mon Sep 27 15:44:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Schoenebeck X-Patchwork-Id: 12520275 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 51EFEC433F5 for ; Mon, 27 Sep 2021 16:12:07 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F12B360D42 for ; Mon, 27 Sep 2021 16:12:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org F12B360D42 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=crudebyte.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:50620 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUtEb-0003Ei-SQ for qemu-devel@archiver.kernel.org; Mon, 27 Sep 2021 12:12:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39072) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUtDR-0001lZ-Cw for qemu-devel@nongnu.org; Mon, 27 Sep 2021 12:10:53 -0400 Received: from lizzy.crudebyte.com ([91.194.90.13]:46877) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUtDP-0001HP-J0 for qemu-devel@nongnu.org; Mon, 27 Sep 2021 12:10:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=crudebyte.com; s=lizzy; h=Cc:To:Content-Transfer-Encoding:Content-Type: MIME-Version:Subject:Date:From:Message-Id:References:In-Reply-To:Content-ID: Content-Description; bh=cEB90n12CFLufNveNchkBneeRL/hOHPUm8TTP0y+nII=; b=nRfHp 5LDbiuUjhBa0evbtR4/gGVaP0AEGycSEHX/Vq0hbv/2mrC77d+GPHuMXyZQyz0XplPog1m41SE/gb 5bD/xo4GFpdIVbDZ2BijRGZZCTz4cO0h3VdwYO75W83PMXVq7QQLv79VRbUyuRNkF8iE+GxChudJF cRnPp5DXaX0W1IKe4zRTDMQOCinFeqo57jfAsjcotGOL/pRfnDFAysFVa+HypMNS8zDexk7gnRaIF 3tdveiv9r+tY/vgoShXo4K4XTLUCPoMbkvmxuUSInj+AjpyH3EAoc2yYGFCmQGBVqy/Zhz6oIVqXB ppmFWzFnsNmpDryCrAVW2VEGfRTEQ==; Message-Id: From: Christian Schoenebeck Date: Mon, 27 Sep 2021 17:44:59 +0200 Subject: [PATCH 0/2] 9pfs: iounit cleanup MIME-Version: 1.0 To: qemu-devel@nongnu.org Cc: =?unknown-8bit?b?R3JlZyBLdXJ6IDxncm91Z0BrYW9kLm9yZz4s?= =?unknown-8bit?q?_Philippe_Mathieu-Daud=C3=A9_=3Cphilmd=40redhat=2Ecom=3E?= Received-SPF: none client-ip=91.194.90.13; envelope-from=b84eb324d2ebdcc6f9c442c97b5b4d01eecb4f43@lizzy.crudebyte.com; helo=lizzy.crudebyte.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Two pure refactoring code cleanup patches regarding iounit calculation, no behaviour change. Christian Schoenebeck (2): 9pfs: deduplicate iounit code 9pfs: simplify blksize_to_iounit() hw/9pfs/9p.c | 41 +++++++++++++++++++---------------------- 1 file changed, 19 insertions(+), 22 deletions(-)