From 617851f39581fdb134d5efe2450de26c78b69b0a Mon Sep 17 00:00:00 2001 From: Tao Ma Date: Thu, 6 Nov 2008 08:10:48 +0800 Subject: [PATCH] --- yaml --- r: 125786 b: refs/heads/master c: 757055adc5d41b910bdead925060f077dd2d9169 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/ocfs2/xattr.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 0de63c0a6c62..66d2b2c87c41 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1c32a2fd46ddc01bd86bff56a8f5d98c815750f4 +refs/heads/master: 757055adc5d41b910bdead925060f077dd2d9169 diff --git a/trunk/fs/ocfs2/xattr.c b/trunk/fs/ocfs2/xattr.c index 87cf39ddfe5b..d8fc714e9415 100644 --- a/trunk/fs/ocfs2/xattr.c +++ b/trunk/fs/ocfs2/xattr.c @@ -219,8 +219,10 @@ static int ocfs2_init_xattr_bucket(struct ocfs2_xattr_bucket *bucket, break; } - ocfs2_set_new_buffer_uptodate(bucket->bu_inode, - bucket->bu_bhs[i]); + if (!ocfs2_buffer_uptodate(bucket->bu_inode, + bucket->bu_bhs[i])) + ocfs2_set_new_buffer_uptodate(bucket->bu_inode, + bucket->bu_bhs[i]); } if (rc)