[PATCH -next 0/5] remove unnecessary -EOPNOTSUPP callbacks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Remove unnecessary callbacks that simply return -EOPNOTSUPP for following
map operations:
- map_peek_elem
- map_push_elem 
- map_pop_elem
- map_delete_elem
- map_get_next_key
These operations are not supported for certain map types and can be handled
by generic map code instead of having redundant single-line callbacks.

Xiaomeng Zhang (5):
  bpf: Remove map_peek_elem callbacks with -EOPNOTSUPP
  bpf: Remove map_push_elem callbacks with -EOPNOTSUPP
  bpf: Remove map_pop_elem callbacks with -EOPNOTSUPP
  bpf: Remove map_delete_elem callbacks with -EOPNOTSUPP
  bpf: Remove map_get_next_key callbacks with -EOPNOTSUPP

 kernel/bpf/arena.c             | 30 ------------------------------
 kernel/bpf/bloom_filter.c      | 18 ------------------
 kernel/bpf/bpf_cgrp_storage.c  |  6 ------
 kernel/bpf/bpf_inode_storage.c |  7 -------
 kernel/bpf/bpf_task_storage.c  |  6 ------
 kernel/bpf/helpers.c           | 20 ++++++++++++++++----
 kernel/bpf/ringbuf.c           | 15 ---------------
 kernel/bpf/syscall.c           | 30 ++++++++++++++++++++++++------
 8 files changed, 40 insertions(+), 92 deletions(-)

-- 
2.34.1





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux