Lines Matching refs:mnt
201 static void _pcache_clean(struct dfs_mnt *mnt, int (*cb)(struct dfs_aspace *aspace)) in _pcache_clean() argument
213 if (aspace && aspace->mnt == mnt) in _pcache_clean()
225 if (aspace && aspace->mnt == mnt) in _pcache_clean()
247 void dfs_pcache_unmount(struct dfs_mnt *mnt) in dfs_pcache_unmount() argument
249 _pcache_clean(mnt, dfs_aspace_release); in dfs_pcache_unmount()
252 static int _dummy_cb(struct dfs_aspace *mnt) in _dummy_cb() argument
272 void dfs_pcache_clean(struct dfs_mnt *mnt) in dfs_pcache_clean() argument
274 _pcache_clean(mnt, _dummy_cb); in dfs_pcache_clean()
519 static uint32_t dfs_aspace_hash(struct dfs_mnt *mnt, const char *path) in dfs_aspace_hash() argument
531 return (val ^ (unsigned long)mnt) & (RT_PAGECACHE_HASH_NR - 1); in dfs_aspace_hash()
551 …rt_list_for_each_entry(aspace, &__pcache.head[dfs_aspace_hash(dentry->mnt, dentry->pathname)], has… in dfs_aspace_hash_lookup()
554 if (aspace->mnt == dentry->mnt in dfs_aspace_hash_lookup()
581 val = dfs_aspace_hash(aspace->mnt, aspace->pathname); in dfs_aspace_insert()
696 if (dentry && dentry->mnt) in _dfs_aspace_create()
698 aspace->mnt = dentry->mnt; in _dfs_aspace_create()
699 aspace->fullpath = rt_strdup(dentry->mnt->fullpath); in _dfs_aspace_create()
923 if (aspace->mnt) in dfs_pcache_dump()
1648 else if (aspace->mnt && (aspace->mnt->flags & MNT_RDONLY)) in dfs_aspace_write()