diff options
| author | Theodore Ts'o <[email protected]> | 2012-12-11 08:31:49 +0000 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2012-12-11 08:31:49 +0000 |
| commit | bd9926e80330d43f15b710c2935fa41b792d56fd (patch) | |
| tree | ccc30335831784996b7435d10df39ee14e92afad /fs/proc/array.c | |
| parent | ext4: ensure Inode flags consistency are checked at build time (diff) | |
| download | kernel-bd9926e80330d43f15b710c2935fa41b792d56fd.tar.gz kernel-bd9926e80330d43f15b710c2935fa41b792d56fd.zip | |
ext4: zero out inline data using memset() instead of empty_zero_page
Not all architectures (in particular, sparc64) have empty_zero_page.
So instead of copying from empty_zero_page, use memset to clear the
inline data by signalling to ext4_xattr_set_entry() via a magic
pointer value, EXT4_ZERO_ATTR_VALUE, which is defined by casting -1 to
a pointer.
This fixes a build failure on sparc64, and the memset() should be more
efficient than using memcpy() anyway.
Signed-off-by: Tao Ma <[email protected]>
Signed-off-by: "Theodore Ts'o" <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
