Home
last modified time | relevance | path

Searched refs:host (Results 1 – 25 of 164) sorted by relevance

1234567

/fs/lockd/
Dhost.c37 #define for_each_host(host, chain, table) \ argument
40 hlist_for_each_entry((host), (chain), h_hash)
42 #define for_each_host_safe(host, next, chain, table) \ argument
45 hlist_for_each_entry_safe((host), (next), \
114 struct nlm_host *host = NULL; in nlm_alloc_host() local
120 host = NULL; in nlm_alloc_host()
130 host = kmalloc(sizeof(*host), GFP_KERNEL); in nlm_alloc_host()
131 if (unlikely(host == NULL)) { in nlm_alloc_host()
137 memcpy(nlm_addr(host), ni->sap, ni->salen); in nlm_alloc_host()
138 host->h_addrlen = ni->salen; in nlm_alloc_host()
[all …]
Dclntlock.c56 struct nlm_host *host; in nlmclnt_init() local
64 host = nlmclnt_lookup_host(nlm_init->address, nlm_init->addrlen, in nlmclnt_init()
68 if (host == NULL) in nlmclnt_init()
70 if (host->h_rpcclnt == NULL && nlm_bind_host(host) == NULL) in nlmclnt_init()
73 host->h_nlmclnt_ops = nlm_init->nlmclnt_ops; in nlmclnt_init()
74 return host; in nlmclnt_init()
76 nlmclnt_release_host(host); in nlmclnt_init()
88 void nlmclnt_done(struct nlm_host *host) in nlmclnt_done() argument
90 struct net *net = host->net; in nlmclnt_done()
92 nlmclnt_release_host(host); in nlmclnt_done()
[all …]
Dclntproc.c31 static void nlmclnt_locks_init_private(struct file_lock *fl, struct nlm_host *host);
59 if (!refcount_dec_and_lock(&lockowner->count, &lockowner->host->h_lock)) in nlmclnt_put_lockowner()
62 spin_unlock(&lockowner->host->h_lock); in nlmclnt_put_lockowner()
63 nlmclnt_release_host(lockowner->host); in nlmclnt_put_lockowner()
67 static inline int nlm_pidbusy(struct nlm_host *host, uint32_t pid) in nlm_pidbusy() argument
70 list_for_each_entry(lockowner, &host->h_lockowners, list) { in nlm_pidbusy()
77 static inline uint32_t __nlm_alloc_pid(struct nlm_host *host) in __nlm_alloc_pid() argument
81 res = host->h_pidcount++; in __nlm_alloc_pid()
82 } while (nlm_pidbusy(host, res) < 0); in __nlm_alloc_pid()
86 static struct nlm_lockowner *__nlmclnt_find_lockowner(struct nlm_host *host, fl_owner_t owner) in __nlmclnt_find_lockowner() argument
[all …]
Dsvc4proc.c26 struct nlm_host *host = NULL; in nlm4svc_retrieve_args() local
36 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) in nlm4svc_retrieve_args()
37 || (argp->monitor && nsm_monitor(host) < 0)) in nlm4svc_retrieve_args()
39 *hostp = host; in nlm4svc_retrieve_args()
51 nlmsvc_locks_init_private(&lock->fl, host, (pid_t)lock->svid); in nlm4svc_retrieve_args()
54 nlmsvc_release_host(host); in nlm4svc_retrieve_args()
62 nlmsvc_release_host(host); in nlm4svc_retrieve_args()
85 struct nlm_host *host; in __nlm4svc_proc_test() local
93 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_test()
97 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in __nlm4svc_proc_test()
[all …]
Dsvcproc.c55 struct nlm_host *host = NULL; in nlmsvc_retrieve_args() local
65 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) in nlmsvc_retrieve_args()
66 || (argp->monitor && nsm_monitor(host) < 0)) in nlmsvc_retrieve_args()
68 *hostp = host; in nlmsvc_retrieve_args()
81 nlmsvc_locks_init_private(&lock->fl, host, (pid_t)lock->svid); in nlmsvc_retrieve_args()
84 nlmsvc_release_host(host); in nlmsvc_retrieve_args()
92 nlmsvc_release_host(host); in nlmsvc_retrieve_args()
115 struct nlm_host *host; in __nlmsvc_proc_test() local
123 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_test()
127 …resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->coo… in __nlmsvc_proc_test()
[all …]
Dsvcsubs.c163 nlm_traverse_locks(struct nlm_host *host, struct nlm_file *file, in nlm_traverse_locks() argument
183 lockhost = ((struct nlm_lockowner *)fl->fl_owner)->host; in nlm_traverse_locks()
184 if (match(lockhost, host)) { in nlm_traverse_locks()
214 nlm_inspect_file(struct nlm_host *host, struct nlm_file *file, nlm_host_match_fn_t match) in nlm_inspect_file() argument
216 nlmsvc_traverse_blocks(host, file, match); in nlm_inspect_file()
217 nlmsvc_traverse_shares(host, file, match); in nlm_inspect_file()
218 return nlm_traverse_locks(host, file, match); in nlm_inspect_file()
333 struct nlm_host *host = data; in nlmsvc_mark_host() local
336 (host->net == hint->net)) in nlmsvc_mark_host()
337 host->h_inuse = 1; in nlmsvc_mark_host()
[all …]
Dsvclock.c216 nlmsvc_create_block(struct svc_rqst *rqstp, struct nlm_host *host, in nlmsvc_create_block() argument
223 call = nlm_alloc_call(host); in nlmsvc_create_block()
247 block->b_host = host; in nlmsvc_create_block()
311 void nlmsvc_traverse_blocks(struct nlm_host *host, in nlmsvc_traverse_blocks() argument
320 if (!match(block->b_host, host)) in nlmsvc_traverse_blocks()
344 if (!refcount_dec_and_lock(&lockowner->count, &lockowner->host->h_lock)) in nlmsvc_put_lockowner()
347 spin_unlock(&lockowner->host->h_lock); in nlmsvc_put_lockowner()
348 nlmsvc_release_host(lockowner->host); in nlmsvc_put_lockowner()
352 static struct nlm_lockowner *__nlmsvc_find_lockowner(struct nlm_host *host, pid_t pid) in __nlmsvc_find_lockowner() argument
355 list_for_each_entry(lockowner, &host->h_lockowners, list) { in __nlmsvc_find_lockowner()
[all …]
Dsvcshare.c28 nlmsvc_share_file(struct nlm_host *host, struct nlm_file *file, in nlmsvc_share_file() argument
36 if (share->s_host == host && nlm_cmp_owner(share, oh)) in nlmsvc_share_file()
53 share->s_host = host; in nlmsvc_share_file()
69 nlmsvc_unshare_file(struct nlm_host *host, struct nlm_file *file, in nlmsvc_unshare_file() argument
77 if (share->s_host == host && nlm_cmp_owner(share, oh)) { in nlmsvc_unshare_file()
93 void nlmsvc_traverse_shares(struct nlm_host *host, struct nlm_file *file, in nlmsvc_traverse_shares() argument
100 if (match(share->s_host, host)) { in nlmsvc_traverse_shares()
Dmon.c92 const struct nlm_host *host) in nsm_mon_unmon() argument
102 .nodename = host->nodename, in nsm_mon_unmon()
111 clnt = nsm_create(host->net, host->nodename); in nsm_mon_unmon()
115 host->net->ns.inum); in nsm_mon_unmon()
148 int nsm_monitor(const struct nlm_host *host) in nsm_monitor() argument
150 struct nsm_handle *nsm = host->h_nsmhandle; in nsm_monitor()
165 status = nsm_mon_unmon(nsm, NSMPROC_MON, &res, host); in nsm_monitor()
189 void nsm_unmonitor(const struct nlm_host *host) in nsm_unmonitor() argument
191 struct nsm_handle *nsm = host->h_nsmhandle; in nsm_unmonitor()
199 status = nsm_mon_unmon(nsm, NSMPROC_UNMON, &res, host); in nsm_unmonitor()
/fs/ubifs/
Dxattr.c81 static int create_xattr(struct ubifs_info *c, struct inode *host, in create_xattr() argument
86 struct ubifs_inode *ui, *host_ui = ubifs_inode(host); in create_xattr()
93 host->i_ino, host_ui->xattr_cnt); in create_xattr()
105 host->i_ino, names_len, XATTR_LIST_MAX); in create_xattr()
113 inode = ubifs_new_inode(c, host, S_IFREG | S_IRWXUGO); in create_xattr()
137 host->i_ctime = current_time(host); in create_xattr()
152 err = ubifs_jnl_update(c, host, nm, inode, 0, 1); in create_xattr()
155 ubifs_set_inode_flags(host); in create_xattr()
190 static int change_xattr(struct ubifs_info *c, struct inode *host, in change_xattr() argument
194 struct ubifs_inode *host_ui = ubifs_inode(host); in change_xattr()
[all …]
Dfile.c105 struct inode *inode = page->mapping->host; in do_readpage()
221 struct inode *inode = mapping->host; in write_begin_slow()
425 struct inode *inode = mapping->host; in ubifs_write_begin()
540 struct inode *inode = mapping->host; in ubifs_write_end()
610 struct inode *inode = page->mapping->host; in populate_page()
722 struct inode *inode = mapping->host; in ubifs_do_bulk_read()
827 struct inode *inode = page->mapping->host; in ubifs_bulk_read()
906 struct inode *inode = page->mapping->host; in do_writepage()
1005 struct inode *inode = page->mapping->host; in ubifs_writepage()
1296 struct inode *inode = page->mapping->host; in ubifs_invalidatepage()
[all …]
/fs/ecryptfs/
Dmmap.c134 page_virt, page->mapping->host); in ecryptfs_copy_up_encrypted_with_header()
156 crypt_stat->extent_size, page->mapping->host); in ecryptfs_copy_up_encrypted_with_header()
183 &ecryptfs_inode_to_private(page->mapping->host)->crypt_stat; in ecryptfs_readpage()
189 page->mapping->host); in ecryptfs_readpage()
206 page->mapping->host); in ecryptfs_readpage()
237 struct inode *inode = page->mapping->host; in fill_zeros_to_end_of_page()
282 &ecryptfs_inode_to_private(mapping->host)->crypt_stat; in ecryptfs_write_begin()
286 page, index, 0, PAGE_SIZE, mapping->host); in ecryptfs_write_begin()
313 mapping->host); in ecryptfs_write_begin()
325 >= i_size_read(page->mapping->host)) { in ecryptfs_write_begin()
[all …]
/fs/nfs/
Dfile.c125 struct inode *inode = filp->f_mapping->host; in nfs_file_llseek()
305 if (pnfs_ld_read_whole_page(file->f_mapping->host)) in nfs_want_read_modify_write()
331 file, mapping->host->i_ino, len, (long long) pos); in nfs_write_begin()
363 file, mapping->host->i_ino, len, (long long) pos); in nfs_write_end()
392 NFS_I(mapping->host)->write_io += copied; in nfs_write_end()
394 if (nfs_ctx_key_to_expire(ctx, mapping->host)) { in nfs_write_end()
395 status = nfs_wb_all(mapping->host); in nfs_write_end()
419 nfs_wb_page_cancel(page_file_mapping(page)->host, page); in nfs_invalidate_page()
421 nfs_fscache_invalidate_page(page, page->mapping->host); in nfs_invalidate_page()
454 nfsi = NFS_I(mapping->host); in nfs_check_dirty_writeback()
[all …]
/fs/gfs2/
Daops.c91 struct inode *inode = page->mapping->host; in gfs2_writepage()
124 struct inode * const inode = page->mapping->host; in gfs2_write_full_page()
157 struct inode *inode = page->mapping->host; in __gfs2_jdata_writepage()
183 struct inode *inode = page->mapping->host; in gfs2_jdata_writepage()
244 struct inode *inode = mapping->host; in gfs2_write_jdata_pagevec()
417 struct gfs2_inode *ip = GFS2_I(mapping->host); in gfs2_jdata_writepages()
418 struct gfs2_sbd *sdp = GFS2_SB(mapping->host); in gfs2_jdata_writepages()
485 struct gfs2_inode *ip = GFS2_I(page->mapping->host); in __gfs2_readpage()
486 struct gfs2_sbd *sdp = GFS2_SB(page->mapping->host); in __gfs2_readpage()
490 if (i_blocksize(page->mapping->host) == PAGE_SIZE && in __gfs2_readpage()
[all …]
Dfile.c58 struct gfs2_inode *ip = GFS2_I(file->f_mapping->host); in gfs2_llseek()
105 struct inode *dir = file->f_mapping->host; in gfs2_readdir()
424 if (gfs2_iomap_get_alloc(page->mapping->host, pos, length, &iomap)) in gfs2_allocate_page_backing()
574 struct gfs2_inode *ip = GFS2_I(file->f_mapping->host); in gfs2_mmap()
713 struct inode *inode = mapping->host; in gfs2_fsync()
749 struct gfs2_inode *ip = GFS2_I(file->f_mapping->host); in gfs2_file_direct_read()
773 struct inode *inode = file->f_mapping->host; in gfs2_file_direct_write()
1100 if ((file->f_flags & O_DSYNC) || IS_SYNC(file->f_mapping->host)) in __gfs2_fallocate()
1172 struct gfs2_inode *ip = GFS2_I(out->f_mapping->host); in gfs2_file_splice_write()
1196 struct gfs2_inode *ip = GFS2_I(file->f_mapping->host); in gfs2_lock()
[all …]
/fs/ext2/
Dfile.c35 struct inode *inode = iocb->ki_filp->f_mapping->host; in ext2_dax_read_iter()
52 struct inode *inode = file->f_mapping->host; in ext2_dax_write_iter()
153 struct super_block *sb = file->f_mapping->host->i_sb; in ext2_fsync()
166 if (IS_DAX(iocb->ki_filp->f_mapping->host)) in ext2_file_read_iter()
175 if (IS_DAX(iocb->ki_filp->f_mapping->host)) in ext2_file_write_iter()
/fs/9p/
Dvfs_addr.c41 struct inode *inode = page->mapping->host; in v9fs_fid_readpage()
104 inode = mapping->host; in v9fs_vfs_readpages()
150 struct inode *inode = page->mapping->host; in v9fs_vfs_writepage_locked()
208 struct inode *inode = page->mapping->host; in v9fs_launder_page()
263 struct inode *inode = mapping->host; in v9fs_write_begin()
296 struct inode *inode = page->mapping->host; in v9fs_write_end()
/fs/afs/
Dfile.c274 struct inode *inode = page->mapping->host; in afs_page_filler()
399 struct inode *inode = page->mapping->host; in afs_readpage()
443 struct afs_vnode *vnode = AFS_FS_I(mapping->host); in afs_readpages_one()
549 key_serial(key), mapping->host->i_ino, nr_pages); in afs_readpages()
553 vnode = AFS_FS_I(mapping->host); in afs_readpages()
609 struct afs_vnode *vnode = AFS_FS_I(page->mapping->host); in afs_invalidatepage()
620 struct afs_vnode *vnode = AFS_FS_I(page->mapping->host); in afs_invalidatepage()
644 struct afs_vnode *vnode = AFS_FS_I(page->mapping->host); in afs_releasepage()
/fs/f2fs/
Ddata.c45 inode = mapping->host; in __is_cp_guaranteed()
63 struct inode *inode = mapping->host; in __read_io_type()
430 if (inode && inode == target->mapping->host) in __has_merged_page()
526 f2fs_set_bio_crypt_ctx(bio, fio->page->mapping->host, in f2fs_submit_page_bio()
718 !f2fs_crypt_mergeable_bio(bio, fio->page->mapping->host, in f2fs_merge_page_bio()
724 f2fs_set_bio_crypt_ctx(bio, fio->page->mapping->host, in f2fs_merge_page_bio()
781 !f2fs_crypt_mergeable_bio(io->bio, fio->page->mapping->host, in f2fs_submit_page_write()
794 f2fs_set_bio_crypt_ctx(io->bio, fio->page->mapping->host, in f2fs_submit_page_write()
1940 struct inode *inode = mapping->host; in f2fs_mpage_readpages()
1984 struct inode *inode = page_file_mapping(page)->host; in f2fs_read_data_page()
[all …]
/fs/jffs2/
Dfile.c34 struct inode *inode = filp->f_mapping->host; in jffs2_fsync()
122 struct jffs2_inode_info *f = JFFS2_INODE_INFO(pg->mapping->host); in jffs2_readpage()
126 ret = jffs2_do_readpage_unlock(pg->mapping->host, pg); in jffs2_readpage()
136 struct inode *inode = mapping->host; in jffs2_write_begin()
242 struct inode *inode = mapping->host; in jffs2_write_end()
/fs/xfs/
Dxfs_aops.c808 trace_xfs_invalidatepage(page->mapping->host, page, offset, length); in xfs_vm_invalidatepage()
827 struct inode *inode = page->mapping->host; in xfs_aops_discard_page()
985 struct inode *inode = page->mapping->host; in xfs_do_writepage()
1109 xfs_iflags_clear(XFS_I(mapping->host), XFS_ITRUNCATED); in xfs_vm_writepages()
1121 xfs_iflags_clear(XFS_I(mapping->host), XFS_ITRUNCATED); in xfs_dax_writepages()
1123 xfs_find_bdev_for_inode(mapping->host), wbc); in xfs_dax_writepages()
1131 trace_xfs_releasepage(page->mapping->host, page, 0, 0); in xfs_vm_releasepage()
1140 struct xfs_inode *ip = XFS_I(mapping->host); in xfs_vm_bmap()
1163 trace_xfs_vm_readpage(page->mapping->host, 1); in xfs_vm_readpage()
1174 trace_xfs_vm_readpages(mapping->host, nr_pages); in xfs_vm_readpages()
/fs/hpfs/
Dfile.c25 struct inode *inode = file->f_mapping->host; in hpfs_file_fsync()
142 struct inode *inode = mapping->host; in hpfs_write_failed()
163 &hpfs_i(mapping->host)->mmu_private); in hpfs_write_begin()
174 struct inode *inode = mapping->host; in hpfs_write_end()
/fs/efivarfs/
Dfile.c21 struct inode *inode = file->f_mapping->host; in efivarfs_file_write()
124 struct inode *inode = file->f_mapping->host; in efivarfs_ioc_getxflags()
135 struct inode *inode = file->f_mapping->host; in efivarfs_ioc_setxflags()
/fs/erofs/
Ddata.c134 struct inode *const inode = mapping->host; in erofs_read_raw_page()
293 trace_erofs_readpages(mapping->host, page, nr_pages, true); in erofs_raw_access_readpages()
309 EROFS_I(mapping->host)->nid); in erofs_raw_access_readpages()
346 struct inode *inode = mapping->host; in erofs_bmap()
/fs/
Ddax.c411 if (S_ISCHR(mapping->host->i_mode)) in dax_lock_page()
441 if (S_ISCHR(mapping->host->i_mode)) in dax_unlock_page()
723 __mark_inode_dirty(mapping->host, I_DIRTY_PAGES); in dax_insert_entry()
926 trace_dax_writeback_one(mapping->host, index, count); in dax_writeback_one()
943 struct inode *inode = mapping->host; in dax_writeback_mapping_range()
1034 struct inode *inode = mapping->host; in dax_load_hole()
1199 struct inode *inode = mapping->host; in dax_iomap_rw()
1248 struct inode *inode = mapping->host; in dax_iomap_pte_fault()
1417 struct inode *inode = mapping->host; in dax_pmd_load_hole()
1473 struct inode *inode = mapping->host; in dax_iomap_pmd_fault()
[all …]

1234567