Skip to content

Commit 5f38a4d

Browse files
author
Andreas Gruenbacher
committed
gfs2: Make go_instantiate take a glock
Make go_instantiate take a glock instead of a glock holder as its argument: this handler is supposed to instantiate the object associated with the glock. Signed-off-by: Andreas Gruenbacher <[email protected]>
1 parent 86c30a0 commit 5f38a4d

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

fs/gfs2/glock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ int gfs2_instantiate(struct gfs2_holder *gh)
507507
goto again;
508508
}
509509

510-
ret = glops->go_instantiate(gh);
510+
ret = glops->go_instantiate(gl);
511511
if (!ret)
512512
clear_bit(GLF_INSTANTIATE_NEEDED, &gl->gl_flags);
513513
clear_and_wake_up_bit(GLF_INSTANTIATE_IN_PROG, &gl->gl_flags);

fs/gfs2/glops.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,9 +485,8 @@ int gfs2_inode_refresh(struct gfs2_inode *ip)
485485
* Returns: errno
486486
*/
487487

488-
static int inode_go_instantiate(struct gfs2_holder *gh)
488+
static int inode_go_instantiate(struct gfs2_glock *gl)
489489
{
490-
struct gfs2_glock *gl = gh->gh_gl;
491490
struct gfs2_inode *ip = gl->gl_object;
492491

493492
if (!ip) /* no inode to populate - read it in later */

fs/gfs2/incore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ struct gfs2_glock_operations {
219219
int (*go_xmote_bh)(struct gfs2_glock *gl);
220220
void (*go_inval) (struct gfs2_glock *gl, int flags);
221221
int (*go_demote_ok) (const struct gfs2_glock *gl);
222-
int (*go_instantiate) (struct gfs2_holder *gh);
222+
int (*go_instantiate) (struct gfs2_glock *gl);
223223
int (*go_held)(struct gfs2_holder *gh);
224224
void (*go_dump)(struct seq_file *seq, struct gfs2_glock *gl,
225225
const char *fs_id_buf);

fs/gfs2/rgrp.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,9 +1196,8 @@ static void rgrp_set_bitmap_flags(struct gfs2_rgrpd *rgd)
11961196
* Returns: errno
11971197
*/
11981198

1199-
int gfs2_rgrp_go_instantiate(struct gfs2_holder *gh)
1199+
int gfs2_rgrp_go_instantiate(struct gfs2_glock *gl)
12001200
{
1201-
struct gfs2_glock *gl = gh->gh_gl;
12021201
struct gfs2_rgrpd *rgd = gl->gl_object;
12031202
struct gfs2_sbd *sdp = rgd->rd_sbd;
12041203
unsigned int length = rgd->rd_length;

fs/gfs2/rgrp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ extern struct gfs2_rgrpd *gfs2_rgrpd_get_next(struct gfs2_rgrpd *rgd);
3131
extern void gfs2_clear_rgrpd(struct gfs2_sbd *sdp);
3232
extern int gfs2_rindex_update(struct gfs2_sbd *sdp);
3333
extern void gfs2_free_clones(struct gfs2_rgrpd *rgd);
34-
extern int gfs2_rgrp_go_instantiate(struct gfs2_holder *gh);
34+
extern int gfs2_rgrp_go_instantiate(struct gfs2_glock *gl);
3535
extern void gfs2_rgrp_brelse(struct gfs2_rgrpd *rgd);
3636

3737
extern struct gfs2_alloc *gfs2_alloc_get(struct gfs2_inode *ip);

0 commit comments

Comments
 (0)