mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 04:34:03 +02: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:
parent
bb6d648782
commit
a31b8fee3f
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user