2015-11-27 17:55:01

by Alexander Kuleshov

[permalink] [raw]
Subject: [PATCH] xfs/xfs_buf: make xfs_buf_ioend_async() static

There are no callers of the xfs_buf_ioend_async() function outside
of the fs/xfs/xfs_buf.c. So, let's make it static.

Signed-off-by: Alexander Kuleshov <[email protected]>
---
fs/xfs/xfs_buf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c
index 3243cdf..45a8ea7 100644
--- a/fs/xfs/xfs_buf.c
+++ b/fs/xfs/xfs_buf.c
@@ -1045,7 +1045,7 @@ xfs_buf_ioend_work(
xfs_buf_ioend(bp);
}

-void
+static void
xfs_buf_ioend_async(
struct xfs_buf *bp)
{
--
2.5.0


2015-11-30 13:22:26

by Brian Foster

[permalink] [raw]
Subject: Re: [PATCH] xfs/xfs_buf: make xfs_buf_ioend_async() static

On Fri, Nov 27, 2015 at 11:52:29PM +0600, Alexander Kuleshov wrote:
> There are no callers of the xfs_buf_ioend_async() function outside
> of the fs/xfs/xfs_buf.c. So, let's make it static.
>
> Signed-off-by: Alexander Kuleshov <[email protected]>
> ---

Reviewed-by: Brian Foster <[email protected]>

> fs/xfs/xfs_buf.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c
> index 3243cdf..45a8ea7 100644
> --- a/fs/xfs/xfs_buf.c
> +++ b/fs/xfs/xfs_buf.c
> @@ -1045,7 +1045,7 @@ xfs_buf_ioend_work(
> xfs_buf_ioend(bp);
> }
>
> -void
> +static void
> xfs_buf_ioend_async(
> struct xfs_buf *bp)
> {
> --
> 2.5.0
>
> _______________________________________________
> xfs mailing list
> [email protected]
> http://oss.sgi.com/mailman/listinfo/xfs