Home
last modified time | relevance | path

Searched refs:rs (Results 1 – 15 of 15) sorted by relevance

/fs/jffs2/
Dcompr_rubin.c88 static void init_rubin(struct rubin_state *rs, int div, int *bits) in init_rubin() argument
92 rs->q = 0; in init_rubin()
93 rs->p = (long) (2 * UPPER_BIT_RUBIN); in init_rubin()
94 rs->bit_number = (long) 0; in init_rubin()
95 rs->bit_divider = div; in init_rubin()
98 rs->bits[c] = bits[c]; in init_rubin()
102 static int encode(struct rubin_state *rs, long A, long B, int symbol) in encode() argument
108 while ((rs->q >= UPPER_BIT_RUBIN) || in encode()
109 ((rs->p + rs->q) <= UPPER_BIT_RUBIN)) { in encode()
110 rs->bit_number++; in encode()
[all …]
/fs/isofs/
Drock.c53 struct inode *inode, struct rock_state *rs) in setup_rock_ridge() argument
55 rs->len = sizeof(struct iso_directory_record) + de->name_len[0]; in setup_rock_ridge()
56 if (rs->len & 1) in setup_rock_ridge()
57 (rs->len)++; in setup_rock_ridge()
58 rs->chr = (unsigned char *)de + rs->len; in setup_rock_ridge()
59 rs->len = *((unsigned char *)de) - rs->len; in setup_rock_ridge()
60 if (rs->len < 0) in setup_rock_ridge()
61 rs->len = 0; in setup_rock_ridge()
64 rs->len -= ISOFS_SB(inode->i_sb)->s_rock_offset; in setup_rock_ridge()
65 rs->chr += ISOFS_SB(inode->i_sb)->s_rock_offset; in setup_rock_ridge()
[all …]
/fs/reiserfs/
Dobjectid.c11 #define objectid_map(s,rs) (old_format_only (s) ? \ argument
12 (__le32 *)((struct reiserfs_super_block_v1 *)(rs) + 1) :\
13 (__le32 *)((rs) + 1))
52 struct reiserfs_super_block *rs = SB_DISK_SUPER_BLOCK(s); in reiserfs_get_unused_objectid() local
53 __le32 *map = objectid_map(s, rs); in reiserfs_get_unused_objectid()
86 if (sb_oid_cursize(rs) > 2 && map[1] == map[2]) { in reiserfs_get_unused_objectid()
88 (sb_oid_cursize(rs) - 3) * sizeof(__u32)); in reiserfs_get_unused_objectid()
89 set_sb_oid_cursize(rs, sb_oid_cursize(rs) - 2); in reiserfs_get_unused_objectid()
101 struct reiserfs_super_block *rs = SB_DISK_SUPER_BLOCK(s); in reiserfs_release_objectid() local
102 __le32 *map = objectid_map(s, rs); in reiserfs_release_objectid()
[all …]
Dprints.c529 struct reiserfs_super_block *rs = in print_super_block() local
535 if (is_reiserfs_3_5(rs)) { in print_super_block()
537 } else if (is_reiserfs_3_6(rs)) { in print_super_block()
539 } else if (is_reiserfs_jr(rs)) { in print_super_block()
540 version = ((sb_version(rs) == REISERFS_VERSION_2) ? in print_super_block()
549 printk("Block count %u\n", sb_block_count(rs)); in print_super_block()
550 printk("Blocksize %d\n", sb_blocksize(rs)); in print_super_block()
551 printk("Free blocks %u\n", sb_free_blocks(rs)); in print_super_block()
558 data_blocks = sb_block_count(rs) - skipped - 1 - sb_bmap_nr(rs) - in print_super_block()
559 (!is_reiserfs_jr(rs) ? sb_jp_journal_size(rs) + in print_super_block()
[all …]
Dsuper.c40 int is_reiserfs_3_5(struct reiserfs_super_block *rs) in is_reiserfs_3_5() argument
42 return !strncmp(rs->s_v1.s_magic, reiserfs_3_5_magic_string, in is_reiserfs_3_5()
46 int is_reiserfs_3_6(struct reiserfs_super_block *rs) in is_reiserfs_3_6() argument
48 return !strncmp(rs->s_v1.s_magic, reiserfs_3_6_magic_string, in is_reiserfs_3_6()
52 int is_reiserfs_jr(struct reiserfs_super_block *rs) in is_reiserfs_jr() argument
54 return !strncmp(rs->s_v1.s_magic, reiserfs_jr_magic_string, in is_reiserfs_jr()
58 static int is_any_reiserfs_magic_string(struct reiserfs_super_block *rs) in is_any_reiserfs_magic_string() argument
60 return (is_reiserfs_3_5(rs) || is_reiserfs_3_6(rs) || in is_any_reiserfs_magic_string()
61 is_reiserfs_jr(rs)); in is_any_reiserfs_magic_string()
1371 struct reiserfs_super_block *rs = SB_DISK_SUPER_BLOCK(s); in handle_attrs() local
[all …]
Dprocfs.c57 #define DF( x ) D2C( rs -> s_v1.x )
58 #define DFL( x ) D4C( rs -> s_v1.x )
60 #define objectid_map( s, rs ) (old_format_only (s) ? \ argument
61 (__le32 *)((struct reiserfs_super_block_v1 *)rs + 1) : \
62 (__le32 *)(rs + 1))
63 #define MAP( i ) D4C( objectid_map( sb, rs )[ i ] )
65 #define DJF( x ) le32_to_cpu( rs -> x )
229 struct reiserfs_super_block *rs = sb_info->s_rs; in show_on_disk_super() local
255 rs->s_v1.s_magic, in show_on_disk_super()
273 struct reiserfs_super_block *rs = sb_info->s_rs; in show_oidmap() local
[all …]
Dbitmap.c421 struct reiserfs_super_block *rs; in _reiserfs_free_block() local
428 rs = SB_DISK_SUPER_BLOCK(s); in _reiserfs_free_block()
457 set_sb_free_blocks(rs, sb_free_blocks(rs) + 1); in _reiserfs_free_block()
Djournal.c2723 struct reiserfs_super_block *rs; in journal_init() local
2793 rs = SB_DISK_SUPER_BLOCK(sb); in journal_init()
2807 if (is_reiserfs_jr(rs) in journal_init()
2809 sb_jp_journal_magic(rs))) { in journal_init()
2815 sb_jp_journal_magic(rs)); in journal_init()
Dreiserfs.h1103 int is_reiserfs_3_5(struct reiserfs_super_block *rs);
1104 int is_reiserfs_3_6(struct reiserfs_super_block *rs);
1105 int is_reiserfs_jr(struct reiserfs_super_block *rs);
/fs/gfs2/
Drgrp.c186 static inline int rs_cmp(u64 blk, u32 len, struct gfs2_blkreserv *rs) in rs_cmp() argument
188 u64 startblk = gfs2_rbm_to_block(&rs->rs_rbm); in rs_cmp()
190 if (blk >= startblk + rs->rs_free) in rs_cmp()
622 static void dump_rs(struct seq_file *seq, const struct gfs2_blkreserv *rs) in dump_rs() argument
625 (unsigned long long)rs->rs_inum, in dump_rs()
626 (unsigned long long)gfs2_rbm_to_block(&rs->rs_rbm), in dump_rs()
627 rs->rs_rbm.offset, rs->rs_free); in dump_rs()
635 static void __rs_deltree(struct gfs2_blkreserv *rs) in __rs_deltree() argument
639 if (!gfs2_rs_active(rs)) in __rs_deltree()
642 rgd = rs->rs_rbm.rgd; in __rs_deltree()
[all …]
Drgrp.h53 extern void gfs2_rs_deltree(struct gfs2_blkreserv *rs);
81 static inline bool gfs2_rs_active(struct gfs2_blkreserv *rs) in gfs2_rs_active() argument
83 return rs && !RB_EMPTY_NODE(&rs->rs_node); in gfs2_rs_active()
Dtrace_gfs2.h515 TP_PROTO(const struct gfs2_blkreserv *rs, u8 func),
517 TP_ARGS(rs, func),
531 __entry->dev = rs->rs_rbm.rgd->rd_sbd->sd_vfs->s_dev;
532 __entry->rd_addr = rs->rs_rbm.rgd->rd_addr;
533 __entry->rd_free_clone = rs->rs_rbm.rgd->rd_free_clone;
534 __entry->rd_reserved = rs->rs_rbm.rgd->rd_reserved;
535 __entry->inum = rs->rs_inum;
536 __entry->start = gfs2_rbm_to_block(&rs->rs_rbm);
537 __entry->free = rs->rs_free;
/fs/9p/
Dvfs_super.c245 struct p9_rstatfs rs; in v9fs_statfs() local
256 res = p9_client_statfs(fid, &rs); in v9fs_statfs()
258 buf->f_type = rs.type; in v9fs_statfs()
259 buf->f_bsize = rs.bsize; in v9fs_statfs()
260 buf->f_blocks = rs.blocks; in v9fs_statfs()
261 buf->f_bfree = rs.bfree; in v9fs_statfs()
262 buf->f_bavail = rs.bavail; in v9fs_statfs()
263 buf->f_files = rs.files; in v9fs_statfs()
264 buf->f_ffree = rs.ffree; in v9fs_statfs()
265 buf->f_fsid.val[0] = rs.fsid & 0xFFFFFFFFUL; in v9fs_statfs()
[all …]
/fs/f2fs/
Dsegment.h344 struct f2fs_sit_entry *rs) in seg_info_from_raw_sit() argument
346 se->valid_blocks = GET_SIT_VBLOCKS(rs); in seg_info_from_raw_sit()
347 se->ckpt_valid_blocks = GET_SIT_VBLOCKS(rs); in seg_info_from_raw_sit()
348 memcpy(se->cur_valid_map, rs->valid_map, SIT_VBLOCK_MAP_SIZE); in seg_info_from_raw_sit()
349 memcpy(se->ckpt_valid_map, rs->valid_map, SIT_VBLOCK_MAP_SIZE); in seg_info_from_raw_sit()
351 memcpy(se->cur_valid_map_mir, rs->valid_map, SIT_VBLOCK_MAP_SIZE); in seg_info_from_raw_sit()
353 se->type = GET_SIT_TYPE(rs); in seg_info_from_raw_sit()
354 se->mtime = le64_to_cpu(rs->mtime); in seg_info_from_raw_sit()
358 struct f2fs_sit_entry *rs) in __seg_info_to_raw_sit() argument
362 rs->vblocks = cpu_to_le16(raw_vblocks); in __seg_info_to_raw_sit()
[all …]
/fs/dlm/
Drcom.c74 static void set_rcom_status(struct dlm_ls *ls, struct rcom_status *rs, in set_rcom_status() argument
77 rs->rs_flags = cpu_to_le32(flags); in set_rcom_status()
195 struct rcom_status *rs; in receive_rcom_status() local
207 rs = (struct rcom_status *)rc_in->rc_buf; in receive_rcom_status()
209 if (!(le32_to_cpu(rs->rs_flags) & DLM_RSF_NEED_SLOTS)) { in receive_rcom_status()