Skip to content
Commit 8bc3b1e6 authored by David Moore's avatar David Moore Committed by Theodore Ts'o
Browse files

ext4: BUG_ON assertion repeated for inode1, not done for inode2



During a source code review of fs/ext4/extents.c I noted identical
consecutive lines. An assertion is repeated for inode1 and never done
for inode2. This is not in keeping with the rest of the code in the
ext4_swap_extents function and appears to be a bug.

Assert that the inode2 mutex is not locked.

Signed-off-by: default avatarDavid Moore <dmoorefo@gmail.com>
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
Reviewed-by: default avatarEric Sandeen <sandeen@redhat.com>
parent ad0a0ce8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment