From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1A661C6379D for ; Tue, 24 Nov 2020 10:46:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DCC6420BED for ; Tue, 24 Nov 2020 10:46:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732233AbgKXKqA (ORCPT ); Tue, 24 Nov 2020 05:46:00 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:8022 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731398AbgKXKp7 (ORCPT ); Tue, 24 Nov 2020 05:45:59 -0500 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CgLJy2SSXzhYsf; Tue, 24 Nov 2020 18:45:38 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.178.208) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.487.0; Tue, 24 Nov 2020 18:45:47 +0800 From: Zhen Lei To: "Darrick J . Wong" , Brian Foster , linux-xfs , linux-kernel CC: Zhen Lei Subject: [PATCH 0/2] xfs: check krealloc() return value and simplify code Date: Tue, 24 Nov 2020 18:45:29 +0800 Message-ID: <20201124104531.561-1-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.174.178.208] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Zhen Lei (2): xfs: check the return value of krealloc() xfs: remove the extra processing of zero size in xfs_idata_realloc() fs/xfs/libxfs/xfs_inode_fork.c | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) -- 2.26.0.106.g9fadedd