diff options
author | Chao Yu <yuchao0@huawei.com> | 2020-02-24 14:20:18 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2020-02-27 21:16:45 +0300 |
commit | 0b32dc186486822b636216985802ccf05c1a2c06 (patch) | |
tree | dc5a042004e009f03c6ca055c2a49014ef0dd19a /fs | |
parent | 61fbae2b2b1201525f8f0f35e0bdf6dfa8ec8541 (diff) | |
download | linux-0b32dc186486822b636216985802ccf05c1a2c06.tar.xz |
f2fs: recycle unused compress_data.chksum feild
In Struct compress_data, chksum field was never used, remove it.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/f2fs/compress.c | 1 | ||||
-rw-r--r-- | fs/f2fs/f2fs.h | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c index dde8ca08e94d..5ca2ea0e1e45 100644 --- a/fs/f2fs/compress.c +++ b/fs/f2fs/compress.c @@ -380,7 +380,6 @@ static int f2fs_compress_pages(struct compress_ctx *cc) } cc->cbuf->clen = cpu_to_le32(cc->clen); - cc->cbuf->chksum = cpu_to_le32(0); for (i = 0; i < COMPRESS_DATA_RESERVED_SIZE; i++) cc->cbuf->reserved[i] = cpu_to_le32(0); diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index d39f5de11420..16ac00f01586 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -1214,10 +1214,9 @@ enum compress_algorithm_type { COMPRESS_MAX, }; -#define COMPRESS_DATA_RESERVED_SIZE 4 +#define COMPRESS_DATA_RESERVED_SIZE 5 struct compress_data { __le32 clen; /* compressed data size */ - __le32 chksum; /* checksum of compressed data */ __le32 reserved[COMPRESS_DATA_RESERVED_SIZE]; /* reserved */ u8 cdata[]; /* compressed data */ }; |