From patchwork Fri Mar 23 20:14:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Salisbury X-Patchwork-Id: 890210 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 407FBm5hn9z9s1j; Sat, 24 Mar 2018 07:14:56 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1ezT5Q-0003Tu-Lk; Fri, 23 Mar 2018 20:14:52 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.86_2) (envelope-from ) id 1ezT5M-0003SZ-AK for kernel-team@lists.ubuntu.com; Fri, 23 Mar 2018 20:14:48 +0000 Received: from 1.general.jsalisbury.us.vpn ([10.172.67.212] helo=salisbury) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1ezT5L-0001T5-W0 for kernel-team@lists.ubuntu.com; Fri, 23 Mar 2018 20:14:48 +0000 Received: by salisbury (Postfix, from userid 1000) id EC1D07E27B8; Fri, 23 Mar 2018 16:14:46 -0400 (EDT) From: Joseph Salisbury To: kernel-team@lists.ubuntu.com Subject: [SRU][Artful][PATCH 0/2] Fixes for LP:1757565 Date: Fri, 23 Mar 2018 16:14:44 -0400 Message-Id: X-Mailer: git-send-email 2.7.4 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: http://bugs.launchpad.net/bugs/1757565 == SRU Justification == This bug causes btrfs and tar sparse to truncate archives. This bug has been fixed in v4.15-rc3 by commit e3b8a4858566, which has a prereq commit of f48bf66b662e. These commits were cc'd to upstream stable and are already in Bionic. However, upstream 4.13 is EOL, so Artful never recieved the fixes, which is the reason for the SRU request. == Fixes == f48bf66b662e ("Btrfs: move definition of the function btrfs_find_new_delalloc_bytes") e3b8a4858566 ("Btrfs: fix reported number of inode blocks after buffered append writes") == Regression Potential == Low. This fix was also sent and accepted to stable, so it has had additional upstream review. == Test Case == A test kernel was built with these patches and tested by the original bug reporter. The bug reporter states the test kernel resolved the bug. Filipe Manana (2): Btrfs: move definition of the function btrfs_find_new_delalloc_bytes Btrfs: fix reported number of inode blocks after buffered append writes fs/btrfs/ctree.h | 1 + fs/btrfs/extent_io.h | 5 +- fs/btrfs/file.c | 125 +++++++++++++++++++++------------------ fs/btrfs/inode.c | 9 +-- fs/btrfs/relocation.c | 3 +- fs/btrfs/tests/extent-io-tests.c | 6 +- fs/btrfs/tests/inode-tests.c | 12 ++-- 7 files changed, 87 insertions(+), 74 deletions(-) Acked-by: Stefan Bader Acked-by: Kleber Sacilotto de Souza