]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
GFS2: Set log descriptor type for jdata blocks
authorBob Peterson <rpeterso@redhat.com>
Fri, 24 May 2013 19:02:49 +0000 (15:02 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Sun, 26 May 2013 13:21:56 +0000 (14:21 +0100)
This patch sets the log descriptor type according to whether the
journal commit is for (journaled) data or metadata. This was
recently broken when the functions to process data and metadata
log ops were combined.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/lops.c

index 0457768a6c06d94011aa7e4d26497522c8be5970..33f18b7282b2513e8af09a2f07e3dcc8d490446e 100644 (file)
@@ -435,7 +435,9 @@ static void gfs2_before_commit(struct gfs2_sbd *sdp, unsigned int limit,
                if (total > limit)
                        num = limit;
                gfs2_log_unlock(sdp);
-               page = gfs2_get_log_desc(sdp, GFS2_LOG_DESC_METADATA, num + 1, num);
+               page = gfs2_get_log_desc(sdp,
+                                        is_databuf ? GFS2_LOG_DESC_JDATA :
+                                        GFS2_LOG_DESC_METADATA, num + 1, num);
                ld = page_address(page);
                gfs2_log_lock(sdp);
                ptr = (__be64 *)(ld + 1);