summaryrefslogtreecommitdiffstats
path: root/include/net/9p/client.h
diff options
context:
space:
mode:
authorMatthew Wilcox <willy@infradead.org>2018-07-11 23:02:21 +0200
committerDominique Martinet <dominique.martinet@cea.fr>2018-08-13 02:21:44 +0200
commitb5303be2bee3c8b29de3f7f4ea8ae00c4e816760 (patch)
treeec2fe0f66140706c972f18502459d868aa2ec3a5 /include/net/9p/client.h
parent9p: Fix comment on smp_wmb (diff)
downloadlinux-b5303be2bee3c8b29de3f7f4ea8ae00c4e816760.tar.xz
linux-b5303be2bee3c8b29de3f7f4ea8ae00c4e816760.zip
9p: Change p9_fid_create calling convention
Return NULL instead of ERR_PTR when we can't allocate a FID. The ENOSPC return value was getting all the way back to userspace, and that's confusing for a userspace program which isn't expecting read() to tell it there's no space left on the filesystem. The best error we can return to indicate a temporary failure caused by lack of client resources is ENOMEM. Maybe it would be better to sleep until a FID is available, but that's not a change I'm comfortable making. Link: http://lkml.kernel.org/r/20180711210225.19730-3-willy@infradead.org Signed-off-by: Matthew Wilcox <willy@infradead.org> Reviewed-by: Jun Piao <piaojun@huawei.com> Reviewed-by: Greg Kurz <groug@kaod.org> Reviewed-by: Yiwen Jiang <jiangyiwen@huwei.com> Cc: Eric Van Hensbergen <ericvh@gmail.com> Cc: Ron Minnich <rminnich@sandia.gov> Cc: Latchesar Ionkov <lucho@ionkov.net> Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
Diffstat (limited to 'include/net/9p/client.h')
0 files changed, 0 insertions, 0 deletions