diff options
author | Mauro Carvalho Chehab <[email protected]> | 2012-04-16 10:18:12 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2012-05-28 19:10:59 -0300 |
commit | 93e4fe64ece4eccf0ff4ac69bceb389290b8ab7c (patch) | |
tree | 5794c15f0d2c47568e49379b56e9a8d139532050 /fs/jbd2/commit.c | |
parent | a895bf8b1e1ea4c032a8fa8a09475a2ce09fe77a (diff) |
edac: rewrite edac_align_ptr()
The edac_align_ptr() function is used to prepare data for a single
memory allocation kzalloc() call. It counts how many bytes are needed
by some data structure.
Using it as-is is not that trivial, as the quantity of memory elements
reserved is not there, but, instead, it is on a next call.
In order to avoid mistakes when using it, move the number of allocated
elements into it, making easier to use it.
Reviewed-by: Borislav Petkov <[email protected]>
Cc: Aristeu Rozanski <[email protected]>
Cc: Doug Thompson <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions