diff options
| author | Guoqing Jiang <[email protected]> | 2022-09-18 11:52:19 +0000 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2022-10-01 03:46:54 +0000 |
| commit | 78ed9354c57f31000e88783496fc84dce7c8021c (patch) | |
| tree | db2cf93a940bb409e94d61d568e522c953583843 | |
| parent | jbd2: add miss release buffer head in fc_do_one_pass() (diff) | |
| download | kernel-78ed9354c57f31000e88783496fc84dce7c8021c.tar.gz kernel-78ed9354c57f31000e88783496fc84dce7c8021c.zip | |
ext4: remove redundant checking in ext4_ioctl_checkpoint
It is already checked after comment "check for invalid bits set",
so let's remove this one.
Signed-off-by: Guoqing Jiang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
| -rw-r--r-- | fs/ext4/ioctl.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/ext4/ioctl.c b/fs/ext4/ioctl.c index ad3a294a88eb..4d49c5cfb690 100644 --- a/fs/ext4/ioctl.c +++ b/fs/ext4/ioctl.c @@ -1063,9 +1063,6 @@ static int ext4_ioctl_checkpoint(struct file *filp, unsigned long arg) if (!EXT4_SB(sb)->s_journal) return -ENODEV; - if (flags & ~EXT4_IOC_CHECKPOINT_FLAG_VALID) - return -EINVAL; - if ((flags & JBD2_JOURNAL_FLUSH_DISCARD) && !bdev_max_discard_sectors(EXT4_SB(sb)->s_journal->j_dev)) return -EOPNOTSUPP; |
