lkml.org 
[lkml]   [2008]   [Apr]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] xfs: remove unused parameter of xfs_qm_dqpurge
    Date
    Hi David,

    xfs_qm_dqpurge() does not use flags parameter.
    This patch removes it.

    Code size difference on 32-bit x86:

    # size */fs/xfs/xfs.o

    Compile-tested only.
    text data bss dec hex filename
    390507 2748 1708 394963 606d3 linux-2.6-xfs3-TEST/fs/xfs/xfs.o
    390491 2748 1708 394947 606c3 linux-2.6-xfs4-TEST/fs/xfs/xfs.o

    Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
    --
    vda
    --- linux-2.6-xfs3/fs/xfs/quota/xfs_dquot.c Tue Apr 22 04:06:46 2008
    +++ linux-2.6-xfs4/fs/xfs/quota/xfs_dquot.c Tue Apr 22 11:34:01 2008
    @@ -1435,8 +1435,7 @@
    /* ARGSUSED */
    int
    xfs_qm_dqpurge(
    - xfs_dquot_t *dqp,
    - uint flags)
    + xfs_dquot_t *dqp)
    {
    xfs_dqhash_t *thishash;
    xfs_mount_t *mp;
    --- linux-2.6-xfs3/fs/xfs/quota/xfs_dquot.h Tue Apr 22 04:06:46 2008
    +++ linux-2.6-xfs4/fs/xfs/quota/xfs_dquot.h Tue Apr 22 11:33:54 2008
    @@ -164,7 +164,7 @@

    extern void xfs_qm_dqdestroy(xfs_dquot_t *);
    extern int xfs_qm_dqflush(xfs_dquot_t *, uint);
    -extern int xfs_qm_dqpurge(xfs_dquot_t *, uint);
    +extern int xfs_qm_dqpurge(xfs_dquot_t *);
    extern void xfs_qm_dqunpin_wait(xfs_dquot_t *);
    extern int xfs_qm_dqlock_nowait(xfs_dquot_t *);
    extern int xfs_qm_dqflock_nowait(xfs_dquot_t *);
    --- linux-2.6-xfs3/fs/xfs/quota/xfs_qm.c Tue Apr 22 04:13:03 2008
    +++ linux-2.6-xfs4/fs/xfs/quota/xfs_qm.c Tue Apr 22 11:34:31 2008
    @@ -631,7 +631,7 @@
    * freelist in INACTIVE state.
    */
    nextdqp = dqp->MPL_NEXT;
    - nmisses += xfs_qm_dqpurge(dqp, flags);
    + nmisses += xfs_qm_dqpurge(dqp);
    dqp = nextdqp;
    }
    xfs_qm_mplist_unlock(mp);
    \
     
     \ /
      Last update: 2008-04-22 11:45    [W:0.022 / U:3.844 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site