projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
733dbc1
)
GFS2: Fix return value in slot_get()
author
Abhi Das
<adas@redhat.com>
Mon, 31 Mar 2014 06:19:29 +0000
(
01:19
-0500)
committer
Steven Whitehouse
<swhiteho@redhat.com>
Mon, 31 Mar 2014 09:43:05 +0000
(10:43 +0100)
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>
fs/gfs2/quota.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/gfs2/quota.c
b/fs/gfs2/quota.c
index 27f9435ddd204ab2422a4ea571736624a7a108e5..c4effff7cf559c701e890e804cef81dfb1cac30e 100644
(file)
--- a/
fs/gfs2/quota.c
+++ b/
fs/gfs2/quota.c
@@
-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++;
}