Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Mar 2011 11:32:12 -0400
From:      Ryan Stone <rysto32@gmail.com>
To:        Aleksandr Rybalko <ray@dlink.ua>
Cc:        "freebsd-current@freebsd.org" <freebsd-current@freebsd.org>
Subject:   Re: Fix softdep_request_cleanup difference w/ and w/o SOFTUPDATES
Message-ID:  <AANLkTinB20FEPrDrc4G6%2Bse_hmyKpzCAe5_9JHa0FH2N@mail.gmail.com>
In-Reply-To: <20110328131903.6bf2bc62.ray@dlink.ua>
References:  <20110328131903.6bf2bc62.ray@dlink.ua>

next in thread | previous in thread | raw e-mail | index | archive | help

On Mon, Mar 28, 2011 at 6:19 AM, Aleksandr Rybalko <ray@dlink.ua> wrote:
> Hi,
>
> I found a difference of definition softdep_request_cleanup.
> when SOFTUPDATES undefined softdep_request_cleanup take only two arguments.
>
> Patch to fix this:
>
> Index: sys/ufs/ffs/ffs_softdep.c
> ===================================================================
> --- sys/ufs/ffs/ffs_softdep.c   (revision 220095)
> +++ sys/ufs/ffs/ffs_softdep.c   (working copy)
> @@ -514,9 +514,10 @@
>  }
>
>  int
> -softdep_request_cleanup(fs, vp)
> +softdep_request_cleanup(fs, vp, resource)
>        struct fs *fs;
>        struct vnode *vp;
> +       int resource;
>  {
>
>        return (0);

If we need to change the definition, shouldn't we convert it to a C89
declaration at the same time?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinB20FEPrDrc4G6%2Bse_hmyKpzCAe5_9JHa0FH2N>