]> git.itanic.dy.fi Git - linux-stable/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)
commite408e695f5f1f60d784913afc45ff2c387a5aeb8
tree0a683ca610f0686e5e63d6291ef95ac63541a51b
parent188043c7f4f2bd662f2a55957d684fffa543e600
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