diff options
author | Eric Sandeen <sandeen@redhat.com> | 2013-11-08 04:22:08 +0100 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-11-08 04:22:08 +0100 |
commit | f2754114400afe38ad5ade3b588451c4f36a61af (patch) | |
tree | ac19f3d62c4d167eefc58392fb6a313cb377296a /fs/ext4/ialloc.c | |
parent | ext4: remove unreachable code in ext4_can_extents_be_merged() (diff) | |
download | linux-f2754114400afe38ad5ade3b588451c4f36a61af.tar.xz linux-f2754114400afe38ad5ade3b588451c4f36a61af.zip |
ext4: remove unreachable code after ext4_can_extents_be_merged()
Commit ec22ba8e ("ext4: disable merging of uninitialized extents")
ensured that if either extent under consideration is uninit, we
decline to merge, and ext4_can_extents_be_merged() returns false.
So there is no need for the caller to then test whether the
extent under consideration is unitialized; if it were, we
wouldn't have gotten that far.
The comments were also inaccurate; ext4_can_extents_be_merged()
no longer XORs the states, it fails if *either* is uninit.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Zheng Liu <wenqing.lz@taobao.com>
Diffstat (limited to 'fs/ext4/ialloc.c')
0 files changed, 0 insertions, 0 deletions