/fs/lockd/ |
D | host.c | 36 #define for_each_host(host, chain, table) \ argument 39 hlist_for_each_entry((host), (chain), h_hash) 41 #define for_each_host_safe(host, next, chain, table) \ argument 44 hlist_for_each_entry_safe((host), (next), \ 112 struct nlm_host *host = NULL; in nlm_alloc_host() local 118 host = NULL; in nlm_alloc_host() 128 host = kmalloc(sizeof(*host), GFP_KERNEL); in nlm_alloc_host() 129 if (unlikely(host == NULL)) { in nlm_alloc_host() 135 memcpy(nlm_addr(host), ni->sap, ni->salen); in nlm_alloc_host() 136 host->h_addrlen = ni->salen; in nlm_alloc_host() [all …]
|
D | clntlock.c | 55 struct nlm_host *host; in nlmclnt_init() local 63 host = nlmclnt_lookup_host(nlm_init->address, nlm_init->addrlen, in nlmclnt_init() 67 if (host == NULL) { in nlmclnt_init() 72 return host; in nlmclnt_init() 81 void nlmclnt_done(struct nlm_host *host) in nlmclnt_done() argument 83 struct net *net = host->net; in nlmclnt_done() 85 nlmclnt_release_host(host); in nlmclnt_done() 93 struct nlm_wait *nlmclnt_prepare_block(struct nlm_host *host, struct file_lock *fl) in nlmclnt_prepare_block() argument 99 block->b_host = host; in nlmclnt_prepare_block() 207 nlmclnt_recovery(struct nlm_host *host) in nlmclnt_recovery() argument [all …]
|
D | clntproc.c | 30 static void nlmclnt_locks_init_private(struct file_lock *fl, struct nlm_host *host); 57 if (!atomic_dec_and_lock(&lockowner->count, &lockowner->host->h_lock)) in nlm_put_lockowner() 60 spin_unlock(&lockowner->host->h_lock); in nlm_put_lockowner() 61 nlmclnt_release_host(lockowner->host); in nlm_put_lockowner() 65 static inline int nlm_pidbusy(struct nlm_host *host, uint32_t pid) in nlm_pidbusy() argument 68 list_for_each_entry(lockowner, &host->h_lockowners, list) { in nlm_pidbusy() 75 static inline uint32_t __nlm_alloc_pid(struct nlm_host *host) in __nlm_alloc_pid() argument 79 res = host->h_pidcount++; in __nlm_alloc_pid() 80 } while (nlm_pidbusy(host, res) < 0); in __nlm_alloc_pid() 84 static struct nlm_lockowner *__nlm_find_lockowner(struct nlm_host *host, fl_owner_t owner) in __nlm_find_lockowner() argument [all …]
|
D | svc4proc.c | 25 struct nlm_host *host = NULL; in nlm4svc_retrieve_args() local 35 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) in nlm4svc_retrieve_args() 36 || (argp->monitor && nsm_monitor(host) < 0)) in nlm4svc_retrieve_args() 38 *hostp = host; in nlm4svc_retrieve_args() 48 lock->fl.fl_owner = (fl_owner_t) host; in nlm4svc_retrieve_args() 55 nlmsvc_release_host(host); in nlm4svc_retrieve_args() 78 struct nlm_host *host; in nlm4svc_proc_test() local 86 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_test() 90 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in nlm4svc_proc_test() 96 nlmsvc_release_host(host); in nlm4svc_proc_test() [all …]
|
D | svcproc.c | 54 struct nlm_host *host = NULL; in nlmsvc_retrieve_args() local 64 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) in nlmsvc_retrieve_args() 65 || (argp->monitor && nsm_monitor(host) < 0)) in nlmsvc_retrieve_args() 67 *hostp = host; in nlmsvc_retrieve_args() 78 lock->fl.fl_owner = (fl_owner_t) host; in nlmsvc_retrieve_args() 85 nlmsvc_release_host(host); in nlmsvc_retrieve_args() 108 struct nlm_host *host; in nlmsvc_proc_test() local 116 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_test() 120 …resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->coo… in nlmsvc_proc_test() 127 nlmsvc_release_host(host); in nlmsvc_proc_test() [all …]
|
D | svcsubs.c | 163 nlm_traverse_locks(struct nlm_host *host, struct nlm_file *file, in nlm_traverse_locks() argument 181 if (match(lockhost, host)) { in nlm_traverse_locks() 211 nlm_inspect_file(struct nlm_host *host, struct nlm_file *file, nlm_host_match_fn_t match) in nlm_inspect_file() argument 213 nlmsvc_traverse_blocks(host, file, match); in nlm_inspect_file() 214 nlmsvc_traverse_shares(host, file, match); in nlm_inspect_file() 215 return nlm_traverse_locks(host, file, match); in nlm_inspect_file() 327 struct nlm_host *host = data; in nlmsvc_mark_host() local 330 (host->net == hint->net)) in nlmsvc_mark_host() 331 host->h_inuse = 1; in nlmsvc_mark_host() 338 struct nlm_host *host = data; in nlmsvc_same_host() local [all …]
|
D | svcshare.c | 27 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()
|
D | mon.c | 181 int nsm_monitor(const struct nlm_host *host) in nsm_monitor() argument 183 struct nsm_handle *nsm = host->h_nsmhandle; in nsm_monitor() 199 clnt = nsm_client_get(host->net); in nsm_monitor() 203 "status=%d, net=%p\n", status, host->net); in nsm_monitor() 231 void nsm_unmonitor(const struct nlm_host *host) in nsm_unmonitor() argument 233 struct nsm_handle *nsm = host->h_nsmhandle; in nsm_unmonitor() 239 struct lockd_net *ln = net_generic(host->net, lockd_net_id); in nsm_unmonitor() 252 nsm_client_put(host->net); in nsm_unmonitor()
|
D | svclock.c | 215 nlmsvc_create_block(struct svc_rqst *rqstp, struct nlm_host *host, in nlmsvc_create_block() argument 222 call = nlm_alloc_call(host); in nlmsvc_create_block() 246 block->b_host = host; in nlmsvc_create_block() 312 void nlmsvc_traverse_blocks(struct nlm_host *host, in nlmsvc_traverse_blocks() argument 321 if (!match(block->b_host, host)) in nlmsvc_traverse_blocks() 401 struct nlm_host *host, struct nlm_lock *lock, int wait, in nlmsvc_lock() argument 423 block = nlmsvc_create_block(rqstp, host, file, lock, cookie); in nlmsvc_lock() 508 struct nlm_host *host, struct nlm_lock *lock, in nlmsvc_testlock() argument 530 block = nlmsvc_create_block(rqstp, host, file, lock, cookie); in nlmsvc_testlock()
|
/fs/ubifs/ |
D | xattr.c | 100 static int create_xattr(struct ubifs_info *c, struct inode *host, in create_xattr() argument 105 struct ubifs_inode *ui, *host_ui = ubifs_inode(host); in create_xattr() 126 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() 215 host->i_ctime = ubifs_current_time(host); in change_xattr() 225 err = ubifs_jnl_change_xattr(c, inode, host); in change_xattr() 299 struct inode *inode, *host = dentry->d_inode; in ubifs_setxattr() local [all …]
|
D | journal.c | 1283 int ubifs_jnl_delete_xattr(struct ubifs_info *c, const struct inode *host, in ubifs_jnl_delete_xattr() argument 1290 int sync = IS_DIRSYNC(host); in ubifs_jnl_delete_xattr() 1291 struct ubifs_inode *host_ui = ubifs_inode(host); in ubifs_jnl_delete_xattr() 1294 host->i_ino, inode->i_ino, nm->name, in ubifs_jnl_delete_xattr() 1320 xent_key_init(c, &xent_key, host->i_ino, nm); in ubifs_jnl_delete_xattr() 1333 pack_inode(c, ino, host, 1); in ubifs_jnl_delete_xattr() 1337 ubifs_wbuf_add_ino_nolock(&c->jheads[BASEHD].wbuf, host->i_ino); in ubifs_jnl_delete_xattr() 1365 ino_key_init(c, &key1, host->i_ino); in ubifs_jnl_delete_xattr() 1397 const struct inode *host) in ubifs_jnl_change_xattr() argument 1400 struct ubifs_inode *host_ui = ubifs_inode(host); in ubifs_jnl_change_xattr() [all …]
|
D | file.c | 111 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() 543 struct inode *inode = mapping->host; in ubifs_write_end() 613 struct inode *inode = page->mapping->host; in populate_page() 718 struct inode *inode = mapping->host; in ubifs_do_bulk_read() 823 struct inode *inode = page->mapping->host; in ubifs_bulk_read() 902 struct inode *inode = page->mapping->host; in do_writepage() 1000 struct inode *inode = page->mapping->host; in ubifs_writepage() 1283 struct inode *inode = page->mapping->host; in ubifs_invalidatepage() [all …]
|
/fs/ecryptfs/ |
D | mmap.c | 148 page_virt, page->mapping->host); in ecryptfs_copy_up_encrypted_with_header() 170 crypt_stat->extent_size, page->mapping->host); in ecryptfs_copy_up_encrypted_with_header() 197 &ecryptfs_inode_to_private(page->mapping->host)->crypt_stat; in ecryptfs_readpage() 203 page->mapping->host); in ecryptfs_readpage() 220 page->mapping->host); in ecryptfs_readpage() 251 struct inode *inode = page->mapping->host; in fill_zeros_to_end_of_page() 296 &ecryptfs_inode_to_private(mapping->host)->crypt_stat; in ecryptfs_write_begin() 300 page, index, 0, PAGE_CACHE_SIZE, mapping->host); in ecryptfs_write_begin() 327 mapping->host); in ecryptfs_write_begin() 339 >= i_size_read(page->mapping->host)) { in ecryptfs_write_begin() [all …]
|
/fs/nfs/ |
D | file.c | 134 struct inode *inode = filp->f_mapping->host; in nfs_file_llseek() 372 mapping->host->i_ino, len, (long long) pos); in nfs_write_begin() 379 ret = wait_on_bit(&NFS_I(mapping->host)->flags, NFS_INO_FLUSHING, in nfs_write_begin() 414 mapping->host->i_ino, len, (long long) pos); in nfs_write_end() 443 NFS_I(mapping->host)->write_io += copied; in nfs_write_end() 463 nfs_wb_page_cancel(page_file_mapping(page)->host, page); in nfs_invalidate_page() 465 nfs_fscache_invalidate_page(page, page->mapping->host); in nfs_invalidate_page() 490 nfs_commit_inode(mapping->host, how); in nfs_release_page() 508 struct inode *inode = page_file_mapping(page)->host; in nfs_launder_page() 523 return xs_swapper(NFS_CLIENT(file->f_mapping->host)->cl_xprt, 1); in nfs_swap_activate() [all …]
|
/fs/logfs/ |
D | file.c | 16 struct inode *inode = mapping->host; in logfs_write_begin() 42 struct inode *inode = mapping->host; in logfs_write_end() 105 struct inode *inode = page->mapping->host; in __logfs_writepage() 119 struct inode *inode = page->mapping->host; in logfs_writepage() 168 struct super_block *sb = page->mapping->host->i_sb; in logfs_invalidatepage() 225 struct super_block *sb = file->f_mapping->host->i_sb; in logfs_fsync() 226 struct inode *inode = file->f_mapping->host; in logfs_fsync()
|
/fs/9p/ |
D | vfs_addr.c | 59 inode = page->mapping->host; in v9fs_fid_readpage() 119 inode = mapping->host; in v9fs_vfs_readpages() 169 struct inode *inode = page->mapping->host; in v9fs_vfs_writepage_locked() 229 struct inode *inode = page->mapping->host; in v9fs_launder_page() 283 struct inode *inode = mapping->host; in v9fs_write_begin() 313 struct inode *inode = page->mapping->host; in v9fs_write_end()
|
/fs/gfs2/ |
D | aops.c | 99 struct inode *inode = page->mapping->host; in gfs2_writepage_common() 153 struct inode *inode = page->mapping->host; in gfs2_ordered_writepage() 182 struct inode *inode = page->mapping->host; in __gfs2_jdata_writepage() 207 struct inode *inode = page->mapping->host; in gfs2_jdata_writepage() 262 struct inode *inode = mapping->host; in gfs2_write_jdata_pagevec() 395 struct gfs2_inode *ip = GFS2_I(mapping->host); in gfs2_jdata_writepages() 396 struct gfs2_sbd *sdp = GFS2_SB(mapping->host); in gfs2_jdata_writepages() 464 struct gfs2_inode *ip = GFS2_I(page->mapping->host); in __gfs2_readpage() 465 struct gfs2_sbd *sdp = GFS2_SB(page->mapping->host); in __gfs2_readpage() 494 struct gfs2_inode *ip = GFS2_I(mapping->host); in gfs2_readpage() [all …]
|
/fs/afs/ |
D | file.c | 129 struct inode *inode = page->mapping->host; in afs_page_filler() 227 struct inode *inode = page->mapping->host; in afs_readpage() 250 key_serial(key), mapping->host->i_ino, nr_pages); in afs_readpages() 254 vnode = AFS_FS_I(mapping->host); in afs_readpages() 327 struct afs_vnode *vnode = AFS_FS_I(page->mapping->host); in afs_invalidatepage() 354 struct afs_vnode *vnode = AFS_FS_I(page->mapping->host); in afs_releasepage()
|
/fs/hpfs/ |
D | file.c | 23 struct inode *inode = file->f_mapping->host; in hpfs_file_fsync() 110 struct inode *inode = mapping->host; in hpfs_write_failed() 131 &hpfs_i(mapping->host)->mmu_private); in hpfs_write_begin() 142 struct inode *inode = mapping->host; in hpfs_write_end()
|
/fs/jffs2/ |
D | file.c | 34 struct inode *inode = filp->f_mapping->host; in jffs2_fsync() 125 struct jffs2_inode_info *f = JFFS2_INODE_INFO(pg->mapping->host); in jffs2_readpage() 129 ret = jffs2_do_readpage_unlock(pg->mapping->host, pg); in jffs2_readpage() 139 struct inode *inode = mapping->host; in jffs2_write_begin() 248 struct inode *inode = mapping->host; in jffs2_write_end()
|
/fs/exofs/ |
D | file.c | 48 struct inode *inode = filp->f_mapping->host; in exofs_file_fsync() 56 ret = sync_inode_metadata(filp->f_mapping->host, 1); in exofs_file_fsync()
|
/fs/xfs/ |
D | xfs_file.c | 142 struct xfs_inode *ip = XFS_I(file->f_mapping->host); in xfs_dir_fsync() 165 struct inode *inode = file->f_mapping->host; in xfs_file_fsync() 236 struct inode *inode = file->f_mapping->host; in xfs_file_aio_read() 324 struct xfs_inode *ip = XFS_I(infilp->f_mapping->host); in xfs_file_splice_read() 364 struct inode *inode = outfilp->f_mapping->host; in xfs_file_splice_write() 548 struct inode *inode = file->f_mapping->host; in xfs_file_aio_write_checks() 631 struct inode *inode = mapping->host; in xfs_file_dio_aio_write() 716 struct inode *inode = mapping->host; in xfs_file_buffered_aio_write() 763 struct inode *inode = mapping->host; in xfs_file_aio_write() 1187 struct inode *inode = file->f_mapping->host; in xfs_seek_data() [all …]
|
/fs/ext2/ |
D | xip.c | 83 rc = __ext2_get_block(mapping->host, pgoff, create, &block); in ext2_get_xip_mem() 88 rc = __inode_direct_access(mapping->host, block, kmem, pfn); in ext2_get_xip_mem()
|
/fs/ocfs2/ |
D | aops.c | 276 struct inode *inode = page->mapping->host; in ocfs2_readpage() 351 struct inode *inode = mapping->host; in ocfs2_readpages() 408 (unsigned long long)OCFS2_I(page->mapping->host)->ip_blkno, in ocfs2_writepage() 455 struct inode *inode = mapping->host; in ocfs2_bmap() 603 journal_t *journal = OCFS2_SB(page->mapping->host->i_sb)->journal->j_journal; in ocfs2_invalidatepage() 610 journal_t *journal = OCFS2_SB(page->mapping->host->i_sb)->journal->j_journal; in ocfs2_releasepage() 624 struct inode *inode = file_inode(file)->i_mapping->host; in ocfs2_direct_IO() 1131 struct inode *inode = mapping->host; in ocfs2_grab_pages_for_write() 1216 struct inode *inode = mapping->host; in ocfs2_write_cluster() 1316 struct ocfs2_super *osb = OCFS2_SB(mapping->host->i_sb); in ocfs2_write_cluster_by_desc() [all …]
|
/fs/ceph/ |
D | addr.c | 81 mapping->host, page, page->index); in ceph_set_page_dirty() 85 inode = mapping->host; in ceph_set_page_dirty() 104 mapping->host, page, page->index, in ceph_set_page_dirty() 135 __mark_inode_dirty(mapping->host, I_DIRTY_PAGES); in ceph_set_page_dirty() 157 inode = page->mapping->host; in ceph_invalidatepage() 187 struct inode *inode = page->mapping ? page->mapping->host : NULL; in ceph_releasepage() 452 if (!page->mapping || !page->mapping->host) { in writepage_nounlock() 456 inode = page->mapping->host; in writepage_nounlock() 522 struct inode *inode = page->mapping->host; in ceph_writepage() 660 struct inode *inode = mapping->host; in ceph_writepages_start()
|