linux/fs/erofs
Jingbo Xu 2dfb8c3b12 erofs: maintain cookies of share domain in self-contained list
We'd better not touch sb->s_inodes list and inode->i_count directly.
Let's maintain cookies of share domain in a self-contained list in erofs.

Besides, relinquish cookie with the mutex held.  Otherwise if a cookie
is registered when the old cookie with the same name in the same domain
has been removed from the list but not relinquished yet, fscache may
complain "Duplicate cookie detected".

Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Reviewed-by: Jia Zhu <zhujia.zj@bytedance.com>
Link: https://lore.kernel.org/r/20230209063913.46341-3-jefflexu@linux.alibaba.com
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
2023-02-15 08:11:27 +08:00
..
compress.h erofs: introduce multi-reference pclusters (fully-referenced) 2022-07-22 21:44:27 +08:00
data.c erofs: remove unused EROFS_GET_BLOCKS_RAW flag 2023-02-15 08:11:26 +08:00
decompressor_lzma.c erofs: introduce partial-referenced pclusters 2022-09-26 23:55:43 +08:00
decompressor.c erofs: support interlaced uncompressed data for compressed files 2022-09-23 10:55:56 +08:00
dir.c erofs: get rid of debug_one_dentry() 2023-02-15 08:11:23 +08:00
erofs_fs.h erofs: introduce partial-referenced pclusters 2022-09-26 23:55:43 +08:00
fscache.c erofs: maintain cookies of share domain in self-contained list 2023-02-15 08:11:27 +08:00
inode.c erofs: simplify iloc() 2023-02-15 08:11:24 +08:00
internal.h erofs: maintain cookies of share domain in self-contained list 2023-02-15 08:11:27 +08:00
Kconfig erofs: add per-cpu threads for decompression as an option 2023-02-15 08:11:26 +08:00
Makefile erofs: register fscache volume 2022-05-18 00:11:19 +08:00
namei.c erofs: get rid of erofs_inode_datablocks() 2023-02-15 08:11:24 +08:00
pcpubuf.c erofs: get rid of ->lru usage 2021-10-25 08:22:59 +08:00
super.c erofs: remove linux/buffer_head.h dependency 2023-02-15 08:11:10 +08:00
sysfs.c erofs: make kobj_type structures constant 2023-02-15 08:11:26 +08:00
utils.c mm: shrinkers: provide shrinkers with names 2022-07-03 18:08:40 -07:00
xattr.c erofs: simplify iloc() 2023-02-15 08:11:24 +08:00
xattr.h erofs: clean up unnecessary code and comments 2022-09-27 17:27:25 +08:00
zdata.c erofs: add per-cpu threads for decompression as an option 2023-02-15 08:11:26 +08:00
zmap.c erofs: get rid of z_erofs_do_map_blocks() forward declaration 2023-02-15 08:11:25 +08:00