Searched refs:advice (Results 1 - 25 of 38) sorted by last modified time

12

/linux-master/include/linux/
H A Dfs.h3615 int advice);
3617 int advice);
H A Dsyscalls.h803 asmlinkage long sys_fadvise64_64(int fd, loff_t offset, loff_t len, int advice);
1037 asmlinkage long sys_fadvise64(int fd, loff_t offset, size_t len, int advice);
1210 int ksys_fadvise64_64(int fd, loff_t offset, loff_t len, int advice);
1213 int advice)
1212 ksys_fadvise64_64(int fd, loff_t offset, loff_t len, int advice) argument
H A Dhuge_mm.h304 int advice);
448 unsigned long *vm_flags, int advice)
447 hugepage_madvise(struct vm_area_struct *vma, unsigned long *vm_flags, int advice) argument
H A Dfscache.h136 u8 advice; /* FSCACHE_ADV_* */ member in struct:fscache_cookie
230 * @advice: Advice flags (FSCACHE_COOKIE_ADV_*)
244 u8 advice,
253 return __fscache_acquire_cookie(volume, advice,
243 fscache_acquire_cookie(struct fscache_volume *volume, u8 advice, const void *index_key, size_t index_key_len, const void *aux_data, size_t aux_data_len, loff_t object_size) argument
H A Dksm.h20 unsigned long end, int advice, unsigned long *vm_flags);
127 unsigned long end, int advice, unsigned long *vm_flags)
126 ksm_madvise(struct vm_area_struct *vma, unsigned long start, unsigned long end, int advice, unsigned long *vm_flags) argument
H A Dcompat.h893 compat_arg_u64(len), int advice);
/linux-master/include/rdma/
H A Dib_verbs.h2489 enum ib_uverbs_advise_mr_advice advice, u32 flags,
4262 /* ib_advise_mr - give an advice about an address range in a memory region */
4263 int ib_advise_mr(struct ib_pd *pd, enum ib_uverbs_advise_mr_advice advice,
/linux-master/fs/f2fs/
H A Dfile.c4881 int advice)
4888 if (advice == POSIX_FADV_SEQUENTIAL) {
4903 } else if (advice == POSIX_FADV_WILLNEED && offset == 0) {
4908 err = generic_fadvise(filp, offset, len, advice);
4909 if (!err && advice == POSIX_FADV_DONTNEED &&
4880 f2fs_file_fadvise(struct file *filp, loff_t offset, loff_t len, int advice) argument
/linux-master/drivers/infiniband/hw/mlx5/
H A Dmlx5_ib.h1329 enum ib_uverbs_advise_mr_advice advice,
1419 enum ib_uverbs_advise_mr_advice advice,
1442 enum ib_uverbs_advise_mr_advice advice, u32 flags,
1441 mlx5_ib_advise_mr_prefetch(struct ib_pd *pd, enum ib_uverbs_advise_mr_advice advice, u32 flags, struct ib_sge *sg_list, u32 num_sge) argument
H A Dmr.c1315 enum ib_uverbs_advise_mr_advice advice,
1321 if (advice != IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH &&
1322 advice != IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH_WRITE &&
1323 advice != IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH_NO_FAULT)
1326 return mlx5_ib_advise_mr_prefetch(pd, advice, flags,
1314 mlx5_ib_advise_mr(struct ib_pd *pd, enum ib_uverbs_advise_mr_advice advice, u32 flags, struct ib_sge *sg_list, u32 num_sge, struct uverbs_attr_bundle *attrs) argument
H A Dodp.c1664 get_prefetchable_mr(struct ib_pd *pd, enum ib_uverbs_advise_mr_advice advice, argument
1690 if (advice == IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH_WRITE &&
1725 enum ib_uverbs_advise_mr_advice advice,
1737 mr = get_prefetchable_mr(pd, advice, sg_list[i].lkey);
1751 enum ib_uverbs_advise_mr_advice advice,
1762 mr = get_prefetchable_mr(pd, advice, sg_list[i].lkey);
1779 enum ib_uverbs_advise_mr_advice advice,
1786 if (advice == IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH)
1789 if (advice == IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH_NO_FAULT)
1793 return mlx5_ib_prefetch_sg_list(pd, advice, pf_flag
1724 init_prefetch_work(struct ib_pd *pd, enum ib_uverbs_advise_mr_advice advice, u32 pf_flags, struct prefetch_mr_work *work, struct ib_sge *sg_list, u32 num_sge) argument
1750 mlx5_ib_prefetch_sg_list(struct ib_pd *pd, enum ib_uverbs_advise_mr_advice advice, u32 pf_flags, struct ib_sge *sg_list, u32 num_sge) argument
1778 mlx5_ib_advise_mr_prefetch(struct ib_pd *pd, enum ib_uverbs_advise_mr_advice advice, u32 flags, struct ib_sge *sg_list, u32 num_sge) argument
[all...]
/linux-master/mm/
H A Dkhugepaged.c350 unsigned long *vm_flags, int advice)
352 switch (advice) {
349 hugepage_madvise(struct vm_area_struct *vma, unsigned long *vm_flags, int advice) argument
H A Dksm.c721 return false; /* just ignore the advice */
2927 unsigned long end, int advice, unsigned long *vm_flags)
2932 switch (advice) {
2950 return 0; /* just ignore the advice */
2926 ksm_madvise(struct vm_area_struct *vma, unsigned long start, unsigned long end, int advice, unsigned long *vm_flags) argument
H A Dfadvise.c31 int generic_fadvise(struct file *file, loff_t offset, loff_t len, int advice) argument
52 switch (advice) {
59 /* no bad return value, but ignore advice */
78 switch (advice) {
180 int vfs_fadvise(struct file *file, loff_t offset, loff_t len, int advice) argument
183 return file->f_op->fadvise(file, offset, len, advice);
185 return generic_fadvise(file, offset, len, advice);
191 int ksys_fadvise64_64(int fd, loff_t offset, loff_t len, int advice) argument
199 ret = vfs_fadvise(f.file, offset, len, advice);
205 SYSCALL_DEFINE4(fadvise64_64, int, fd, loff_t, offset, loff_t, len, int, advice)
[all...]
/linux-master/fs/xfs/
H A Dxfs_file.c1140 int advice)
1150 if (advice == POSIX_FADV_WILLNEED) {
1154 ret = generic_fadvise(file, start, end, advice);
1136 xfs_file_fadvise( struct file *file, loff_t start, loff_t end, int advice) argument
/linux-master/drivers/md/dm-vdo/
H A Ddedupe.c12 * concurrently writing identical blocks, allowing them to deduplicate not only against advice but
47 * index query (UPDATING, triggered by stale advice, compression, and rollover), releasing the PBN
55 * Non-concurrent, finding valid advice looks like this (endpoints elided):
57 * Or with stale advice (endpoints elided):
245 /* True if the UDS index should be updated with new advice */
248 /* True if the advice has been verified to be a true duplicate */
610 /* Ensure we don't attempt to update advice when cleaning up. */
647 * block, so it must have been a lock on advice we were verifying, not on a
791 * the duplicate that should be returned as advice in the future.
799 VDO_ASSERT_LOG_ONLY(lock->verified, "new advice shoul
1608 struct zoned_pbn *advice = &data_vio->duplicate; local
[all...]
/linux-master/fs/cachefiles/
H A Dondemand.c493 if (!(object->cookie->advice & FSCACHE_ADV_WANT_CACHE_SIZE)) {
/linux-master/fs/netfs/
H A Dfscache_cookie.c327 u8 advice,
341 cookie->advice = advice;
452 u8 advice,
470 cookie = fscache_alloc_cookie(volume, advice,
325 fscache_alloc_cookie( struct fscache_volume *volume, u8 advice, const void *index_key, size_t index_key_len, const void *aux_data, size_t aux_data_len, loff_t object_size) argument
450 __fscache_acquire_cookie( struct fscache_volume *volume, u8 advice, const void *index_key, size_t index_key_len, const void *aux_data, size_t aux_data_len, loff_t object_size) argument
/linux-master/fs/overlayfs/
H A Dfile.c459 static int ovl_fadvise(struct file *file, loff_t offset, loff_t len, int advice) argument
470 ret = vfs_fadvise(real.file, offset, len, advice);
/linux-master/drivers/infiniband/core/
H A Dverbs.c2235 int ib_advise_mr(struct ib_pd *pd, enum ib_uverbs_advise_mr_advice advice, argument
2244 return pd->device->ops.advise_mr(pd, advice, flags, sg_list, num_sge,
/linux-master/arch/parisc/kernel/
H A Dsys_parisc.c270 unsigned int high_len, unsigned int low_len, int advice)
273 (loff_t)high_len << 32 | low_len, advice);
268 parisc_fadvise64_64(int fd, unsigned int high_off, unsigned int low_off, unsigned int high_len, unsigned int low_len, int advice) argument
/linux-master/arch/arm/kernel/
H A Dsys_arm.c33 asmlinkage long sys_arm_fadvise64_64(int fd, int advice, argument
36 return ksys_fadvise64_64(fd, offset, len, advice);
/linux-master/arch/arm/include/asm/
H A Dsyscalls.h11 asmlinkage long sys_arm_fadvise64_64(int fd, int advice,
/linux-master/io_uring/
H A Dadvise.c21 u32 advice; member in struct:io_fadvise
28 u32 advice; member in struct:io_madvise
41 ma->advice = READ_ONCE(sqe->fadvise_advice);
57 ret = do_madvise(current->mm, ma->addr, ma->len, ma->advice);
67 switch (fa->advice) {
86 fa->advice = READ_ONCE(sqe->fadvise_advice);
99 ret = vfs_fadvise(req->file, fa->offset, fa->len, fa->advice);
/linux-master/arch/powerpc/kernel/
H A Dsys_ppc32.c109 size_t, len, int, advice)
112 advice);

Completed in 352 milliseconds

12