提交 2e928e48 编写于 作者: T Trond Myklebust

NFSv4.1: Declare osd_pri_2_pnfs_err(), objio_init_read/write to be static

Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 d6aa6a81
...@@ -369,7 +369,7 @@ void objio_free_result(struct objlayout_io_res *oir) ...@@ -369,7 +369,7 @@ void objio_free_result(struct objlayout_io_res *oir)
kfree(objios); kfree(objios);
} }
enum pnfs_osd_errno osd_pri_2_pnfs_err(enum osd_err_priority oep) static enum pnfs_osd_errno osd_pri_2_pnfs_err(enum osd_err_priority oep)
{ {
switch (oep) { switch (oep) {
case OSD_ERR_PRI_NO_ERROR: case OSD_ERR_PRI_NO_ERROR:
...@@ -574,7 +574,7 @@ static bool objio_pg_test(struct nfs_pageio_descriptor *pgio, ...@@ -574,7 +574,7 @@ static bool objio_pg_test(struct nfs_pageio_descriptor *pgio,
(unsigned long)pgio->pg_layout_private; (unsigned long)pgio->pg_layout_private;
} }
void objio_init_read(struct nfs_pageio_descriptor *pgio, struct nfs_page *req) static void objio_init_read(struct nfs_pageio_descriptor *pgio, struct nfs_page *req)
{ {
pnfs_generic_pg_init_read(pgio, req); pnfs_generic_pg_init_read(pgio, req);
if (unlikely(pgio->pg_lseg == NULL)) if (unlikely(pgio->pg_lseg == NULL))
...@@ -604,7 +604,7 @@ static bool aligned_on_raid_stripe(u64 offset, struct ore_layout *layout, ...@@ -604,7 +604,7 @@ static bool aligned_on_raid_stripe(u64 offset, struct ore_layout *layout,
return false; return false;
} }
void objio_init_write(struct nfs_pageio_descriptor *pgio, struct nfs_page *req) static void objio_init_write(struct nfs_pageio_descriptor *pgio, struct nfs_page *req)
{ {
unsigned long stripe_end = 0; unsigned long stripe_end = 0;
u64 wb_size; u64 wb_size;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册