Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/src/linux_shmemfs.c
| Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | linux_shmem_file_setup(const char *name, loff_t size, unsigned long flags) | ||||
| } | } | ||||
| return (filp); | return (filp); | ||||
| err_1: | err_1: | ||||
| kfree(fileobj); | kfree(fileobj); | ||||
| err_0: | err_0: | ||||
| return (ERR_PTR(error)); | return (ERR_PTR(error)); | ||||
| } | } | ||||
| struct linux_file * | |||||
| linux_shmem_file_setup_with_mnt(struct vfsmount *mount, | |||||
| const char *name, loff_t size, unsigned long flags) | |||||
| { | |||||
| pr_debug("%s: TODO\n", __func__); | |||||
| return (linux_shmem_file_setup(name, size, flags)); | |||||
| } | |||||
| static vm_ooffset_t | static vm_ooffset_t | ||||
| linux_invalidate_mapping_pages_sub(vm_object_t obj, vm_pindex_t start, | linux_invalidate_mapping_pages_sub(vm_object_t obj, vm_pindex_t start, | ||||
| vm_pindex_t end, int flags) | vm_pindex_t end, int flags) | ||||
| { | { | ||||
| int start_count, end_count; | int start_count, end_count; | ||||
| VM_OBJECT_WLOCK(obj); | VM_OBJECT_WLOCK(obj); | ||||
| start_count = obj->resident_page_count; | start_count = obj->resident_page_count; | ||||
| Show All 21 Lines | |||||