gfs2: use log_error before LM_OUT_ERROR
PATCH 1/1 gfs2: use log_error before LM_OUT_ERROR
We always want to see the details of the error returned to gfs, but log_debug is often turned off, so use log_error (printk).
Signed-off-by David Teigland <[email protected]>
fs/gfs2/locking/dlm/lock.c +2 -2
@@ -268,7 +268,7 @@ }if (error) { -log_debug ("%s: gdlm_lock %x,%llx err=%d cur=%d req=%d lkf=%x " +log_error ("%s: gdlm_lock %x,%llx err=%d cur=%d req=%d lkf=%x " "flags=%lx" , ls->fsname, lp->lockname.ln_type, (unsigned long long )lp->lockname.ln_number, error, lp->cur, lp->req, lp->lkf, lp->flags);
@@ -296,7 +296,7 @@ error =dlm_unlock (ls->dlm_lockspace, lp->lksb.sb_lkid, lkf,NULL , lp);if (error) { -log_debug ("%s: gdlm_unlock %x,%llx err=%d cur=%d req=%d lkf=%x " +log_error ("%s: gdlm_unlock %x,%llx err=%d cur=%d req=%d lkf=%x " "flags=%lx" , ls->fsname, lp->lockname.ln_type, (unsigned long long )lp->lockname.ln_number, error, lp->cur, lp->req, lp->lkf, lp->flags);
Hi,
Now in the -nmw git tree. Thanks,
Steve.
Quoted 27 lines · David Teigland
We always want to see the details of the error returned to gfs, but
log_debugis often turned off, so uselog_error(printk).Signed-off-by David Teigland <[email protected]>Index:
linux-2.6.20-git2-quilt/fs/gfs2/locking/dlm/lock.c
===================================================================fs/gfs2/locking/dlm/lock.c +2
-2@@ -268,7 +268,7 @@ }if (error) { -log_debug ("%s: gdlm_lock %x,%llx err=%d cur=%d req=%d lkf=%x " +log_error ("%s: gdlm_lock %x,%llx err=%d cur=%d req=%d lkf=%x " "flags=%lx" , ls->fsname, lp->lockname.ln_type, (unsigned long long )lp->lockname.ln_number, error, lp->cur, lp->req, lp->lkf, lp->flags);@@ -296,7 +296,7 @@ error =dlm_unlock (ls->dlm_lockspace, lp->lksb.sb_lkid, lkf,NULL , lp);if (error) { -log_debug ("%s: gdlm_unlock %x,%llx err=%d cur=%d req=%d lkf=%x " +log_error ("%s: gdlm_unlock %x,%llx err=%d cur=%d req=%d lkf=%x " "flags=%lx" , ls->fsname, lp->lockname.ln_type, (unsigned long long )lp->lockname.ln_number, error, lp->cur, lp->req, lp->lkf, lp->flags);