aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/incore.h
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2017-01-05 16:01:45 -0500
committerBob Peterson <rpeterso@redhat.com>2017-01-05 16:01:45 -0500
commitf07b352021483a3a38f081dc284928400a9c1d2c (patch)
treefeef7f57a98a0fc58ebfa693d7c435f2029c68bb /fs/gfs2/incore.h
parent2fcf5cc3be06126f9aa2430ca6d739c8b3c5aaf5 (diff)
downloadlinux-f07b352021483a3a38f081dc284928400a9c1d2c.tar.gz
GFS2: Made logd daemon take into account log demand
Before this patch, the logd daemon only tried to flush things when the log blocks pinned exceeded a certain threshold. But when we're deleting very large files, it may require a huge number of journal blocks, and that, in turn, may exceed the threshold. This patch factors that into account. Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Diffstat (limited to 'fs/gfs2/incore.h')
-rw-r--r--fs/gfs2/incore.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h
index a6a3389a07fc6..00d8dc20ea3a1 100644
--- a/fs/gfs2/incore.h
+++ b/fs/gfs2/incore.h
@@ -794,6 +794,7 @@ struct gfs2_sbd {
atomic_t sd_log_thresh1;
atomic_t sd_log_thresh2;
atomic_t sd_log_blks_free;
+ atomic_t sd_log_blks_needed;
wait_queue_head_t sd_log_waitq;
wait_queue_head_t sd_logd_waitq;