From bff0e1a0d88746e4db91f86807b68a5ddb318c2f Mon Sep 17 00:00:00 2001 From: Eric Sandeen Date: Thu, 11 Aug 2011 09:54:31 -0500 Subject: [PATCH] --- yaml --- r: 262759 b: refs/heads/master c: 8c20871998c082f6fbc963f1449a5ba5140ee39a h: refs/heads/master i: 262757: 7821534fc51fd2f325099dbd9f9a4b4b9b658f8f 262755: 296d235cbe406d22d1831533606ea5821c7f08f9 262751: 6ad14e6e5cfdbfe0c1fae400218d2036d2673a0c v: v3 --- [refs] | 2 +- trunk/fs/ext4/namei.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index cab00e43f47c..c7c3a76f5310 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d2db60df1e7eb39cf0f378dfc4dd8813666d46ef +refs/heads/master: 8c20871998c082f6fbc963f1449a5ba5140ee39a diff --git a/trunk/fs/ext4/namei.c b/trunk/fs/ext4/namei.c index 565a154e22d4..f8068c7bae9f 100644 --- a/trunk/fs/ext4/namei.c +++ b/trunk/fs/ext4/namei.c @@ -2253,9 +2253,11 @@ static int ext4_symlink(struct inode *dir, /* * For non-fast symlinks, we just allocate inode and put it on * orphan list in the first transaction => we need bitmap, - * group descriptor, sb, inode block, quota blocks. + * group descriptor, sb, inode block, quota blocks, and + * possibly selinux xattr blocks. */ - credits = 4 + EXT4_MAXQUOTAS_INIT_BLOCKS(dir->i_sb); + credits = 4 + EXT4_MAXQUOTAS_INIT_BLOCKS(dir->i_sb) + + EXT4_XATTR_TRANS_BLOCKS; } else { /* * Fast symlink. We have to add entry to directory