Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3112247pxk; Mon, 21 Sep 2020 05:41:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAmNa5XKnr5e82RJMNhvoy5da+Cu3lz1l8AVneWI66G+YPGb0oCOsmRrQ+YP7H0KsTkmSQ X-Received: by 2002:a17:906:aec1:: with SMTP id me1mr33313517ejb.225.1600692086449; Mon, 21 Sep 2020 05:41:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600692086; cv=none; d=google.com; s=arc-20160816; b=TrxAkDuVmQ7TsR9xFrQSWg3mmNTSAIaVNMfy/UfQRRO8mnV1jKAx1Sd2aNENZnrJes CtNp4cCvzHR6h1xK2yqn5IWMFbWdk2ume+CS4wUPZkB6CJJjWkRS4xKk9zAOz+XG6I7W WUoDVewJAs6LqtwmsvwQ2o1FnZMfMvZ/gMGIGPvzaLVIC6kXmumb150pPF8FePY52ONN JeprsyKMVp0+AESyJOX0doQJKmwLGud5+BZB1RzNLP/1/p90/x0dx4z17PSq6omgdn0h Eg3YCWdLQSO0H3pQ3b8/88RdERPJSoq5kd9o7Sz9Txbbw0roIAuOAp6tai9biMyyXAU6 Fddg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=RxBzkcSrN7pZ9NWdtrHP8vt5ewrPMRAGJOG21exiRBE=; b=0/A1CBLwN486oiZvXnp9Vbv3/mq1SlFIECbdr2PMgjaUtgn22PiLuOUau/lI8lehBG lHowcB6gW1p3jilL2922cue7MHrt+A5GTcViPkp1naH9lWPUUwOTRoCbub+myygzfW7Z 2AmY/tHEthAIRPiQUUjDEw/JHrtLewH5LR1phYTsM58Haa5xfcj7G+MCDjPOrFdHhtAi 4ld6ddzDRLtTfX5t24wcXMMMn9LJQouRE66qpf6YpoZgsRoHPebhtC8tqRKpxIJWl+m/ KLodkhInZk5uitRtJpEUXvDx78/sM+yUoGIS9KRI4vmJiFSMldtrTJyl06z9rjEVxMnf 1C5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h22si8351473ejd.367.2020.09.21.05.40.52; Mon, 21 Sep 2020 05:41:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726384AbgIUMkt (ORCPT + 99 others); Mon, 21 Sep 2020 08:40:49 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:36454 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726341AbgIUMkt (ORCPT ); Mon, 21 Sep 2020 08:40:49 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id BF6FD5432D9278035887; Mon, 21 Sep 2020 20:40:47 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.487.0; Mon, 21 Sep 2020 20:40:45 +0800 From: Qilong Zhang To: , CC: Subject: [PATCH -next] ext4: add trace exit in exception path. Date: Mon, 21 Sep 2020 20:47:38 +0800 Message-ID: <20200921124738.23352-1-zhangqilong3@huawei.com> X-Mailer: git-send-email 2.26.0.106.g9fadedd MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.90.53.225] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org From: Zhang Qilong Missing trace exit in exception path of ext4_sync_file and ext4_ind_map_blocks. Signed-off-by: Zhang Qilong --- fs/ext4/fsync.c | 2 +- fs/ext4/indirect.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/ext4/fsync.c b/fs/ext4/fsync.c index 1d668c8f131f..6476994d9861 100644 --- a/fs/ext4/fsync.c +++ b/fs/ext4/fsync.c @@ -150,7 +150,7 @@ int ext4_sync_file(struct file *file, loff_t start, loff_t end, int datasync) ret = file_write_and_wait_range(file, start, end); if (ret) - return ret; + goto out; /* * data=writeback,ordered: diff --git a/fs/ext4/indirect.c b/fs/ext4/indirect.c index 80c9f33800be..1da12c44d6fe 100644 --- a/fs/ext4/indirect.c +++ b/fs/ext4/indirect.c @@ -593,7 +593,8 @@ int ext4_ind_map_blocks(handle_t *handle, struct inode *inode, if (ext4_has_feature_bigalloc(inode->i_sb)) { EXT4_ERROR_INODE(inode, "Can't allocate blocks for " "non-extent mapped inodes with bigalloc"); - return -EFSCORRUPTED; + err = -EFSCORRUPTED; + goto out; } /* Set up for the direct block allocation */ -- 2.17.1