Skip to content

Commit

Permalink
quota: Fixup comments about return value of Q_[X]GETNEXTQUOTA
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Sandeen authored and Jan Kara committed Feb 9, 2016
1 parent 92bd85f commit ba58148
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/quota/quota.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ static int quota_getquota(struct super_block *sb, int type, qid_t id,

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

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

0 comments on commit ba58148

Please sign in to comment.