]> git.baikalelectronics.ru Git - kernel.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)
commit9d488deec71451527ee592d2570c0b744268583c
tree46f138fb80ce3c179ee96b6b6ce039d47022ed26
parent342dde6f00b17d20ee1d1b704fb03b4019ba7373
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