Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
9cc36375
Commit
9cc36375
authored
Sep 22, 2003
by
Alexander Viro
Committed by
Linus Torvalds
Sep 22, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] prepare for 32-bit dev_t: JFS
Added missing old_encode_dev() in JFS.
parent
9e213524
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
fs/jfs/jfs_mount.c
fs/jfs/jfs_mount.c
+2
-2
fs/jfs/jfs_txnmgr.c
fs/jfs/jfs_txnmgr.c
+1
-1
No files found.
fs/jfs/jfs_mount.c
View file @
9cc36375
...
@@ -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
;
...
...
fs/jfs/jfs_txnmgr.c
View file @
9cc36375
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment