| To: | "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx> |
|---|---|
| Subject: | [PATCH v2] xfs: Remove the left function variable from xfs_ialloc_get_rec() |
| From: | Jeff Liu <jeff.liu@xxxxxxxxxx> |
| Date: | Mon, 24 Jun 2013 13:37:23 +0800 |
| Delivered-to: | xfs@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120410 Thunderbird/11.0.1 |
From: Jie Liu <jeff.liu@xxxxxxxxxx>
This patch clean out the left function variable as it is
useless to xfs_ialloc_get_rec().
Signed-off-by: Jie Liu <jeff.liu@xxxxxxxxxx>
Reviewed-by: Dave Chinner <dchinner@xxxxxxxxxx>
---
fs/xfs/xfs_ialloc.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/fs/xfs/xfs_ialloc.c b/fs/xfs/xfs_ialloc.c
index c8f5ae1..4345c53 100644
--- a/fs/xfs/xfs_ialloc.c
+++ b/fs/xfs/xfs_ialloc.c
@@ -615,8 +615,7 @@ xfs_ialloc_get_rec(
struct xfs_btree_cur *cur,
xfs_agino_t agino,
xfs_inobt_rec_incore_t *rec,
- int *done,
- int left)
+ int *done)
{
int error;
int i;
@@ -724,12 +723,12 @@ xfs_dialloc_ag(
pag->pagl_leftrec != NULLAGINO &&
pag->pagl_rightrec != NULLAGINO) {
error = xfs_ialloc_get_rec(tcur, pag->pagl_leftrec,
- &trec, &doneleft, 1);
+ &trec, &doneleft);
if (error)
goto error1;
error = xfs_ialloc_get_rec(cur, pag->pagl_rightrec,
- &rec, &doneright, 0);
+ &rec, &doneright);
if (error)
goto error1;
} else {
--
1.7.9.5
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH v9 1/6] xfs: Move code around and remove typedefs, Dave Chinner |
|---|---|
| Next by Date: | [PATCH v2] xfs: Remove dead function prototype xfs_sync_inode_grab(), Jeff Liu |
| Previous by Thread: | [PATCH v9 0/6] Allow pquota and gquota to be used together, Chandra Seetharaman |
| Next by Thread: | Re: [PATCH v2] xfs: Remove the left function variable from xfs_ialloc_get_rec(), Ben Myers |
| Indexes: | [Date] [Thread] [Top] [All Lists] |