linux-stable/fs
Suren Baghdasaryan 1c71222e5f mm: replace vma->vm_flags direct modifications with modifier calls
Replace direct modifications to vma->vm_flags with calls to modifier
functions to be able to track flag changes and to keep vma locking
correctness.

[akpm@linux-foundation.org: fix drivers/misc/open-dice.c, per Hyeonggon Yoo]
Link: https://lkml.kernel.org/r/20230126193752.297968-5-surenb@google.com
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Mel Gorman <mgorman@techsingularity.net>
Acked-by: Mike Rapoport (IBM) <rppt@kernel.org>
Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Reviewed-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Arjun Roy <arjunroy@google.com>
Cc: Axel Rasmussen <axelrasmussen@google.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: David Rientjes <rientjes@google.com>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Greg Thelen <gthelen@google.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jann Horn <jannh@google.com>
Cc: Joel Fernandes <joelaf@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Kent Overstreet <kent.overstreet@linux.dev>
Cc: Laurent Dufour <ldufour@linux.ibm.com>
Cc: Lorenzo Stoakes <lstoakes@gmail.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Minchan Kim <minchan@google.com>
Cc: Paul E. McKenney <paulmck@kernel.org>
Cc: Peter Oskolkov <posk@google.com>
Cc: Peter Xu <peterx@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Punit Agrawal <punit.agrawal@bytedance.com>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Shakeel Butt <shakeelb@google.com>
Cc: Soheil Hassas Yeganeh <soheil@google.com>
Cc: Song Liu <songliubraving@fb.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2023-02-09 16:51:39 -08:00
..
9p 9p-for-6.2-rc1 2022-12-23 11:39:18 -08:00
adfs
affs
afs afs: convert afs_writepages_region() to use filemap_get_folios_tag() 2023-02-02 22:33:14 -08:00
autofs
befs
bfs
btrfs btrfs: convert extent_write_cache_pages() to use filemap_get_folios_tag() 2023-02-02 22:33:14 -08:00
cachefiles
ceph ceph: convert ceph_writepages_start() to use filemap_get_folios_tag() 2023-02-02 22:33:15 -08:00
cifs fs: convert writepage_t callback to pass a folio 2023-02-02 22:33:34 -08:00
coda
configfs
cramfs mm: replace vma->vm_flags direct modifications with modifier calls 2023-02-09 16:51:39 -08:00
crypto for-6.2/block-2022-12-08 2022-12-13 10:43:59 -08:00
debugfs
devpts
dlm Treewide: Stop corrupting socket's task_frag 2022-12-19 17:28:49 -08:00
ecryptfs
efivarfs
efs
erofs mm: replace vma->vm_flags direct modifications with modifier calls 2023-02-09 16:51:39 -08:00
exfat Description for this pull request: 2022-12-15 18:14:21 -08:00
exportfs
ext2 \n 2022-12-12 20:32:50 -08:00
ext4 mm: replace vma->vm_flags direct modifications with modifier calls 2023-02-09 16:51:39 -08:00
f2fs f2fs: convert f2fs_sync_meta_pages() to use filemap_get_folios_tag() 2023-02-02 22:33:16 -08:00
fat MM patches for 6.2-rc1. 2022-12-13 19:29:45 -08:00
freevxfs freevxfs: Kconfig: fix spelling 2023-01-31 16:44:08 -08:00
fscache iov_iter work; most of that is about getting rid of 2022-12-12 18:29:54 -08:00
fuse mm: replace vma->vm_flags direct modifications with modifier calls 2023-02-09 16:51:39 -08:00
gfs2 gfs2: convert gfs2_write_cache_jdata() to use filemap_get_folios_tag() 2023-02-02 22:33:17 -08:00
hfs hfs/hfsplus: avoid WARN_ON() for sanity check, use proper error handling 2023-01-06 14:09:13 -08:00
hfsplus MM patches for 6.2-rc1. 2022-12-13 19:29:45 -08:00
hostfs
hpfs hpfs: remove ->writepage 2022-12-11 18:12:18 -08:00
hugetlbfs mm: replace vma->vm_flags direct modifications with modifier calls 2023-02-09 16:51:39 -08:00
iomap fs: convert writepage_t callback to pass a folio 2023-02-02 22:33:34 -08:00
isofs
jbd2 jbd2,ocfs2: move jbd2_journal_submit_inode_data_buffers to ocfs2 2023-01-18 17:12:51 -08:00
jffs2
jfs MM patches for 6.2-rc1. 2022-12-13 19:29:45 -08:00
kernfs
ksmbd ksmbd: fix infinite loop in ksmbd_conn_handler_loop() 2023-01-01 22:49:24 -06:00
lockd NFSD 6.2 Release Notes 2022-12-12 20:54:39 -08:00
minix
netfs
nfs fs: convert writepage_t callback to pass a folio 2023-02-02 22:33:34 -08:00
nfs_common
nfsd nfsd-6.2 fixes: 2023-01-10 15:03:06 -06:00
nilfs2 nilfs2: convert nilfs_clear_dirty_pages() to use filemap_get_folios_tag() 2023-02-02 22:33:18 -08:00
nls
notify
ntfs
ntfs3 fs: convert writepage_t callback to pass a folio 2023-02-02 22:33:34 -08:00
ocfs2 ocfs2: use filemap_fdatawrite_wbc instead of generic_writepages 2023-01-18 17:12:51 -08:00
omfs omfs: remove ->writepage 2022-12-11 18:12:18 -08:00
openpromfs
orangefs mm: replace vma->vm_flags direct modifications with modifier calls 2023-02-09 16:51:39 -08:00
overlayfs overlayfs update for 6.2 2022-12-12 20:18:26 -08:00
proc mm: replace vma->vm_flags direct modifications with modifier calls 2023-02-09 16:51:39 -08:00
pstore pstore updates for v6.2-rc1-fixes 2022-12-23 11:55:54 -08:00
qnx4
qnx6
quota ext4: fix bug_on in __es_tree_search caused by bad quota inode 2022-12-08 21:49:23 -05:00
ramfs mm/nommu: factor out check for NOMMU shared mappings into is_nommu_shared_mapping() 2023-01-18 17:12:56 -08:00
reiserfs reiserfs: replace obvious uses of b_page with b_folio 2023-01-18 17:12:41 -08:00
romfs mm/nommu: factor out check for NOMMU shared mappings into is_nommu_shared_mapping() 2023-01-18 17:12:56 -08:00
smbfs_common
squashfs Squashfs: fix handling and sanity checking of xattr_ids count 2023-01-31 16:44:10 -08:00
sysfs
sysv fs: sysv: Fix sysv_nblocks() returns wrong value 2022-12-10 14:13:37 -05:00
tracefs
ubifs
udf udf: initialize newblock to 0 2023-01-06 15:44:32 +01:00
ufs
unicode
vboxsf
verity
xfs mm: replace vma->vm_flags direct modifications with modifier calls 2023-02-09 16:51:39 -08:00
zonefs
aio.c mm: replace vma->vm_flags direct modifications with modifier calls 2023-02-09 16:51:39 -08:00
anon_inodes.c
attr.c
bad_inode.c
binfmt_elf.c elfcore: Add a cprm parameter to elf_core_extra_{phdrs,data_size} 2023-01-05 15:12:12 +00:00
binfmt_elf_fdpic.c elfcore: Add a cprm parameter to elf_core_extra_{phdrs,data_size} 2023-01-05 15:12:12 +00:00
binfmt_elf_test.c
binfmt_flat.c
binfmt_misc.c
binfmt_script.c
buffer.c buffer: use b_folio in mark_buffer_dirty() 2023-01-18 17:12:40 -08:00
char_dev.c
compat_binfmt_elf.c
coredump.c coredump: convert to vma iterator 2023-02-09 16:51:33 -08:00
d_path.c
dax.c fsdax,xfs: port unshare to fsdax 2022-12-11 18:12:17 -08:00
dcache.c
direct-io.c
drop_caches.c
eventfd.c
eventpoll.c
exec.c mm: replace vma->vm_flags direct modifications with modifier calls 2023-02-09 16:51:39 -08:00
fcntl.c
fhandle.c
file.c
file_table.c
filesystems.c
fs-writeback.c mm: convert mem_cgroup_css_from_page() to mem_cgroup_css_from_folio() 2023-02-02 22:33:19 -08:00
fs_context.c
fs_parser.c
fs_pin.c
fs_struct.c
fs_types.c
fsopen.c
init.c
inode.c fs.vfsuid.conversion.v6.2 2022-12-12 19:20:05 -08:00
internal.h fs.ovl.setgid.v6.2 2022-12-12 19:03:10 -08:00
ioctl.c
Kconfig
Kconfig.binfmt
kernel_read_file.c
libfs.c
locks.c
Makefile
mbcache.c ext4: fix deadlock due to mbcache entry corruption 2022-12-08 21:49:25 -05:00
mount.h
mpage.c mpage: convert __mpage_writepage() to use a folio more fully 2023-02-02 22:33:34 -08:00
namei.c Landlock updates for v6.2-rc1 2022-12-13 09:14:50 -08:00
namespace.c fs.idmapped.mnt_idmap.v6.2 2022-12-12 19:30:18 -08:00
no-block.c
nsfs.c
open.c Landlock updates for v6.2-rc1 2022-12-13 09:14:50 -08:00
pipe.c
pnode.c pnode: terminate at peers of source 2022-12-21 14:45:25 +01:00
pnode.h
posix_acl.c fs.idmapped.mnt_idmap.v6.2 2022-12-12 19:30:18 -08:00
proc_namespace.c
read_write.c iov_iter work; most of that is about getting rid of 2022-12-12 18:29:54 -08:00
readdir.c
remap_range.c New VFS code for 6.2: 2022-12-13 10:26:38 -08:00
select.c
seq_file.c
signalfd.c
splice.c
stack.c
stat.c
statfs.c
super.c misc pile 2022-12-12 18:38:47 -08:00
sync.c
sysctls.c
timerfd.c
userfaultfd.c mm: replace vma->vm_flags direct modifications with modifier calls 2023-02-09 16:51:39 -08:00
utimes.c
xattr.c fs.xattr.simple.rework.rbtree.rwlock.v6.2 2022-12-13 10:08:36 -08:00