mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
GFS2: Set log descriptor type for jdata blocks
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 <[email protected]> Signed-off-by: Steven Whitehouse <[email protected]>
This commit is contained in:
parent
aa4f608478
commit
4a58681205
1 changed files with 3 additions and 1 deletions
|
|
@ -419,7 +419,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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue