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
fs: use block_device name vsprintf helper
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
+3
-4
@@ -80,7 +80,6 @@ static int squashfs_fill_super(struct super_block *sb, void *data, int silent)
|
||||
{
|
||||
struct squashfs_sb_info *msblk;
|
||||
struct squashfs_super_block *sblk = NULL;
|
||||
char b[BDEVNAME_SIZE];
|
||||
struct inode *root;
|
||||
long long root_inode;
|
||||
unsigned short flags;
|
||||
@@ -124,8 +123,8 @@ static int squashfs_fill_super(struct super_block *sb, void *data, int silent)
|
||||
sb->s_magic = le32_to_cpu(sblk->s_magic);
|
||||
if (sb->s_magic != SQUASHFS_MAGIC) {
|
||||
if (!silent)
|
||||
ERROR("Can't find a SQUASHFS superblock on %s\n",
|
||||
bdevname(sb->s_bdev, b));
|
||||
ERROR("Can't find a SQUASHFS superblock on %pg\n",
|
||||
sb->s_bdev);
|
||||
goto failed_mount;
|
||||
}
|
||||
|
||||
@@ -178,7 +177,7 @@ static int squashfs_fill_super(struct super_block *sb, void *data, int silent)
|
||||
msblk->inodes = le32_to_cpu(sblk->inodes);
|
||||
flags = le16_to_cpu(sblk->flags);
|
||||
|
||||
TRACE("Found valid superblock on %s\n", bdevname(sb->s_bdev, b));
|
||||
TRACE("Found valid superblock on %pg\n", sb->s_bdev);
|
||||
TRACE("Inodes are %scompressed\n", SQUASHFS_UNCOMPRESSED_INODES(flags)
|
||||
? "un" : "");
|
||||
TRACE("Data is %scompressed\n", SQUASHFS_UNCOMPRESSED_DATA(flags)
|
||||
|
||||
Reference in New Issue
Block a user