diff options
author | Eric Biggers <ebiggers@google.com> | 2022-12-23 12:36:36 -0800 |
---|---|---|
committer | Eric Biggers <ebiggers@google.com> | 2023-01-09 19:06:09 -0800 |
commit | feb0576a361aacaf12c49e66d32e293a0f3a2e64 (patch) | |
tree | a2c282b6a997c513e505b45bf76e55e3d8832684 /fs/f2fs/data.c | |
parent | 5e122148a3d573a66f47f826168a3c23a321ac9d (diff) | |
download | linux-stable-feb0576a361aacaf12c49e66d32e293a0f3a2e64.tar.gz linux-stable-feb0576a361aacaf12c49e66d32e293a0f3a2e64.tar.bz2 linux-stable-feb0576a361aacaf12c49e66d32e293a0f3a2e64.zip |
f2fs: simplify f2fs_readpage_limit()
Now that the implementation of FS_IOC_ENABLE_VERITY has changed to not
involve reading back Merkle tree blocks that were previously written,
there is no need for f2fs_readpage_limit() to allow for this case.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Tested-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Link: https://lore.kernel.org/r/20221223203638.41293-10-ebiggers@kernel.org
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r-- | fs/f2fs/data.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 6e43e19c7d1c..6c403e22002d 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -2053,8 +2053,7 @@ out: static inline loff_t f2fs_readpage_limit(struct inode *inode) { - if (IS_ENABLED(CONFIG_FS_VERITY) && - (IS_VERITY(inode) || f2fs_verity_in_progress(inode))) + if (IS_ENABLED(CONFIG_FS_VERITY) && IS_VERITY(inode)) return inode->i_sb->s_maxbytes; return i_size_read(inode); |