Skip to content

Commit

Permalink
attempt to make DEBUG build (buildbots) happy:
Browse files Browse the repository at this point in the history
pad[PAGE_SIZE] to pad[4096]

(how about archs other than x86, x86_64 ?)
  • Loading branch information
kernelOfTruth committed Mar 23, 2015
1 parent 8e99d78 commit e19172f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion include/sys/abd.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,20 @@ extern "C" {
#define PAGE_SIZE 4096
#endif

#ifndef PAGE_SHIFT
#define PAGE_SHIFT 12
#endif

#ifdef ZFS_DEBUG
#define DEBUG_ABD
#define PAGE_SHIFT 12
#endif

#endif /* !_KERNEL */

typedef struct arc_buf_data {
#ifdef DEBUG_ABD
char pad[PAGE_SIZE]; /* debug, coredumps when accessed */
char pad[4096]; /* debug, coredumps when accessed */
#endif
uint32_t abd_magic; /* ARC_BUF_DATA_MAGIC */
uint32_t abd_flags;
Expand Down

1 comment on commit e19172f

@kernelOfTruth
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

edit:

scrap that - not updating commit messages & commit contents can lead to quite a confusion

Working as Intended™

Please sign in to comment.