Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

erofs: remove obsoleted comments

Some comments haven't been useful anymore since the code updated.
Let's drop them instead.

Link: https://lore.kernel.org/r/20220506194612.117120-2-hsiangkao@linux.alibaba.com
Reviewed-by: Yue Hu <huyue2@coolpad.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>

-30
-5
fs/erofs/inode.c
··· 8 8 9 9 #include <trace/events/erofs.h> 10 10 11 - /* 12 - * if inode is successfully read, return its inode page (or sometimes 13 - * the inode payload page if it's an extended inode) in order to fill 14 - * inline data if possible. 15 - */ 16 11 static void *erofs_read_inode(struct erofs_buf *buf, 17 12 struct inode *inode, unsigned int *ofs) 18 13 {
-25
fs/erofs/internal.h
··· 381 381 extern const struct address_space_operations erofs_raw_access_aops; 382 382 extern const struct address_space_operations z_erofs_aops; 383 383 384 - /* 385 - * Logical to physical block mapping 386 - * 387 - * Different with other file systems, it is used for 2 access modes: 388 - * 389 - * 1) RAW access mode: 390 - * 391 - * Users pass a valid (m_lblk, m_lofs -- usually 0) pair, 392 - * and get the valid m_pblk, m_pofs and the longest m_len(in bytes). 393 - * 394 - * Note that m_lblk in the RAW access mode refers to the number of 395 - * the compressed ondisk block rather than the uncompressed 396 - * in-memory block for the compressed file. 397 - * 398 - * m_pofs equals to m_lofs except for the inline data page. 399 - * 400 - * 2) Normal access mode: 401 - * 402 - * If the inode is not compressed, it has no difference with 403 - * the RAW access mode. However, if the inode is compressed, 404 - * users should pass a valid (m_lblk, m_lofs) pair, and get 405 - * the needed m_pblk, m_pofs, m_len to get the compressed data 406 - * and the updated m_lblk, m_lofs which indicates the start 407 - * of the corresponding uncompressed data in the file. 408 - */ 409 384 enum { 410 385 BH_Encoded = BH_PrivateStart, 411 386 BH_FullMapped,