]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - fs/ext4/mballoc.c
ext4: make sure ex.fe_logical is initialized
authorTheodore Ts'o <tytso@mit.edu>
Thu, 20 Feb 2014 05:36:41 +0000 (00:36 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 20 Feb 2014 05:36:41 +0000 (00:36 -0500)
commitab0c00fccf81dcf1dc5db0e389294ffea53be666
tree390722ab5f30854c0c780837c707f1e9193b51b4
parent7b1b2c1b9c397dcb86293ae79aa7fb7c5446120f
ext4: make sure ex.fe_logical is initialized

The lowest levels of mballoc set all of the fields of struct
ext4_free_extent except for fe_logical, since they are just trying to
find the requested free set of blocks, and the logical block hasn't
been set yet.  This makes some static code checkers sad.  Set it to
various different debug values, which would be useful when
debugging mballoc if these values were to ever show up due to the
parts of mballoc triyng to use ac->ac_b_ex.fe_logical before it is
properly upper layers of mballoc failing to properly set, usually by
ext4_mb_use_best_found().

Addresses-Coverity-Id: #139697
Addresses-Coverity-Id: #139698
Addresses-Coverity-Id: #139699

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/mballoc.c