Whamcloud - gitweb
LU-4853 ldiskfs: fix race in ldiskfs_ext_new_extent_cb
[fs/lustre-release.git] / ldiskfs / kernel_patches / patches / sles11sp2 / ext4-misc.patch
index efa3eae..6e5e191 100644 (file)
@@ -99,7 +99,7 @@
 +
 +      if (path) {
 +              /* probably there is space in leaf? */
-+              depth = ext_depth(inode);
++              depth = path->p_depth;
 +              if (le16_to_cpu(path[depth].p_hdr->eh_entries)
 +                              < le16_to_cpu(path[depth].p_hdr->eh_max))
 +                      return 1;