Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

btrfs: set AS_KERNEL_FILE on the btree_inode

extent_buffers are global and shared so their pages should not belong to
any particular cgroup (currently whichever cgroups happens to allocate the
extent_buffer).

Btrfs tree operations should not arbitrarily block on cgroup reclaim or
have the shared extent_buffer pages on a cgroup's reclaim lists.

Link: https://lkml.kernel.org/r/2ee99832619a3fdfe80bf4dc9760278662d2d746.1755812945.git.boris@bur.io
Signed-off-by: Boris Burkov <boris@bur.io>
Acked-by: Shakeel Butt <shakeel.butt@linux.dev>
Tested-by: syzbot@syzkaller.appspotmail.com
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Qu Wenruo <wqu@suse.com>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Boris Burkov and committed by
Andrew Morton
b5510282 e3a9ac4e

+1
+1
fs/btrfs/disk-io.c
··· 1930 1930 BTRFS_I(inode)->root = btrfs_grab_root(fs_info->tree_root); 1931 1931 set_bit(BTRFS_INODE_DUMMY, &BTRFS_I(inode)->runtime_flags); 1932 1932 __insert_inode_hash(inode, hash); 1933 + set_bit(AS_KERNEL_FILE, &inode->i_mapping->flags); 1933 1934 fs_info->btree_inode = inode; 1934 1935 1935 1936 return 0;