Repository navigation
Commit b5303be
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>1 parent 2d58f63 commit b5303be
1 file changed
Lines changed: 9 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
914 | 914 | | |
915 | 915 | | |
916 | 916 | | |
917 | | - | |
| 917 | + | |
918 | 918 | | |
919 | 919 | | |
920 | | - | |
921 | | - | |
| 920 | + | |
922 | 921 | | |
923 | | - | |
924 | 922 | | |
925 | 923 | | |
926 | 924 | | |
| |||
936 | 934 | | |
937 | 935 | | |
938 | 936 | | |
939 | | - | |
| 937 | + | |
940 | 938 | | |
941 | 939 | | |
942 | 940 | | |
| |||
1138 | 1136 | | |
1139 | 1137 | | |
1140 | 1138 | | |
1141 | | - | |
1142 | | - | |
1143 | | - | |
| 1139 | + | |
| 1140 | + | |
1144 | 1141 | | |
1145 | 1142 | | |
1146 | 1143 | | |
| |||
1189 | 1186 | | |
1190 | 1187 | | |
1191 | 1188 | | |
1192 | | - | |
1193 | | - | |
1194 | | - | |
| 1189 | + | |
| 1190 | + | |
1195 | 1191 | | |
1196 | 1192 | | |
1197 | 1193 | | |
| |||
2019 | 2015 | | |
2020 | 2016 | | |
2021 | 2017 | | |
2022 | | - | |
2023 | | - | |
2024 | | - | |
| 2018 | + | |
| 2019 | + | |
2025 | 2020 | | |
2026 | 2021 | | |
2027 | 2022 | | |
| |||
0 commit comments