diff options
author | Gao Xiang <gaoxiang25@huawei.com> | 2019-09-04 04:09:09 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-09-05 20:10:09 +0200 |
commit | 4f761fa253b49f657de7ef6f695a124e08e56c3a (patch) | |
tree | 84d1dc58a8c8f20a77bfe9994fbf3b08b363f333 /fs/erofs/zdata.c | |
parent | erofs: save one level of indentation (diff) | |
download | linux-4f761fa253b49f657de7ef6f695a124e08e56c3a.tar.xz linux-4f761fa253b49f657de7ef6f695a124e08e56c3a.zip |
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/zdata.c')
-rw-r--r-- | fs/erofs/zdata.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/fs/erofs/zdata.c b/fs/erofs/zdata.c index ff8ab444172d..96e34c90f814 100644 --- a/fs/erofs/zdata.c +++ b/fs/erofs/zdata.c @@ -600,7 +600,7 @@ repeat: } /* go ahead the next map_blocks */ - debugln("%s: [out-of-range] pos %llu", __func__, offset + cur); + erofs_dbg("%s: [out-of-range] pos %llu", __func__, offset + cur); if (z_erofs_collector_end(clt)) fe->backmost = false; @@ -680,8 +680,8 @@ next_part: out: z_erofs_onlinepage_endio(page); - debugln("%s, finish page: %pK spiltted: %u map->m_llen %llu", - __func__, page, spiltted, map->m_llen); + erofs_dbg("%s, finish page: %pK spiltted: %u map->m_llen %llu", + __func__, page, spiltted, map->m_llen); return err; /* if some error occurred while processing this page */ @@ -1340,7 +1340,7 @@ static int z_erofs_vle_normalaccess_readpage(struct file *file, z_erofs_submit_and_unzip(inode->i_sb, &f.clt, &pagepool, true); if (err) - errln("%s, failed to read, err [%d]", __func__, err); + erofs_err(inode->i_sb, "failed to read, err [%d]", err); if (f.map.mpage) put_page(f.map.mpage); @@ -1406,8 +1406,9 @@ static int z_erofs_vle_normalaccess_readpages(struct file *filp, err = z_erofs_do_read_page(&f, page, &pagepool); if (err) - errln("%s, readahead error at page %lu of nid %llu", - __func__, page->index, EROFS_I(inode)->nid); + erofs_err(inode->i_sb, + "readahead error at page %lu @ nid %llu", + page->index, EROFS_I(inode)->nid); put_page(page); } |