Home
last modified time | relevance | path

Searched refs:s (Results 1 – 25 of 174) sorted by relevance

1234567

/fs/reiserfs/
Dsuper.c61 static int reiserfs_remount(struct super_block *s, int *flags, char *data);
64 static int reiserfs_sync_fs(struct super_block *s, int wait) in reiserfs_sync_fs() argument
66 if (!(s->s_flags & MS_RDONLY)) { in reiserfs_sync_fs()
68 reiserfs_write_lock(s); in reiserfs_sync_fs()
69 if (!journal_begin(&th, s, 1)) in reiserfs_sync_fs()
70 if (!journal_end_sync(&th, s, 1)) in reiserfs_sync_fs()
71 reiserfs_flush_old_commits(s); in reiserfs_sync_fs()
72 s->s_dirt = 0; /* Even if it's not true. in reiserfs_sync_fs()
74 reiserfs_write_unlock(s); in reiserfs_sync_fs()
76 s->s_dirt = 0; in reiserfs_sync_fs()
[all …]
Dresize.c20 int reiserfs_resize(struct super_block *s, unsigned long block_count_new) in reiserfs_resize() argument
26 struct reiserfs_bitmap_info *old_bitmap = SB_AP_BITMAP(s); in reiserfs_resize()
39 sb = SB_DISK_SUPER_BLOCK(s); in reiserfs_resize()
41 if (SB_BLOCK_COUNT(s) >= block_count_new) { in reiserfs_resize()
47 bh = sb_bread(s, block_count_new - 1); in reiserfs_resize()
56 if (SB_BUFFER_WITH_SB(s)->b_blocknr * SB_BUFFER_WITH_SB(s)->b_size in reiserfs_resize()
64 block_r = SB_BLOCK_COUNT(s) - in reiserfs_resize()
65 (reiserfs_bmap_count(s) - 1) * s->s_blocksize * 8; in reiserfs_resize()
68 bmap_nr_new = block_count_new / (s->s_blocksize * 8); in reiserfs_resize()
69 block_r_new = block_count_new - bmap_nr_new * s->s_blocksize * 8; in reiserfs_resize()
[all …]
Dbitmap.c21 #define SB_ALLOC_OPTS(s) (REISERFS_SB(s)->s_alloc_options.bits) argument
37 #define concentrating_formatted_nodes(s) test_bit(_ALLOC_concentrating_formatted_nodes, &SB_ALLOC_… argument
38 #define displacing_large_files(s) test_bit(_ALLOC_displacing_large_files, &SB_ALLOC_OPTS(s)) argument
39 …efine displacing_new_packing_localities(s) test_bit(_ALLOC_displacing_new_packing_localities, &SB… argument
43 reiserfs_warning(s, "reiserfs: option \"%s\" is set", #optname); \
44 set_bit(_ALLOC_ ## optname , &SB_ALLOC_OPTS(s)); \
46 #define TEST_OPTION(optname, s) \ argument
47 test_bit(_ALLOC_ ## optname , &SB_ALLOC_OPTS(s))
49 static inline void get_bit_address(struct super_block *s, in get_bit_address() argument
56 *bmap_nr = block >> (s->s_blocksize_bits + 3); in get_bit_address()
[all …]
Dobjectid.c12 #define objectid_map(s,rs) (old_format_only (s) ? \ argument
18 static void check_objectid_map(struct super_block *s, __le32 * map) in check_objectid_map() argument
21 reiserfs_panic(s, in check_objectid_map()
29 static void check_objectid_map(struct super_block *s, __le32 * map) in check_objectid_map() argument
51 struct super_block *s = th->t_super; in reiserfs_get_unused_objectid() local
52 struct reiserfs_super_block *rs = SB_DISK_SUPER_BLOCK(s); in reiserfs_get_unused_objectid()
53 __le32 *map = objectid_map(s, rs); in reiserfs_get_unused_objectid()
58 check_objectid_map(s, map); in reiserfs_get_unused_objectid()
60 reiserfs_prepare_for_journal(s, SB_BUFFER_WITH_SB(s), 1); in reiserfs_get_unused_objectid()
64 reiserfs_warning(s, "%s: no more object ids", __func__); in reiserfs_get_unused_objectid()
[all …]
/fs/hpfs/
Dalloc.c11 static int hpfs_alloc_if_possible_nolock(struct super_block *s, secno sec);
18 static int chk_if_allocated(struct super_block *s, secno sec, char *msg) in chk_if_allocated() argument
22 if (!(bmp = hpfs_map_bitmap(s, sec >> 14, &qbh, "chk"))) goto fail; in chk_if_allocated()
24 hpfs_error(s, "sector '%s' - %08x not allocated in bitmap", msg, sec); in chk_if_allocated()
28 …if (sec >= hpfs_sb(s)->sb_dirband_start && sec < hpfs_sb(s)->sb_dirband_start + hpfs_sb(s)->sb_dir… in chk_if_allocated()
29 unsigned ssec = (sec - hpfs_sb(s)->sb_dirband_start) / 4; in chk_if_allocated()
30 if (!(bmp = hpfs_map_dnode_bitmap(s, &qbh))) goto fail; in chk_if_allocated()
32 hpfs_error(s, "sector '%s' - %08x not allocated in directory bitmap", msg, sec); in chk_if_allocated()
49 int hpfs_chk_sectors(struct super_block *s, secno start, int len, char *msg) in hpfs_chk_sectors() argument
52 start + len > hpfs_sb(s)->sb_fs_size) { in hpfs_chk_sectors()
[all …]
Dmap.c11 unsigned *hpfs_map_dnode_bitmap(struct super_block *s, struct quad_buffer_head *qbh) in hpfs_map_dnode_bitmap() argument
13 return hpfs_map_4sectors(s, hpfs_sb(s)->sb_dmap, qbh, 0); in hpfs_map_dnode_bitmap()
16 unsigned int *hpfs_map_bitmap(struct super_block *s, unsigned bmp_block, in hpfs_map_bitmap() argument
20 if (hpfs_sb(s)->sb_chk) if (bmp_block * 16384 > hpfs_sb(s)->sb_fs_size) { in hpfs_map_bitmap()
21 hpfs_error(s, "hpfs_map_bitmap called with bad parameter: %08x at %s", bmp_block, id); in hpfs_map_bitmap()
24 sec = hpfs_sb(s)->sb_bmp_dir[bmp_block]; in hpfs_map_bitmap()
25 if (!sec || sec > hpfs_sb(s)->sb_fs_size-4) { in hpfs_map_bitmap()
26 hpfs_error(s, "invalid bitmap block pointer %08x -> %08x at %s", bmp_block, sec, id); in hpfs_map_bitmap()
29 return hpfs_map_4sectors(s, sec, qbh, 4); in hpfs_map_bitmap()
38 char *hpfs_load_code_page(struct super_block *s, secno cps) in hpfs_load_code_page() argument
[all …]
Dsuper.c19 static void mark_dirty(struct super_block *s) in mark_dirty() argument
21 if (hpfs_sb(s)->sb_chkdsk && !(s->s_flags & MS_RDONLY)) { in mark_dirty()
24 if ((sb = hpfs_map_sector(s, 17, &bh, 0))) { in mark_dirty()
36 static void unmark_dirty(struct super_block *s) in unmark_dirty() argument
40 if (s->s_flags & MS_RDONLY) return; in unmark_dirty()
41 if ((sb = hpfs_map_sector(s, 17, &bh, 0))) { in unmark_dirty()
42 sb->dirty = hpfs_sb(s)->sb_chkdsk > 1 - hpfs_sb(s)->sb_was_error; in unmark_dirty()
43 sb->old_wrote = hpfs_sb(s)->sb_chkdsk >= 2 && !hpfs_sb(s)->sb_was_error; in unmark_dirty()
52 void hpfs_error(struct super_block *s, const char *fmt, ...) in hpfs_error() argument
61 if (!hpfs_sb(s)->sb_was_error) { in hpfs_error()
[all …]
Danode.c13 secno hpfs_bplus_lookup(struct super_block *s, struct inode *inode, in hpfs_bplus_lookup() argument
22 if (hpfs_sb(s)->sb_chk) if (hpfs_stop_cycles(s, a, &c1, &c2, "hpfs_bplus_lookup")) return -1; in hpfs_bplus_lookup()
28 if (!(anode = hpfs_map_anode(s, a, &bh))) return -1; in hpfs_bplus_lookup()
32 hpfs_error(s, "sector %08x not found in internal anode %08x", sec, a); in hpfs_bplus_lookup()
40 if (hpfs_sb(s)->sb_chk) if (hpfs_chk_sectors(s, a, 1, "data")) { in hpfs_bplus_lookup()
53 hpfs_error(s, "sector %08x not found in external anode %08x", sec, a); in hpfs_bplus_lookup()
60 secno hpfs_add_sector_to_btree(struct super_block *s, secno node, int fnod, unsigned fsecno) in hpfs_add_sector_to_btree() argument
72 if (!(fnode = hpfs_map_fnode(s, node, &bh))) return -1; in hpfs_add_sector_to_btree()
75 if (!(anode = hpfs_map_anode(s, node, &bh))) return -1; in hpfs_add_sector_to_btree()
81 hpfs_error(s, "anode %08x has no entries", a); in hpfs_add_sector_to_btree()
[all …]
Dea.c14 void hpfs_ea_ext_remove(struct super_block *s, secno a, int ano, unsigned len) in hpfs_ea_ext_remove() argument
21 hpfs_error(s, "EAs don't end correctly, %s %08x, len %08x", in hpfs_ea_ext_remove()
25 if (hpfs_ea_read(s, a, ano, pos, 4, ex)) return; in hpfs_ea_ext_remove()
28 hpfs_error(s, "ea->indirect set while ea->valuelen!=8, %s %08x, pos %08x", in hpfs_ea_ext_remove()
32 if (hpfs_ea_read(s, a, ano, pos + 4, ea->namelen + 9, ex+4)) in hpfs_ea_ext_remove()
34 hpfs_ea_remove(s, ea_sec(ea), ea->anode, ea_len(ea)); in hpfs_ea_ext_remove()
38 if (!ano) hpfs_free_sectors(s, a, (len+511) >> 9); in hpfs_ea_ext_remove()
42 if ((anode = hpfs_map_anode(s, a, &bh))) { in hpfs_ea_ext_remove()
43 hpfs_remove_btree(s, &anode->btree); in hpfs_ea_ext_remove()
45 hpfs_free_sectors(s, a, 1); in hpfs_ea_ext_remove()
[all …]
Dbuffer.c11 void hpfs_lock_creation(struct super_block *s) in hpfs_lock_creation() argument
16 down(&hpfs_sb(s)->hpfs_creation_de); in hpfs_lock_creation()
19 void hpfs_unlock_creation(struct super_block *s) in hpfs_unlock_creation() argument
24 up(&hpfs_sb(s)->hpfs_creation_de); in hpfs_unlock_creation()
29 void *hpfs_map_sector(struct super_block *s, unsigned secno, struct buffer_head **bhp, in hpfs_map_sector() argument
36 *bhp = bh = sb_bread(s, secno); in hpfs_map_sector()
47 void *hpfs_get_sector(struct super_block *s, unsigned secno, struct buffer_head **bhp) in hpfs_get_sector() argument
54 if ((*bhp = bh = sb_getblk(s, secno)) != NULL) { in hpfs_get_sector()
66 void *hpfs_map_4sectors(struct super_block *s, unsigned secno, struct quad_buffer_head *qbh, in hpfs_map_4sectors() argument
85 qbh->bh[0] = bh = sb_bread(s, secno); in hpfs_map_4sectors()
[all …]
/fs/
Dsuper.c58 struct super_block *s = kzalloc(sizeof(struct super_block), GFP_USER); in alloc_super() local
61 if (s) { in alloc_super()
62 if (security_sb_alloc(s)) { in alloc_super()
63 kfree(s); in alloc_super()
64 s = NULL; in alloc_super()
67 INIT_LIST_HEAD(&s->s_dirty); in alloc_super()
68 INIT_LIST_HEAD(&s->s_io); in alloc_super()
69 INIT_LIST_HEAD(&s->s_more_io); in alloc_super()
70 INIT_LIST_HEAD(&s->s_files); in alloc_super()
71 INIT_LIST_HEAD(&s->s_instances); in alloc_super()
[all …]
Dseq_file.c344 int seq_escape(struct seq_file *m, const char *s, const char *esc) in seq_escape() argument
350 for (p = m->buf + m->count; (c = *s) != '\0' && p < end; s++) { in seq_escape()
400 char *mangle_path(char *s, char *p, char *esc) in mangle_path() argument
402 while (s <= p) { in mangle_path()
405 return s; in mangle_path()
407 *s++ = c; in mangle_path()
408 } else if (s + 4 > p) { in mangle_path()
411 *s++ = '\\'; in mangle_path()
412 *s++ = '0' + ((c & 0300) >> 6); in mangle_path()
413 *s++ = '0' + ((c & 070) >> 3); in mangle_path()
[all …]
Dbinfmt_misc.c75 char *s; in check_file() local
87 s = bprm->buf + e->offset; in check_file()
90 if ((*s++ ^ e->magic[j]) & e->mask[j]) in check_file()
94 if ((*s++ ^ e->magic[j])) in check_file()
224 static char *scanarg(char *s, char del) in scanarg() argument
228 while ((c = *s++) != del) { in scanarg()
229 if (c == '\\' && *s == 'x') { in scanarg()
230 s++; in scanarg()
231 if (!isxdigit(*s++)) in scanarg()
233 if (!isxdigit(*s++)) in scanarg()
[all …]
/fs/ecryptfs/
Dkeystore.c508 struct ecryptfs_write_tag_70_packet_silly_stack *s; in ecryptfs_write_tag_70_packet() local
511 s = kmalloc(sizeof(*s), GFP_KERNEL); in ecryptfs_write_tag_70_packet()
512 if (!s) { in ecryptfs_write_tag_70_packet()
514 "[%zd] bytes of kernel memory\n", __func__, sizeof(*s)); in ecryptfs_write_tag_70_packet()
517 s->desc.flags = CRYPTO_TFM_REQ_MAY_SLEEP; in ecryptfs_write_tag_70_packet()
520 &s->desc.tfm, in ecryptfs_write_tag_70_packet()
521 &s->tfm_mutex, mount_crypt_stat->global_default_fn_cipher_name); in ecryptfs_write_tag_70_packet()
528 mutex_lock(s->tfm_mutex); in ecryptfs_write_tag_70_packet()
529 s->block_size = crypto_blkcipher_blocksize(s->desc.tfm); in ecryptfs_write_tag_70_packet()
532 s->num_rand_bytes = (ECRYPTFS_FILENAME_MIN_RANDOM_PREPEND_BYTES + 1); in ecryptfs_write_tag_70_packet()
[all …]
/fs/fat/
Dfat.h187 unsigned char s = name[0]; in fat_checksum() local
188 s = (s<<7) + (s>>1) + name[1]; s = (s<<7) + (s>>1) + name[2]; in fat_checksum()
189 s = (s<<7) + (s>>1) + name[3]; s = (s<<7) + (s>>1) + name[4]; in fat_checksum()
190 s = (s<<7) + (s>>1) + name[5]; s = (s<<7) + (s>>1) + name[6]; in fat_checksum()
191 s = (s<<7) + (s>>1) + name[7]; s = (s<<7) + (s>>1) + name[8]; in fat_checksum()
192 s = (s<<7) + (s>>1) + name[9]; s = (s<<7) + (s>>1) + name[10]; in fat_checksum()
193 return s; in fat_checksum()
319 extern void fat_fs_error(struct super_block *s, const char *fmt, ...)
/fs/ext3/
Dxattr.c529 ext3_xattr_set_entry(struct ext3_xattr_info *i, struct ext3_xattr_search *s) in ext3_xattr_set_entry() argument
532 size_t free, min_offs = s->end - s->base, name_len = strlen(i->name); in ext3_xattr_set_entry()
535 last = s->first; in ext3_xattr_set_entry()
543 free = min_offs - ((void *)last - s->base) - sizeof(__u32); in ext3_xattr_set_entry()
544 if (!s->not_found) { in ext3_xattr_set_entry()
545 if (!s->here->e_value_block && s->here->e_value_size) { in ext3_xattr_set_entry()
546 size_t size = le32_to_cpu(s->here->e_value_size); in ext3_xattr_set_entry()
558 if (i->value && s->not_found) { in ext3_xattr_set_entry()
561 size_t rest = (void *)last - (void *)s->here + sizeof(__u32); in ext3_xattr_set_entry()
562 memmove((void *)s->here + size, s->here, rest); in ext3_xattr_set_entry()
[all …]
/fs/dlm/
Ddebug_fs.c50 static int print_format1_lock(struct seq_file *s, struct dlm_lkb *lkb, in print_format1_lock() argument
53 seq_printf(s, "%08x %s", lkb->lkb_id, print_lockmode(lkb->lkb_grmode)); in print_format1_lock()
57 seq_printf(s, " (%s)", print_lockmode(lkb->lkb_rqmode)); in print_format1_lock()
61 seq_printf(s, " Remote: %3d %08x", lkb->lkb_nodeid, in print_format1_lock()
64 seq_printf(s, " Master: %08x", lkb->lkb_remid); in print_format1_lock()
68 seq_printf(s, " wait_type: %d", lkb->lkb_wait_type); in print_format1_lock()
70 return seq_printf(s, "\n"); in print_format1_lock()
73 static int print_format1(struct dlm_rsb *res, struct seq_file *s) in print_format1() argument
81 rv = seq_printf(s, "\nResource %p Name (len=%d) \"", in print_format1()
88 seq_printf(s, "%c", res->res_name[i]); in print_format1()
[all …]
/fs/ext4/
Dxattr.c539 ext4_xattr_set_entry(struct ext4_xattr_info *i, struct ext4_xattr_search *s) in ext4_xattr_set_entry() argument
542 size_t free, min_offs = s->end - s->base, name_len = strlen(i->name); in ext4_xattr_set_entry()
545 last = s->first; in ext4_xattr_set_entry()
553 free = min_offs - ((void *)last - s->base) - sizeof(__u32); in ext4_xattr_set_entry()
554 if (!s->not_found) { in ext4_xattr_set_entry()
555 if (!s->here->e_value_block && s->here->e_value_size) { in ext4_xattr_set_entry()
556 size_t size = le32_to_cpu(s->here->e_value_size); in ext4_xattr_set_entry()
568 if (i->value && s->not_found) { in ext4_xattr_set_entry()
571 size_t rest = (void *)last - (void *)s->here + sizeof(__u32); in ext4_xattr_set_entry()
572 memmove((void *)s->here + size, s->here, rest); in ext4_xattr_set_entry()
[all …]
/fs/bfs/
Dinode.c33 void dump_imap(const char *prefix, struct super_block *s);
159 struct super_block *s = inode->i_sb; in bfs_delete_inode() local
160 struct bfs_sb_info *info = BFS_SB(s); in bfs_delete_inode()
178 bh = sb_bread(s, block); in bfs_delete_inode()
196 dump_imap("delete_inode", s); in bfs_delete_inode()
212 static void bfs_put_super(struct super_block *s) in bfs_put_super() argument
214 struct bfs_sb_info *info = BFS_SB(s); in bfs_put_super()
223 s->s_fs_info = NULL; in bfs_put_super()
228 struct super_block *s = dentry->d_sb; in bfs_statfs() local
229 struct bfs_sb_info *info = BFS_SB(s); in bfs_statfs()
[all …]
/fs/jffs2/
Dsummary.c61 static int jffs2_sum_add_mem(struct jffs2_summary *s, union jffs2_sum_mem *item) in jffs2_sum_add_mem() argument
63 if (!s->sum_list_head) in jffs2_sum_add_mem()
64 s->sum_list_head = (union jffs2_sum_mem *) item; in jffs2_sum_add_mem()
65 if (s->sum_list_tail) in jffs2_sum_add_mem()
66 s->sum_list_tail->u.next = (union jffs2_sum_mem *) item; in jffs2_sum_add_mem()
67 s->sum_list_tail = (union jffs2_sum_mem *) item; in jffs2_sum_add_mem()
71 s->sum_size += JFFS2_SUMMARY_INODE_SIZE; in jffs2_sum_add_mem()
72 s->sum_num++; in jffs2_sum_add_mem()
77 s->sum_size += JFFS2_SUMMARY_DIRENT_SIZE(item->d.nsize); in jffs2_sum_add_mem()
78 s->sum_num++; in jffs2_sum_add_mem()
[all …]
/fs/devpts/
Dinode.c279 devpts_fill_super(struct super_block *s, void *data, int silent) in devpts_fill_super() argument
283 s->s_blocksize = 1024; in devpts_fill_super()
284 s->s_blocksize_bits = 10; in devpts_fill_super()
285 s->s_magic = DEVPTS_SUPER_MAGIC; in devpts_fill_super()
286 s->s_op = &devpts_sops; in devpts_fill_super()
287 s->s_time_gran = 1; in devpts_fill_super()
289 s->s_fs_info = new_pts_fs_info(); in devpts_fill_super()
290 if (!s->s_fs_info) in devpts_fill_super()
293 inode = new_inode(s); in devpts_fill_super()
303 s->s_root = d_alloc_root(inode); in devpts_fill_super()
[all …]
/fs/jbd2/
Djournal.c676 static void *jbd2_history_skip_empty(struct jbd2_stats_proc_session *s, in jbd2_history_skip_empty() argument
680 if (ts == s->stats + s->max) in jbd2_history_skip_empty()
681 ts = s->stats; in jbd2_history_skip_empty()
682 if (!first && ts == s->stats + s->start) in jbd2_history_skip_empty()
686 if (ts == s->stats + s->max) in jbd2_history_skip_empty()
687 ts = s->stats; in jbd2_history_skip_empty()
688 if (ts == s->stats + s->start) in jbd2_history_skip_empty()
697 struct jbd2_stats_proc_session *s = seq->private; in jbd2_seq_history_start() local
703 ts = jbd2_history_skip_empty(s, s->stats + s->start, 1); in jbd2_seq_history_start()
708 ts = jbd2_history_skip_empty(s, ++ts, 0); in jbd2_seq_history_start()
[all …]
/fs/efs/
Dsuper.c21 static int efs_fill_super(struct super_block *s, void *d, int silent);
96 static void efs_put_super(struct super_block *s) in efs_put_super() argument
98 kfree(s->s_fs_info); in efs_put_super()
99 s->s_fs_info = NULL; in efs_put_super()
245 static int efs_fill_super(struct super_block *s, void *d, int silent) in efs_fill_super() argument
255 s->s_fs_info = sb; in efs_fill_super()
257 s->s_magic = EFS_SUPER_MAGIC; in efs_fill_super()
258 if (!sb_set_blocksize(s, EFS_BLOCKSIZE)) { in efs_fill_super()
265 bh = sb_bread(s, 0); in efs_fill_super()
284 bh = sb_bread(s, sb->fs_start + EFS_SUPER); in efs_fill_super()
[all …]
/fs/nls/
Dnls_base.c47 utf8_mbtowc(wchar_t *p, const __u8 *s, int n) in utf8_mbtowc() argument
54 c0 = *s; in utf8_mbtowc()
67 s++; in utf8_mbtowc()
68 c = (*s ^ 0x80) & 0xFF; in utf8_mbtowc()
77 utf8_mbstowcs(wchar_t *pwcs, const __u8 *s, int n) in utf8_mbstowcs() argument
84 ip = s; in utf8_mbstowcs()
106 utf8_wctomb(__u8 *s, wchar_t wc, int maxlen) in utf8_wctomb() argument
112 if (!s) in utf8_wctomb()
121 *s = t->cval | (l >> c); in utf8_wctomb()
124 s++; in utf8_wctomb()
[all …]
/fs/btrfs/
Dsuper.c393 static int btrfs_test_super(struct super_block *s, void *data) in btrfs_test_super() argument
396 struct btrfs_root *root = btrfs_sb(s); in btrfs_test_super()
412 struct super_block *s; in btrfs_get_sb() local
440 s = sget(fs_type, btrfs_test_super, set_anon_super, fs_devices); in btrfs_get_sb()
441 if (IS_ERR(s)) in btrfs_get_sb()
444 if (s->s_root) { in btrfs_get_sb()
445 if ((flags ^ s->s_flags) & MS_RDONLY) { in btrfs_get_sb()
446 up_write(&s->s_umount); in btrfs_get_sb()
447 deactivate_super(s); in btrfs_get_sb()
456 s->s_flags = flags; in btrfs_get_sb()
[all …]

1234567