diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 23:34:49 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 23:34:49 -0400 |
| commit | c4755d16fce9a4cdbb316c17657444856821bd4b (patch) | |
| tree | 56060ddcdb8e1e3ddcc7970a2324cadb3e8e4e27 /fs/ext3/inode.c | |
| parent | c15a2434ed4868cad99278ac4d4ae4de9de62e02 (diff) | |
| parent | f1fa3342e271029f93d323ca664809b94594fe04 (diff) | |
Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4
* 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4: (48 commits)
ext4: fix hot spins in mballoc after err_freebuddy and err_freemeta
ext4: fix test ext_generic_write_end() copied return value
ext3: fix test ext_generic_write_end() copied return value
ext4: Move mballoc headers/structures to a seperate header file mballoc.h
ext4: cleanup for compiling mballoc with verification and debugging #defines
ext4: don't use ext4_error in ext4_check_descriptors
ext4: mark inode dirty after initializing the extent tree
ext4: update ctime and mtime for truncate with extents.
ext4: Don't do GFP_NOFS allocations after taking ext4_lock_group
ext4: move headers out of include/linux
ext4: fix wrong gfp type under transaction
ext4: Fix hang on umount with quotas when journal is aborted
ext4: Fix update of mtime and ctime on rename
jdb2: replace remaining __FUNCTION__ occurrences
ext4: replace remaining __FUNCTION__ occurrences
jbd2: only create debugfs and stats entries if init is successful
jbd2: fix kernel-doc notation
jbd2: replace potentially false assertion with if block
jbd2: eliminate duplicated code in revocation table init/destroy functions
jbd2: tidy up revoke cache initialisation and destruction
...
Diffstat (limited to 'fs/ext3/inode.c')
| -rw-r--r-- | fs/ext3/inode.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/fs/ext3/inode.c b/fs/ext3/inode.c index cc47b76091bf..6ae4ecf3ce40 100644 --- a/fs/ext3/inode.c +++ b/fs/ext3/inode.c | |||
| @@ -1261,10 +1261,11 @@ static int ext3_ordered_write_end(struct file *file, | |||
| 1261 | new_i_size = pos + copied; | 1261 | new_i_size = pos + copied; |
| 1262 | if (new_i_size > EXT3_I(inode)->i_disksize) | 1262 | if (new_i_size > EXT3_I(inode)->i_disksize) |
| 1263 | EXT3_I(inode)->i_disksize = new_i_size; | 1263 | EXT3_I(inode)->i_disksize = new_i_size; |
| 1264 | copied = ext3_generic_write_end(file, mapping, pos, len, copied, | 1264 | ret2 = ext3_generic_write_end(file, mapping, pos, len, copied, |
| 1265 | page, fsdata); | 1265 | page, fsdata); |
| 1266 | if (copied < 0) | 1266 | copied = ret2; |
| 1267 | ret = copied; | 1267 | if (ret2 < 0) |
| 1268 | ret = ret2; | ||
| 1268 | } | 1269 | } |
| 1269 | ret2 = ext3_journal_stop(handle); | 1270 | ret2 = ext3_journal_stop(handle); |
| 1270 | if (!ret) | 1271 | if (!ret) |
| @@ -1289,10 +1290,11 @@ static int ext3_writeback_write_end(struct file *file, | |||
| 1289 | if (new_i_size > EXT3_I(inode)->i_disksize) | 1290 | if (new_i_size > EXT3_I(inode)->i_disksize) |
| 1290 | EXT3_I(inode)->i_disksize = new_i_size; | 1291 | EXT3_I(inode)->i_disksize = new_i_size; |
| 1291 | 1292 | ||
| 1292 | copied = ext3_generic_write_end(file, mapping, pos, len, copied, | 1293 | ret2 = ext3_generic_write_end(file, mapping, pos, len, copied, |
| 1293 | page, fsdata); | 1294 | page, fsdata); |
| 1294 | if (copied < 0) | 1295 | copied = ret2; |
| 1295 | ret = copied; | 1296 | if (ret2 < 0) |
| 1297 | ret = ret2; | ||
| 1296 | 1298 | ||
| 1297 | ret2 = ext3_journal_stop(handle); | 1299 | ret2 = ext3_journal_stop(handle); |
| 1298 | if (!ret) | 1300 | if (!ret) |
