Home
last modified time | relevance | path

Searched refs:r (Results 1 – 25 of 82) sorted by relevance

1234

/fs/dlm/
Drecover.c250 static void recover_list_add(struct dlm_rsb *r) in recover_list_add() argument
252 struct dlm_ls *ls = r->res_ls; in recover_list_add()
255 if (list_empty(&r->res_recover_list)) { in recover_list_add()
256 list_add_tail(&r->res_recover_list, &ls->ls_recover_list); in recover_list_add()
258 dlm_hold_rsb(r); in recover_list_add()
263 static void recover_list_del(struct dlm_rsb *r) in recover_list_del() argument
265 struct dlm_ls *ls = r->res_ls; in recover_list_del()
268 list_del_init(&r->res_recover_list); in recover_list_del()
272 dlm_put_rsb(r); in recover_list_del()
277 struct dlm_rsb *r, *s; in recover_list_clear() local
[all …]
Dlock.c76 static int send_request(struct dlm_rsb *r, struct dlm_lkb *lkb);
77 static int send_convert(struct dlm_rsb *r, struct dlm_lkb *lkb);
78 static int send_unlock(struct dlm_rsb *r, struct dlm_lkb *lkb);
79 static int send_cancel(struct dlm_rsb *r, struct dlm_lkb *lkb);
80 static int send_grant(struct dlm_rsb *r, struct dlm_lkb *lkb);
81 static int send_bast(struct dlm_rsb *r, struct dlm_lkb *lkb, int mode);
82 static int send_lookup(struct dlm_rsb *r, struct dlm_lkb *lkb);
83 static int send_remove(struct dlm_rsb *r);
84 static int _request_lock(struct dlm_rsb *r, struct dlm_lkb *lkb);
85 static int _cancel_lock(struct dlm_rsb *r, struct dlm_lkb *lkb);
[all …]
Ddebug_fs.c166 struct dlm_rsb *r) in print_format2_lock() argument
194 r->res_nodeid, in print_format2_lock()
195 r->res_length, in print_format2_lock()
196 r->res_name); in print_format2_lock()
199 static void print_format2(struct dlm_rsb *r, struct seq_file *s) in print_format2() argument
203 lock_rsb(r); in print_format2()
205 list_for_each_entry(lkb, &r->res_grantqueue, lkb_statequeue) { in print_format2()
206 print_format2_lock(s, lkb, r); in print_format2()
211 list_for_each_entry(lkb, &r->res_convertqueue, lkb_statequeue) { in print_format2()
212 print_format2_lock(s, lkb, r); in print_format2()
[all …]
Ddir.c45 int dlm_dir_nodeid(struct dlm_rsb *r) in dlm_dir_nodeid() argument
47 return r->res_dir_nodeid; in dlm_dir_nodeid()
52 struct dlm_rsb *r; in dlm_recover_dir_nodeid() local
55 list_for_each_entry(r, &ls->ls_root_list, res_root_list) { in dlm_recover_dir_nodeid()
56 r->res_dir_nodeid = dlm_hash2nodeid(ls, r->res_hash); in dlm_recover_dir_nodeid()
200 struct dlm_rsb *r; in find_rsb_root() local
208 rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[bucket].keep, name, len, &r); in find_rsb_root()
211 name, len, &r); in find_rsb_root()
215 return r; in find_rsb_root()
218 list_for_each_entry(r, &ls->ls_root_list, res_root_list) { in find_rsb_root()
[all …]
Dlock.h14 void dlm_dump_rsb(struct dlm_rsb *r);
21 void dlm_put_rsb(struct dlm_rsb *r);
22 void dlm_hold_rsb(struct dlm_rsb *r);
37 void dlm_purge_mstcpy_locks(struct dlm_rsb *r);
62 static inline int is_master(struct dlm_rsb *r) in is_master() argument
64 return !r->res_nodeid; in is_master()
67 static inline void lock_rsb(struct dlm_rsb *r) in lock_rsb() argument
69 mutex_lock(&r->res_mutex); in lock_rsb()
72 static inline void unlock_rsb(struct dlm_rsb *r) in unlock_rsb() argument
74 mutex_unlock(&r->res_mutex); in unlock_rsb()
Dmemory.c58 struct dlm_rsb *r; in dlm_allocate_rsb() local
60 r = kmem_cache_zalloc(rsb_cache, GFP_NOFS); in dlm_allocate_rsb()
61 return r; in dlm_allocate_rsb()
64 void dlm_free_rsb(struct dlm_rsb *r) in dlm_free_rsb() argument
66 if (r->res_lvbptr) in dlm_free_rsb()
67 dlm_free_lvb(r->res_lvbptr); in dlm_free_rsb()
68 kmem_cache_free(rsb_cache, r); in dlm_free_rsb()
Drcom.c320 int dlm_send_rcom_lookup(struct dlm_rsb *r, int dir_nodeid) in dlm_send_rcom_lookup() argument
324 struct dlm_ls *ls = r->res_ls; in dlm_send_rcom_lookup()
327 error = create_rcom(ls, dir_nodeid, DLM_RCOM_LOOKUP, r->res_length, in dlm_send_rcom_lookup()
331 memcpy(rc->rc_buf, r->res_name, r->res_length); in dlm_send_rcom_lookup()
332 rc->rc_id = (unsigned long) r->res_id; in dlm_send_rcom_lookup()
373 static void pack_rcom_lock(struct dlm_rsb *r, struct dlm_lkb *lkb, in pack_rcom_lock() argument
393 rl->rl_namelen = cpu_to_le16(r->res_length); in pack_rcom_lock()
394 memcpy(rl->rl_name, r->res_name, r->res_length); in pack_rcom_lock()
400 memcpy(rl->rl_lvb, lkb->lkb_lvbptr, r->res_ls->ls_lvblen); in pack_rcom_lock()
403 int dlm_send_rcom_lock(struct dlm_rsb *r, struct dlm_lkb *lkb) in dlm_send_rcom_lock() argument
[all …]
Dnetlink.c93 struct dlm_rsb *r = lkb->lkb_resource; in fill_data() local
107 if (r) { in fill_data()
108 data->lockspace_id = r->res_ls->ls_global_id; in fill_data()
109 data->resource_namelen = r->res_length; in fill_data()
110 memcpy(data->resource_name, r->res_name, r->res_length); in fill_data()
/fs/ntfs/
Dupcase.c54 int i, r; in generate_default_upcase() local
64 for (r = 0; uc_run_table[r][0]; r++) in generate_default_upcase()
65 for (i = uc_run_table[r][0]; i < uc_run_table[r][1]; i++) in generate_default_upcase()
66 le16_add_cpu(&uc[i], uc_run_table[r][2]); in generate_default_upcase()
67 for (r = 0; uc_dup_table[r][0]; r++) in generate_default_upcase()
68 for (i = uc_dup_table[r][0]; i < uc_dup_table[r][1]; i += 2) in generate_default_upcase()
70 for (r = 0; uc_word_table[r][0]; r++) in generate_default_upcase()
71 uc[uc_word_table[r][0]] = cpu_to_le16(uc_word_table[r][1]); in generate_default_upcase()
Dntfs.h123 int r = 1; in ntfs_ffs() local
129 r += 16; in ntfs_ffs()
133 r += 8; in ntfs_ffs()
137 r += 4; in ntfs_ffs()
141 r += 2; in ntfs_ffs()
145 r += 1; in ntfs_ffs()
147 return r; in ntfs_ffs()
/fs/orangefs/
Ddir.c66 int bufi, r; in do_readdir() local
89 r = service_operation(op, "orangefs_readdir", in do_readdir()
95 if (r == -EAGAIN) { in do_readdir()
98 } else if (r == -EIO) { in do_readdir()
100 od->error = r; in do_readdir()
101 return r; in do_readdir()
105 if (r < 0) { in do_readdir()
107 od->error = r; in do_readdir()
108 return r; in do_readdir()
165 int r; in orangefs_dir_more() local
[all …]
/fs/ubifs/
Dreplay.c181 static int trun_remove_range(struct ubifs_info *c, struct replay_entry *r) in trun_remove_range() argument
187 min_blk = r->new_size / UBIFS_BLOCK_SIZE; in trun_remove_range()
188 if (r->new_size & (UBIFS_BLOCK_SIZE - 1)) in trun_remove_range()
191 max_blk = r->old_size / UBIFS_BLOCK_SIZE; in trun_remove_range()
192 if ((r->old_size & (UBIFS_BLOCK_SIZE - 1)) == 0) in trun_remove_range()
195 ino = key_inum(c, &r->key); in trun_remove_range()
215 struct replay_entry *r; in inode_still_linked() local
224 list_for_each_entry_reverse(r, &c->replay_list, list) { in inode_still_linked()
225 ubifs_assert(c, r->sqnum >= rino->sqnum); in inode_still_linked()
226 if (key_inum(c, &r->key) == key_inum(c, &rino->key)) in inode_still_linked()
[all …]
/fs/debugfs/
Dfile.c166 int r; in open_proxy_open() local
168 r = debugfs_file_get(dentry); in open_proxy_open()
169 if (r) in open_proxy_open()
170 return r == -EIO ? -ENOENT : r; in open_proxy_open()
174 r = debugfs_locked_down(inode, filp, real_fops); in open_proxy_open()
175 if (r) in open_proxy_open()
183 r = -ENXIO; in open_proxy_open()
189 r = real_fops->open(inode, filp); in open_proxy_open()
193 return r; in open_proxy_open()
208 ret_type r; \
[all …]
/fs/
Dproc_namespace.c100 struct mount *r = real_mount(mnt); in show_vfsmnt() local
110 mangle(m, r->mnt_devname ? r->mnt_devname : "none"); in show_vfsmnt()
136 struct mount *r = real_mount(mnt); in show_mountinfo() local
141 seq_printf(m, "%i %i %u:%u ", r->mnt_id, r->mnt_parent->mnt_id, in show_mountinfo()
161 if (IS_MNT_SHARED(r)) in show_mountinfo()
162 seq_printf(m, " shared:%i", r->mnt_group_id); in show_mountinfo()
163 if (IS_MNT_SLAVE(r)) { in show_mountinfo()
164 int master = r->mnt_master->mnt_group_id; in show_mountinfo()
165 int dom = get_dominating_id(r, &p->root); in show_mountinfo()
170 if (IS_MNT_UNBINDABLE(r)) in show_mountinfo()
[all …]
Dbinfmt_flat.c314 calc_reloc(unsigned long r, struct lib_info *p, int curid, int internalp) in calc_reloc() argument
324 if (r == 0) in calc_reloc()
327 id = (r >> 24) & 0xff; /* Find ID for this reloc */ in calc_reloc()
328 r &= 0x00ffffff; /* Trim ID off here */ in calc_reloc()
331 pr_err("reference 0x%lx to shared library %d", r, id); in calc_reloc()
337 "(%d != %d)", r, curid, id); in calc_reloc()
360 if (r > start_brk - start_data + text_len) { in calc_reloc()
362 r, start_brk-start_data+text_len, text_len); in calc_reloc()
366 if (r < text_len) /* In text segment */ in calc_reloc()
367 addr = r + start_code; in calc_reloc()
[all …]
/fs/hpfs/
Dnamei.c35 int r; in hpfs_mkdir() local
75 r = hpfs_add_dirent(dir, name, len, &dee); in hpfs_mkdir()
76 if (r == 1) in hpfs_mkdir()
78 if (r == -1) { in hpfs_mkdir()
139 int r; in hpfs_create() local
180 r = hpfs_add_dirent(dir, name, len, &dee); in hpfs_create()
181 if (r == 1) in hpfs_create()
183 if (r == -1) { in hpfs_create()
225 int r; in hpfs_mknod() local
262 r = hpfs_add_dirent(dir, name, len, &dee); in hpfs_mknod()
[all …]
/fs/9p/
Dv9fs.c191 int token, r; in v9fs_parse_options() local
197 r = match_int(&args[0], &option); in v9fs_parse_options()
198 if (r < 0) { in v9fs_parse_options()
201 ret = r; in v9fs_parse_options()
211 r = match_int(&args[0], &option); in v9fs_parse_options()
212 if (r < 0) { in v9fs_parse_options()
215 ret = r; in v9fs_parse_options()
226 r = match_int(&args[0], &option); in v9fs_parse_options()
227 if (r < 0) { in v9fs_parse_options()
230 ret = r; in v9fs_parse_options()
[all …]
/fs/afs/
Dcmservice.c411 struct afs_uuid *r; in afs_deliver_cb_init_call_back_state3() local
444 r = call->request; in afs_deliver_cb_init_call_back_state3()
445 r->time_low = b[0]; in afs_deliver_cb_init_call_back_state3()
446 r->time_mid = htons(ntohl(b[1])); in afs_deliver_cb_init_call_back_state3()
447 r->time_hi_and_version = htons(ntohl(b[2])); in afs_deliver_cb_init_call_back_state3()
448 r->clock_seq_hi_and_reserved = ntohl(b[3]); in afs_deliver_cb_init_call_back_state3()
449 r->clock_seq_low = ntohl(b[4]); in afs_deliver_cb_init_call_back_state3()
452 r->node[loop] = ntohl(b[loop + 5]); in afs_deliver_cb_init_call_back_state3()
506 struct afs_uuid *r = call->request; in SRXAFSCB_ProbeUuid() local
510 if (memcmp(r, &call->net->uuid, sizeof(call->net->uuid)) == 0) in SRXAFSCB_ProbeUuid()
[all …]
Dvlclient.c270 struct afs_ListAddrByAttributes__xdr *r; in afs_vl_get_addrs_u() local
292 r = (struct afs_ListAddrByAttributes__xdr *)bp; in afs_vl_get_addrs_u()
293 r->Mask = htonl(AFS_VLADDR_UUID); in afs_vl_get_addrs_u()
294 r->ipaddr = 0; in afs_vl_get_addrs_u()
295 r->index = 0; in afs_vl_get_addrs_u()
296 r->spare = 0; in afs_vl_get_addrs_u()
297 r->uuid.time_low = u->time_low; in afs_vl_get_addrs_u()
298 r->uuid.time_mid = htonl(ntohs(u->time_mid)); in afs_vl_get_addrs_u()
299 r->uuid.time_hi_and_version = htonl(ntohs(u->time_hi_and_version)); in afs_vl_get_addrs_u()
300 r->uuid.clock_seq_hi_and_reserved = htonl(u->clock_seq_hi_and_reserved); in afs_vl_get_addrs_u()
[all …]
/fs/xfs/
Dxfs_rtalloc.c436 xfs_rtblock_t r; /* result block */ in xfs_rtallocate_extent_near() local
449 rbpp, rsb, prod, &r); in xfs_rtallocate_extent_near()
456 if (r != NULLRTBLOCK) { in xfs_rtallocate_extent_near()
457 *rtblock = r; in xfs_rtallocate_extent_near()
492 rsb, prod, &r); in xfs_rtallocate_extent_near()
499 if (r != NULLRTBLOCK) { in xfs_rtallocate_extent_near()
500 *rtblock = r; in xfs_rtallocate_extent_near()
537 len, &n, rbpp, rsb, prod, &r); in xfs_rtallocate_extent_near()
544 if (r != NULLRTBLOCK) { in xfs_rtallocate_extent_near()
545 *rtblock = r; in xfs_rtallocate_extent_near()
[all …]
/fs/jfs/
Djfs_discard.c35 int r = 0; in jfs_issue_discard() local
37 r = sb_issue_discard(sb, blkno, nblocks, GFP_NOFS, 0); in jfs_issue_discard()
38 if (unlikely(r != 0)) { in jfs_issue_discard()
41 (unsigned long long)nblocks, r); in jfs_issue_discard()
46 (unsigned long long)nblocks, r); in jfs_issue_discard()
/fs/xfs/libxfs/
Dxfs_rmap.c39 cur->bc_rec.r.rm_startblock = bno; in xfs_rmap_lookup_le()
40 cur->bc_rec.r.rm_blockcount = len; in xfs_rmap_lookup_le()
41 cur->bc_rec.r.rm_owner = owner; in xfs_rmap_lookup_le()
42 cur->bc_rec.r.rm_offset = offset; in xfs_rmap_lookup_le()
43 cur->bc_rec.r.rm_flags = flags; in xfs_rmap_lookup_le()
61 cur->bc_rec.r.rm_startblock = bno; in xfs_rmap_lookup_eq()
62 cur->bc_rec.r.rm_blockcount = len; in xfs_rmap_lookup_eq()
63 cur->bc_rec.r.rm_owner = owner; in xfs_rmap_lookup_eq()
64 cur->bc_rec.r.rm_offset = offset; in xfs_rmap_lookup_eq()
65 cur->bc_rec.r.rm_flags = flags; in xfs_rmap_lookup_eq()
[all …]
Dxfs_bmap_btree.h90 void xfs_bmbt_disk_set_all(struct xfs_bmbt_rec *r, struct xfs_bmbt_irec *s);
91 extern xfs_filblks_t xfs_bmbt_disk_get_blockcount(xfs_bmbt_rec_t *r);
92 extern xfs_fileoff_t xfs_bmbt_disk_get_startoff(xfs_bmbt_rec_t *r);
93 extern void xfs_bmbt_disk_get_all(xfs_bmbt_rec_t *r, xfs_bmbt_irec_t *s);
/fs/reiserfs/
Dprocfs.c49 #define SF( x ) ( r -> x )
68 #define JF( x ) ( r -> s_journal -> x )
73 struct reiserfs_sb_info *r = REISERFS_SB(sb); in show_super() local
117 atomic_read(&r->s_generation_counter), in show_super()
136 struct reiserfs_sb_info *r = REISERFS_SB(sb); in show_per_level() local
195 struct reiserfs_sb_info *r = REISERFS_SB(sb); in show_bitmap() local
310 struct reiserfs_sb_info *r = REISERFS_SB(sb); in show_journal() local
311 struct reiserfs_super_block *rs = r->s_rs; in show_journal()
372 atomic_read(&r->s_journal->j_wcount), in show_journal()
/fs/ceph/
Dsnap.c88 struct ceph_snap_realm *r = NULL; in __insert_snap_realm() local
92 r = rb_entry(parent, struct ceph_snap_realm, node); in __insert_snap_realm()
93 if (new->ino < r->ino) in __insert_snap_realm()
95 else if (new->ino > r->ino) in __insert_snap_realm()
144 struct ceph_snap_realm *r; in __lookup_snap_realm() local
147 r = rb_entry(n, struct ceph_snap_realm, node); in __lookup_snap_realm()
148 if (ino < r->ino) in __lookup_snap_realm()
150 else if (ino > r->ino) in __lookup_snap_realm()
153 dout("lookup_snap_realm %llx %p\n", r->ino, r); in __lookup_snap_realm()
154 return r; in __lookup_snap_realm()
[all …]

1234