diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-25 20:16:53 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-25 20:16:53 -0400 |
commit | 2031d0f586839bc68f35bcf8580b18947f8491d4 (patch) | |
tree | e317615b4cb62350edeea0afe0a4fc94152cee29 /fs/jbd/journal.c | |
parent | 98e7f29418a4931f97e6b78d1ef3a47103fe6cd5 (diff) | |
parent | 3e1d1d28d99dabe63c64f7f40f1ca1d646de1f73 (diff) |
Merge Christoph's freeze cleanup patch
Diffstat (limited to 'fs/jbd/journal.c')
-rw-r--r-- | fs/jbd/journal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/jbd/journal.c b/fs/jbd/journal.c index 1e6f2e2ad4a3..5e7b43949517 100644 --- a/fs/jbd/journal.c +++ b/fs/jbd/journal.c | |||
@@ -167,7 +167,7 @@ loop: | |||
167 | } | 167 | } |
168 | 168 | ||
169 | wake_up(&journal->j_wait_done_commit); | 169 | wake_up(&journal->j_wait_done_commit); |
170 | if (current->flags & PF_FREEZE) { | 170 | if (freezing(current)) { |
171 | /* | 171 | /* |
172 | * The simpler the better. Flushing journal isn't a | 172 | * The simpler the better. Flushing journal isn't a |
173 | * good idea, because that depends on threads that may | 173 | * good idea, because that depends on threads that may |
@@ -175,7 +175,7 @@ loop: | |||
175 | */ | 175 | */ |
176 | jbd_debug(1, "Now suspending kjournald\n"); | 176 | jbd_debug(1, "Now suspending kjournald\n"); |
177 | spin_unlock(&journal->j_state_lock); | 177 | spin_unlock(&journal->j_state_lock); |
178 | refrigerator(PF_FREEZE); | 178 | refrigerator(); |
179 | spin_lock(&journal->j_state_lock); | 179 | spin_lock(&journal->j_state_lock); |
180 | } else { | 180 | } else { |
181 | /* | 181 | /* |