1. 07 6月, 2021 1 次提交
    • J
      quota: Change quotactl_path() systcall to an fd-based one · 64c2c2c6
      Jan Kara 提交于
      Some users have pointed out that path-based syscalls are problematic in
      some environments and at least directory fd argument and possibly also
      resolve flags are desirable for such syscalls. Rather than
      reimplementing all details of pathname lookup and following where it may
      eventually evolve, let's go for full file descriptor based syscall
      similar to how ioctl(2) works since the beginning. Managing of quotas
      isn't performance sensitive so the extra overhead of open does not
      matter and we are able to consume O_PATH descriptors as well which makes
      open cheap anyway. Also for frequent operations (such as retrieving
      usage information for all users) we can reuse single fd and in fact get
      even better performance as well as avoiding races with possible remounts
      etc.
      Tested-by: NSascha Hauer <s.hauer@pengutronix.de>
      Acked-by: NChristian Brauner <christian.brauner@ubuntu.com>
      Reviewed-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NJan Kara <jack@suse.cz>
      64c2c2c6
  2. 09 5月, 2021 1 次提交
  3. 08 5月, 2021 1 次提交
    • M
      linux/kconfig.h: replace IF_ENABLED() with PTR_IF() in <linux/kernel.h> · 0ab1438b
      Masahiro Yamada 提交于
      <linux/kconfig.h> is included from all the kernel-space source files,
      including C, assembly, linker scripts. It is intended to contain a
      minimal set of macros to evaluate CONFIG options.
      
      IF_ENABLED() is an intruder here because (x ? y : z) is C code, which
      should not be included from assembly files or linker scripts.
      
      Also, <linux/kconfig.h> is no longer self-contained because NULL is
      defined in <linux/stddef.h>.
      
      Move IF_ENABLED() out to <linux/kernel.h> as PTR_IF(). PTF_IF()
      takes the general boolean expression instead of a CONFIG option
      so that it fits better in <linux/kernel.h>.
      Signed-off-by: NMasahiro Yamada <masahiroy@kernel.org>
      Reviewed-by: NKees Cook <keescook@chromium.org>
      0ab1438b
  4. 07 5月, 2021 22 次提交
  5. 06 5月, 2021 15 次提交
新手
引导
客服 返回
顶部