diff options
| author | Takashi Iwai <tiwai@suse.de> | 2009-12-15 10:29:06 +0100 | 
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2009-12-15 10:29:06 +0100 | 
| commit | 709334c87dbdb44150ce436b3d13c814db0dcae9 (patch) | |
| tree | 5861a45f70c1f283720337abd864498f5afb3dbe /fs/jbd2/commit.c | |
| parent | 0d64b568fcd48b133721c1d322e7c51d85eb12df (diff) | |
| parent | f74890277a196949e4004fe2955e1d4fb3930f98 (diff) | |
Merge branch 'fixes' of git://git.alsa-project.org/alsa-kernel into for-linus
Diffstat (limited to 'fs/jbd2/commit.c')
| -rw-r--r-- | fs/jbd2/commit.c | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/fs/jbd2/commit.c b/fs/jbd2/commit.c index d4cfd6d2779..6a10238d2c6 100644 --- a/fs/jbd2/commit.c +++ b/fs/jbd2/commit.c @@ -286,7 +286,7 @@ static int journal_finish_inode_data_buffers(journal_t *journal,  		if (err) {  			/*  			 * Because AS_EIO is cleared by -			 * wait_on_page_writeback_range(), set it again so +			 * filemap_fdatawait_range(), set it again so  			 * that user process can get -EIO from fsync().  			 */  			set_bit(AS_EIO, @@ -636,6 +636,10 @@ void jbd2_journal_commit_transaction(journal_t *journal)  		JBUFFER_TRACE(jh, "ph3: write metadata");  		flags = jbd2_journal_write_metadata_buffer(commit_transaction,  						      jh, &new_jh, blocknr); +		if (flags < 0) { +			jbd2_journal_abort(journal, flags); +			continue; +		}  		set_bit(BH_JWrite, &jh2bh(new_jh)->b_state);  		wbuf[bufs++] = jh2bh(new_jh); | 
