Skip to content

Commit 66a86cc

Browse files
committed
dax: quiet bdev_dax_supported()
Before we add another failure reason, quiet the existing log messages. Leave it to the caller to decide if bdev_dax_supported() failures are errors worth emitting to the log. Reported-by: Jeff Moyer <jmoyer@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
1 parent aaa422c commit 66a86cc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/dax/super.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,21 +92,21 @@ int __bdev_dax_supported(struct super_block *sb, int blocksize)
9292
long len;
9393

9494
if (blocksize != PAGE_SIZE) {
95-
pr_err("VFS (%s): error: unsupported blocksize for dax\n",
95+
pr_debug("VFS (%s): error: unsupported blocksize for dax\n",
9696
sb->s_id);
9797
return -EINVAL;
9898
}
9999

100100
err = bdev_dax_pgoff(bdev, 0, PAGE_SIZE, &pgoff);
101101
if (err) {
102-
pr_err("VFS (%s): error: unaligned partition for dax\n",
102+
pr_debug("VFS (%s): error: unaligned partition for dax\n",
103103
sb->s_id);
104104
return err;
105105
}
106106

107107
dax_dev = dax_get_by_host(bdev->bd_disk->disk_name);
108108
if (!dax_dev) {
109-
pr_err("VFS (%s): error: device does not support dax\n",
109+
pr_debug("VFS (%s): error: device does not support dax\n",
110110
sb->s_id);
111111
return -EOPNOTSUPP;
112112
}
@@ -118,7 +118,7 @@ int __bdev_dax_supported(struct super_block *sb, int blocksize)
118118
put_dax(dax_dev);
119119

120120
if (len < 1) {
121-
pr_err("VFS (%s): error: dax access failed (%ld)",
121+
pr_debug("VFS (%s): error: dax access failed (%ld)\n",
122122
sb->s_id, len);
123123
return len < 0 ? len : -EIO;
124124
}

0 commit comments

Comments
 (0)