Commit 9cc36375 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] prepare for 32-bit dev_t: JFS

	Added missing old_encode_dev() in JFS.
parent 9e213524
...@@ -444,7 +444,7 @@ int updateSuper(struct super_block *sb, uint state) ...@@ -444,7 +444,7 @@ int updateSuper(struct super_block *sb, uint state)
if (state == FM_MOUNT) { if (state == FM_MOUNT) {
/* record log's dev_t and mount serial number */ /* record log's dev_t and mount serial number */
j_sb->s_logdev = cpu_to_le32(sbi->log->bdev->bd_dev); j_sb->s_logdev = cpu_to_le32(old_encode_dev(sbi->log->bdev->bd_dev));
j_sb->s_logserial = cpu_to_le32(sbi->log->serial); j_sb->s_logserial = cpu_to_le32(sbi->log->serial);
} else if (state == FM_CLEAN) { } else if (state == FM_CLEAN) {
/* /*
...@@ -507,7 +507,7 @@ static int logMOUNT(struct super_block *sb) ...@@ -507,7 +507,7 @@ static int logMOUNT(struct super_block *sb)
lrd.backchain = 0; lrd.backchain = 0;
lrd.type = cpu_to_le16(LOG_MOUNT); lrd.type = cpu_to_le16(LOG_MOUNT);
lrd.length = 0; lrd.length = 0;
lrd.aggregate = cpu_to_le32(sb->s_bdev->bd_dev); lrd.aggregate = cpu_to_le32(old_encode_dev(sb->s_bdev->bd_dev));
lmLog(log, NULL, &lrd, NULL); lmLog(log, NULL, &lrd, NULL);
return 0; return 0;
......
...@@ -1354,7 +1354,7 @@ static int txLog(struct jfs_log * log, struct tblock * tblk, struct commit * cd) ...@@ -1354,7 +1354,7 @@ static int txLog(struct jfs_log * log, struct tblock * tblk, struct commit * cd)
/* initialize lrd common */ /* initialize lrd common */
ip = tlck->ip; ip = tlck->ip;
lrd->aggregate = cpu_to_le32(ip->i_sb->s_bdev->bd_dev); lrd->aggregate = cpu_to_le32(old_encode_dev(ip->i_sb->s_bdev->bd_dev));
lrd->log.redopage.fileset = cpu_to_le32(JFS_IP(ip)->fileset); lrd->log.redopage.fileset = cpu_to_le32(JFS_IP(ip)->fileset);
lrd->log.redopage.inode = cpu_to_le32(ip->i_ino); lrd->log.redopage.inode = cpu_to_le32(ip->i_ino);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment