aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/ocfs2.h
diff options
context:
space:
mode:
authorMark Fasheh <mark.fasheh@oracle.com>2006-06-05 16:41:00 -0400
committerMark Fasheh <mark.fasheh@oracle.com>2006-08-07 14:07:01 -0400
commit883d4cae4a2b01a05193cf2665c77b7489a8b6a0 (patch)
tree1d4f06fa7bdadf025159ff5408f14080552a0cb0 /fs/ocfs2/ocfs2.h
parent7bf72edee614e10b8d470c40a326f47bfdd69992 (diff)
ocfs2: allocation hints
Record the most recently used allocation group on the allocation context, so that subsequent allocations can attempt to optimize for contiguousness. Local alloc especially should benefit from this as the current chain search tends to let it spew across the disk. Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/ocfs2.h')
-rw-r--r--fs/ocfs2/ocfs2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ocfs2/ocfs2.h b/fs/ocfs2/ocfs2.h
index d52100d49b6c..0462a7f4e21b 100644
--- a/fs/ocfs2/ocfs2.h
+++ b/fs/ocfs2/ocfs2.h
@@ -236,6 +236,7 @@ struct ocfs2_super
236 236
237 enum ocfs2_local_alloc_state local_alloc_state; 237 enum ocfs2_local_alloc_state local_alloc_state;
238 struct buffer_head *local_alloc_bh; 238 struct buffer_head *local_alloc_bh;
239 u64 la_last_gd;
239 240
240 /* Next two fields are for local node slot recovery during 241 /* Next two fields are for local node slot recovery during
241 * mount. */ 242 * mount. */