On 9/14/22 9:21 PM, Gao Xiang wrote: >> @@ -518,7 +614,13 @@ void erofs_fscache_unregister_fs(struct super_block *sb) >> struct erofs_sb_info *sbi = EROFS_SB(sb); >> >> erofs_fscache_unregister_cookie(sbi->s_fscache); >> - fscache_relinquish_volume(sbi->volume, NULL, false); >> sbi->s_fscache = NULL; >> + >> + if (sbi->domain) >> + erofs_fscache_domain_put(sbi->domain); >> + else >> + fscache_relinquish_volume(sbi->volume, NULL, false); >> + > > How about using one helper and pass in sb directly instead? > Then this helper has only one caller... -- Thanks, Jingbo
- [PATCH V3 3/6] erofs: introduce 'domain_id' mount option Jia Zhu
- [PATCH V3 2/6] erofs: code clean up for fscache Jia Zhu
- [PATCH V3 4/6] erofs: introduce fscache-based domain Jia Zhu
- Re: [PATCH V3 4/6] erofs: introduce fscache-based domain Gao Xiang
- Re: [PATCH V3 4/6] erofs: introduce fscache-based domai... JeffleXu
- Re: [External] Re: [PATCH V3 4/6] erofs: introduce fsca... Jia Zhu
- Re: [PATCH V3 4/6] erofs: introduce fscache-based domain JeffleXu
- [PATCH V3 5/6] erofs: introduce a pseudo mnt to manage shared co... Jia Zhu
- [PATCH V3 6/6] erofs: Support sharing cookies in the same domain Jia Zhu
