Home
last modified time | relevance | path

Searched refs:nfss (Results 1 – 5 of 5) sorted by relevance

/linux/fs/nfs/
H A Dfscache.c91 struct nfs_server *nfss = NFS_SB(sb); in nfs_fscache_get_super_cookie() local
96 nfss->fscache_uniq = kmemdup_nul(uniq, ulen, GFP_KERNEL); in nfs_fscache_get_super_cookie()
97 if (!nfss->fscache_uniq) in nfs_fscache_get_super_cookie()
106 if (!nfs_fscache_get_client_key(nfss->nfs_client, key, &len) || in nfs_fscache_get_super_cookie()
107 !nfs_append_int(key, &len, nfss->fsid.major) || in nfs_fscache_get_super_cookie()
108 !nfs_append_int(key, &len, nfss->fsid.minor) || in nfs_fscache_get_super_cookie()
110 !nfs_append_int(key, &len, nfss->flags) || in nfs_fscache_get_super_cookie()
111 !nfs_append_int(key, &len, nfss->rsize) || in nfs_fscache_get_super_cookie()
112 !nfs_append_int(key, &len, nfss->wsize) || in nfs_fscache_get_super_cookie()
113 !nfs_append_int(key, &len, nfss->acregmin) || in nfs_fscache_get_super_cookie()
[all …]
H A Dpnfs.h474 static inline int pnfs_enabled_sb(struct nfs_server *nfss) in pnfs_enabled_sb() argument
476 return nfss->pnfs_curr_ld != NULL; in pnfs_enabled_sb()
609 struct nfs_server *nfss = NFS_SERVER(ino); in pnfs_return_layout() local
611 if (pnfs_enabled_sb(nfss) && nfsi->layout) { in pnfs_return_layout()
621 struct nfs_server *nfss) in pnfs_use_threshold() argument
623 return (dst && src && src->bm != 0 && nfss->pnfs_curr_ld && in pnfs_use_threshold()
624 nfss->pnfs_curr_ld->id == src->l_type); in pnfs_use_threshold()
877 struct nfs_server *nfss) in pnfs_use_threshold() argument
H A Dwrite.c288 struct nfs_server *nfss = NFS_SERVER(folio->mapping->host); in nfs_folio_set_writeback() local
291 if (atomic_long_inc_return(&nfss->writeback) > NFS_CONGESTION_ON_THRESH) in nfs_folio_set_writeback()
292 nfss->write_congested = 1; in nfs_folio_set_writeback()
297 struct nfs_server *nfss = NFS_SERVER(folio->mapping->host); in nfs_folio_end_writeback() local
300 if (atomic_long_dec_return(&nfss->writeback) < in nfs_folio_end_writeback()
302 nfss->write_congested = 0; in nfs_folio_end_writeback()
303 wake_up_all(&nfss->write_congestion_wait); in nfs_folio_end_writeback()
656 struct nfs_server *nfss = NFS_SERVER(inode); in nfs_writepages() local
663 if (wbc->sync_mode == WB_SYNC_NONE && nfss->write_congested) { in nfs_writepages()
664 err = wait_event_killable(nfss->write_congestion_wait, in nfs_writepages()
[all …]
H A Dpnfs.c108 unset_pnfs_layoutdriver(struct nfs_server *nfss) in unset_pnfs_layoutdriver() argument
110 if (nfss->pnfs_curr_ld) { in unset_pnfs_layoutdriver()
111 if (nfss->pnfs_curr_ld->clear_layoutdriver) in unset_pnfs_layoutdriver()
112 nfss->pnfs_curr_ld->clear_layoutdriver(nfss); in unset_pnfs_layoutdriver()
114 if (atomic_dec_and_test(&nfss->nfs_client->cl_mds_count)) in unset_pnfs_layoutdriver()
115 nfs4_deviceid_purge_client(nfss->nfs_client); in unset_pnfs_layoutdriver()
116 module_put(nfss->pnfs_curr_ld->owner); in unset_pnfs_layoutdriver()
118 nfss->pnfs_curr_ld = NULL; in unset_pnfs_layoutdriver()
3065 struct nfs_server *nfss = NFS_SERVER(inode); in pnfs_try_to_write_data() local
3071 trypnfs = nfss->pnfs_curr_ld->write_pagelist(hdr, how); in pnfs_try_to_write_data()
[all …]
/linux/include/linux/
H A Dnfs_fs.h381 struct nfs_server *nfss = NFS_SERVER(inode); in NFS_MINATTRTIMEO() local
382 return S_ISDIR(inode->i_mode) ? nfss->acdirmin : nfss->acregmin; in NFS_MINATTRTIMEO()
387 struct nfs_server *nfss = NFS_SERVER(inode); in NFS_MAXATTRTIMEO() local
388 return S_ISDIR(inode->i_mode) ? nfss->acdirmax : nfss->acregmax; in NFS_MAXATTRTIMEO()