Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/src/linux_compat.c
| Show First 20 Lines • Show All 1,099 Lines • ▼ Show 20 Lines | __get_file_rcu(struct linux_file **f) | ||||
| if (file2 == file1) | if (file2 == file1) | ||||
| return (file2); | return (file2); | ||||
| fput(file1); | fput(file1); | ||||
| return (ERR_PTR(-EAGAIN)); | return (ERR_PTR(-EAGAIN)); | ||||
| } | } | ||||
| struct linux_file * | struct linux_file * | ||||
| linux67_get_file_rcu(struct linux_file **f) | linux_get_file_rcu(struct linux_file **f) | ||||
| { | { | ||||
| struct linux_file *file1; | struct linux_file *file1; | ||||
| for (;;) { | for (;;) { | ||||
| file1 = __get_file_rcu(f); | file1 = __get_file_rcu(f); | ||||
| if (file1 == NULL) | if (file1 == NULL) | ||||
| return (NULL); | return (NULL); | ||||
| ▲ Show 20 Lines • Show All 1,808 Lines • Show Last 20 Lines | |||||