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


Groups > linux.kernel > #1631329 > unrolled thread

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

Started byChao Yu <yuchao0@huawei.com>
First post2017-04-26 12:00 +0200
Last post2017-04-26 12:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

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

FromChao Yu <yuchao0@huawei.com>
Date2017-04-26 12:00 +0200
Subject[PATCH 2/2] f2fs: shrink size of struct discard_cmd
Message-ID<tArTP-yp-9@gated-at.bofh.it>
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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web