diff options
| author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-17 12:09:11 -0400 |
|---|---|---|
| committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-17 12:09:11 -0400 |
| commit | e01286282eef85e4783b06fb2e0ed84fc111eb32 (patch) | |
| tree | 7b8abd0e50aa394127051b1303aecf9c1420b6c4 | |
| parent | da167876bd0f71f1c646e5dd98997544d8d90e8e (diff) | |
ide: IDE_AFLAG_FORMAT_IN_PROGRESS -> IDE_DFLAG_FORMAT_IN_PROGRESS
There should be no functional changes caused by this patch.
Acked-by: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
| -rw-r--r-- | drivers/ide/ide-floppy.c | 6 | ||||
| -rw-r--r-- | drivers/ide/ide-floppy_ioctl.c | 6 | ||||
| -rw-r--r-- | include/linux/ide.h | 3 |
3 files changed, 7 insertions, 8 deletions
diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c index 8078e0826cd3..2cf98b531fd9 100644 --- a/drivers/ide/ide-floppy.c +++ b/drivers/ide/ide-floppy.c | |||
| @@ -664,7 +664,7 @@ static int idefloppy_open(struct inode *inode, struct file *filp) | |||
| 664 | floppy->openers++; | 664 | floppy->openers++; |
| 665 | 665 | ||
| 666 | if (floppy->openers == 1) { | 666 | if (floppy->openers == 1) { |
| 667 | drive->atapi_flags &= ~IDE_AFLAG_FORMAT_IN_PROGRESS; | 667 | drive->dev_flags &= ~IDE_DFLAG_FORMAT_IN_PROGRESS; |
| 668 | /* Just in case */ | 668 | /* Just in case */ |
| 669 | 669 | ||
| 670 | if (ide_do_test_unit_ready(drive, disk)) | 670 | if (ide_do_test_unit_ready(drive, disk)) |
| @@ -692,7 +692,7 @@ static int idefloppy_open(struct inode *inode, struct file *filp) | |||
| 692 | ide_set_media_lock(drive, disk, 1); | 692 | ide_set_media_lock(drive, disk, 1); |
| 693 | drive->dev_flags |= IDE_DFLAG_MEDIA_CHANGED; | 693 | drive->dev_flags |= IDE_DFLAG_MEDIA_CHANGED; |
| 694 | check_disk_change(inode->i_bdev); | 694 | check_disk_change(inode->i_bdev); |
| 695 | } else if (drive->atapi_flags & IDE_AFLAG_FORMAT_IN_PROGRESS) { | 695 | } else if (drive->dev_flags & IDE_DFLAG_FORMAT_IN_PROGRESS) { |
| 696 | ret = -EBUSY; | 696 | ret = -EBUSY; |
| 697 | goto out_put_floppy; | 697 | goto out_put_floppy; |
| 698 | } | 698 | } |
| @@ -714,7 +714,7 @@ static int idefloppy_release(struct inode *inode, struct file *filp) | |||
| 714 | 714 | ||
| 715 | if (floppy->openers == 1) { | 715 | if (floppy->openers == 1) { |
| 716 | ide_set_media_lock(drive, disk, 0); | 716 | ide_set_media_lock(drive, disk, 0); |
| 717 | drive->atapi_flags &= ~IDE_AFLAG_FORMAT_IN_PROGRESS; | 717 | drive->dev_flags &= ~IDE_DFLAG_FORMAT_IN_PROGRESS; |
| 718 | } | 718 | } |
| 719 | 719 | ||
| 720 | floppy->openers--; | 720 | floppy->openers--; |
diff --git a/drivers/ide/ide-floppy_ioctl.c b/drivers/ide/ide-floppy_ioctl.c index a3a7a0809e2b..b1f391df6cca 100644 --- a/drivers/ide/ide-floppy_ioctl.c +++ b/drivers/ide/ide-floppy_ioctl.c | |||
| @@ -138,11 +138,11 @@ static int ide_floppy_format_unit(ide_drive_t *drive, int __user *arg) | |||
| 138 | 138 | ||
| 139 | if (floppy->openers > 1) { | 139 | if (floppy->openers > 1) { |
| 140 | /* Don't format if someone is using the disk */ | 140 | /* Don't format if someone is using the disk */ |
| 141 | drive->atapi_flags &= ~IDE_AFLAG_FORMAT_IN_PROGRESS; | 141 | drive->dev_flags &= ~IDE_DFLAG_FORMAT_IN_PROGRESS; |
| 142 | return -EBUSY; | 142 | return -EBUSY; |
| 143 | } | 143 | } |
| 144 | 144 | ||
| 145 | drive->atapi_flags |= IDE_AFLAG_FORMAT_IN_PROGRESS; | 145 | drive->dev_flags |= IDE_DFLAG_FORMAT_IN_PROGRESS; |
| 146 | 146 | ||
| 147 | /* | 147 | /* |
| 148 | * Send ATAPI_FORMAT_UNIT to the drive. | 148 | * Send ATAPI_FORMAT_UNIT to the drive. |
| @@ -174,7 +174,7 @@ static int ide_floppy_format_unit(ide_drive_t *drive, int __user *arg) | |||
| 174 | 174 | ||
| 175 | out: | 175 | out: |
| 176 | if (err) | 176 | if (err) |
| 177 | drive->atapi_flags &= ~IDE_AFLAG_FORMAT_IN_PROGRESS; | 177 | drive->dev_flags &= ~IDE_DFLAG_FORMAT_IN_PROGRESS; |
| 178 | return err; | 178 | return err; |
| 179 | } | 179 | } |
| 180 | 180 | ||
diff --git a/include/linux/ide.h b/include/linux/ide.h index bd0a4d36b6d3..d111c3ebbbae 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
| @@ -497,8 +497,6 @@ enum { | |||
| 497 | IDE_AFLAG_LE_SPEED_FIELDS = (1 << 17), | 497 | IDE_AFLAG_LE_SPEED_FIELDS = (1 << 17), |
| 498 | 498 | ||
| 499 | /* ide-floppy */ | 499 | /* ide-floppy */ |
| 500 | /* Format in progress */ | ||
| 501 | IDE_AFLAG_FORMAT_IN_PROGRESS = (1 << 18), | ||
| 502 | /* Avoid commands not supported in Clik drive */ | 500 | /* Avoid commands not supported in Clik drive */ |
| 503 | IDE_AFLAG_CLIK_DRIVE = (1 << 19), | 501 | IDE_AFLAG_CLIK_DRIVE = (1 << 19), |
| 504 | /* Requires BH algorithm for packets */ | 502 | /* Requires BH algorithm for packets */ |
| @@ -579,6 +577,7 @@ enum { | |||
| 579 | IDE_DFLAG_MEDIA_CHANGED = (1 << 29), | 577 | IDE_DFLAG_MEDIA_CHANGED = (1 << 29), |
| 580 | /* write protect */ | 578 | /* write protect */ |
| 581 | IDE_DFLAG_WP = (1 << 30), | 579 | IDE_DFLAG_WP = (1 << 30), |
| 580 | IDE_DFLAG_FORMAT_IN_PROGRESS = (1 << 31), | ||
| 582 | }; | 581 | }; |
| 583 | 582 | ||
| 584 | struct ide_drive_s { | 583 | struct ide_drive_s { |
