aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/rgrp.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-02-27 17:23:27 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2006-02-27 17:23:27 -0500
commit5c676f6d359b0404d53f542f02e1359583cb2895 (patch)
tree8741011990ec0a3d0d41fee9f0d7abf6a16834cc /fs/gfs2/rgrp.c
parentf3b270a47882b958e9e3c5bd86894e3a7072899a (diff)
[GFS2] Macros removal in gfs2.h
As suggested by Pekka Enberg <penberg@cs.helsinki.fi>. The DIV_RU macro is renamed DIV_ROUND_UP and and moved to kernel.h The other macros are gone from gfs2.h as (although not requested by Pekka Enberg) are a number of included header file which are now included individually. The inode number comparison function is now an inline function. The DT2IF and IF2DT may be addressed in a future patch. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/rgrp.c')
-rw-r--r--fs/gfs2/rgrp.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c
index 9525b176f502..4ae559694396 100644
--- a/fs/gfs2/rgrp.c
+++ b/fs/gfs2/rgrp.c
@@ -13,9 +13,12 @@
13#include <linux/completion.h> 13#include <linux/completion.h>
14#include <linux/buffer_head.h> 14#include <linux/buffer_head.h>
15#include <linux/fs.h> 15#include <linux/fs.h>
16#include <linux/gfs2_ondisk.h>
16#include <asm/semaphore.h> 17#include <asm/semaphore.h>
17 18
18#include "gfs2.h" 19#include "gfs2.h"
20#include "lm_interface.h"
21#include "incore.h"
19#include "bits.h" 22#include "bits.h"
20#include "glock.h" 23#include "glock.h"
21#include "glops.h" 24#include "glops.h"
@@ -26,6 +29,7 @@
26#include "super.h" 29#include "super.h"
27#include "trans.h" 30#include "trans.h"
28#include "ops_file.h" 31#include "ops_file.h"
32#include "util.h"
29 33
30/** 34/**
31 * gfs2_rgrp_verify - Verify that a resource group is consistent 35 * gfs2_rgrp_verify - Verify that a resource group is consistent
@@ -171,7 +175,7 @@ static void clear_rgrpdi(struct gfs2_sbd *sdp)
171 list_del(&rgd->rd_list_mru); 175 list_del(&rgd->rd_list_mru);
172 176
173 if (gl) { 177 if (gl) {
174 set_gl2rgd(gl, NULL); 178 gl->gl_object = NULL;
175 gfs2_glock_put(gl); 179 gfs2_glock_put(gl);
176 } 180 }
177 181
@@ -320,7 +324,7 @@ static int gfs2_ri_update(struct gfs2_inode *ip)
320 if (error) 324 if (error)
321 goto fail; 325 goto fail;
322 326
323 set_gl2rgd(rgd->rd_gl, rgd); 327 rgd->rd_gl->gl_object = rgd;
324 rgd->rd_rg_vn = rgd->rd_gl->gl_vn - 1; 328 rgd->rd_rg_vn = rgd->rd_gl->gl_vn - 1;
325 } 329 }
326 330
@@ -354,7 +358,7 @@ static int gfs2_ri_update(struct gfs2_inode *ip)
354 358
355int gfs2_rindex_hold(struct gfs2_sbd *sdp, struct gfs2_holder *ri_gh) 359int gfs2_rindex_hold(struct gfs2_sbd *sdp, struct gfs2_holder *ri_gh)
356{ 360{
357 struct gfs2_inode *ip = get_v2ip(sdp->sd_rindex); 361 struct gfs2_inode *ip = sdp->sd_rindex->u.generic_ip;
358 struct gfs2_glock *gl = ip->i_gl; 362 struct gfs2_glock *gl = ip->i_gl;
359 int error; 363 int error;
360 364