/fs/lockd/ |
H A D | svcshare.c | 27 nlmsvc_share_file(struct nlm_host *host, struct nlm_file *file, argument 35 if (share->s_host == host && nlm_cmp_owner(share, oh)) 52 share->s_host = host; 68 nlmsvc_unshare_file(struct nlm_host *host, struct nlm_file *file, argument 76 if (share->s_host == host && nlm_cmp_owner(share, oh)) { 90 * those owned by the given (type of) host 92 void nlmsvc_traverse_shares(struct nlm_host *host, struct nlm_file *file, argument 99 if (match(share->s_host, host)) {
|
H A D | clntlock.c | 55 struct nlm_host *host; local 63 host = nlmclnt_lookup_host(nlm_init->address, nlm_init->addrlen, 67 if (host == NULL) 69 if (host->h_rpcclnt == NULL && nlm_bind_host(host) == NULL) 72 return host; 74 nlmclnt_release_host(host); 83 * @host: nlm_host structure reserved by nlmclnt_init() 86 void nlmclnt_done(struct nlm_host *host) argument 88 struct net *net = host 98 nlmclnt_prepare_block(struct nlm_host *host, struct file_lock *fl) argument 212 nlmclnt_recovery(struct nlm_host *host) argument 229 struct nlm_host *host = (struct nlm_host *) ptr; local [all...] |
H A D | host.c | 2 * linux/fs/lockd/host.c 36 #define for_each_host(host, chain, table) \ 39 hlist_for_each_entry((host), (chain), h_hash) 41 #define for_each_host_safe(host, next, chain, table) \ 44 hlist_for_each_entry_safe((host), (next), \ 112 struct nlm_host *host = NULL; local 118 host = NULL; 128 host = kmalloc(sizeof(*host), GFP_KERNEL); 129 if (unlikely(host 174 nlm_destroy_host_locked(struct nlm_host *host) argument 229 struct nlm_host *host; local 282 nlmclnt_release_host(struct nlm_host *host) argument 325 struct nlm_host *host = NULL; local 403 nlmsvc_release_host(struct nlm_host *host) argument 418 nlm_bind_host(struct nlm_host *host) argument 489 nlm_rebind_host(struct nlm_host *host) argument 501 nlm_get_host(struct nlm_host *host) argument 515 struct nlm_host *host; local 545 struct nlm_host *host; local 571 struct nlm_host *host; local 600 struct nlm_host *host; local 644 struct nlm_host *host; local [all...] |
H A D | svc4proc.c | 25 struct nlm_host *host = NULL; local 34 /* Obtain host handle */ 35 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) 36 || (argp->monitor && nsm_monitor(host) < 0)) 38 *hostp = host; 48 lock->fl.fl_owner = (fl_owner_t) host; 55 nlmsvc_release_host(host); 78 struct nlm_host *host; local 86 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) 90 resp->status = nlmsvc_testlock(rqstp, file, host, 105 struct nlm_host *host; local 147 struct nlm_host *host; local 180 struct nlm_host *host; local 249 struct nlm_host *host; local 318 struct nlm_host *host; local 351 struct nlm_host *host; local 397 struct nlm_host *host; local [all...] |
H A D | svcsubs.c | 162 nlm_traverse_locks(struct nlm_host *host, struct nlm_file *file, argument 180 if (match(lockhost, host)) { 210 nlm_inspect_file(struct nlm_host *host, struct nlm_file *file, nlm_host_match_fn_t match) argument 212 nlmsvc_traverse_blocks(host, file, match); 213 nlmsvc_traverse_shares(host, file, match); 214 return nlm_traverse_locks(host, file, match); 316 * all resources bound to a specific host. 319 * returns 1 iff the host is a client. 326 struct nlm_host *host = data; local 329 (host 337 struct nlm_host *host = data; local 345 struct nlm_host *host = data; local 376 nlmsvc_free_host_resources(struct nlm_host *host) argument 431 nlmsvc_match_ip(void *datap, struct nlm_host *host) argument [all...] |
H A 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)) 60 spin_unlock(&lockowner->host->h_lock); 61 nlmclnt_release_host(lockowner->host); 65 static inline int nlm_pidbusy(struct nlm_host *host, uint32_t pid) argument 68 list_for_each_entry(lockowner, &host->h_lockowners, list) { 75 static inline uint32_t __nlm_alloc_pid(struct nlm_host *host) argument 79 res = host->h_pidcount++; 80 } while (nlm_pidbusy(host, res) < 0); 84 static struct nlm_lockowner *__nlm_find_lockowner(struct nlm_host *host, fl_owner_ argument 95 nlm_find_lockowner(struct nlm_host *host, fl_owner_t owner) argument 155 nlmclnt_proc(struct nlm_host *host, int cmd, struct file_lock *fl) argument 194 nlm_alloc_call(struct nlm_host *host) argument 251 struct nlm_host *host = req->a_host; local 329 struct nlm_host *host = req->a_host; local 467 nlmclnt_locks_init_private(struct file_lock *fl, struct nlm_host *host) argument 515 struct nlm_host *host = req->a_host; local 619 nlmclnt_reclaim(struct nlm_host *host, struct file_lock *fl, struct nlm_rqst *req) argument 662 struct nlm_host *host = req->a_host; local 743 nlmclnt_cancel(struct nlm_host *host, int block, struct file_lock *fl) argument [all...] |
H A D | svclock.c | 215 nlmsvc_create_block(struct svc_rqst *rqstp, struct nlm_host *host, argument 222 call = nlm_alloc_call(host); 246 block->b_host = host; 308 * a matching host. 310 void nlmsvc_traverse_blocks(struct nlm_host *host, argument 319 if (!match(block->b_host, host)) 399 struct nlm_host *host, struct nlm_lock *lock, int wait, 421 block = nlmsvc_create_block(rqstp, host, file, lock, cookie); 506 struct nlm_host *host, struct nlm_lock *lock, 701 * to one for the blocked_hash. Here, we're just xor'ing the host addres 398 nlmsvc_lock(struct svc_rqst *rqstp, struct nlm_file *file, struct nlm_host *host, struct nlm_lock *lock, int wait, struct nlm_cookie *cookie, int reclaim) argument 505 nlmsvc_testlock(struct svc_rqst *rqstp, struct nlm_file *file, struct nlm_host *host, struct nlm_lock *lock, struct nlm_lock *conflock, struct nlm_cookie *cookie) argument [all...] |
H A D | svcproc.c | 54 struct nlm_host *host = NULL; local 63 /* Obtain host handle */ 64 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) 65 || (argp->monitor && nsm_monitor(host) < 0)) 67 *hostp = host; 78 lock->fl.fl_owner = (fl_owner_t) host; 85 nlmsvc_release_host(host); 108 struct nlm_host *host; local 116 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) 120 resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, 136 struct nlm_host *host; local 178 struct nlm_host *host; local 212 struct nlm_host *host; local 290 struct nlm_host *host; local 361 struct nlm_host *host; local 394 struct nlm_host *host; local 440 struct nlm_host *host; local [all...] |
H A D | mon.c | 178 * @host: pointer to nlm_host of peer to notify 187 int nsm_monitor(const struct nlm_host *host) argument 189 struct nsm_handle *nsm = host->h_nsmhandle; 205 clnt = nsm_client_get(host->net); 209 "status=%d, net=%p\n", status, host->net); 231 * @host: pointer to nlm_host of peer to stop monitoring 237 void nsm_unmonitor(const struct nlm_host *host) argument 239 struct nsm_handle *nsm = host->h_nsmhandle; 245 struct lockd_net *ln = net_generic(host->net, lockd_net_id); 258 nsm_client_put(host [all...] |
/fs/ubifs/ |
H A D | xattr.c | 35 * attribute, the host inode number, and the extended attribute inode number. 89 * @host: host inode 95 * and value @value for inode @host. The host inode is also updated on flash 100 static int create_xattr(struct ubifs_info *c, struct inode *host, argument 105 struct ubifs_inode *ui, *host_ui = ubifs_inode(host); 126 inode = ubifs_new_inode(c, host, S_IFREG | S_IRWXUGO); 150 host->i_ctime = ubifs_current_time(host); 191 change_xattr(struct ubifs_info *c, struct inode *host, struct inode *inode, const void *value, int size) argument 299 struct inode *inode, *host = dentry->d_inode; local 362 struct inode *inode, *host = dentry->d_inode; local 422 struct inode *host = dentry->d_inode; local 483 remove_xattr(struct ubifs_info *c, struct inode *host, struct inode *inode, const struct qstr *nm) argument 525 struct inode *inode, *host = dentry->d_inode; local [all...] |
H A D | journal.c | 517 * @dir: parent inode or host inode in case of extended attributes 525 * host inode) to the journal. 527 * The function writes the host inode @dir last, which is important in case of 528 * extended attributes. Indeed, then we guarantee that if the host inode gets 531 * user expects - synchronizing the host inode synchronizes its extended 1271 * @host: host inode 1280 int ubifs_jnl_delete_xattr(struct ubifs_info *c, const struct inode *host, argument 1287 int sync = IS_DIRSYNC(host); 1288 struct ubifs_inode *host_ui = ubifs_inode(host); 1393 ubifs_jnl_change_xattr(struct ubifs_info *c, const struct inode *inode, const struct inode *host) argument [all...] |
/fs/nfs/ |
H A D | client.c | 637 struct nlm_host *host; local 663 host = nlmclnt_init(&nlm_init); 664 if (IS_ERR(host)) 665 return PTR_ERR(host); 667 server->nlm_host = host;
|