diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2020-01-23 18:41:00 +0100 |
---|---|---|
committer | Bob Peterson <rpeterso@redhat.com> | 2020-02-10 07:39:44 -0600 |
commit | badb55ec208adc4c406ed084f486deb1f9f5baa0 (patch) | |
tree | d946a301faa71122d9a220802cf66da16cb849b7 /fs/gfs2/sys.c | |
parent | 6e5e41e2dc4e4413296d5a4af54ac92d7cd52317 (diff) | |
download | linux-badb55ec208adc4c406ed084f486deb1f9f5baa0.tar.bz2 |
gfs2: Split gfs2_lm_withdraw into two functions
Split gfs2_lm_withdraw into a function that prints an error message and a
function that withdraws the filesystem.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Diffstat (limited to 'fs/gfs2/sys.c')
-rw-r--r-- | fs/gfs2/sys.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/gfs2/sys.c b/fs/gfs2/sys.c index 8ccb68f4ed16..a2eae5c578d6 100644 --- a/fs/gfs2/sys.c +++ b/fs/gfs2/sys.c @@ -136,7 +136,8 @@ static ssize_t withdraw_store(struct gfs2_sbd *sdp, const char *buf, size_t len) if (val != 1) return -EINVAL; - gfs2_lm_withdraw(sdp, "withdrawing from cluster at user's request\n"); + gfs2_lm(sdp, "withdrawing from cluster at user's request\n"); + gfs2_withdraw(sdp); return len; } |