Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c
  2. index 4133bc461e3e..b12506fb0a2d 100644
  3. --- a/fs/xfs/libxfs/xfs_bmap.c
  4. +++ b/fs/xfs/libxfs/xfs_bmap.c
  5. @@ -6087,6 +6087,8 @@ __xfs_bmap_add(
  6. bmap->br_state);
  7.  
  8. bi = kmem_alloc(sizeof(struct xfs_bmap_intent), KM_SLEEP | KM_NOFS);
  9. + memset32((uint32_t *)bi, 0xabcddcba, sizeof(struct xfs_bmap_intent)/4);
  10. + printk(KERN_INFO "__xfs_bmap_add filling allocation \n");
  11. INIT_LIST_HEAD(&bi->bi_list);
  12. bi->bi_type = type;
  13. bi->bi_owner = ip;
  14. diff --git a/fs/xfs/scrub/bitmap.c b/fs/xfs/scrub/bitmap.c
  15. index fdadc9e1dc49..7c9f396893b2 100644
  16. --- a/fs/xfs/scrub/bitmap.c
  17. +++ b/fs/xfs/scrub/bitmap.c
  18. @@ -192,6 +192,9 @@ xfs_bitmap_disunion(
  19. error = -ENOMEM;
  20. goto out;
  21. }
  22. + memset(new_br, 0x5a, sizeof(struct xfs_bitmap_range));
  23. + printk(KERN_INFO "xfs_bitmap_disunion filling allocation \n");
  24. +
  25. INIT_LIST_HEAD(&new_br->list);
  26. new_br->start = sub_start + sub_len;
  27. new_br->len = br->start + br->len - new_br->start;
  28. diff --git a/fs/xfs/xfs_attr_inactive.c b/fs/xfs/xfs_attr_inactive.c
  29. index 228821b2ebe0..bcdfff7801f9 100644
  30. --- a/fs/xfs/xfs_attr_inactive.c
  31. +++ b/fs/xfs/xfs_attr_inactive.c
  32. @@ -153,6 +153,8 @@ xfs_attr3_leaf_inactive(
  33. */
  34. size = count * sizeof(xfs_attr_inactive_list_t);
  35. list = kmem_alloc(size, KM_SLEEP);
  36. + memset32((uint32_t *)list, 0xdeadbeef, size/4);
  37. + printk(KERN_INFO "xfs_attr3_leaf_inactive filling list \n");
  38.  
  39. /*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement