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
nexedi
linux
Commits
8cd4a904
Commit
8cd4a904
authored
Mar 11, 2003
by
Dave Kleikamp
Browse files
Options
Browse Files
Download
Plain Diff
Merge jfs@jfs.bkbits.net:linux-2.5
into shaggy.austin.ibm.com:/shaggy/bk/jfs-2.5
parents
2ec18910
11059034
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
30 deletions
+30
-30
fs/jfs/jfs_logmgr.c
fs/jfs/jfs_logmgr.c
+16
-18
fs/jfs/jfs_txnmgr.c
fs/jfs/jfs_txnmgr.c
+14
-12
No files found.
fs/jfs/jfs_logmgr.c
View file @
8cd4a904
...
...
@@ -674,28 +674,29 @@ int lmGroupCommit(struct jfs_log * log, struct tblock * tblk)
}
jfs_info
(
"lmGroup Commit: tblk = 0x%p, gcrtc = %d"
,
tblk
,
log
->
gcrtc
);
if
(
tblk
->
xflag
&
COMMIT_LAZY
)
{
/*
* Lazy transactions can leave now
*/
if
(
tblk
->
xflag
&
COMMIT_LAZY
)
tblk
->
flag
|=
tblkGC_LAZY
;
LOGGC_UNLOCK
(
log
);
return
0
;
}
/*
* group commit pageout in progress
*/
if
((
!
(
log
->
cflag
&
logGC_PAGEOUT
))
&&
log
->
cqueue
.
head
)
{
if
((
!
(
log
->
cflag
&
logGC_PAGEOUT
))
&&
log
->
cqueue
.
head
&&
(
!
(
tblk
->
xflag
&
COMMIT_LAZY
)
||
test_bit
(
log_FLUSH
,
&
log
->
flag
)))
{
/*
*
only transaction in the commit queue:
*
No pageout in progress
*
* start one-transaction group commit as
* its group leader.
* start group commit as its group leader.
*/
log
->
cflag
|=
logGC_PAGEOUT
;
lmGCwrite
(
log
,
0
);
}
if
(
tblk
->
xflag
&
COMMIT_LAZY
)
{
/*
* Lazy transactions can leave now
*/
LOGGC_UNLOCK
(
log
);
return
0
;
}
/* lmGCwrite gives up LOGGC_LOCK, check again */
if
(
tblk
->
flag
&
tblkGC_COMMITTED
)
{
...
...
@@ -894,11 +895,8 @@ void lmPostGC(struct lbuf * bp)
* the first transaction entering group commit
* will elect herself as new group leader.
*/
else
{
else
log
->
cflag
&=
~
logGC_PAGEOUT
;
clear_bit
(
log_FLUSH
,
&
log
->
flag
);
WARN_ON
(
log
->
flush_tblk
);
}
//LOGGC_UNLOCK(log);
spin_unlock_irqrestore
(
&
log
->
gclock
,
flags
);
...
...
fs/jfs/jfs_txnmgr.c
View file @
8cd4a904
...
...
@@ -518,16 +518,17 @@ void txEnd(tid_t tid)
/*
* mark the tblock not active
*/
--
log
->
active
;
if
(
--
log
->
active
==
0
)
{
clear_bit
(
log_FLUSH
,
&
log
->
flag
);
/*
* synchronize with logsync barrier
*/
if
(
test_bit
(
log_SYNCBARRIER
,
&
log
->
flag
)
&&
log
->
active
==
0
)
{
if
(
test_bit
(
log_SYNCBARRIER
,
&
log
->
flag
)
)
{
/* forward log syncpt */
/* lmSync(log); */
jfs_info
(
"
log barrier off: 0x%x"
,
log
->
lsn
);
jfs_info
(
"
log barrier off: 0x%x"
,
log
->
lsn
);
/* enable new transactions start */
clear_bit
(
log_SYNCBARRIER
,
&
log
->
flag
);
...
...
@@ -535,6 +536,7 @@ void txEnd(tid_t tid)
/* wakeup all waitors for logsync barrier */
TXN_WAKEUP
(
&
log
->
syncwait
);
}
}
/*
* wakeup all waitors for a free tblock
...
...
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