mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
xfs: Remove the left function variable from xfs_ialloc_get_rec()
This patch clean out the left function variable as it is useless to xfs_ialloc_get_rec(). Signed-off-by: Jie Liu <jeff.liu@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Ben Myers <bpm@sgi.com>
This commit is contained in:
parent
427d9fe233
commit
43df2ee659
1 changed files with 3 additions and 4 deletions
|
@ -615,8 +615,7 @@ xfs_ialloc_get_rec(
|
||||||
struct xfs_btree_cur *cur,
|
struct xfs_btree_cur *cur,
|
||||||
xfs_agino_t agino,
|
xfs_agino_t agino,
|
||||||
xfs_inobt_rec_incore_t *rec,
|
xfs_inobt_rec_incore_t *rec,
|
||||||
int *done,
|
int *done)
|
||||||
int left)
|
|
||||||
{
|
{
|
||||||
int error;
|
int error;
|
||||||
int i;
|
int i;
|
||||||
|
@ -724,12 +723,12 @@ xfs_dialloc_ag(
|
||||||
pag->pagl_leftrec != NULLAGINO &&
|
pag->pagl_leftrec != NULLAGINO &&
|
||||||
pag->pagl_rightrec != NULLAGINO) {
|
pag->pagl_rightrec != NULLAGINO) {
|
||||||
error = xfs_ialloc_get_rec(tcur, pag->pagl_leftrec,
|
error = xfs_ialloc_get_rec(tcur, pag->pagl_leftrec,
|
||||||
&trec, &doneleft, 1);
|
&trec, &doneleft);
|
||||||
if (error)
|
if (error)
|
||||||
goto error1;
|
goto error1;
|
||||||
|
|
||||||
error = xfs_ialloc_get_rec(cur, pag->pagl_rightrec,
|
error = xfs_ialloc_get_rec(cur, pag->pagl_rightrec,
|
||||||
&rec, &doneright, 0);
|
&rec, &doneright);
|
||||||
if (error)
|
if (error)
|
||||||
goto error1;
|
goto error1;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue