Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb54e0dd authored by Chao Yu's avatar Chao Yu Committed by Jaegeuk Kim
Browse files

f2fs: recycle unused compress_data.chksum feild



In Struct compress_data, chksum field was never used, remove it.

Signed-off-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 3fff3163
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);
+1 −2
Original line number Diff line number Diff line
@@ -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 */
};