From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail333.us4.mandrillapp.com ([205.201.137.77]:45751 "EHLO mail333.us4.mandrillapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753223AbcCAScg (ORCPT ); Tue, 1 Mar 2016 13:32:36 -0500 Received: from pmta03.dal05.mailchimp.com (127.0.0.1) by mail333.us4.mandrillapp.com id hqng48174nod for ; Tue, 1 Mar 2016 18:32:35 +0000 (envelope-from ) From: Subject: Patch "Btrfs: fix number of transaction units required to create symlink" has been added to the 4.4-stable tree To: , Cc: , Message-Id: <145685715160241@kroah.com> Date: Tue, 01 Mar 2016 18:32:35 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: stable-owner@vger.kernel.org List-ID: This is a note to let you know that I've just added the patch titled Btrfs: fix number of transaction units required to create symlink to the 4.4-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: btrfs-fix-number-of-transaction-units-required-to-create-symlink.patch and it can be found in the queue-4.4 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >>From 9269d12b2d57d9e3d13036bb750762d1110d425c Mon Sep 17 00:00:00 2001 From: Filipe Manana Date: Thu, 31 Dec 2015 18:16:29 +0000 Subject: Btrfs: fix number of transaction units required to create symlink From: Filipe Manana commit 9269d12b2d57d9e3d13036bb750762d1110d425c upstream. We weren't accounting for the insertion of an inline extent item for the symlink inode nor that we need to update the parent inode item (through the call to btrfs_add_nondir()). So fix this by including two more transaction units. Signed-off-by: Filipe Manana Signed-off-by: Greg Kroah-Hartman --- fs/btrfs/inode.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -9663,9 +9663,11 @@ static int btrfs_symlink(struct inode *d /* * 2 items for inode item and ref * 2 items for dir items + * 1 item for updating parent inode item + * 1 item for the inline extent item * 1 item for xattr if selinux is on */ - trans = btrfs_start_transaction(root, 5); + trans = btrfs_start_transaction(root, 7); if (IS_ERR(trans)) return PTR_ERR(trans); Patches currently in stable-queue which might be from fdmanana@suse.com are queue-4.4/btrfs-fix-transaction-handle-leak-on-failure-to-create-hard-link.patch queue-4.4/btrfs-fix-number-of-transaction-units-required-to-create-symlink.patch queue-4.4/btrfs-send-don-t-bug_on-when-an-empty-symlink-is-found.patch