seals 131 drivers/dma-buf/udmabuf.c int seals, ret = -EINVAL; seals 163 drivers/dma-buf/udmabuf.c seals = memfd_fcntl(memfd, F_GET_SEALS, 0); seals 164 drivers/dma-buf/udmabuf.c if (seals == -EINVAL) seals 167 drivers/dma-buf/udmabuf.c if ((seals & SEALS_WANTED) != SEALS_WANTED || seals 168 drivers/dma-buf/udmabuf.c (seals & SEALS_DENIED) != 0) seals 552 fs/hugetlbfs/inode.c if (info->seals & (F_SEAL_WRITE | F_SEAL_FUTURE_WRITE)) { seals 606 fs/hugetlbfs/inode.c if ((info->seals & F_SEAL_GROW) && offset + len > inode->i_size) { seals 715 fs/hugetlbfs/inode.c if ((newsize < oldsize && (info->seals & F_SEAL_SHRINK)) || seals 716 fs/hugetlbfs/inode.c (newsize > oldsize && (info->seals & F_SEAL_GROW))) seals 785 fs/hugetlbfs/inode.c info->seals = F_SEAL_SEAL; seals 279 include/linux/hugetlb.h unsigned int seals; seals 16 include/linux/shmem_fs.h unsigned int seals; /* shmem seals */ seals 123 mm/memfd.c return &SHMEM_I(file_inode(file))->seals; seals 127 mm/memfd.c return &HUGETLBFS_I(file_inode(file))->seals; seals 139 mm/memfd.c static int memfd_add_seals(struct file *file, unsigned int seals) seals 178 mm/memfd.c if (seals & ~(unsigned int)F_ALL_SEALS) seals 194 mm/memfd.c if ((seals & F_SEAL_WRITE) && !(*file_seals & F_SEAL_WRITE)) { seals 206 mm/memfd.c *file_seals |= seals; seals 216 mm/memfd.c unsigned int *seals = memfd_file_seals_ptr(file); seals 218 mm/memfd.c return seals ? *seals : -EINVAL; seals 1033 mm/shmem.c if ((newsize < oldsize && (info->seals & F_SEAL_SHRINK)) || seals 1034 mm/shmem.c (newsize > oldsize && (info->seals & F_SEAL_GROW))) seals 2212 mm/shmem.c if (info->seals & F_SEAL_FUTURE_WRITE) { seals 2262 mm/shmem.c info->seals = F_SEAL_SEAL; seals 2482 mm/shmem.c if (unlikely(info->seals & (F_SEAL_GROW | seals 2484 mm/shmem.c if (info->seals & (F_SEAL_WRITE | F_SEAL_FUTURE_WRITE)) seals 2486 mm/shmem.c if ((info->seals & F_SEAL_GROW) && pos + len > inode->i_size) seals 2747 mm/shmem.c if (info->seals & (F_SEAL_WRITE | F_SEAL_FUTURE_WRITE)) { seals 2779 mm/shmem.c if ((info->seals & F_SEAL_GROW) && offset + len > inode->i_size) { seals 76 tools/testing/selftests/memfd/fuse_test.c static void mfd_assert_has_seals(int fd, __u64 seals) seals 81 tools/testing/selftests/memfd/fuse_test.c if (s != seals) { seals 83 tools/testing/selftests/memfd/fuse_test.c (unsigned long long)seals, (unsigned long long)s, fd); seals 88 tools/testing/selftests/memfd/fuse_test.c static void mfd_assert_add_seals(int fd, __u64 seals) seals 94 tools/testing/selftests/memfd/fuse_test.c r = fcntl(fd, F_ADD_SEALS, seals); seals 97 tools/testing/selftests/memfd/fuse_test.c fd, (unsigned long long)s, (unsigned long long)seals); seals 102 tools/testing/selftests/memfd/fuse_test.c static int mfd_busy_add_seals(int fd, __u64 seals) seals 113 tools/testing/selftests/memfd/fuse_test.c r = fcntl(fd, F_ADD_SEALS, seals); seals 116 tools/testing/selftests/memfd/fuse_test.c fd, (unsigned long long)s, (unsigned long long)seals); seals 99 tools/testing/selftests/memfd/memfd_test.c static void mfd_assert_has_seals(int fd, unsigned int seals) seals 104 tools/testing/selftests/memfd/memfd_test.c if (s != seals) { seals 105 tools/testing/selftests/memfd/memfd_test.c printf("%u != %u = GET_SEALS(%d)\n", seals, s, fd); seals 110 tools/testing/selftests/memfd/memfd_test.c static void mfd_assert_add_seals(int fd, unsigned int seals) seals 116 tools/testing/selftests/memfd/memfd_test.c r = fcntl(fd, F_ADD_SEALS, seals); seals 118 tools/testing/selftests/memfd/memfd_test.c printf("ADD_SEALS(%d, %u -> %u) failed: %m\n", fd, s, seals); seals 123 tools/testing/selftests/memfd/memfd_test.c static void mfd_fail_add_seals(int fd, unsigned int seals) seals 134 tools/testing/selftests/memfd/memfd_test.c r = fcntl(fd, F_ADD_SEALS, seals); seals 137 tools/testing/selftests/memfd/memfd_test.c fd, s, seals);