Anatol Pomozov
39b6525274
fs: Preserve error code in get_empty_filp(), part 2
...
Allocating a file structure in function get_empty_filp() might fail because
of several reasons:
- not enough memory for file structures
- operation is not allowed
- user is over its limit
Currently the function returns NULL in all cases and we loose the exact
reason of the error. All callers of get_empty_filp() assume that the function
can fail with ENFILE only.
Return error through pointer. Change all callers to preserve this error code.
[AV: cleaned up a bit, carved the get_empty_filp() part out into a separate commit
(things remaining here deal with alloc_file()), removed pipe(2) behaviour change]
Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com>
Reviewed-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-22 23:31:32 -05:00
..
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2012-12-20 22:34:00 +00:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-01-11 05:56:01 -08:00
2012-10-22 16:50:13 -07:00
2012-11-16 11:20:42 -06:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2012-12-20 14:04:11 -08:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2012-12-20 22:35:15 +00:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:32 -05:00
2013-02-22 23:31:31 -05:00
2013-01-14 22:50:45 +01:00
2013-01-02 09:57:34 -08:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-01-03 15:57:14 -08:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2012-12-13 16:33:24 +01:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2012-07-22 23:57:59 +04:00
2013-02-22 23:31:32 -05:00
2012-11-20 04:17:24 -08:00
2012-12-17 17:15:12 -08:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2012-12-17 17:15:23 -08:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2012-12-20 17:40:19 -08:00
2012-11-28 21:53:38 -05:00
2012-09-09 10:35:38 +02:00
2012-10-22 22:00:26 +02:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2012-10-22 08:50:37 +03:00
2012-10-06 03:05:17 +09:00
2013-02-22 23:31:31 -05:00
2012-10-12 20:14:55 -04:00
2013-02-22 23:31:31 -05:00
2012-10-06 03:05:15 +09:00
2012-12-20 18:49:10 -05:00
2012-11-29 12:38:44 -08:00
2012-12-17 17:15:27 -08:00
2013-01-02 09:16:43 -08:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2012-12-20 14:04:11 -08:00
2012-07-16 08:33:14 -07:00
2013-02-22 23:31:32 -05:00
2013-01-03 15:57:16 -08:00
2012-10-12 20:14:55 -04:00
2012-11-28 21:49:02 -05:00
2012-12-12 17:38:34 -08:00
2012-09-18 01:01:35 -07:00
2013-02-22 23:31:31 -05:00
2012-11-26 17:41:24 -08:00
2013-02-22 23:31:31 -05:00
2012-12-20 13:54:52 -08:00
2012-10-06 03:05:15 +09:00
2012-12-20 18:46:29 -05:00
2013-02-22 23:31:31 -05:00
2012-12-11 13:43:42 +09:00
2012-11-20 04:19:49 -08:00
2013-02-22 23:31:32 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:32 -05:00
2013-02-22 23:31:32 -05:00
2012-07-14 16:37:27 +04:00
2012-11-19 05:59:20 -08:00
2012-09-18 01:01:35 -07:00
2012-07-14 16:32:48 +04:00
2013-02-22 23:31:31 -05:00
2012-10-02 21:35:55 -04:00
2013-02-22 23:31:31 -05:00
2012-09-26 22:20:08 -04:00
2013-01-10 14:35:24 -08:00
2012-12-17 17:15:27 -08:00
2013-02-22 23:31:31 -05:00
2012-12-20 18:50:01 -05:00
2012-12-20 18:50:07 -05:00
2012-10-09 23:33:39 -04:00
2013-02-22 23:31:31 -05:00
2012-09-26 22:20:08 -04:00
2012-12-20 18:50:08 -05:00
2012-10-12 13:16:48 -07:00
2012-12-20 18:50:11 -05:00