Theodore Ts'o
8dc207c0e7
ext4: Save stack space by removing fake buffer heads
...
Struct mpage_da_data and mpage_add_bh_to_extent() use a fake struct
buffer_head which is 104 bytes on an x86_64 system, but only use 24
bytes of the structure. On systems that use a spinlock for atomic_t,
the stack savings will be even greater.
It turns out that using a fake struct buffer_head doesn't even save
that much code, and it makes the code more confusing since it's not
used as a "real" buffer head. So just store pass b_size and b_state
in mpage_add_bh_to_extent(), and store b_size, b_state, and b_block_nr
in the mpage_da_data structure.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu >
2009-02-23 06:46:01 -05:00
..
2009-03-27 14:44:03 -04:00
2009-03-27 14:44:00 -04:00
2009-03-27 14:44:00 -04:00
2009-03-27 14:44:00 -04:00
2009-03-27 14:44:00 -04:00
2009-03-27 14:44:00 -04:00
2009-01-22 13:15:57 +03:00
2009-01-22 13:15:57 +03:00
2009-03-26 11:01:35 +01:00
2009-03-27 16:23:12 -07:00
2009-03-27 14:44:00 -04:00
2009-03-27 14:44:03 -04:00
2009-01-22 13:15:58 +03:00
2009-01-07 10:00:16 -08:00
2009-03-27 14:44:04 -04:00
2009-03-11 12:23:59 -05:00
2009-03-27 14:44:01 -04:00
2009-01-22 13:15:57 +03:00
2008-12-25 11:40:09 +11:00
2009-03-26 02:18:38 +01:00
2009-03-27 14:48:34 -07:00
2009-02-23 06:46:01 -05:00
2009-03-27 14:44:01 -04:00
2009-01-22 13:15:58 +03:00
2009-03-27 14:44:01 -04:00
2009-03-27 16:23:12 -07:00
2009-03-27 14:44:00 -04:00
2009-03-27 14:44:00 -04:00
2009-03-27 14:44:00 -04:00
2009-03-27 14:44:00 -04:00
2008-11-14 10:39:25 +11:00
2009-02-10 10:48:42 -08:00
2009-03-27 14:44:00 -04:00
2009-02-11 14:25:35 -08:00
2009-02-10 11:15:34 -05:00
2009-02-21 11:09:29 +01:00
2009-03-27 16:23:12 -07:00
2009-03-10 20:33:20 -04:00
2009-03-22 11:28:37 -07:00
2009-03-27 14:44:00 -04:00
2009-03-27 14:43:59 -04:00
2008-12-23 15:21:32 -05:00
2009-03-27 14:48:34 -07:00
2008-10-17 02:38:36 +11:00
2009-03-27 14:44:05 -04:00
2009-01-22 13:15:55 +03:00
2009-03-27 14:44:02 -04:00
2009-01-22 13:15:58 +03:00
2009-01-05 11:54:28 -05:00
2009-03-26 16:04:22 -07:00
2009-03-28 17:30:00 -07:00
2009-01-22 13:15:59 +03:00
2009-03-27 16:23:12 -07:00
2009-03-26 02:18:35 +01:00
2009-03-27 16:23:12 -07:00
2009-01-22 13:15:59 +03:00
2009-03-27 14:44:00 -04:00
2009-03-12 03:23:48 +00:00
2009-03-27 16:23:12 -07:00
2009-03-27 14:44:00 -04:00
2009-03-27 14:44:03 -04:00
2009-03-26 02:18:36 +01:00
2009-03-27 16:23:12 -07:00
2009-03-06 17:35:12 -06:00
2009-03-19 15:57:18 -07:00
2009-03-27 14:44:03 -04:00
2009-03-26 02:18:35 +01:00
2008-12-31 18:07:43 -05:00
2009-01-03 11:45:54 -08:00
2009-01-08 12:04:47 +00:00
2009-02-06 17:34:07 -08:00
2008-10-16 11:21:38 -07:00
2009-01-08 12:04:47 +00:00
2009-01-06 15:59:19 -08:00
2008-10-16 11:21:38 -07:00
2008-11-14 10:39:24 +11:00
2009-03-24 12:35:17 +01:00
2009-03-24 12:35:17 +01:00
2009-03-27 14:44:03 -04:00
2009-03-27 14:44:03 -04:00
2009-01-06 15:59:13 -08:00
2009-03-01 21:35:16 -08:00
2009-03-28 17:30:00 -07:00
2009-03-27 14:43:57 -04:00
2009-01-14 14:15:18 +01:00
2009-01-06 15:59:06 -08:00
2009-03-27 14:44:05 -04:00
2009-01-14 14:15:31 +01:00
2009-03-16 08:32:27 -06:00
2009-03-28 17:30:00 -07:00
2009-03-16 08:34:35 -06:00
2008-10-21 07:47:06 -04:00
2009-03-26 16:14:02 -07:00
2009-01-14 14:15:29 +01:00
2009-03-12 16:20:24 -07:00
2009-03-27 16:23:12 -07:00
2009-03-28 17:30:00 -07:00
2009-03-16 08:34:35 -06:00
2009-01-14 14:15:30 +01:00
2009-03-26 02:18:35 +01:00
2009-01-09 16:54:41 -08:00
2009-03-27 14:44:03 -04:00
2009-01-14 14:15:25 +01:00
2009-03-26 02:18:35 +01:00
2009-01-06 15:59:01 -08:00
2009-03-27 16:23:12 -07:00
2009-03-27 16:23:12 -07:00
2009-01-14 14:15:29 +01:00
2009-03-26 02:18:35 +01:00
2009-03-27 16:23:12 -07:00
2008-11-14 10:39:05 +11:00
2009-01-14 14:15:26 +01:00
2009-01-14 14:15:31 +01:00
2009-01-14 14:15:31 +01:00
2009-02-18 15:37:53 -08:00
2009-01-14 14:15:31 +01:00
2009-01-14 14:15:31 +01:00
2009-01-14 14:15:30 +01:00
2009-03-27 16:23:12 -07:00
2009-03-27 14:48:34 -07:00
2009-02-18 15:37:53 -08:00
2009-01-14 14:15:30 +01:00
2009-01-14 14:15:23 +01:00