/fs/dlm/ |
D | recover.c | 207 static void recover_list_add(struct dlm_rsb *r) in recover_list_add() argument 209 struct dlm_ls *ls = r->res_ls; in recover_list_add() 212 if (list_empty(&r->res_recover_list)) { in recover_list_add() 213 list_add_tail(&r->res_recover_list, &ls->ls_recover_list); in recover_list_add() 215 dlm_hold_rsb(r); in recover_list_add() 220 static void recover_list_del(struct dlm_rsb *r) in recover_list_del() argument 222 struct dlm_ls *ls = r->res_ls; in recover_list_del() 225 list_del_init(&r->res_recover_list); in recover_list_del() 229 dlm_put_rsb(r); in recover_list_del() 234 struct dlm_rsb *r = NULL; in recover_list_find() local [all …]
|
D | lock.c | 76 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 …]
|
D | debug_fs.c | 173 struct dlm_rsb *r) in print_format2_lock() argument 202 r->res_nodeid, in print_format2_lock() 203 r->res_length, in print_format2_lock() 204 r->res_name); in print_format2_lock() 208 static int print_format2(struct dlm_rsb *r, struct seq_file *s) in print_format2() argument 213 lock_rsb(r); in print_format2() 215 list_for_each_entry(lkb, &r->res_grantqueue, lkb_statequeue) { in print_format2() 216 rv = print_format2_lock(s, lkb, r); in print_format2() 221 list_for_each_entry(lkb, &r->res_convertqueue, lkb_statequeue) { in print_format2() 222 rv = print_format2_lock(s, lkb, r); in print_format2() [all …]
|
D | lock.h | 16 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); 31 void dlm_purge_mstcpy_locks(struct dlm_rsb *r); 53 static inline int is_master(struct dlm_rsb *r) in is_master() argument 55 return !r->res_nodeid; in is_master() 58 static inline void lock_rsb(struct dlm_rsb *r) in lock_rsb() argument 60 mutex_lock(&r->res_mutex); in lock_rsb() 63 static inline void unlock_rsb(struct dlm_rsb *r) in unlock_rsb() argument 65 mutex_unlock(&r->res_mutex); in unlock_rsb()
|
D | memory.c | 56 struct dlm_rsb *r; in dlm_allocate_rsb() local 60 r = kzalloc(sizeof(*r) + namelen, ls->ls_allocation); 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 kfree(r); in dlm_free_rsb()
|
D | dir.c | 115 int dlm_dir_nodeid(struct dlm_rsb *r) in dlm_dir_nodeid() argument 117 return dlm_hash2nodeid(r->res_ls, r->res_hash); in dlm_dir_nodeid() 354 struct dlm_rsb *r; in find_rsb_root() local 357 list_for_each_entry(r, &ls->ls_root_list, res_root_list) { in find_rsb_root() 358 if (len == r->res_length && !memcmp(name, r->res_name, len)) { in find_rsb_root() 360 return r; in find_rsb_root() 375 struct dlm_rsb *r; in dlm_copy_master_names() local 382 r = find_rsb_root(ls, inbuf, inlen); in dlm_copy_master_names() 383 if (!r) { in dlm_copy_master_names() 389 list = r->res_root_list.next; in dlm_copy_master_names() [all …]
|
D | rcom.c | 263 int dlm_send_rcom_lookup(struct dlm_rsb *r, int dir_nodeid) in dlm_send_rcom_lookup() argument 267 struct dlm_ls *ls = r->res_ls; in dlm_send_rcom_lookup() 270 error = create_rcom(ls, dir_nodeid, DLM_RCOM_LOOKUP, r->res_length, in dlm_send_rcom_lookup() 274 memcpy(rc->rc_buf, r->res_name, r->res_length); in dlm_send_rcom_lookup() 275 rc->rc_id = (unsigned long) r; in dlm_send_rcom_lookup() 308 static void pack_rcom_lock(struct dlm_rsb *r, struct dlm_lkb *lkb, in pack_rcom_lock() argument 328 rl->rl_namelen = cpu_to_le16(r->res_length); in pack_rcom_lock() 329 memcpy(rl->rl_name, r->res_name, r->res_length); in pack_rcom_lock() 335 memcpy(rl->rl_lvb, lkb->lkb_lvbptr, r->res_ls->ls_lvblen); in pack_rcom_lock() 338 int dlm_send_rcom_lock(struct dlm_rsb *r, struct dlm_lkb *lkb) in dlm_send_rcom_lock() argument [all …]
|
D | netlink.c | 106 struct dlm_rsb *r = lkb->lkb_resource; in fill_data() local 120 if (r) { in fill_data() 121 data->lockspace_id = r->res_ls->ls_global_id; in fill_data() 122 data->resource_namelen = r->res_length; in fill_data() 123 memcpy(data->resource_name, r->res_name, r->res_length); in fill_data()
|
D | dlm_internal.h | 306 static inline void rsb_set_flag(struct dlm_rsb *r, enum rsb_flags flag) in rsb_set_flag() argument 308 __set_bit(flag, &r->res_flags); in rsb_set_flag() 311 static inline void rsb_clear_flag(struct dlm_rsb *r, enum rsb_flags flag) in rsb_clear_flag() argument 313 __clear_bit(flag, &r->res_flags); in rsb_clear_flag() 316 static inline int rsb_flag(struct dlm_rsb *r, enum rsb_flags flag) in rsb_flag() argument 318 return test_bit(flag, &r->res_flags); in rsb_flag()
|
D | rcom.h | 19 int dlm_send_rcom_lookup(struct dlm_rsb *r, int dir_nodeid); 20 int dlm_send_rcom_lock(struct dlm_rsb *r, struct dlm_lkb *lkb);
|
D | ast.c | 60 struct dlm_rsb *r = NULL; in process_asts() local 69 r = lkb->lkb_resource; in process_asts() 70 ls = r->res_ls; in process_asts()
|
/fs/ubifs/ |
D | replay.c | 106 static int set_bud_lprops(struct ubifs_info *c, struct replay_entry *r) in set_bud_lprops() argument 113 lp = ubifs_lpt_lookup_dirty(c, r->lnum); in set_bud_lprops() 120 if (r->offs == 0 && (lp->free != c->leb_size || lp->dirty != 0)) { in set_bud_lprops() 139 dbg_mnt("bud LEB %d was GC'd (%d free, %d dirty)", r->lnum, in set_bud_lprops() 141 dbg_gc("bud LEB %d was GC'd (%d free, %d dirty)", r->lnum, in set_bud_lprops() 153 "replay: %d free %d dirty", r->lnum, lp->free, in set_bud_lprops() 154 lp->dirty, r->free, r->dirty); in set_bud_lprops() 156 lp = ubifs_change_lp(c, lp, r->free, dirty + r->dirty, in set_bud_lprops() 172 static int trun_remove_range(struct ubifs_info *c, struct replay_entry *r) in trun_remove_range() argument 178 min_blk = r->new_size / UBIFS_BLOCK_SIZE; in trun_remove_range() [all …]
|
/fs/ntfs/ |
D | upcase.c | 68 int i, r; in generate_default_upcase() local 78 for (r = 0; uc_run_table[r][0]; r++) in generate_default_upcase() 79 for (i = uc_run_table[r][0]; i < uc_run_table[r][1]; i++) in generate_default_upcase() 80 le16_add_cpu(&uc[i], uc_run_table[r][2]); in generate_default_upcase() 81 for (r = 0; uc_dup_table[r][0]; r++) in generate_default_upcase() 82 for (i = uc_dup_table[r][0]; i < uc_dup_table[r][1]; i += 2) in generate_default_upcase() 84 for (r = 0; uc_word_table[r][0]; r++) in generate_default_upcase() 85 uc[uc_word_table[r][0]] = cpu_to_le16(uc_word_table[r][1]); in generate_default_upcase()
|
D | ntfs.h | 137 int r = 1; in ntfs_ffs() local 143 r += 16; in ntfs_ffs() 147 r += 8; in ntfs_ffs() 151 r += 4; in ntfs_ffs() 155 r += 2; in ntfs_ffs() 159 r += 1; in ntfs_ffs() 161 return r; in ntfs_ffs()
|
/fs/xfs/ |
D | xfs_bmap_btree.c | 143 xfs_bmbt_rec_host_t *r, in xfs_bmbt_get_all() argument 146 __xfs_bmbt_get_all(r->l0, r->l1, s); in xfs_bmbt_get_all() 154 xfs_bmbt_rec_host_t *r) in xfs_bmbt_get_blockcount() argument 156 return (xfs_filblks_t)(r->l1 & xfs_mask64lo(21)); in xfs_bmbt_get_blockcount() 164 xfs_bmbt_rec_host_t *r) in xfs_bmbt_get_startblock() argument 167 return (((xfs_fsblock_t)r->l0 & xfs_mask64lo(9)) << 43) | in xfs_bmbt_get_startblock() 168 (((xfs_fsblock_t)r->l1) >> 21); in xfs_bmbt_get_startblock() 173 b = (((xfs_dfsbno_t)r->l0 & xfs_mask64lo(9)) << 43) | in xfs_bmbt_get_startblock() 174 (((xfs_dfsbno_t)r->l1) >> 21); in xfs_bmbt_get_startblock() 178 return (xfs_fsblock_t)(((xfs_dfsbno_t)r->l1) >> 21); in xfs_bmbt_get_startblock() [all …]
|
D | xfs_bmap_btree.h | 217 extern void xfs_bmbt_get_all(xfs_bmbt_rec_host_t *r, xfs_bmbt_irec_t *s); 218 extern xfs_filblks_t xfs_bmbt_get_blockcount(xfs_bmbt_rec_host_t *r); 219 extern xfs_fsblock_t xfs_bmbt_get_startblock(xfs_bmbt_rec_host_t *r); 220 extern xfs_fileoff_t xfs_bmbt_get_startoff(xfs_bmbt_rec_host_t *r); 221 extern xfs_exntst_t xfs_bmbt_get_state(xfs_bmbt_rec_host_t *r); 223 extern void xfs_bmbt_disk_get_all(xfs_bmbt_rec_t *r, xfs_bmbt_irec_t *s); 224 extern xfs_filblks_t xfs_bmbt_disk_get_blockcount(xfs_bmbt_rec_t *r); 225 extern xfs_fileoff_t xfs_bmbt_disk_get_startoff(xfs_bmbt_rec_t *r); 227 extern void xfs_bmbt_set_all(xfs_bmbt_rec_host_t *r, xfs_bmbt_irec_t *s); 228 extern void xfs_bmbt_set_allf(xfs_bmbt_rec_host_t *r, xfs_fileoff_t o, [all …]
|
D | xfs_btree_trace.h | 96 #define XFS_BTREE_TRACE_ARGIPR(c, i, p, r) \ argument 97 xfs_btree_trace_argipr(__func__, c, i, p, r, __LINE__) 100 #define XFS_BTREE_TRACE_ARGR(c, r) \ argument 101 xfs_btree_trace_argr(__func__, c, r, __LINE__) 110 #define XFS_BTREE_TRACE_ARGIPR(c, i, p, r) argument 112 #define XFS_BTREE_TRACE_ARGR(c, r) argument
|
D | xfs_rtalloc.c | 415 xfs_rtblock_t r; /* result block */ in xfs_rtallocate_extent_near() local 428 rbpp, rsb, prod, &r); in xfs_rtallocate_extent_near() 435 if (r != NULLRTBLOCK) { in xfs_rtallocate_extent_near() 436 *rtblock = r; in xfs_rtallocate_extent_near() 471 rsb, prod, &r); in xfs_rtallocate_extent_near() 478 if (r != NULLRTBLOCK) { in xfs_rtallocate_extent_near() 479 *rtblock = r; in xfs_rtallocate_extent_near() 516 len, &n, rbpp, rsb, prod, &r); in xfs_rtallocate_extent_near() 523 if (r != NULLRTBLOCK) { in xfs_rtallocate_extent_near() 524 *rtblock = r; in xfs_rtallocate_extent_near() [all …]
|
/fs/yaffs2/ |
D | yaffs_qsort.c | 87 int d, r, swaptype, swap_cnt; in yaffs_qsort() local 116 while (pb <= pc && (r = cmp(pb, a)) <= 0) { in yaffs_qsort() 117 if (r == 0) { in yaffs_qsort() 124 while (pb <= pc && (r = cmp(pc, a)) >= 0) { in yaffs_qsort() 125 if (r == 0) { in yaffs_qsort() 148 r = min(pa - (char *)a, pb - pa); in yaffs_qsort() 149 vecswap(a, pb - r, r); in yaffs_qsort() 150 r = min((long)(pd - pc), (long)(pn - pd - es)); in yaffs_qsort() 151 vecswap(pb, pn - r, r); in yaffs_qsort() 152 r = pb - pa; in yaffs_qsort() [all …]
|
D | yaffs_ecc.c | 77 int r = 0; in yaffs_CountBits() local 80 r++; in yaffs_CountBits() 83 return r; in yaffs_CountBits() 88 int r = 0; in yaffs_CountBits32() local 91 r++; in yaffs_CountBits32() 94 return r; in yaffs_CountBits32()
|
/fs/hpfs/ |
D | namei.c | 23 int r; in hpfs_mkdir() local 64 r = hpfs_add_dirent(dir, (char *)name, len, &dee, 0); in hpfs_mkdir() 65 if (r == 1) in hpfs_mkdir() 67 if (r == -1) { in hpfs_mkdir() 129 int r; in hpfs_create() local 172 r = hpfs_add_dirent(dir, (char *)name, len, &dee, 0); in hpfs_create() 173 if (r == 1) in hpfs_create() 175 if (r == -1) { in hpfs_create() 218 int r; in hpfs_mknod() local 258 r = hpfs_add_dirent(dir, (char *)name, len, &dee, 0); in hpfs_mknod() [all …]
|
/fs/ |
D | binfmt_flat.c | 300 calc_reloc(unsigned long r, struct lib_info *p, int curid, int internalp) in calc_reloc() argument 310 if (r == 0) in calc_reloc() 313 id = (r >> 24) & 0xff; /* Find ID for this reloc */ in calc_reloc() 314 r &= 0x00ffffff; /* Trim ID off here */ in calc_reloc() 318 (unsigned) r, id); in calc_reloc() 324 "(%d != %d)", (unsigned) r, curid, id); in calc_reloc() 347 if (!flat_reloc_valid(r, start_brk - start_data + text_len)) { in calc_reloc() 349 (int) r,(int)(start_brk-start_code),(int)text_len); in calc_reloc() 353 if (r < text_len) /* In text segment */ in calc_reloc() 354 addr = r + start_code; in calc_reloc() [all …]
|
/fs/afs/ |
D | cmservice.c | 412 struct afs_uuid *r = call->request; in SRXAFSCB_ProbeUuid() local 421 if (memcmp(r, &afs_uuid, sizeof(afs_uuid)) == 0) in SRXAFSCB_ProbeUuid() 436 struct afs_uuid *r; in afs_deliver_cb_probe_uuid() local 472 r = call->request; in afs_deliver_cb_probe_uuid() 473 r->time_low = ntohl(b[0]); in afs_deliver_cb_probe_uuid() 474 r->time_mid = ntohl(b[1]); in afs_deliver_cb_probe_uuid() 475 r->time_hi_and_version = ntohl(b[2]); in afs_deliver_cb_probe_uuid() 476 r->clock_seq_hi_and_reserved = ntohl(b[3]); in afs_deliver_cb_probe_uuid() 477 r->clock_seq_low = ntohl(b[4]); in afs_deliver_cb_probe_uuid() 480 r->node[loop] = ntohl(b[loop + 5]); in afs_deliver_cb_probe_uuid()
|
/fs/reiserfs/ |
D | procfs.c | 59 #define SF( x ) ( r -> x ) 78 #define JF( x ) ( r -> s_journal -> x ) 82 struct reiserfs_sb_info *r = REISERFS_SB(sb); in show_super() local 126 atomic_read(&r->s_generation_counter), in show_super() 144 struct reiserfs_sb_info *r = REISERFS_SB(sb); in show_per_level() local 202 struct reiserfs_sb_info *r = REISERFS_SB(sb); in show_bitmap() local 307 struct reiserfs_sb_info *r = REISERFS_SB(sb); in show_journal() local 308 struct reiserfs_super_block *rs = r->s_rs; in show_journal() 370 atomic_read(&r->s_journal->j_wcount), in show_journal()
|
/fs/cifs/ |
D | smbdes.c | 201 char l[32], r[32]; in dohash() local 238 r[j] = pd1[j + 32]; in dohash() 260 permute(er, r, perm4, 48); in dohash() 288 l[j] = r[j]; in dohash() 291 r[j] = r2[j]; in dohash() 296 concat(rl, r, l, 32, 32); in dohash()
|