GFS2: Add allocation parameters structure
This patch adds a structure to contain allocation parameters with the intention of future expansion of this structure. The idea is that we should be able to add more information about the allocation in the future in order to allow the allocator to make a better job of placing the requests on-disk. There is no functional difference from applying this patch. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
This commit is contained in:
@@ -285,6 +285,20 @@ struct gfs2_blkreserv {
|
||||
unsigned int rs_qa_qd_num;
|
||||
};
|
||||
|
||||
/*
|
||||
* Allocation parameters
|
||||
* @target: The number of blocks we'd ideally like to allocate
|
||||
* @aflags: The flags (e.g. Orlov flag)
|
||||
*
|
||||
* The intent is to gradually expand this structure over time in
|
||||
* order to give more information, e.g. alignment, min extent size
|
||||
* to the allocation code.
|
||||
*/
|
||||
struct gfs2_alloc_parms {
|
||||
u32 target;
|
||||
u32 aflags;
|
||||
};
|
||||
|
||||
enum {
|
||||
GLF_LOCK = 1,
|
||||
GLF_DEMOTE = 3,
|
||||
|
Reference in New Issue
Block a user