Skip to content

Commit 0955901

Browse files
committed
ext4: fix flags validity checking for EXT4_IOC_CHECKPOINT
Use the correct bitmask when checking for any not-yet-supported flags. Link: https://lore.kernel.org/r/20210702173425.1276158-1-tytso@mit.edu Fixes: 351a0a3 ("ext4: add ioctl EXT4_IOC_CHECKPOINT") Signed-off-by: Theodore Ts'o <tytso@mit.edu> Reviewed-by: Leah Rumancik <leah.rumancik@gmail.com>
1 parent 61bb4a1 commit 0955901

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/ext4/ioctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ static int ext4_ioctl_checkpoint(struct file *filp, unsigned long arg)
823823
if (!EXT4_SB(sb)->s_journal)
824824
return -ENODEV;
825825

826-
if (flags & ~JBD2_JOURNAL_FLUSH_VALID)
826+
if (flags & ~EXT4_IOC_CHECKPOINT_FLAG_VALID)
827827
return -EINVAL;
828828

829829
q = bdev_get_queue(EXT4_SB(sb)->s_journal->j_dev);

0 commit comments

Comments
 (0)