fs.h (18b18078f267ba10cf14348bc333f2f81818f472) | fs.h (1179b649cf47eb40fcb48e2b2417de4f93e82976) |
---|---|
1/*- 2 * Copyright (c) 2010 Isilon Systems, Inc. 3 * Copyright (c) 2010 iX Systems, Inc. 4 * Copyright (c) 2010 Panasas, Inc. 5 * Copyright (c) 2013-2018 Mellanox Technologies, Ltd. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 288 unchanged lines hidden (view full) --- 297 298static inline int 299call_mmap(struct linux_file *file, struct vm_area_struct *vma) 300{ 301 302 return (file->f_op->mmap(file, vma)); 303} 304 | 1/*- 2 * Copyright (c) 2010 Isilon Systems, Inc. 3 * Copyright (c) 2010 iX Systems, Inc. 4 * Copyright (c) 2010 Panasas, Inc. 5 * Copyright (c) 2013-2018 Mellanox Technologies, Ltd. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 288 unchanged lines hidden (view full) --- 297 298static inline int 299call_mmap(struct linux_file *file, struct vm_area_struct *vma) 300{ 301 302 return (file->f_op->mmap(file, vma)); 303} 304 |
305/* Shared memory support */ 306unsigned long linux_invalidate_mapping_pages(vm_object_t, pgoff_t, pgoff_t); 307struct page *linux_shmem_read_mapping_page_gfp(vm_object_t, int, gfp_t); 308struct linux_file *linux_shmem_file_setup(const char *, loff_t, unsigned long); 309void linux_shmem_truncate_range(vm_object_t, loff_t, loff_t); 310 311#define invalidate_mapping_pages(...) \ 312 linux_invalidate_mapping_pages(__VA_ARGS__) 313 314#define shmem_read_mapping_page(...) \ 315 linux_shmem_read_mapping_page_gfp(__VA_ARGS__, 0) 316 317#define shmem_read_mapping_page_gfp(...) \ 318 linux_shmem_read_mapping_page_gfp(__VA_ARGS__) 319 320#define shmem_file_setup(...) \ 321 linux_shmem_file_setup(__VA_ARGS__) 322 323#define shmem_truncate_range(...) \ 324 linux_shmem_truncate_range(__VA_ARGS__) 325 | |
326#endif /* _LINUX_FS_H_ */ | 305#endif /* _LINUX_FS_H_ */ |