]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
quota: Fixup comments about return value of Q_[X]GETNEXTQUOTA
authorEric Sandeen <sandeen@redhat.com>
Fri, 22 Jan 2016 18:25:32 +0000 (12:25 -0600)
committerJan Kara <jack@suse.cz>
Tue, 9 Feb 2016 12:03:32 +0000 (13:03 +0100)
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>
fs/quota/quota.c

index 0ebc90496525d13684ed96402cab612b0c2da356..a925f629a00a56abd6c002f9c789278aeaddfb66 100644 (file)
@@ -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)
@@ -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)