aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/rgrp.h
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2014-10-29 09:02:30 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2014-11-03 14:26:54 -0500
commit1a8550332a7f0111306b6b34e44a7c696ef68c4d (patch)
tree030b657ece5e651d86e27065107a79b416d89ec8 /fs/gfs2/rgrp.h
parent33ad5d54284adf110f6e78aa9c4f42d3d17d7f68 (diff)
GFS2: If we use up our block reservation, request more next time
If we run out of blocks for a given multi-block allocation, we obviously did not reserve enough. We should reserve more blocks for the next reservation to reduce fragmentation. This patch increases the size hint for reservations when they run out. Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/rgrp.h')
-rw-r--r--fs/gfs2/rgrp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/gfs2/rgrp.h b/fs/gfs2/rgrp.h
index 5d8f085f7ade..b104f4af3afd 100644
--- a/fs/gfs2/rgrp.h
+++ b/fs/gfs2/rgrp.h
@@ -20,6 +20,7 @@
20 */ 20 */
21#define RGRP_RSRV_MINBYTES 8 21#define RGRP_RSRV_MINBYTES 8
22#define RGRP_RSRV_MINBLKS ((u32)(RGRP_RSRV_MINBYTES * GFS2_NBBY)) 22#define RGRP_RSRV_MINBLKS ((u32)(RGRP_RSRV_MINBYTES * GFS2_NBBY))
23#define RGRP_RSRV_ADDBLKS 64
23 24
24struct gfs2_rgrpd; 25struct gfs2_rgrpd;
25struct gfs2_sbd; 26struct gfs2_sbd;