Skip to content

Commit ba58148

Browse files
Eric Sandeenjankara
authored andcommitted
quota: Fixup comments about return value of Q_[X]GETNEXTQUOTA
We actually return ENOENT, not ESRCH, when there is no structure with higher ID from ->get_nextdqblk. Fixup comments. Signed-off-by: Jan Kara <jack@suse.cz>
1 parent 92bd85f commit ba58148

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/quota/quota.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ static int quota_getquota(struct super_block *sb, int type, qid_t id,
224224

225225
/*
226226
* Return quota for next active quota >= this id, if any exists,
227-
* otherwise return -ESRCH via ->get_nextdqblk
227+
* otherwise return -ENOENT via ->get_nextdqblk
228228
*/
229229
static int quota_getnextquota(struct super_block *sb, int type, qid_t id,
230230
void __user *addr)
@@ -655,7 +655,7 @@ static int quota_getxquota(struct super_block *sb, int type, qid_t id,
655655

656656
/*
657657
* Return quota for next active quota >= this id, if any exists,
658-
* otherwise return -ESRCH via ->get_nextdqblk.
658+
* otherwise return -ENOENT via ->get_nextdqblk.
659659
*/
660660
static int quota_getnextxquota(struct super_block *sb, int type, qid_t id,
661661
void __user *addr)

0 commit comments

Comments
 (0)