summaryrefslogtreecommitdiff
path: root/samples/workqueue
diff options
context:
space:
mode:
authorGao Xiang <hsiangkao@linux.alibaba.com>2026-03-24 18:54:07 +0300
committerGao Xiang <hsiangkao@linux.alibaba.com>2026-03-25 05:40:02 +0300
commit2f0407ed923b7eb363424033fc12fe253da139c4 (patch)
tree1ac73966f9946ce2a26aeb89079f9ad4dd549169 /samples/workqueue
parent938c418422c4b08523ae39aebbd828428dcfefd2 (diff)
downloadlinux-2f0407ed923b7eb363424033fc12fe253da139c4.tar.xz
erofs: fix .fadvise() for page cache sharing
Currently, .fadvise() doesn't work well if page cache sharing is on since shared inodes belong to a pseudo fs generated with init_pseudo(), and sb->s_bdi is the default one &noop_backing_dev_info. Then, generic_fadvise() will just behave as a no-op if sb->s_bdi is &noop_backing_dev_info, but as the bdev fs (the bdev fs changes inode_to_bdi() instead), it's actually NOT a pure memfs. Let's generate a real bdi for erofs_ishare_mnt instead. Fixes: d86d7817c042 ("erofs: implement .fadvise for page cache share") Reviewed-by: Hongbo Li <lihongbo22@huawei.com> Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Diffstat (limited to 'samples/workqueue')
0 files changed, 0 insertions, 0 deletions