Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH] btrfs: Remove btrfs_bio::flags member
@ 2019-10-23  7:04 Qu Wenruo
  2019-10-23 17:17 ` David Sterba
  0 siblings, 1 reply; 4+ messages in thread
From: Qu Wenruo @ 2019-10-23  7:04 UTC (permalink / raw)
  To: linux-btrfs

This member is not used by any one, just remove it.

And since it's between two pointers, such removal should save us a
pointer size of the structure.

Furthermore, if we just want to know the block group profile, we have
btrfs_bio::map_type, which is much better than this ambiguous member.

Signed-off-by: Qu Wenruo <wqu@suse.com>
---
 fs/btrfs/volumes.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h
index 7f6aa1816409..5ab2920b0c1f 100644
--- a/fs/btrfs/volumes.h
+++ b/fs/btrfs/volumes.h
@@ -331,7 +331,6 @@ struct btrfs_bio {
 	u64 map_type; /* get from map_lookup->type */
 	bio_end_io_t *end_io;
 	struct bio *orig_bio;
-	unsigned long flags;
 	void *private;
 	atomic_t error;
 	int max_errors;
-- 
2.23.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-10-24 12:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-23  7:04 [PATCH] btrfs: Remove btrfs_bio::flags member Qu Wenruo
2019-10-23 17:17 ` David Sterba
2019-10-24  1:33   ` Qu Wenruo
2019-10-24 12:04     ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox