You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
block: use printk_once
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com> Cc: Jens Axboe <axboe@kernel.dk> Cc: Tim Waugh <tim@cyberelk.net> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
committed by
Jens Axboe
parent
212a502676
commit
49b3a3cbc0
@@ -219,8 +219,6 @@ static int pcd_sector; /* address of next requested sector */
|
||||
static int pcd_count; /* number of blocks still to do */
|
||||
static char *pcd_buf; /* buffer for request in progress */
|
||||
|
||||
static int pcd_warned; /* Have we logged a phase warning ? */
|
||||
|
||||
/* kernel glue structures */
|
||||
|
||||
static int pcd_block_open(struct block_device *bdev, fmode_t mode)
|
||||
@@ -417,12 +415,10 @@ static int pcd_completion(struct pcd_unit *cd, char *buf, char *fun)
|
||||
printk
|
||||
("%s: %s: Unexpected phase %d, d=%d, k=%d\n",
|
||||
cd->name, fun, p, d, k);
|
||||
if ((verbose < 2) && !pcd_warned) {
|
||||
pcd_warned = 1;
|
||||
printk
|
||||
("%s: WARNING: ATAPI phase errors\n",
|
||||
cd->name);
|
||||
}
|
||||
if (verbose < 2)
|
||||
printk_once(
|
||||
"%s: WARNING: ATAPI phase errors\n",
|
||||
cd->name);
|
||||
mdelay(1);
|
||||
}
|
||||
if (k++ > PCD_TMO) {
|
||||
|
||||
Reference in New Issue
Block a user