diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2014-02-21 15:22:35 +0000 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2014-02-24 16:54:54 +0000 |
commit | d69a3c6561362a53d1be908ca343d899161d602c (patch) | |
tree | 8e9827ef9c25a21fab641dcaf263f84b026d535e /fs/gfs2/glops.c | |
parent | 654a6d2f962edb7bf85973cfe93a04e24f56f902 (diff) | |
download | linux-d69a3c6561362a53d1be908ca343d899161d602c.tar.gz linux-d69a3c6561362a53d1be908ca343d899161d602c.tar.bz2 linux-d69a3c6561362a53d1be908ca343d899161d602c.zip |
GFS2: Move log buffer lists into transaction
Over time, we hope to be able to improve the concurrency available
in the log code. This is one small step towards that, by moving
the buffer lists from the super block, and into the transaction
structure, so that each transaction builds its own buffer lists.
At transaction commit time, the buffer lists are merged into
the currently accumulating transaction. That transaction then
is passed into the before and after commit functions at journal
flush time. Thus there should be no change in overall behaviour
yet.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/glops.c')
-rw-r--r-- | fs/gfs2/glops.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/gfs2/glops.c b/fs/gfs2/glops.c index 3bf0631b5d56..54b66809e818 100644 --- a/fs/gfs2/glops.c +++ b/fs/gfs2/glops.c @@ -82,6 +82,8 @@ static void gfs2_ail_empty_gl(struct gfs2_glock *gl) struct gfs2_trans tr; memset(&tr, 0, sizeof(tr)); + INIT_LIST_HEAD(&tr.tr_buf); + INIT_LIST_HEAD(&tr.tr_databuf); tr.tr_revokes = atomic_read(&gl->gl_ail_count); if (!tr.tr_revokes) |