Untangling ima mess, part 1: alloc_file()
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 16 Dec 2009 09:53:03 +0000 (04:53 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 16 Dec 2009 17:16:47 +0000 (12:16 -0500)
commit0552f879d45cecc35d8e372a591fc5ed863bca58
treef3e0d76f7d5e7cf9a11ef4771294c7b4b552cd89
parent7715b521222b6ebb6e927fa261ed91ed687fe454
Untangling ima mess, part 1: alloc_file()

There are 2 groups of alloc_file() callers:
* ones that are followed by ima_counts_get
* ones giving non-regular files
So let's pull that ima_counts_get() into alloc_file();
it's a no-op in case of non-regular files.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/file_table.c
fs/hugetlbfs/inode.c
ipc/shm.c
mm/shmem.c