Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1347670 > unrolled thread

[PATCH 3.10 50/80] Btrfs: fix number of transaction units required to create symlink

Started byGreg Kroah-Hartman <gregkh@linuxfoundation.org>
First post2016-03-02 03:30 +0100
Last post2016-03-02 03:30 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3.10 50/80] Btrfs: fix number of transaction units required to create symlink Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2016-03-02 03:30 +0100

#1347670 — [PATCH 3.10 50/80] Btrfs: fix number of transaction units required to create symlink

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2016-03-02 03:30 +0100
Subject[PATCH 3.10 50/80] Btrfs: fix number of transaction units required to create symlink
Message-ID<r84I1-18B-7@gated-at.bofh.it>
3.10-stable review patch.  If anyone has any objections, please let me know.

------------------

From: Filipe Manana <fdmanana@suse.com>

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 <fdmanana@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
 fs/btrfs/inode.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -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);
 

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web