Whamcloud - gitweb
LU-5726 ldiskfs: missed brelse() in large EA patch
[fs/lustre-release.git] / ldiskfs / kernel_patches / patches / rhel6.3 / ext4-large-eas.patch
index 955d223..53e0e03 100644 (file)
@@ -634,7 +634,7 @@ Index: linux-stage/fs/ext4/xattr.c
                        new_offs = le16_to_cpu(last->e_value_offs) +
                                                        value_offs_shift;
                        BUG_ON(new_offs + le32_to_cpu(last->e_value_size)
-@@ -1356,20 +1667,89 @@ cleanup:
+@@ -1356,20 +1667,92 @@ cleanup:
        return error;
  }
  
@@ -720,10 +720,13 @@ Index: linux-stage/fs/ext4/xattr.c
 +              if (entry->e_value_inum == 0)
 +                      continue;
 +              if (ext4_expand_ino_array(lea_ino_array,
-+                                        entry->e_value_inum) != 0)
++                                        entry->e_value_inum) != 0) {
++                      brelse(iloc.bh);
 +                      goto cleanup;
++              }
 +              entry->e_value_inum = 0;
 +      }
++      brelse(iloc.bh);
  
 +delete_external_ea:
        if (!EXT4_I(inode)->i_file_acl)