mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
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) {
|
||||
set_bit(bit, sdp->sd_quota_bitmap);
|
||||
qd->qd_slot = bit;
|
||||
error = 0;
|
||||
out:
|
||||
qd->qd_slot_count++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user