diff options
| author | Alexander Viro <viro@math.psu.edu> | 2002-11-17 03:04:33 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-11-17 03:04:33 -0800 |
| commit | 2cdd5908a910dc45eacbf79d5335806850e6984a (patch) | |
| tree | fa2ed056e93c2a64c92dd63fd1214c83153445b1 /fs/block_dev.c | |
| parent | d4a81d325b5ad7b4c85a57c3ec821182e7c0adfc (diff) | |
[PATCH] fix for rescan_partitions()
Check for ->bd_invalidate moved from rescan_partitions() to the only caller
that
a) needs that check and
b) doesn't do it already.
Fixes the problem with BLKRRPART which doesn't want that check at all...
Diffstat (limited to 'fs/block_dev.c')
| -rw-r--r-- | fs/block_dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c index 36bbf0d97ffd..9fd5fc4c3a36 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c @@ -520,7 +520,7 @@ int full_check_disk_change(struct block_device *bdev) if (bdev->bd_contains != bdev) BUG(); down(&bdev->bd_sem); - if (check_disk_change(bdev)) { + if (check_disk_change(bdev) && bdev->bd_invalidated) { rescan_partitions(bdev->bd_disk, bdev); res = 1; } |
