diff options
author | Bob Peterson <rpeterso@redhat.com> | 2017-06-20 09:52:57 -0500 |
---|---|---|
committer | Bob Peterson <rpeterso@redhat.com> | 2017-06-20 09:52:57 -0500 |
commit | 722f6f62a563108dc0f311bd86120b8fbfa0c6df (patch) | |
tree | cde87fe6eed94fa3ccfe866577aa76a07899bf05 /fs/gfs2/lops.c | |
parent | df68f20f56084cffd15add2d7652bcdfb38cd875 (diff) | |
download | lwn-722f6f62a563108dc0f311bd86120b8fbfa0c6df.tar.gz lwn-722f6f62a563108dc0f311bd86120b8fbfa0c6df.zip |
GFS2: Eliminate vestigial sd_log_flush_wrapped
Superblock variable sd_log_flush_wrapped is set, but never referenced,
so this patch eliminates it.
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Diffstat (limited to 'fs/gfs2/lops.c')
-rw-r--r-- | fs/gfs2/lops.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/gfs2/lops.c b/fs/gfs2/lops.c index b1f9144b42c7..2d4ce25a105f 100644 --- a/fs/gfs2/lops.c +++ b/fs/gfs2/lops.c @@ -134,10 +134,8 @@ static void gfs2_log_incr_head(struct gfs2_sbd *sdp) BUG_ON((sdp->sd_log_flush_head == sdp->sd_log_tail) && (sdp->sd_log_flush_head != sdp->sd_log_head)); - if (++sdp->sd_log_flush_head == sdp->sd_jdesc->jd_blocks) { + if (++sdp->sd_log_flush_head == sdp->sd_jdesc->jd_blocks) sdp->sd_log_flush_head = 0; - sdp->sd_log_flush_wrapped = 1; - } } static u64 gfs2_log_bmap(struct gfs2_sbd *sdp) |