Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38787
b: refs/heads/master
c: 8872187
h: refs/heads/master
i:
  38785: f60ebfd
  38783: 6d0c230
v: v3
  • Loading branch information
Russell Cattelan authored and Steven Whitehouse committed Aug 10, 2006
1 parent e5f5261 commit 3341609
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4a99c3d9d6663085e28bc7ac8dae1e985c5a6174
refs/heads/master: 8872187780f6104216c67e7b60c11f708b513c38
9 changes: 6 additions & 3 deletions trunk/fs/gfs2/glock.c
Original file line number Diff line number Diff line change
Expand Up @@ -2167,7 +2167,9 @@ static int dump_glock(struct gfs2_glock *gl)

spin_lock(&gl->gl_spin);

printk(KERN_INFO "Glock (%u, %llu)\n", gl->gl_name.ln_type,
printk(KERN_INFO "Glock 0x%p (%u, %llu)\n",
gl,
gl->gl_name.ln_type,
(unsigned long long)gl->gl_name.ln_number);
printk(KERN_INFO " gl_flags =");
for (x = 0; x < 32; x++)
Expand All @@ -2187,8 +2189,9 @@ static int dump_glock(struct gfs2_glock *gl)
printk(KERN_INFO " reclaim = %s\n",
(list_empty(&gl->gl_reclaim)) ? "no" : "yes");
if (gl->gl_aspace)
printk(KERN_INFO " aspace = %lu\n",
gl->gl_aspace->i_mapping->nrpages);
printk(KERN_INFO " aspace = 0x%p nrpages = %lu\n",
gl->gl_aspace,
gl->gl_aspace->i_mapping->nrpages);
else
printk(KERN_INFO " aspace = no\n");
printk(KERN_INFO " ail = %d\n", atomic_read(&gl->gl_ail_count));
Expand Down
4 changes: 4 additions & 0 deletions trunk/fs/gfs2/ops_fstype.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,10 @@ static int init_sb(struct gfs2_sbd *sdp, int silent, int undo)
int error = 0;

if (undo) {
if (sb->s_root) {
dput(sb->s_root);
sb->s_root = NULL;
}
return 0;
}

Expand Down
3 changes: 2 additions & 1 deletion trunk/fs/gfs2/recovery.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ static int foreach_descriptor(struct gfs2_jdesc *jd, unsigned int start,
error = get_log_header(jd, start, &lh);
if (!error) {
gfs2_replay_incr_blk(sdp, &start);
brelse(bh);
continue;
}
if (error == 1) {
Expand Down Expand Up @@ -396,7 +397,7 @@ static int clean_journal(struct gfs2_jdesc *jd, struct gfs2_log_header *head)
lh = (struct gfs2_log_header *)bh->b_data;
memset(lh, 0, sizeof(struct gfs2_log_header));
lh->lh_header.mh_magic = cpu_to_be32(GFS2_MAGIC);
lh->lh_header.mh_type = cpu_to_be16(GFS2_METATYPE_LH);
lh->lh_header.mh_type = cpu_to_be32(GFS2_METATYPE_LH);
lh->lh_header.mh_format = cpu_to_be32(GFS2_FORMAT_LH);
lh->lh_sequence = cpu_to_be64(head->lh_sequence + 1);
lh->lh_flags = cpu_to_be32(GFS2_LOG_HEAD_UNMOUNT);
Expand Down

0 comments on commit 3341609

Please sign in to comment.