From 336553c762df08b16c1fa6efc86289bf479cd509 Mon Sep 17 00:00:00 2001 From: Tao Ma Date: Wed, 12 Nov 2008 08:26:57 +0800 Subject: [PATCH] --- yaml --- r: 125787 b: refs/heads/master c: 976331d8789d4d84a11b45b87c520ade83715343 h: refs/heads/master i: 125785: bbee5156997fe77dbc42d1e85fabbdad839a1288 125783: df20cc49e6d0715be94c3de7509535ec2510e313 v: v3 --- [refs] | 2 +- trunk/fs/ocfs2/xattr.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 66d2b2c87c41..72dcffd00d1c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 757055adc5d41b910bdead925060f077dd2d9169 +refs/heads/master: 976331d8789d4d84a11b45b87c520ade83715343 diff --git a/trunk/fs/ocfs2/xattr.c b/trunk/fs/ocfs2/xattr.c index d8fc714e9415..4501c63193df 100644 --- a/trunk/fs/ocfs2/xattr.c +++ b/trunk/fs/ocfs2/xattr.c @@ -4564,7 +4564,9 @@ static int ocfs2_xattr_set_entry_index_block(struct inode *inode, free, need, max_free, le16_to_cpu(xh->xh_free_start), le16_to_cpu(xh->xh_name_value_len)); - if (free < need || count == ocfs2_xattr_max_xe_in_bucket(inode->i_sb)) { + if (free < need || + (xs->not_found && + count == ocfs2_xattr_max_xe_in_bucket(inode->i_sb))) { if (need <= max_free && count < ocfs2_xattr_max_xe_in_bucket(inode->i_sb)) { /*