/fs/dlm/ |
D | recover.c | 255 static void recover_list_add(struct dlm_rsb *r) in recover_list_add() argument 257 struct dlm_ls *ls = r->res_ls; in recover_list_add() 260 if (list_empty(&r->res_recover_list)) { in recover_list_add() 261 list_add_tail(&r->res_recover_list, &ls->ls_recover_list); in recover_list_add() 263 dlm_hold_rsb(r); in recover_list_add() 268 static void recover_list_del(struct dlm_rsb *r) in recover_list_del() argument 270 struct dlm_ls *ls = r->res_ls; in recover_list_del() 273 list_del_init(&r->res_recover_list); in recover_list_del() 277 dlm_put_rsb(r); in recover_list_del() 282 struct dlm_rsb *r = NULL; in recover_list_find() local [all …]
|
D | lock.c | 78 static int send_request(struct dlm_rsb *r, struct dlm_lkb *lkb); 79 static int send_convert(struct dlm_rsb *r, struct dlm_lkb *lkb); 80 static int send_unlock(struct dlm_rsb *r, struct dlm_lkb *lkb); 81 static int send_cancel(struct dlm_rsb *r, struct dlm_lkb *lkb); 82 static int send_grant(struct dlm_rsb *r, struct dlm_lkb *lkb); 83 static int send_bast(struct dlm_rsb *r, struct dlm_lkb *lkb, int mode); 84 static int send_lookup(struct dlm_rsb *r, struct dlm_lkb *lkb); 85 static int send_remove(struct dlm_rsb *r); 86 static int _request_lock(struct dlm_rsb *r, struct dlm_lkb *lkb); 87 static int _cancel_lock(struct dlm_rsb *r, struct dlm_lkb *lkb); [all …]
|
D | debug_fs.c | 174 struct dlm_rsb *r) in print_format2_lock() argument 203 r->res_nodeid, in print_format2_lock() 204 r->res_length, in print_format2_lock() 205 r->res_name); in print_format2_lock() 209 static int print_format2(struct dlm_rsb *r, struct seq_file *s) in print_format2() argument 214 lock_rsb(r); in print_format2() 216 list_for_each_entry(lkb, &r->res_grantqueue, lkb_statequeue) { in print_format2() 217 rv = print_format2_lock(s, lkb, r); in print_format2() 222 list_for_each_entry(lkb, &r->res_convertqueue, lkb_statequeue) { in print_format2() 223 rv = print_format2_lock(s, lkb, r); in print_format2() [all …]
|
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() 353 struct dlm_rsb *r; in find_rsb_root() local 361 rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[bucket].keep, name, len, 0, &r); in find_rsb_root() 364 name, len, 0, &r); in find_rsb_root() 368 return r; in find_rsb_root() 371 list_for_each_entry(r, &ls->ls_root_list, res_root_list) { in find_rsb_root() 372 if (len == r->res_length && !memcmp(name, r->res_name, len)) { in find_rsb_root() 375 r->res_name); in find_rsb_root() 376 return r; in find_rsb_root() [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); 35 void dlm_purge_mstcpy_locks(struct dlm_rsb *r); 57 static inline int is_master(struct dlm_rsb *r) in is_master() argument 59 return !r->res_nodeid; in is_master() 62 static inline void lock_rsb(struct dlm_rsb *r) in lock_rsb() argument 64 mutex_lock(&r->res_mutex); in lock_rsb() 67 static inline void unlock_rsb(struct dlm_rsb *r) in unlock_rsb() argument 69 mutex_unlock(&r->res_mutex); in unlock_rsb()
|
D | memory.c | 64 struct dlm_rsb *r; in dlm_allocate_rsb() local 66 r = kmem_cache_zalloc(rsb_cache, GFP_NOFS); in dlm_allocate_rsb() 67 return r; in dlm_allocate_rsb() 70 void dlm_free_rsb(struct dlm_rsb *r) in dlm_free_rsb() argument 72 if (r->res_lvbptr) in dlm_free_rsb() 73 dlm_free_lvb(r->res_lvbptr); in dlm_free_rsb() 74 kmem_cache_free(rsb_cache, r); in dlm_free_rsb()
|
D | netlink.c | 94 struct dlm_rsb *r = lkb->lkb_resource; in fill_data() local 108 if (r) { in fill_data() 109 data->lockspace_id = r->res_ls->ls_global_id; in fill_data() 110 data->resource_namelen = r->res_length; in fill_data() 111 memcpy(data->resource_name, r->res_name, r->res_length); in fill_data()
|
D | rcom.c | 328 int dlm_send_rcom_lookup(struct dlm_rsb *r, int dir_nodeid) in dlm_send_rcom_lookup() argument 332 struct dlm_ls *ls = r->res_ls; in dlm_send_rcom_lookup() 335 error = create_rcom(ls, dir_nodeid, DLM_RCOM_LOOKUP, r->res_length, in dlm_send_rcom_lookup() 339 memcpy(rc->rc_buf, r->res_name, r->res_length); in dlm_send_rcom_lookup() 340 rc->rc_id = (unsigned long) r; 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 …]
|
/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/ubifs/ |
D | replay.c | 191 static int trun_remove_range(struct ubifs_info *c, struct replay_entry *r) in trun_remove_range() argument 197 min_blk = r->new_size / UBIFS_BLOCK_SIZE; in trun_remove_range() 198 if (r->new_size & (UBIFS_BLOCK_SIZE - 1)) in trun_remove_range() 201 max_blk = r->old_size / UBIFS_BLOCK_SIZE; in trun_remove_range() 202 if ((r->old_size & (UBIFS_BLOCK_SIZE - 1)) == 0) in trun_remove_range() 205 ino = key_inum(c, &r->key); in trun_remove_range() 220 static int apply_replay_entry(struct ubifs_info *c, struct replay_entry *r) in apply_replay_entry() argument 224 dbg_mntk(&r->key, "LEB %d:%d len %d deletion %d sqnum %llu key ", in apply_replay_entry() 225 r->lnum, r->offs, r->len, r->deletion, r->sqnum); in apply_replay_entry() 228 c->replay_sqnum = r->sqnum; in apply_replay_entry() [all …]
|
/fs/xfs/ |
D | xfs_bmap_btree.c | 136 xfs_bmbt_rec_host_t *r, in xfs_bmbt_get_all() argument 139 __xfs_bmbt_get_all(r->l0, r->l1, s); in xfs_bmbt_get_all() 147 xfs_bmbt_rec_host_t *r) in xfs_bmbt_get_blockcount() argument 149 return (xfs_filblks_t)(r->l1 & xfs_mask64lo(21)); in xfs_bmbt_get_blockcount() 157 xfs_bmbt_rec_host_t *r) in xfs_bmbt_get_startblock() argument 160 return (((xfs_fsblock_t)r->l0 & xfs_mask64lo(9)) << 43) | in xfs_bmbt_get_startblock() 161 (((xfs_fsblock_t)r->l1) >> 21); in xfs_bmbt_get_startblock() 166 b = (((xfs_dfsbno_t)r->l0 & xfs_mask64lo(9)) << 43) | in xfs_bmbt_get_startblock() 167 (((xfs_dfsbno_t)r->l1) >> 21); in xfs_bmbt_get_startblock() 171 return (xfs_fsblock_t)(((xfs_dfsbno_t)r->l1) >> 21); in xfs_bmbt_get_startblock() [all …]
|
D | xfs_bmap_btree.h | 209 extern void xfs_bmbt_get_all(xfs_bmbt_rec_host_t *r, xfs_bmbt_irec_t *s); 210 extern xfs_filblks_t xfs_bmbt_get_blockcount(xfs_bmbt_rec_host_t *r); 211 extern xfs_fsblock_t xfs_bmbt_get_startblock(xfs_bmbt_rec_host_t *r); 212 extern xfs_fileoff_t xfs_bmbt_get_startoff(xfs_bmbt_rec_host_t *r); 213 extern xfs_exntst_t xfs_bmbt_get_state(xfs_bmbt_rec_host_t *r); 215 extern xfs_filblks_t xfs_bmbt_disk_get_blockcount(xfs_bmbt_rec_t *r); 216 extern xfs_fileoff_t xfs_bmbt_disk_get_startoff(xfs_bmbt_rec_t *r); 218 extern void xfs_bmbt_set_all(xfs_bmbt_rec_host_t *r, xfs_bmbt_irec_t *s); 219 extern void xfs_bmbt_set_allf(xfs_bmbt_rec_host_t *r, xfs_fileoff_t o, 221 extern void xfs_bmbt_set_blockcount(xfs_bmbt_rec_host_t *r, xfs_filblks_t v); [all …]
|
D | xfs_itable.c | 289 xfs_inobt_rec_incore_t r; in xfs_bulkstat() local 299 !(error = xfs_inobt_get_rec(cur, &r, &i)) && in xfs_bulkstat() 302 agino < r.ir_startino + XFS_INODES_PER_CHUNK && in xfs_bulkstat() 304 (chunkidx = agino - r.ir_startino + 1) < in xfs_bulkstat() 309 ~r.ir_free) { in xfs_bulkstat() 316 if (XFS_INOBT_MASK(i) & ~r.ir_free) in xfs_bulkstat() 317 r.ir_freecount++; in xfs_bulkstat() 319 r.ir_free |= xfs_inobt_maskn(0, chunkidx); in xfs_bulkstat() 320 irbp->ir_startino = r.ir_startino; in xfs_bulkstat() 321 irbp->ir_freecount = r.ir_freecount; in xfs_bulkstat() [all …]
|
D | xfs_rtalloc.c | 409 xfs_rtblock_t r; /* result block */ in xfs_rtallocate_extent_near() local 422 rbpp, rsb, prod, &r); in xfs_rtallocate_extent_near() 429 if (r != NULLRTBLOCK) { in xfs_rtallocate_extent_near() 430 *rtblock = r; in xfs_rtallocate_extent_near() 465 rsb, prod, &r); in xfs_rtallocate_extent_near() 472 if (r != NULLRTBLOCK) { in xfs_rtallocate_extent_near() 473 *rtblock = r; in xfs_rtallocate_extent_near() 510 len, &n, rbpp, rsb, prod, &r); in xfs_rtallocate_extent_near() 517 if (r != NULLRTBLOCK) { in xfs_rtallocate_extent_near() 518 *rtblock = r; in xfs_rtallocate_extent_near() [all …]
|
/fs/ |
D | proc_namespace.c | 94 struct mount *r = real_mount(mnt); in show_vfsmnt() local 104 mangle(m, r->mnt_devname ? r->mnt_devname : "none"); in show_vfsmnt() 125 struct mount *r = real_mount(mnt); in show_mountinfo() local 131 seq_printf(m, "%i %i %u:%u ", r->mnt_id, r->mnt_parent->mnt_id, in show_mountinfo() 150 if (IS_MNT_SHARED(r)) in show_mountinfo() 151 seq_printf(m, " shared:%i", r->mnt_group_id); in show_mountinfo() 152 if (IS_MNT_SLAVE(r)) { in show_mountinfo() 153 int master = r->mnt_master->mnt_group_id; in show_mountinfo() 154 int dom = get_dominating_id(r, &p->root); in show_mountinfo() 159 if (IS_MNT_UNBINDABLE(r)) in show_mountinfo() [all …]
|
D | binfmt_flat.c | 311 calc_reloc(unsigned long r, struct lib_info *p, int curid, int internalp) in calc_reloc() argument 321 if (r == 0) in calc_reloc() 324 id = (r >> 24) & 0xff; /* Find ID for this reloc */ in calc_reloc() 325 r &= 0x00ffffff; /* Trim ID off here */ in calc_reloc() 329 (unsigned) r, id); in calc_reloc() 335 "(%d != %d)", (unsigned) r, curid, id); in calc_reloc() 358 if (!flat_reloc_valid(r, start_brk - start_data + text_len)) { in calc_reloc() 360 (int) r,(int)(start_brk-start_data+text_len),(int)text_len); in calc_reloc() 364 if (r < text_len) /* In text segment */ in calc_reloc() 365 addr = r + start_code; in calc_reloc() [all …]
|
/fs/hpfs/ |
D | namei.c | 23 int r; in hpfs_mkdir() local 63 r = hpfs_add_dirent(dir, name, len, &dee); in hpfs_mkdir() 64 if (r == 1) in hpfs_mkdir() 66 if (r == -1) { in hpfs_mkdir() 126 int r; in hpfs_create() local 167 r = hpfs_add_dirent(dir, name, len, &dee); in hpfs_create() 168 if (r == 1) in hpfs_create() 170 if (r == -1) { in hpfs_create() 211 int r; in hpfs_mknod() local 250 r = hpfs_add_dirent(dir, name, len, &dee); in hpfs_mknod() [all …]
|
D | file.c | 68 int r; in hpfs_get_block() local 79 r = -EIO; in hpfs_get_block() 84 r = -ENOSPC; in hpfs_get_block() 92 r = 0; in hpfs_get_block() 95 return r; in hpfs_get_block()
|
/fs/9p/ |
D | v9fs.c | 137 int token, r; in v9fs_parse_options() local 143 r = match_int(&args[0], &option); in v9fs_parse_options() 144 if (r < 0) { in v9fs_parse_options() 147 ret = r; in v9fs_parse_options() 157 r = match_int(&args[0], &option); in v9fs_parse_options() 158 if (r < 0) { in v9fs_parse_options() 161 ret = r; in v9fs_parse_options() 167 r = match_int(&args[0], &option); in v9fs_parse_options() 168 if (r < 0) { in v9fs_parse_options() 171 ret = r; in v9fs_parse_options() [all …]
|
/fs/afs/ |
D | cmservice.c | 413 struct afs_uuid *r = call->request; in SRXAFSCB_ProbeUuid() local 422 if (memcmp(r, &afs_uuid, sizeof(afs_uuid)) == 0) in SRXAFSCB_ProbeUuid() 437 struct afs_uuid *r; in afs_deliver_cb_probe_uuid() local 473 r = call->request; in afs_deliver_cb_probe_uuid() 474 r->time_low = ntohl(b[0]); in afs_deliver_cb_probe_uuid() 475 r->time_mid = ntohl(b[1]); in afs_deliver_cb_probe_uuid() 476 r->time_hi_and_version = ntohl(b[2]); in afs_deliver_cb_probe_uuid() 477 r->clock_seq_hi_and_reserved = ntohl(b[3]); in afs_deliver_cb_probe_uuid() 478 r->clock_seq_low = ntohl(b[4]); in afs_deliver_cb_probe_uuid() 481 r->node[loop] = ntohl(b[loop + 5]); in afs_deliver_cb_probe_uuid()
|
/fs/reiserfs/ |
D | procfs.c | 48 #define SF( x ) ( r -> x ) 67 #define JF( x ) ( r -> s_journal -> x ) 71 struct reiserfs_sb_info *r = REISERFS_SB(sb); in show_super() local 115 atomic_read(&r->s_generation_counter), in show_super() 133 struct reiserfs_sb_info *r = REISERFS_SB(sb); in show_per_level() local 191 struct reiserfs_sb_info *r = REISERFS_SB(sb); in show_bitmap() local 296 struct reiserfs_sb_info *r = REISERFS_SB(sb); in show_journal() local 297 struct reiserfs_super_block *rs = r->s_rs; in show_journal() 359 atomic_read(&r->s_journal->j_wcount), in show_journal()
|
/fs/ceph/ |
D | addr.c | 228 int r = readpage_nounlock(filp, page); in ceph_readpage() local 230 return r; in ceph_readpage() 987 int r; in ceph_update_writeable_page() local 1018 r = wait_event_interruptible(ci->i_cap_wq, in ceph_update_writeable_page() 1021 if (r == -ERESTARTSYS) in ceph_update_writeable_page() 1022 return r; in ceph_update_writeable_page() 1032 r = writepage_nounlock(page, NULL); in ceph_update_writeable_page() 1033 if (r < 0) in ceph_update_writeable_page() 1052 r = -EINVAL; in ceph_update_writeable_page() 1069 r = readpage_nounlock(file, page); in ceph_update_writeable_page() [all …]
|
D | snap.c | 87 struct ceph_snap_realm *r = NULL; in __insert_snap_realm() local 91 r = rb_entry(parent, struct ceph_snap_realm, node); in __insert_snap_realm() 92 if (new->ino < r->ino) in __insert_snap_realm() 94 else if (new->ino > r->ino) in __insert_snap_realm() 141 struct ceph_snap_realm *r; in ceph_lookup_snap_realm() local 144 r = rb_entry(n, struct ceph_snap_realm, node); in ceph_lookup_snap_realm() 145 if (ino < r->ino) in ceph_lookup_snap_realm() 147 else if (ino > r->ino) in ceph_lookup_snap_realm() 150 dout("lookup_snap_realm %llx %p\n", r->ino, r); in ceph_lookup_snap_realm() 151 return r; in ceph_lookup_snap_realm()
|
/fs/hostfs/ |
D | hostfs_user.c | 55 int access_file(char *path, int r, int w, int x) in access_file() argument 59 if (r) in access_file() 70 int open_file(char *path, int r, int w, int append) in open_file() argument 74 if (r && !w) in open_file() 76 else if (!r && w) in open_file() 78 else if (r && w) in open_file()
|