]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: cleanup flag definitions for extent status tree
authorJan Kara <jack@suse.cz>
Tue, 25 Nov 2014 16:53:47 +0000 (11:53 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 25 Nov 2014 16:53:47 +0000 (11:53 -0500)
commit624d0f1dd7c80d2bac4fc3066b2ff3947f890883
tree46f138fb80ce3c179ee96b6b6ce039d47022ed26
parentdd4759255188771e60cf3455982959a1ba04f4eb
ext4: cleanup flag definitions for extent status tree

Currently flags for extent status tree are defined twice, once shifted
and once without a being shifted. Consolidate these definitions into one
place and make some computations automatic to make adding flags less
error prone. Compiler should be clever enough to figure out these are
constants and generate the same code.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/extents_status.c
fs/ext4/extents_status.h