]> git.baikalelectronics.ru Git - kernel.git/commit
GFS2: Made logd daemon take into account log demand
authorBob Peterson <rpeterso@redhat.com>
Thu, 5 Jan 2017 21:01:45 +0000 (16:01 -0500)
committerBob Peterson <rpeterso@redhat.com>
Thu, 5 Jan 2017 21:01:45 +0000 (16:01 -0500)
commit50c2f5183c97360ce94b1676d6e1c64ea36c483b
treefeef7f57a98a0fc58ebfa693d7c435f2029c68bb
parentf7a0298e7825768f25c76bb3691d32275fef2fb9
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>
fs/gfs2/incore.h
fs/gfs2/log.c
fs/gfs2/ops_fstype.c