gfs2: trivial clean up of gfs2_ail_error
This patch does not change function. It adds variable sdp to clean up function gfs2_ail_error and make it more readable. Signed-off-by: Bob Peterson <rpeterso@redhat.com>
This commit is contained in:
parent
c37453cb87
commit
69a61144f3
|
@ -33,16 +33,18 @@ extern struct workqueue_struct *gfs2_control_wq;
|
||||||
|
|
||||||
static void gfs2_ail_error(struct gfs2_glock *gl, const struct buffer_head *bh)
|
static void gfs2_ail_error(struct gfs2_glock *gl, const struct buffer_head *bh)
|
||||||
{
|
{
|
||||||
fs_err(gl->gl_name.ln_sbd,
|
struct gfs2_sbd *sdp = gl->gl_name.ln_sbd;
|
||||||
|
|
||||||
|
fs_err(sdp,
|
||||||
"AIL buffer %p: blocknr %llu state 0x%08lx mapping %p page "
|
"AIL buffer %p: blocknr %llu state 0x%08lx mapping %p page "
|
||||||
"state 0x%lx\n",
|
"state 0x%lx\n",
|
||||||
bh, (unsigned long long)bh->b_blocknr, bh->b_state,
|
bh, (unsigned long long)bh->b_blocknr, bh->b_state,
|
||||||
bh->b_page->mapping, bh->b_page->flags);
|
bh->b_page->mapping, bh->b_page->flags);
|
||||||
fs_err(gl->gl_name.ln_sbd, "AIL glock %u:%llu mapping %p\n",
|
fs_err(sdp, "AIL glock %u:%llu mapping %p\n",
|
||||||
gl->gl_name.ln_type, gl->gl_name.ln_number,
|
gl->gl_name.ln_type, gl->gl_name.ln_number,
|
||||||
gfs2_glock2aspace(gl));
|
gfs2_glock2aspace(gl));
|
||||||
gfs2_lm(gl->gl_name.ln_sbd, "AIL error\n");
|
gfs2_lm(sdp, "AIL error\n");
|
||||||
gfs2_withdraw(gl->gl_name.ln_sbd);
|
gfs2_withdraw(sdp);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue