Message ID | 1455897582-13292-2-git-send-email-jack@suse.cz |
---|---|
State | Accepted, archived |
Headers | show |
On Fri, Feb 19, 2016 at 04:59:37PM +0100, Jan Kara wrote: > On 64-bit architectures we have two 4-byte holes in struct ext4_io_end. > Order entries better to avoid this and thus make the structure occupy > 64 instead of 72 bytes for 64-bit architectures. > > Signed-off-by: Jan Kara <jack@suse.cz> Applied, thanks. - Ted -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 0662b285dc8a..1046621ef64d 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -182,9 +182,9 @@ typedef struct ext4_io_end { struct bio *bio; /* Linked list of completed * bios covering the extent */ unsigned int flag; /* unwritten or not */ + atomic_t count; /* reference counter */ loff_t offset; /* offset in the file */ ssize_t size; /* size of the extent */ - atomic_t count; /* reference counter */ } ext4_io_end_t; struct ext4_io_submit {
On 64-bit architectures we have two 4-byte holes in struct ext4_io_end. Order entries better to avoid this and thus make the structure occupy 64 instead of 72 bytes for 64-bit architectures. Signed-off-by: Jan Kara <jack@suse.cz> --- fs/ext4/ext4.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)