Home
last modified time | relevance | path

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

12345

/fs/lockd/
Dhost.c109 struct nlm_host *host; in nlm_lookup_host() local
125 hlist_for_each_entry(host, pos, chain, h_hash) { in nlm_lookup_host()
126 if (!nlm_cmp_addr(nlm_addr(host), ni->sap)) in nlm_lookup_host()
131 nsm = host->h_nsmhandle; in nlm_lookup_host()
133 if (host->h_proto != ni->protocol) in nlm_lookup_host()
135 if (host->h_version != ni->version) in nlm_lookup_host()
137 if (host->h_server != ni->server) in nlm_lookup_host()
140 !nlm_cmp_addr(nlm_srcaddr(host), ni->src_sap)) in nlm_lookup_host()
144 hlist_del(&host->h_hash); in nlm_lookup_host()
145 hlist_add_head(&host->h_hash, chain); in nlm_lookup_host()
[all …]
Dclntlock.c54 struct nlm_host *host; in nlmclnt_init() local
62 host = nlmclnt_lookup_host(nlm_init->address, nlm_init->addrlen, in nlmclnt_init()
65 if (host == NULL) { in nlmclnt_init()
70 return host; in nlmclnt_init()
79 void nlmclnt_done(struct nlm_host *host) in nlmclnt_done() argument
81 nlm_release_host(host); in nlmclnt_done()
89 struct nlm_wait *nlmclnt_prepare_block(struct nlm_host *host, struct file_lock *fl) in nlmclnt_prepare_block() argument
95 block->b_host = host; in nlmclnt_prepare_block()
166 static int nlmclnt_cmp_addr(const struct nlm_host *host, in nlmclnt_cmp_addr() argument
174 addr1 = nlmclnt_map_v4addr(nlm_addr(host), &addr1_mapped); in nlmclnt_cmp_addr()
[all …]
Dclntproc.c29 static void nlmclnt_locks_init_private(struct file_lock *fl, struct nlm_host *host);
56 if (!atomic_dec_and_lock(&lockowner->count, &lockowner->host->h_lock)) in nlm_put_lockowner()
59 spin_unlock(&lockowner->host->h_lock); in nlm_put_lockowner()
60 nlm_release_host(lockowner->host); in nlm_put_lockowner()
64 static inline int nlm_pidbusy(struct nlm_host *host, uint32_t pid) in nlm_pidbusy() argument
67 list_for_each_entry(lockowner, &host->h_lockowners, list) { in nlm_pidbusy()
74 static inline uint32_t __nlm_alloc_pid(struct nlm_host *host) in __nlm_alloc_pid() argument
78 res = host->h_pidcount++; in __nlm_alloc_pid()
79 } while (nlm_pidbusy(host, res) < 0); in __nlm_alloc_pid()
83 static struct nlm_lockowner *__nlm_find_lockowner(struct nlm_host *host, fl_owner_t owner) in __nlm_find_lockowner() argument
[all …]
Dsvc4proc.c29 struct nlm_host *host = NULL; in nlm4svc_retrieve_args() local
39 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) in nlm4svc_retrieve_args()
40 || (argp->monitor && nsm_monitor(host) < 0)) in nlm4svc_retrieve_args()
42 *hostp = host; in nlm4svc_retrieve_args()
52 lock->fl.fl_owner = (fl_owner_t) host; in nlm4svc_retrieve_args()
59 nlm_release_host(host); in nlm4svc_retrieve_args()
82 struct nlm_host *host; in nlm4svc_proc_test() local
90 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_test()
94 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in nlm4svc_proc_test()
100 nlm_release_host(host); in nlm4svc_proc_test()
[all …]
Dsvcproc.c58 struct nlm_host *host = NULL; in nlmsvc_retrieve_args() local
68 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) in nlmsvc_retrieve_args()
69 || (argp->monitor && nsm_monitor(host) < 0)) in nlmsvc_retrieve_args()
71 *hostp = host; in nlmsvc_retrieve_args()
81 lock->fl.fl_owner = (fl_owner_t) host; in nlmsvc_retrieve_args()
88 nlm_release_host(host); in nlmsvc_retrieve_args()
111 struct nlm_host *host; in nlmsvc_proc_test() local
119 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_test()
123 …resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->coo… in nlmsvc_proc_test()
130 nlm_release_host(host); in nlmsvc_proc_test()
[all …]
Dsvcsubs.c163 nlm_traverse_locks(struct nlm_host *host, struct nlm_file *file, in nlm_traverse_locks() argument
180 if (match(lockhost, host)) { in nlm_traverse_locks()
208 nlm_inspect_file(struct nlm_host *host, struct nlm_file *file, nlm_host_match_fn_t match) in nlm_inspect_file() argument
210 nlmsvc_traverse_blocks(host, file, match); in nlm_inspect_file()
211 nlmsvc_traverse_shares(host, file, match); in nlm_inspect_file()
212 return nlm_traverse_locks(host, file, match); in nlm_inspect_file()
318 struct nlm_host *host = data; in nlmsvc_mark_host() local
320 host->h_inuse = 1; in nlmsvc_mark_host()
327 struct nlm_host *host = data; in nlmsvc_same_host() local
329 return host == other; in nlmsvc_same_host()
[all …]
Dsvcshare.c27 nlmsvc_share_file(struct nlm_host *host, struct nlm_file *file, in nlmsvc_share_file() argument
35 if (share->s_host == host && nlm_cmp_owner(share, oh)) in nlmsvc_share_file()
52 share->s_host = host; in nlmsvc_share_file()
68 nlmsvc_unshare_file(struct nlm_host *host, struct nlm_file *file, in nlmsvc_unshare_file() argument
76 if (share->s_host == host && nlm_cmp_owner(share, oh)) { in nlmsvc_unshare_file()
92 void nlmsvc_traverse_shares(struct nlm_host *host, struct nlm_file *file, in nlmsvc_traverse_shares() argument
99 if (match(share->s_host, host)) { in nlmsvc_traverse_shares()
Dsvclock.c176 nlmsvc_create_block(struct svc_rqst *rqstp, struct nlm_host *host, in nlmsvc_create_block() argument
183 nlm_get_host(host); in nlmsvc_create_block()
184 call = nlm_alloc_call(host); in nlmsvc_create_block()
208 block->b_host = host; in nlmsvc_create_block()
275 void nlmsvc_traverse_blocks(struct nlm_host *host, in nlmsvc_traverse_blocks() argument
284 if (!match(block->b_host, host)) in nlmsvc_traverse_blocks()
362 struct nlm_host *host, struct nlm_lock *lock, int wait, in nlmsvc_lock() argument
384 block = nlmsvc_create_block(rqstp, host, file, lock, cookie); in nlmsvc_lock()
466 struct nlm_host *host, struct nlm_lock *lock, in nlmsvc_testlock() argument
488 block = nlmsvc_create_block(rqstp, host, file, lock, cookie); in nlmsvc_testlock()
Dmon.c167 int nsm_monitor(const struct nlm_host *host) in nsm_monitor() argument
169 struct nsm_handle *nsm = host->h_nsmhandle; in nsm_monitor()
202 void nsm_unmonitor(const struct nlm_host *host) in nsm_unmonitor() argument
204 struct nsm_handle *nsm = host->h_nsmhandle; in nsm_unmonitor()
/fs/ubifs/
Dxattr.c99 static int create_xattr(struct ubifs_info *c, struct inode *host, in create_xattr() argument
104 struct ubifs_inode *ui, *host_ui = ubifs_inode(host); in create_xattr()
125 inode = ubifs_new_inode(c, host, S_IFREG | S_IRWXUGO); in create_xattr()
150 host->i_ctime = ubifs_current_time(host); in create_xattr()
156 err = ubifs_jnl_update(c, host, nm, inode, 0, 1); in create_xattr()
191 static int change_xattr(struct ubifs_info *c, struct inode *host, in change_xattr() argument
195 struct ubifs_inode *host_ui = ubifs_inode(host); in change_xattr()
216 host->i_ctime = ubifs_current_time(host); in change_xattr()
226 err = ubifs_jnl_change_xattr(c, inode, host); in change_xattr()
300 struct inode *inode, *host = dentry->d_inode; in ubifs_setxattr() local
[all …]
Djournal.c1262 int ubifs_jnl_delete_xattr(struct ubifs_info *c, const struct inode *host, in ubifs_jnl_delete_xattr() argument
1269 int sync = IS_DIRSYNC(host); in ubifs_jnl_delete_xattr()
1270 struct ubifs_inode *host_ui = ubifs_inode(host); in ubifs_jnl_delete_xattr()
1273 host->i_ino, inode->i_ino, nm->name, in ubifs_jnl_delete_xattr()
1299 xent_key_init(c, &xent_key, host->i_ino, nm); in ubifs_jnl_delete_xattr()
1312 pack_inode(c, ino, host, 1); in ubifs_jnl_delete_xattr()
1316 ubifs_wbuf_add_ino_nolock(&c->jheads[BASEHD].wbuf, host->i_ino); in ubifs_jnl_delete_xattr()
1344 ino_key_init(c, &key1, host->i_ino); in ubifs_jnl_delete_xattr()
1376 const struct inode *host) in ubifs_jnl_change_xattr() argument
1379 struct ubifs_inode *host_ui = ubifs_inode(host); in ubifs_jnl_change_xattr()
[all …]
Dfile.c111 struct inode *inode = page->mapping->host; in do_readpage()
225 struct inode *inode = mapping->host; in write_begin_slow()
428 struct inode *inode = mapping->host; in ubifs_write_begin()
530 struct inode *inode = mapping->host; in ubifs_write_end()
599 struct inode *inode = page->mapping->host; in populate_page()
704 struct inode *inode = mapping->host; in ubifs_do_bulk_read()
809 struct inode *inode = page->mapping->host; in ubifs_bulk_read()
888 struct inode *inode = page->mapping->host; in do_writepage()
982 struct inode *inode = page->mapping->host; in ubifs_writepage()
1272 struct inode *inode = page->mapping->host; in ubifs_invalidatepage()
[all …]
/fs/ecryptfs/
Dmmap.c150 page_virt, page->mapping->host); in ecryptfs_copy_up_encrypted_with_header()
169 crypt_stat->extent_size, page->mapping->host); in ecryptfs_copy_up_encrypted_with_header()
206 page->mapping->host); in ecryptfs_readpage()
223 page->mapping->host); in ecryptfs_readpage()
254 struct inode *inode = page->mapping->host; in fill_zeros_to_end_of_page()
304 page, index, 0, PAGE_CACHE_SIZE, mapping->host); in ecryptfs_write_begin()
331 mapping->host); in ecryptfs_write_begin()
357 if (prev_page_end_size > i_size_read(page->mapping->host)) { in ecryptfs_write_begin()
371 if ((i_size_read(mapping->host) == prev_page_end_size) in ecryptfs_write_begin()
480 struct inode *ecryptfs_inode = mapping->host; in ecryptfs_write_end()
[all …]
/fs/gfs2/
Dops_address.c100 struct inode *inode = page->mapping->host; in gfs2_writepage_common()
157 struct inode *inode = page->mapping->host; in gfs2_ordered_writepage()
186 struct inode *inode = page->mapping->host; in __gfs2_jdata_writepage()
211 struct inode *inode = page->mapping->host; in gfs2_jdata_writepage()
268 struct inode *inode = mapping->host; in gfs2_write_jdata_pagevec()
412 struct gfs2_inode *ip = GFS2_I(mapping->host); in gfs2_jdata_writepages()
413 struct gfs2_sbd *sdp = GFS2_SB(mapping->host); in gfs2_jdata_writepages()
478 struct gfs2_inode *ip = GFS2_I(page->mapping->host); in __gfs2_readpage()
479 struct gfs2_sbd *sdp = GFS2_SB(page->mapping->host); in __gfs2_readpage()
508 struct gfs2_inode *ip = GFS2_I(mapping->host); in gfs2_readpage()
[all …]
Dops_file.c57 struct gfs2_inode *ip = GFS2_I(file->f_mapping->host); in gfs2_llseek()
85 struct inode *dir = file->f_mapping->host; in gfs2_readdir()
313 struct inode *inode = page->mapping->host; in gfs2_allocate_page_backing()
431 struct gfs2_inode *ip = GFS2_I(file->f_mapping->host); in gfs2_mmap()
574 struct gfs2_sbd *sdp = GFS2_SB(file->f_mapping->host); in gfs2_setlease()
627 struct gfs2_inode *ip = GFS2_I(file->f_mapping->host); in gfs2_lock()
628 struct gfs2_sbd *sdp = GFS2_SB(file->f_mapping->host); in gfs2_lock()
720 struct gfs2_inode *ip = GFS2_I(file->f_mapping->host); in gfs2_flock()
/fs/nfs/
Dfile.c190 struct inode *inode = filp->f_mapping->host; in nfs_file_llseek()
355 mapping->host->i_ino, len, (long long) pos); in nfs_write_begin()
380 mapping->host->i_ino, len, (long long) pos); in nfs_write_end()
419 nfs_wb_page_cancel(page->mapping->host, page); in nfs_invalidate_page()
432 struct inode *inode = page->mapping->host; in nfs_launder_page()
464 filp->f_mapping->host->i_ino, in nfs_vm_page_mkwrite()
555 struct inode *inode = filp->f_mapping->host; in do_getlk()
603 struct inode *inode = filp->f_mapping->host; in do_unlk()
628 struct inode *inode = filp->f_mapping->host; in do_setlk()
664 struct inode *inode = filp->f_mapping->host; in nfs_lock()
Dwrite.c123 struct inode *inode = page->mapping->host; in nfs_page_find_request()
135 struct inode *inode = page->mapping->host; in nfs_grow_file()
157 nfs_zap_mapping(page->mapping->host, page->mapping); in nfs_set_pageerror()
198 struct inode *inode = page->mapping->host; in nfs_set_page_writeback()
210 struct inode *inode = page->mapping->host; in nfs_end_page_writeback()
225 struct inode *inode = page->mapping->host; in nfs_page_async_flush()
268 struct inode *inode = page->mapping->host; in nfs_do_writepage()
285 nfs_pageio_init_write(&pgio, page->mapping->host, wb_priority(wbc)); in nfs_writepage_locked()
315 struct inode *inode = mapping->host; in nfs_writepages()
642 struct inode *inode = page->mapping->host; in nfs_setup_write_request()
[all …]
/fs/udf/
Dfile.c45 struct inode *inode = page->mapping->host; in udf_adinicb_readpage()
65 struct inode *inode = page->mapping->host; in udf_adinicb_writepage()
86 struct inode *inode = mapping->host; in udf_adinicb_write_end()
/fs/ext2/
Dxip.c84 rc = __ext2_get_block(mapping->host, pgoff, create, &block); in ext2_get_xip_mem()
89 rc = __inode_direct_access(mapping->host, block, kmem, pfn); in ext2_get_xip_mem()
/fs/jffs2/
Dfile.c115 struct jffs2_inode_info *f = JFFS2_INODE_INFO(pg->mapping->host); in jffs2_readpage()
119 ret = jffs2_do_readpage_unlock(pg->mapping->host, pg); in jffs2_readpage()
129 struct inode *inode = mapping->host; in jffs2_write_begin()
234 struct inode *inode = mapping->host; in jffs2_write_end()
/fs/ocfs2/
Daops.c275 struct inode *inode = page->mapping->host; in ocfs2_readpage()
342 struct inode *inode = mapping->host; in ocfs2_readpages()
495 struct inode *inode = mapping->host; in ocfs2_bmap()
656 journal_t *journal = OCFS2_SB(page->mapping->host->i_sb)->journal->j_journal; in ocfs2_invalidatepage()
663 journal_t *journal = OCFS2_SB(page->mapping->host->i_sb)->journal->j_journal; in ocfs2_releasepage()
677 struct inode *inode = file->f_path.dentry->d_inode->i_mapping->host; in ocfs2_direct_IO()
1156 struct inode *inode = mapping->host; in ocfs2_grab_pages_for_write()
1227 struct inode *inode = mapping->host; in ocfs2_write_cluster()
1329 struct ocfs2_super *osb = OCFS2_SB(mapping->host->i_sb); in ocfs2_write_cluster_by_desc()
1650 struct inode *inode = mapping->host; in ocfs2_write_begin_nolock()
[all …]
Dlocks.c111 struct inode *inode = file->f_mapping->host; in ocfs2_flock()
131 struct inode *inode = file->f_mapping->host; in ocfs2_lock()
/fs/btrfs/
Ddisk-io.c330 tree = &BTRFS_I(page->mapping->host)->io_tree; in csum_dirty_buffer()
401 struct btrfs_root *root = BTRFS_I(page->mapping->host)->root; in btree_readpage_end_io_hook()
404 tree = &BTRFS_I(page->mapping->host)->io_tree; in btree_readpage_end_io_hook()
611 root = BTRFS_I(bvec->bv_page->mapping->host)->root; in btree_csum_one_bio()
671 tree = &BTRFS_I(page->mapping->host)->io_tree; in btree_writepage()
685 tree = &BTRFS_I(mapping->host)->io_tree; in btree_writepages()
705 tree = &BTRFS_I(page->mapping->host)->io_tree; in btree_readpage()
718 tree = &BTRFS_I(page->mapping->host)->io_tree; in btree_releasepage()
719 map = &BTRFS_I(page->mapping->host)->extent_tree; in btree_releasepage()
738 tree = &BTRFS_I(page->mapping->host)->io_tree; in btree_invalidatepage()
[all …]
/fs/
Dbuffer.c781 __mark_inode_dirty(mapping->host, I_DIRTY_PAGES); in __set_page_dirty()
2041 struct inode *inode = mapping->host; in block_write_begin()
2092 struct inode *inode = mapping->host; in block_write_end()
2128 struct inode *inode = mapping->host; in generic_write_end()
2171 struct inode *inode = page->mapping->host; in block_is_partially_uptodate()
2216 struct inode *inode = page->mapping->host; in block_read_full_page()
2338 struct inode *inode = mapping->host; in cont_expand_zero()
2413 struct inode *inode = mapping->host; in cont_write_begin()
2438 struct inode *inode = page->mapping->host; in block_prepare_write()
2447 struct inode *inode = page->mapping->host; in block_commit_write()
[all …]
/fs/cifs/
Dfile.c1166 if (!mapping || !mapping->host) in cifs_partialpagewrite()
1169 inode = page->mapping->host; in cifs_partialpagewrite()
1183 if (offset > mapping->host->i_size) { in cifs_partialpagewrite()
1189 if (mapping->host->i_size - offset < (loff_t)to) in cifs_partialpagewrite()
1190 to = (unsigned)(mapping->host->i_size - offset); in cifs_partialpagewrite()
1192 open_file = find_writable_file(CIFS_I(mapping->host)); in cifs_partialpagewrite()
1236 cifs_sb = CIFS_SB(mapping->host->i_sb); in cifs_writepages()
1339 if (page_offset(page) >= mapping->host->i_size) { in cifs_writepages()
1351 len = min(mapping->host->i_size - page_offset(page), in cifs_writepages()
1373 open_file = find_writable_file(CIFS_I(mapping->host)); in cifs_writepages()
[all …]

12345