diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ocfs2/xattr.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/ocfs2/xattr.c b/fs/ocfs2/xattr.c index 87cf39ddfe5b..d8fc714e9415 100644 --- a/fs/ocfs2/xattr.c +++ b/fs/ocfs2/xattr.c | |||
@@ -219,8 +219,10 @@ static int ocfs2_init_xattr_bucket(struct ocfs2_xattr_bucket *bucket, | |||
219 | break; | 219 | break; |
220 | } | 220 | } |
221 | 221 | ||
222 | ocfs2_set_new_buffer_uptodate(bucket->bu_inode, | 222 | if (!ocfs2_buffer_uptodate(bucket->bu_inode, |
223 | bucket->bu_bhs[i]); | 223 | bucket->bu_bhs[i])) |
224 | ocfs2_set_new_buffer_uptodate(bucket->bu_inode, | ||
225 | bucket->bu_bhs[i]); | ||
224 | } | 226 | } |
225 | 227 | ||
226 | if (rc) | 228 | if (rc) |