diff options
author | Gao Xiang <gaoxiang25@huawei.com> | 2019-09-04 05:09:09 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-09-05 21:10:09 +0300 |
commit | 4f761fa253b49f657de7ef6f695a124e08e56c3a (patch) | |
tree | 84d1dc58a8c8f20a77bfe9994fbf3b08b363f333 /fs/erofs/namei.c | |
parent | 84947eb603719f87ec91f0ba23126e40de7a268a (diff) | |
download | linux-4f761fa253b49f657de7ef6f695a124e08e56c3a.tar.xz |
erofs: rename errln/infoln/debugln to erofs_{err, info, dbg}
Add prefix "erofs_" to these functions and print
sb->s_id as a prefix to erofs_{err, info} so that
the user knows which file system is affected.
Reported-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Link: https://lore.kernel.org/r/20190904020912.63925-23-gaoxiang25@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/erofs/namei.c')
-rw-r--r-- | fs/erofs/namei.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/erofs/namei.c b/fs/erofs/namei.c index 6debc1d88282..3abbecbf73de 100644 --- a/fs/erofs/namei.c +++ b/fs/erofs/namei.c @@ -116,8 +116,9 @@ static struct page *find_target_block_classic(struct inode *dir, if (!ndirents) { kunmap_atomic(de); put_page(page); - errln("corrupted dir block %d @ nid %llu", - mid, EROFS_I(dir)->nid); + erofs_err(dir->i_sb, + "corrupted dir block %d @ nid %llu", + mid, EROFS_I(dir)->nid); DBG_BUGON(1); page = ERR_PTR(-EFSCORRUPTED); goto out; @@ -233,8 +234,8 @@ static struct dentry *erofs_lookup(struct inode *dir, } else if (err) { inode = ERR_PTR(err); } else { - debugln("%s, %s (nid %llu) found, d_type %u", __func__, - dentry->d_name.name, nid, d_type); + erofs_dbg("%s, %s (nid %llu) found, d_type %u", __func__, + dentry->d_name.name, nid, d_type); inode = erofs_iget(dir->i_sb, nid, d_type == FT_DIR); } return d_splice_alias(inode, dentry); |