• yangerkun's avatar
    ext4: fix check of inode in swap_inode_boot_loader · 67a11611
    yangerkun authored
    Before really do swap between inode and boot inode, something need to
    check to avoid invalid or not permitted operation, like does this inode
    has inline data. But the condition check should be protected by inode
    lock to avoid change while swapping. Also some other condition will not
    change between swapping, but there has no problem to do this under inode
    lock.
    Signed-off-by: default avataryangerkun <yangerkun@huawei.com>
    Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
    Cc: stable@kernel.org
    67a11611
ioctl.c 28 KB