OSDN Git Service

Fix calculation of dentry size
authorColin Cross <ccross@android.com>
Thu, 5 Aug 2010 18:56:38 +0000 (11:56 -0700)
committerColin Cross <ccross@android.com>
Thu, 5 Aug 2010 21:38:47 +0000 (14:38 -0700)
commit6bd2b5d80db5630cb73e3e5a4be3b38afa241c5a
treeeb95b397af1cbfc69091324f65173f88862b81af
parent7eb4165b83ca3724b64c8925fa530362b6072bc2
Fix calculation of dentry size

The PAD_TO function was incorrectly handling values that were already
aligned, which could lead to overruns of the dentry block.  Fix the
function, rename it to ALIGN, move it to ext4_utils.h, and use it
everywhere the dentry size is calculated.

Change-Id: Ie9778d2c6f72d3db9a3162e52882377a71b8420a
ext4_utils/contents.c
ext4_utils/ext4_utils.h