diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2020-12-19 07:15:17 +0100 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2021-02-03 18:37:25 +0100 |
commit | 5cb738b5fbd2f3ebe9dec0e428577a4f2128adbe (patch) | |
tree | a7cf4778bbc44272e6e15e05d4261a745ab94cb6 /fs/gfs2/incore.h | |
parent | 297de3180dd7ecbb3798f32e58691168587a8f85 (diff) | |
download | linux-5cb738b5fbd2f3ebe9dec0e428577a4f2128adbe.tar.gz linux-5cb738b5fbd2f3ebe9dec0e428577a4f2128adbe.tar.bz2 linux-5cb738b5fbd2f3ebe9dec0e428577a4f2128adbe.zip |
gfs2: Get rid of current_tail()
Keep the current value of the updated log tail in the super block as
sb_log_flush_tail instead of computing it on the fly. This avoids
unnecessary sd_ail_lock taking and cleans up the code.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2/incore.h')
-rw-r--r-- | fs/gfs2/incore.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h index 8f8676cf72ed..51656b053170 100644 --- a/fs/gfs2/incore.h +++ b/fs/gfs2/incore.h @@ -838,8 +838,6 @@ struct gfs2_sbd { wait_queue_head_t sd_logd_waitq; u64 sd_log_sequence; - unsigned int sd_log_head; - unsigned int sd_log_tail; int sd_log_idle; struct rw_semaphore sd_log_flush_lock; @@ -849,6 +847,9 @@ struct gfs2_sbd { int sd_log_error; /* First log error */ wait_queue_head_t sd_withdraw_wait; + unsigned int sd_log_tail; + unsigned int sd_log_flush_tail; + unsigned int sd_log_head; unsigned int sd_log_flush_head; spinlock_t sd_ail_lock; |