Skip to content

Commit 31db720

Browse files
committed
Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
Pull ext3 and udf fixes from Jan Kara: "One ext3 performance regression fix and one udf regression fix (oops on interrupted mount)." * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs: UDF: Fix a null pointer dereference in udf_sb_free_partitions jbd: don't wake kjournald unnecessarily
2 parents 56400b5 + 1b1baff commit 31db720

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

fs/jbd/journal.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,8 @@ int __log_start_commit(journal_t *journal, tid_t target)
446446
* currently running transaction (if it exists). Otherwise,
447447
* the target tid must be an old one.
448448
*/
449-
if (journal->j_running_transaction &&
449+
if (journal->j_commit_request != target &&
450+
journal->j_running_transaction &&
450451
journal->j_running_transaction->t_tid == target) {
451452
/*
452453
* We want a new commit: OK, mark the request and wakeup the

fs/udf/super.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,8 @@ static void udf_sb_free_partitions(struct super_block *sb)
307307
{
308308
struct udf_sb_info *sbi = UDF_SB(sb);
309309
int i;
310-
310+
if (sbi->s_partmaps == NULL)
311+
return;
311312
for (i = 0; i < sbi->s_partitions; i++)
312313
udf_free_partition(&sbi->s_partmaps[i]);
313314
kfree(sbi->s_partmaps);

0 commit comments

Comments
 (0)