[patch] dm: reorder dm_io to remove padding on 64 bit builds

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



shrinks size from 40 -> 32 allowing more objects/slab
    
Signed-off-by: Richard Kennedy <richard@xxxxxxxxxxxxxxx>

---

This change looks safe AFAICT, but I have not tested it other than
compiling it.
Compiled on 2.6.26-rc5 AMD64.
HTH
Richard


diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index 372369b..efe9690 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -37,8 +37,8 @@ static DEFINE_SPINLOCK(_minor_lock);
 struct dm_io {
 	struct mapped_device *md;
 	int error;
-	struct bio *bio;
 	atomic_t io_count;
+	struct bio *bio;
 	unsigned long start_time;
 };
 


--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel

[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux