diff options
author | Bob Peterson <rpeterso@redhat.com> | 2019-05-13 10:42:18 -0400 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2019-06-27 15:30:27 -0400 |
commit | f29e62eed261f01431d348d8b22a6f275d553a51 (patch) | |
tree | 5aa07bda9a530d12a7d6090db71af1efc214755b /fs/gfs2/glops.c | |
parent | 3792ce973f07a2644fd81424b9acacb12530a3cf (diff) |
gfs2: replace more printk with calls to fs_info and friends
This patch replaces a few leftover printk errors with calls to
fs_info and similar, so that the file system having the error is
properly logged.
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2/glops.c')
-rw-r--r-- | fs/gfs2/glops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/gfs2/glops.c b/fs/gfs2/glops.c index 68e2a2d4e6a6..ff213690e364 100644 --- a/fs/gfs2/glops.c +++ b/fs/gfs2/glops.c | |||
@@ -506,7 +506,8 @@ static void freeze_go_sync(struct gfs2_glock *gl) | |||
506 | atomic_set(&sdp->sd_freeze_state, SFS_STARTING_FREEZE); | 506 | atomic_set(&sdp->sd_freeze_state, SFS_STARTING_FREEZE); |
507 | error = freeze_super(sdp->sd_vfs); | 507 | error = freeze_super(sdp->sd_vfs); |
508 | if (error) { | 508 | if (error) { |
509 | printk(KERN_INFO "GFS2: couldn't freeze filesystem: %d\n", error); | 509 | fs_info(sdp, "GFS2: couldn't freeze filesystem: %d\n", |
510 | error); | ||
510 | gfs2_assert_withdraw(sdp, 0); | 511 | gfs2_assert_withdraw(sdp, 0); |
511 | } | 512 | } |
512 | queue_work(gfs2_freeze_wq, &sdp->sd_freeze_work); | 513 | queue_work(gfs2_freeze_wq, &sdp->sd_freeze_work); |