lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1213011675.2967.5.camel@castor.localdomain>
Date:	Mon, 09 Jun 2008 12:41:15 +0100
From:	Richard Kennedy <richard@....demon.co.uk>
To:	dm-devel@...hat.com
Cc:	lkml <linux-kernel@...r.kernel.org>
Subject: [patch] dm: reorder dm_io to remove padding on 64 bit builds

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

---

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;
 };
 


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ