mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 22:54:17 -04:00
f2fs: Update outdated comment in f2fs_write_begin()
Refer to f2fs_set_bio_crypt_ctx() instead of the removed function f2fs_encrypt_one_page(). Reviewed-by: Christoph Hellwig <hch@lst.de> Link: https://patch.msgid.link/20260718214655.63186-3-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@kernel.org>
This commit is contained in:
@@ -3956,7 +3956,7 @@ static int f2fs_write_begin(const struct kiocb *iocb,
|
||||
/*
|
||||
* Although the block may be stored in the COW inode, the folio
|
||||
* belongs to @inode and its data was encrypted (or not) using
|
||||
* @inode's context (see f2fs_encrypt_one_page()). Read with
|
||||
* @inode's context (see f2fs_set_bio_crypt_ctx()). Read with
|
||||
* @inode so the post-read decryption decision matches the
|
||||
* folio's owner; otherwise an unencrypted @inode whose COW inode
|
||||
* is encrypted hits a NULL ->i_crypt_info on decryption.
|
||||
|
||||
Reference in New Issue
Block a user