Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1631329

[PATCH 2/2] f2fs: shrink size of struct discard_cmd

From Chao Yu <yuchao0@huawei.com>
Newsgroups linux.kernel
Subject [PATCH 2/2] f2fs: shrink size of struct discard_cmd
Date 2017-04-26 12:00 +0200
Message-ID <tArTP-yp-9@gated-at.bofh.it> (permalink)
References <tArTP-yp-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


In order to shrink size of struct discard_cmd, change variable type of
@state in struct discard_cmd from int to unsigned char.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
---
 fs/f2fs/f2fs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index e0c8e0074224..914b5c64cfae 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -220,7 +220,7 @@ struct discard_cmd {
 	struct completion wait;		/* compleation */
 	struct block_device *bdev;	/* bdev */
 	unsigned short ref;		/* reference count */
-	int state;			/* state */
+	unsigned char state;		/* state */
 	int error;			/* bio error */
 };
 
-- 
2.12.2.510.ge1104a5ee539

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH 2/2] f2fs: shrink size of struct discard_cmd Chao Yu <yuchao0@huawei.com> - 2017-04-26 12:00 +0200

csiph-web