]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/ocfs2/xattr.c
ocfs2/xattr: Only set buffer update if it doesn't exist in cache.
[linux-2.6-omap-h63xx.git] / fs / ocfs2 / xattr.c
index 87cf39ddfe5b75934dceb3f08907905a2403b097..d8fc714e941576be4484e385c65212d6f6f05521 100644 (file)
@@ -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)