diff options
author | Guoqing Jiang <guoqing.jiang@linux.dev> | 2022-09-18 13:52:19 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2022-10-01 05:46:54 +0200 |
commit | 78ed9354c57f31000e88783496fc84dce7c8021c (patch) | |
tree | db2cf93a940bb409e94d61d568e522c953583843 /fs | |
parent | jbd2: add miss release buffer head in fc_do_one_pass() (diff) | |
download | linux-78ed9354c57f31000e88783496fc84dce7c8021c.tar.xz linux-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 <guoqing.jiang@linux.dev>
Link: https://lore.kernel.org/r/20220918115219.12407-1-guoqing.jiang@linux.dev
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to '')
-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; |