gfs2: Fix return value in slot_get()
PATCH 1/1 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 <[email protected]>
--- fs/gfs2/quota.c | 1 + 1 file changed, 1 insertion(+)
fs/gfs2/quota.c +1 -0
@@ -332,6 +332,7 @@ static int slot_get(struct gfs2_quota_data *qd)if (bit < sdp->sd_quota_slots) {set_bit (bit, sdp->sd_quota_bitmap); qd->qd_slot = bit; + error =0 ; out: qd->qd_slot_count++; }
Signature · 1 line
1.8.1.4
PATCH 1/1 gfs2: Fix return value in slot_get()
Hi,
Quoted 9 lines · Abhi Das
ENOSPC was being returned in
slot_getinspite of successful execution of the function. This patch fixes this return code.Signed-off-by Abhi Das <[email protected]>--- fs/gfs2/quota.c | 1 + 1 file changed, 1 insertion(+)
Now in the -nmw git tree. Thanks,
Steve.
Quoted 12 lines
fs/gfs2/quota.c +1
-0@@ -332,6 +332,7 @@ static int slot_get(struct gfs2_quota_data *qd)if (bit < sdp->sd_quota_slots) {set_bit (bit, sdp->sd_quota_bitmap); qd->qd_slot = bit; + error =0 ; out: qd->qd_slot_count++; }