diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-28 16:21:44 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-28 16:21:44 -0500 |
commit | de1a2262b006220dae2561a299a6ea128c46f4fe (patch) | |
tree | 0df7b3686f09a77a000fb63a333237facad3482c /fs/ext4 | |
parent | f042fea0da78d9dc077a9c736b33b60eb8f35195 (diff) | |
parent | ed84825b785ceb932af7dd5aa08614801721320b (diff) |
Merge tag 'writeback-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/wfg/linux
Pull writeback fixes from Wu Fengguang:
"Two writeback fixes
- fix negative (setpoint - dirty) in 32bit archs
- use down_read_trylock() in writeback_inodes_sb(_nr)_if_idle()"
* tag 'writeback-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/wfg/linux:
Negative (setpoint-dirty) in bdi_position_ratio()
vfs: re-implement writeback_inodes_sb(_nr)_if_idle() and rename them
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/inode.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 9c4f4b1c97f8..9ea0cde3fa9e 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c | |||
@@ -2512,12 +2512,8 @@ static int ext4_nonda_switch(struct super_block *sb) | |||
2512 | /* | 2512 | /* |
2513 | * Start pushing delalloc when 1/2 of free blocks are dirty. | 2513 | * Start pushing delalloc when 1/2 of free blocks are dirty. |
2514 | */ | 2514 | */ |
2515 | if (dirty_blocks && (free_blocks < 2 * dirty_blocks) && | 2515 | if (dirty_blocks && (free_blocks < 2 * dirty_blocks)) |
2516 | !writeback_in_progress(sb->s_bdi) && | 2516 | try_to_writeback_inodes_sb(sb, WB_REASON_FS_FREE_SPACE); |
2517 | down_read_trylock(&sb->s_umount)) { | ||
2518 | writeback_inodes_sb(sb, WB_REASON_FS_FREE_SPACE); | ||
2519 | up_read(&sb->s_umount); | ||
2520 | } | ||
2521 | 2517 | ||
2522 | if (2 * free_blocks < 3 * dirty_blocks || | 2518 | if (2 * free_blocks < 3 * dirty_blocks || |
2523 | free_blocks < (dirty_blocks + EXT4_FREECLUSTERS_WATERMARK)) { | 2519 | free_blocks < (dirty_blocks + EXT4_FREECLUSTERS_WATERMARK)) { |