GFS2: Fix return value in slot_get()
ENOSPC was being returned in slot_get inspite of successful execution of the function. This patch fixes this return code. Signed-off-by: Abhi Das <adas@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
This commit is contained in:
parent
733dbc1b21
commit
e9fb7c73a4
|
@ -332,6 +332,7 @@ static int slot_get(struct gfs2_quota_data *qd)
|
||||||
if (bit < sdp->sd_quota_slots) {
|
if (bit < sdp->sd_quota_slots) {
|
||||||
set_bit(bit, sdp->sd_quota_bitmap);
|
set_bit(bit, sdp->sd_quota_bitmap);
|
||||||
qd->qd_slot = bit;
|
qd->qd_slot = bit;
|
||||||
|
error = 0;
|
||||||
out:
|
out:
|
||||||
qd->qd_slot_count++;
|
qd->qd_slot_count++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue