From patchwork Thu Jan 24 06:35:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hou Tao X-Patchwork-Id: 10778411 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 CDEFD13B4 for ; Thu, 24 Jan 2019 06:31:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BCB312E0DF for ; Thu, 24 Jan 2019 06:31:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BAE042E119; Thu, 24 Jan 2019 06:31:43 +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=-7.9 required=2.0 tests=BAYES_00,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 2B3672E12A for ; Thu, 24 Jan 2019 06:31:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726170AbfAXGbm (ORCPT ); Thu, 24 Jan 2019 01:31:42 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:48876 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725287AbfAXGbm (ORCPT ); Thu, 24 Jan 2019 01:31:42 -0500 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 07442F6C8B18EE4F8CA6; Thu, 24 Jan 2019 14:31:38 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.408.0; Thu, 24 Jan 2019 14:31:29 +0800 From: Hou Tao To: CC: , , , , , Subject: [PATCH v3 0/2] use i_lock to protect updates of i_blocks & Date: Thu, 24 Jan 2019 14:35:12 +0800 Message-ID: <20190124063514.8571-1-houtao1@huawei.com> X-Mailer: git-send-email 2.16.2.dirty MIME-Version: 1.0 X-Originating-IP: [10.90.53.225] X-CFilter-Loop: Reflected 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 The updates of i_blocks & i_size are buggy under 32-bit case, so fix them accordingly. Hou Tao (2): 9p: use inode->i_lock to protect i_size_write() under 32-bit 9p: use i_lock to protect update of inode->i_blocks under 32-bit fs/9p/v9fs_vfs.h | 32 ++++++++++++++++++++++++++++++-- fs/9p/vfs_file.c | 6 +++++- fs/9p/vfs_inode.c | 26 +++++++++++++------------- fs/9p/vfs_inode_dotl.c | 35 +++++++++++++++++++---------------- fs/9p/vfs_super.c | 4 ++-- 5 files changed, 69 insertions(+), 34 deletions(-)