Skip to contentSkip to conversation

Patch "Btrfs: fix number of transaction units required to create symlink" has been added to the 3.10-stable tree

PATCH [email protected] 1 participant 1 message Mar 1, 2016

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

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 3.10-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-3.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From 9269d12b2d57d9e3d13036bb750762d1110d425c Mon Sep 17 00:00:00 2001

From: Filipe Manana <[email protected]>
Date: Thu, 31 Dec 2015 18:16:29 +0000
Subject: Btrfs: fix number of transaction units required to create symlink

From: Filipe Manana <[email protected]>

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.

---
 fs/btrfs/inode.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
fs/btrfs/inode.c +3 -1
@@ -8487,9 +8487,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 [email protected] are

queue-3.10/btrfs-fix-number-of-transaction-units-required-to-create-symlink.patch queue-3.10/btrfs-send-don-t-bug_on-when-an-empty-symlink-is-found.patch