diff options
author | Eric Sandeen <sandeen@redhat.com> | 2016-01-22 12:25:32 -0600 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2016-02-09 13:03:32 +0100 |
commit | ba58148b6f0408b791e097ab2967c8f6da959fd9 (patch) | |
tree | 6e28117cf364c0268f9c233e6afa08a51e3bae29 /fs/quota/quota.c | |
parent | 92bd85fa1fd4e4de7f7a9f5d24a667758909671d (diff) |
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>
Diffstat (limited to 'fs/quota/quota.c')
-rw-r--r-- | fs/quota/quota.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/quota/quota.c b/fs/quota/quota.c index 0ebc90496525..a925f629a00a 100644 --- a/fs/quota/quota.c +++ b/fs/quota/quota.c @@ -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) |