ext4: use unsigned int for es_status values
authorTheodore Ts'o <tytso@mit.edu>
Sat, 17 Aug 2013 01:22:41 +0000 (21:22 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 17 Aug 2013 01:22:41 +0000 (21:22 -0400)
commit3be78c73179c9347bdc0a92b2898063bd2300ff7
treeeb4147818a58e3dd80300fd09fc94ad344480231
parentc349179b4808f7c8e1ff1b4dd967c047eefd24bc
ext4: use unsigned int for es_status values

Don't use an unsigned long long for the es_status flags; this requires
that we pass 64-bit values around which is painful on 32-bit systems.
Instead pass the extent status flags around using the low 4 bits of an
unsigned int, and shift them into place when we are reading or writing
es_pblk.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Zheng Liu <wenqing.lz@taobao.com>
fs/ext4/extents_status.c
fs/ext4/extents_status.h
fs/ext4/inode.c
include/trace/events/ext4.h