]> git.baikalelectronics.ru Git - kernel.git/commit
mm/shmem: support FS_IOC_[SG]ETFLAGS in tmpfs
authorTheodore Ts'o <tytso@mit.edu>
Fri, 15 Jul 2022 01:59:12 +0000 (21:59 -0400)
committerakpm <akpm@linux-foundation.org>
Sat, 30 Jul 2022 01:07:15 +0000 (18:07 -0700)
commitdc8a067ea8b9b80b7a4a9f31f10b6f39944d14d0
tree0a683ca610f0686e5e63d6291ef95ac63541a51b
parentbd6a7f60dd10c6508957a03145c94ef8e3672255
mm/shmem: support FS_IOC_[SG]ETFLAGS in tmpfs

This allows userspace to set flags like FS_APPEND_FL, FS_IMMUTABLE_FL,
FS_NODUMP_FL, etc., like all other standard Linux file systems.

[akpm@linux-foundation.org: fix CONFIG_TMPFS_XATTR=n warnings]
Link: https://lkml.kernel.org/r/20220715015912.2560575-1-tytso@mit.edu
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/shmem_fs.h
mm/shmem.c