linux/arch/ia64
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
..
configs [IA64] defconfig: Remove CONFIG_MISC_DEVICES 2012-08-20 13:04:29 -07:00
dig Disintegrate asm/system.h for IA64 2012-03-28 18:30:02 +01:00
hp TTY: call tty_port_destroy in the rest of drivers 2012-11-15 17:20:58 -08:00
include Driver core __dev* removal patches 2013-01-03 16:17:50 -08:00
kernel fs: Preserve error code in get_empty_filp(), part 2 2013-02-22 23:31:32 -05:00
kvm Merge tag 'kvm-3.8-1' of git://git.kernel.org/pub/scm/virt/kvm/kvm 2012-12-13 15:31:08 -08:00
lib
mm IA64: drivers: remove __dev* attributes. 2013-01-03 15:57:13 -08:00
oprofile Disintegrate asm/system.h for IA64 2012-03-28 18:30:02 +01:00
pci IA64: drivers: remove __dev* attributes. 2013-01-03 15:57:13 -08:00
scripts
sn IA64: drivers: remove __dev* attributes. 2013-01-03 15:57:13 -08:00
uv
xen IA64: drivers: remove __dev* attributes. 2013-01-03 15:57:13 -08:00
install.sh
Kconfig Bury the conditionals from kernel_thread/kernel_execve series 2012-12-19 18:07:38 -05:00
Kconfig.debug
Makefile
module.lds