Searched hist:bbe1da7e34ac5a830163bfdfa09cbe3dadfda3ce (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/fs/f2fs/ |
H A D | compress.c | diff bbe1da7e34ac5a830163bfdfa09cbe3dadfda3ce Thu Aug 05 19:02:50 CDT 2021 Chao Yu <chao@kernel.org> f2fs: compress: do sanity check on cluster
This patch adds f2fs_sanity_check_cluster() to support doing sanity check on cluster of compressed file, it will be triggered from below two paths:
- __f2fs_cluster_blocks() - f2fs_map_blocks(F2FS_GET_BLOCK_FIEMAP)
And it can detect below three kind of cluster insanity status.
C: COMPRESS_ADDR N: NULL_ADDR or NEW_ADDR V: valid blkaddr *: any value
1. [*|C|*|*] 2. [C|*|C|*] 3. [C|N|N|V]
Signed-off-by: Chao Yu <chao@kernel.org> [Nathan Chancellor: fix missing inline warning] Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
|
H A D | data.c | diff bbe1da7e34ac5a830163bfdfa09cbe3dadfda3ce Thu Aug 05 19:02:50 CDT 2021 Chao Yu <chao@kernel.org> f2fs: compress: do sanity check on cluster
This patch adds f2fs_sanity_check_cluster() to support doing sanity check on cluster of compressed file, it will be triggered from below two paths:
- __f2fs_cluster_blocks() - f2fs_map_blocks(F2FS_GET_BLOCK_FIEMAP)
And it can detect below three kind of cluster insanity status.
C: COMPRESS_ADDR N: NULL_ADDR or NEW_ADDR V: valid blkaddr *: any value
1. [*|C|*|*] 2. [C|*|C|*] 3. [C|N|N|V]
Signed-off-by: Chao Yu <chao@kernel.org> [Nathan Chancellor: fix missing inline warning] Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
|
H A D | f2fs.h | diff bbe1da7e34ac5a830163bfdfa09cbe3dadfda3ce Thu Aug 05 19:02:50 CDT 2021 Chao Yu <chao@kernel.org> f2fs: compress: do sanity check on cluster
This patch adds f2fs_sanity_check_cluster() to support doing sanity check on cluster of compressed file, it will be triggered from below two paths:
- __f2fs_cluster_blocks() - f2fs_map_blocks(F2FS_GET_BLOCK_FIEMAP)
And it can detect below three kind of cluster insanity status.
C: COMPRESS_ADDR N: NULL_ADDR or NEW_ADDR V: valid blkaddr *: any value
1. [*|C|*|*] 2. [C|*|C|*] 3. [C|N|N|V]
Signed-off-by: Chao Yu <chao@kernel.org> [Nathan Chancellor: fix missing inline warning] Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
|