ext4: get rid of EXT4_MAP_UNINIT flag
authorLukas Czerner <lczerner@redhat.com>
Mon, 21 Apr 2014 03:44:47 +0000 (23:44 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 21 Apr 2014 03:44:47 +0000 (23:44 -0400)
commit090f32ee4ef0a59c738963c6b0a6948cc5dee84c
tree1607ea017a0ba3d4373dd91a5b0d39c6bd64377f
parent9ac03675010a69507c0a9d832d6a722e07d35cc6
ext4: get rid of EXT4_MAP_UNINIT flag

Currently EXT4_MAP_UNINIT is used in dioread_nolock case to mark the
cases where we're using dioread_nolock and we're writing into either
unallocated, or unwritten extent, because we need to make sure that
any DIO write into that inode will wait for the extent conversion.

However EXT4_MAP_UNINIT is not only entirely misleading name but also
unnecessary because we can check for EXT4_MAP_UNWRITTEN in the
dioread_nolock case instead.

This commit removes EXT4_MAP_UNINIT flag.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/extents.c
fs/ext4/inode.c
include/trace/events/ext4.h