diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-25 13:05:37 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-25 13:05:37 -0400 |
| commit | 2849a3a945d0e440fa245c47c49c80ef1cc103c3 (patch) | |
| tree | 616868130f4b8a063cfa1c138135c10247a4da0e /fs/xfs | |
| parent | 417c765af914106f5e76c4e0181dd555fe6a89a0 (diff) | |
| parent | 8bb9660418e05bb1845ac1a2428444d78e322cc7 (diff) | |
Merge 3.9-rc4 into usb-next
This picks up the fixes we had for USB in 3.9-rc4
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/xfs')
| -rw-r--r-- | fs/xfs/xfs_buf.c | 6 | ||||
| -rw-r--r-- | fs/xfs/xfs_iomap.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c index 4e8f0df82d02..8459b5d8cb71 100644 --- a/fs/xfs/xfs_buf.c +++ b/fs/xfs/xfs_buf.c | |||
| @@ -1334,6 +1334,12 @@ _xfs_buf_ioapply( | |||
| 1334 | int size; | 1334 | int size; |
| 1335 | int i; | 1335 | int i; |
| 1336 | 1336 | ||
| 1337 | /* | ||
| 1338 | * Make sure we capture only current IO errors rather than stale errors | ||
| 1339 | * left over from previous use of the buffer (e.g. failed readahead). | ||
| 1340 | */ | ||
| 1341 | bp->b_error = 0; | ||
| 1342 | |||
| 1337 | if (bp->b_flags & XBF_WRITE) { | 1343 | if (bp->b_flags & XBF_WRITE) { |
| 1338 | if (bp->b_flags & XBF_SYNCIO) | 1344 | if (bp->b_flags & XBF_SYNCIO) |
| 1339 | rw = WRITE_SYNC; | 1345 | rw = WRITE_SYNC; |
diff --git a/fs/xfs/xfs_iomap.c b/fs/xfs/xfs_iomap.c index 912d83d8860a..5a30dd899d2b 100644 --- a/fs/xfs/xfs_iomap.c +++ b/fs/xfs/xfs_iomap.c | |||
| @@ -325,7 +325,7 @@ xfs_iomap_eof_want_preallocate( | |||
| 325 | * rather than falling short due to things like stripe unit/width alignment of | 325 | * rather than falling short due to things like stripe unit/width alignment of |
| 326 | * real extents. | 326 | * real extents. |
| 327 | */ | 327 | */ |
| 328 | STATIC int | 328 | STATIC xfs_fsblock_t |
| 329 | xfs_iomap_eof_prealloc_initial_size( | 329 | xfs_iomap_eof_prealloc_initial_size( |
| 330 | struct xfs_mount *mp, | 330 | struct xfs_mount *mp, |
| 331 | struct xfs_inode *ip, | 331 | struct xfs_inode *ip, |
| @@ -413,7 +413,7 @@ xfs_iomap_prealloc_size( | |||
| 413 | * have a large file on a small filesystem and the above | 413 | * have a large file on a small filesystem and the above |
| 414 | * lowspace thresholds are smaller than MAXEXTLEN. | 414 | * lowspace thresholds are smaller than MAXEXTLEN. |
| 415 | */ | 415 | */ |
| 416 | while (alloc_blocks >= freesp) | 416 | while (alloc_blocks && alloc_blocks >= freesp) |
| 417 | alloc_blocks >>= 4; | 417 | alloc_blocks >>= 4; |
| 418 | } | 418 | } |
| 419 | 419 | ||
