diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-11-03 21:16:21 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-11-03 21:16:21 -0500 |
| commit | 51bb296b09a83ee1aae025778db38f9d2cc7bb1a (patch) | |
| tree | 739f445b953aa77e82a429fe3a939d0b4cb3d222 /mm | |
| parent | dc79d2f21a2dc19df26f0cb0b46be2d6241b627b (diff) | |
| parent | 4b27e1bb442e964903f8a3fa6bdf33a602dc0941 (diff) | |
Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block
* 'for-linus' of git://git.kernel.dk/linux-2.6-block:
cfq-iosched: limit coop preemption
cfq-iosched: fix bad return value cfq_should_preempt()
backing-dev: bdi sb prune should be in the unregister path, not destroy
Fix bio_alloc() and bio_kmalloc() documentation
bio_put(): add bio_clone() to the list of functions in the comment
Diffstat (limited to 'mm')
| -rw-r--r-- | mm/backing-dev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/backing-dev.c b/mm/backing-dev.c index 1065b715ef64..11aee09dd2a6 100644 --- a/mm/backing-dev.c +++ b/mm/backing-dev.c | |||
| @@ -628,6 +628,8 @@ static void bdi_prune_sb(struct backing_dev_info *bdi) | |||
| 628 | void bdi_unregister(struct backing_dev_info *bdi) | 628 | void bdi_unregister(struct backing_dev_info *bdi) |
| 629 | { | 629 | { |
| 630 | if (bdi->dev) { | 630 | if (bdi->dev) { |
| 631 | bdi_prune_sb(bdi); | ||
| 632 | |||
| 631 | if (!bdi_cap_flush_forker(bdi)) | 633 | if (!bdi_cap_flush_forker(bdi)) |
| 632 | bdi_wb_shutdown(bdi); | 634 | bdi_wb_shutdown(bdi); |
| 633 | bdi_debug_unregister(bdi); | 635 | bdi_debug_unregister(bdi); |
| @@ -697,7 +699,6 @@ void bdi_destroy(struct backing_dev_info *bdi) | |||
| 697 | spin_unlock(&inode_lock); | 699 | spin_unlock(&inode_lock); |
| 698 | } | 700 | } |
| 699 | 701 | ||
| 700 | bdi_prune_sb(bdi); | ||
| 701 | bdi_unregister(bdi); | 702 | bdi_unregister(bdi); |
| 702 | 703 | ||
| 703 | for (i = 0; i < NR_BDI_STAT_ITEMS; i++) | 704 | for (i = 0; i < NR_BDI_STAT_ITEMS; i++) |
