Home
last modified time | relevance | path

Searched refs:fn (Results 1 – 25 of 36) sorted by relevance

12

/fs/jffs2/
Dreadinode.c33 struct jffs2_raw_node_ref *ref = tn->fn->raw; in check_node_data()
154 BUG_ON(ref_obsolete(tn->fn->raw)); in check_tn_node()
157 if (ref_flags(tn->fn->raw) != REF_UNCHECKED) in check_tn_node()
161 tn->fn->ofs, tn->fn->ofs + tn->fn->size, ref_offset(tn->fn->raw)); in check_tn_node()
169 jffs2_mark_node_obsolete(c, tn->fn->raw); in check_tn_node()
187 if (tn->fn->ofs < offset) in jffs2_lookup_tn()
189 else if (tn->fn->ofs >= offset) in jffs2_lookup_tn()
201 jffs2_mark_node_obsolete(c, tn->fn->raw); in jffs2_kill_tn()
202 jffs2_free_full_dnode(tn->fn); in jffs2_kill_tn()
222 uint32_t fn_end = tn->fn->ofs + tn->fn->size; in jffs2_add_tn_to_tree()
[all …]
Dwrite.c64 struct jffs2_full_dnode *fn; in jffs2_write_dnode() local
88 fn = jffs2_alloc_full_dnode(); in jffs2_write_dnode()
89 if (!fn) in jffs2_write_dnode()
167 jffs2_free_full_dnode(fn); in jffs2_write_dnode()
182 fn->raw = jffs2_add_physical_node_ref(c, flash_ofs, PAD(sizeof(*ri)+datalen), f->inocache); in jffs2_write_dnode()
183 if (IS_ERR(fn->raw)) { in jffs2_write_dnode()
184 void *hold_err = fn->raw; in jffs2_write_dnode()
186 jffs2_free_full_dnode(fn); in jffs2_write_dnode()
189 fn->ofs = je32_to_cpu(ri->offset); in jffs2_write_dnode()
190 fn->size = je32_to_cpu(ri->dsize); in jffs2_write_dnode()
[all …]
Dgc.c35 struct jffs2_inode_info *f, struct jffs2_full_dnode *fn,
38 struct jffs2_inode_info *f, struct jffs2_full_dnode *fn,
501 struct jffs2_full_dnode *fn = NULL; in jffs2_garbage_collect_live() local
528 fn = f->metadata; in jffs2_garbage_collect_live()
529 ret = jffs2_garbage_collect_metadata(c, jeb, f, fn); in jffs2_garbage_collect_live()
536 fn = frag->node; in jffs2_garbage_collect_live()
544 if (fn) { in jffs2_garbage_collect_live()
557 ret = jffs2_garbage_collect_hole(c, jeb, f, fn, start, end); in jffs2_garbage_collect_live()
560 ret = jffs2_garbage_collect_dnode(c, jeb, f, fn, start, end); in jffs2_garbage_collect_live()
759 struct jffs2_inode_info *f, struct jffs2_full_dnode *fn) in jffs2_garbage_collect_metadata() argument
[all …]
Dnodelist.c149 static struct jffs2_node_frag * new_fragment(struct jffs2_full_dnode *fn, uint32_t ofs, uint32_t si… in new_fragment() argument
157 newfrag->node = fn; in new_fragment()
363 …ll_dnode_to_inode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, struct jffs2_full_dnode *fn) in jffs2_add_full_dnode_to_inode() argument
368 if (unlikely(!fn->size)) in jffs2_add_full_dnode_to_inode()
371 newfrag = new_fragment(fn, fn->ofs, fn->size); in jffs2_add_full_dnode_to_inode()
377 fn->ofs, fn->ofs+fn->size, ref_offset(fn->raw), newfrag); in jffs2_add_full_dnode_to_inode()
388 mark_ref_normal(fn->raw); in jffs2_add_full_dnode_to_inode()
398 mark_ref_normal(fn->raw); in jffs2_add_full_dnode_to_inode()
Ddir.c286 struct jffs2_full_dnode *fn; in jffs2_symlink() local
337 fn = jffs2_write_dnode(c, f, ri, target, targetlen, ALLOC_NORMAL); in jffs2_symlink()
341 if (IS_ERR(fn)) { in jffs2_symlink()
345 ret = PTR_ERR(fn); in jffs2_symlink()
366 f->metadata = fn; in jffs2_symlink()
448 struct jffs2_full_dnode *fn; in jffs2_mkdir() local
495 fn = jffs2_write_dnode(c, f, ri, NULL, 0, ALLOC_NORMAL); in jffs2_mkdir()
499 if (IS_ERR(fn)) { in jffs2_mkdir()
503 ret = PTR_ERR(fn); in jffs2_mkdir()
509 f->metadata = fn; in jffs2_mkdir()
[all …]
Dfile.c153 struct jffs2_full_dnode *fn; in jffs2_write_begin() local
186 fn = jffs2_write_dnode(c, f, &ri, NULL, 0, ALLOC_NORMAL); in jffs2_write_begin()
188 if (IS_ERR(fn)) { in jffs2_write_begin()
189 ret = PTR_ERR(fn); in jffs2_write_begin()
194 ret = jffs2_add_full_dnode_to_inode(c, f, fn); in jffs2_write_begin()
203 jffs2_mark_node_obsolete(c, fn->raw); in jffs2_write_begin()
204 jffs2_free_full_dnode(fn); in jffs2_write_begin()
Ddebug.c81 struct jffs2_full_dnode *fn = frag->node; in __jffs2_dbg_fragtree_paranoia_check_nolock() local
83 if (!fn || !fn->raw) in __jffs2_dbg_fragtree_paranoia_check_nolock()
86 if (ref_flags(fn->raw) == REF_PRISTINE) { in __jffs2_dbg_fragtree_paranoia_check_nolock()
87 if (fn->frags > 1) { in __jffs2_dbg_fragtree_paranoia_check_nolock()
89 ref_offset(fn->raw), fn->frags); in __jffs2_dbg_fragtree_paranoia_check_nolock()
101 ref_offset(fn->raw)); in __jffs2_dbg_fragtree_paranoia_check_nolock()
108 ref_offset(fn->raw), frag->ofs, frag->ofs+frag->size); in __jffs2_dbg_fragtree_paranoia_check_nolock()
Dnodelist.h231 struct jffs2_full_dnode *fn; member
373 …l_dnode_to_inode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, struct jffs2_full_dnode *fn);
/fs/ntfs/
Dnamei.c178 FILE_NAME_ATTR *fn; in ntfs_lookup() local
219 fn = (FILE_NAME_ATTR*)((u8*)ctx->attr + le16_to_cpu( in ntfs_lookup()
221 if ((u32)(fn->file_name_length * sizeof(ntfschar) + in ntfs_lookup()
224 } while (fn->file_name_type != FILE_NAME_WIN32); in ntfs_lookup()
228 (ntfschar*)&fn->file_name, fn->file_name_length, in ntfs_lookup()
293 FILE_NAME_ATTR *fn; in ntfs_get_parent() local
323 fn = (FILE_NAME_ATTR *)((u8 *)attr + in ntfs_get_parent()
325 if (unlikely((u8 *)fn + le32_to_cpu(attr->data.resident.value_length) > in ntfs_get_parent()
329 parent_ino = MREF_LE(fn->parent_directory); in ntfs_get_parent()
/fs/proc/
Dgeneric.c381 const char *fn; in __proc_create() local
384 if (xlate_proc_name(name, parent, &fn) != 0) in __proc_create()
386 qstr.name = fn; in __proc_create()
387 qstr.len = strlen(fn); in __proc_create()
392 if (qstr.len == 1 && fn[0] == '.') { in __proc_create()
396 if (qstr.len == 2 && fn[0] == '.' && fn[1] == '.') { in __proc_create()
423 memcpy(ent->name, fn, qstr.len + 1); in __proc_create()
658 const char *fn = name; in remove_proc_entry() local
662 if (__xlate_proc_name(name, &parent, &fn) != 0) { in remove_proc_entry()
666 len = strlen(fn); in remove_proc_entry()
[all …]
Dvmcore.c72 int register_oldmem_pfn_is_ram(int (*fn)(unsigned long pfn)) in register_oldmem_pfn_is_ram()
76 oldmem_pfn_is_ram = fn; in register_oldmem_pfn_is_ram()
90 int (*fn)(unsigned long pfn); in pfn_is_ram() local
99 fn = oldmem_pfn_is_ram; in pfn_is_ram()
100 if (fn) in pfn_is_ram()
101 ret = fn(pfn); in pfn_is_ram()
/fs/ocfs2/dlm/
Ddlmast.c211 dlm_astlockfunc_t *fn; in dlm_do_local_ast() local
218 fn = lock->ast; in dlm_do_local_ast()
222 (*fn)(lock->astdata); in dlm_do_local_ast()
253 dlm_bastlockfunc_t *fn = lock->bast; in dlm_do_local_bast() local
263 (*fn)(lock->astdata, blocked_type); in dlm_do_local_bast()
/fs/xfs/
Dxfs_fsmap.c172 int (*fn)(struct xfs_trans *tp, member
843 handlers[0].fn = xfs_getfsmap_datadev_rmapbt; in xfs_getfsmap()
845 handlers[0].fn = xfs_getfsmap_datadev_bnobt; in xfs_getfsmap()
848 handlers[1].fn = xfs_getfsmap_logdev; in xfs_getfsmap()
853 handlers[2].fn = xfs_getfsmap_rtdev_rtbitmap; in xfs_getfsmap()
901 if (!handlers[i].fn) in xfs_getfsmap()
927 error = handlers[i].fn(tp, dkeys, &info); in xfs_getfsmap()
Dxfs_rtalloc.h129 xfs_rtalloc_query_range_fn fn,
132 xfs_rtalloc_query_range_fn fn,
Dxfs_linux.h205 #define xfs_sort(a,n,s,fn) sort(a,n,s,fn,NULL) argument
/fs/xfs/libxfs/
Dxfs_alloc.h241 xfs_alloc_query_range_fn fn, void *priv);
242 int xfs_alloc_query_all(struct xfs_btree_cur *cur, xfs_alloc_query_range_fn fn,
Dxfs_btree.h479 xfs_btree_query_range_fn fn, void *priv);
480 int xfs_btree_query_all(struct xfs_btree_cur *cur, xfs_btree_query_range_fn fn,
486 xfs_btree_visit_blocks_fn fn, void *data);
Dxfs_rmap.h141 xfs_rmap_query_range_fn fn, void *priv);
142 int xfs_rmap_query_all(struct xfs_btree_cur *cur, xfs_rmap_query_range_fn fn,
Dxfs_rtbitmap.c1014 xfs_rtalloc_query_range_fn fn, in xfs_rtalloc_query_range() argument
1053 error = fn(tp, &rec, priv); in xfs_rtalloc_query_range()
1069 xfs_rtalloc_query_range_fn fn, in xfs_rtalloc_query_all() argument
1078 return xfs_rtalloc_query_range(tp, &keys[0], &keys[1], fn, priv); in xfs_rtalloc_query_all()
Dxfs_btree.c4258 xfs_btree_visit_blocks_fn fn, in xfs_btree_visit_block() argument
4271 error = fn(cur, level, data); in xfs_btree_visit_block()
4288 xfs_btree_visit_blocks_fn fn, in xfs_btree_visit_blocks() argument
4318 error = xfs_btree_visit_block(cur, level, fn, data); in xfs_btree_visit_blocks()
4548 xfs_btree_query_range_fn fn, in xfs_btree_simple_query_range() argument
4600 error = fn(cur, recp, priv); in xfs_btree_simple_query_range()
4639 xfs_btree_query_range_fn fn, in xfs_btree_overlapped_query_range() argument
4702 error = fn(cur, recp, priv); in xfs_btree_overlapped_query_range()
4781 xfs_btree_query_range_fn fn, in xfs_btree_query_range() argument
4803 &high_key, fn, priv); in xfs_btree_query_range()
[all …]
Dxfs_rmap.c2071 xfs_rmap_query_range_fn fn; member
2089 return query->fn(cur, &irec, query->priv); in xfs_rmap_query_range_helper()
2098 xfs_rmap_query_range_fn fn, in xfs_rmap_query_range() argument
2108 query.fn = fn; in xfs_rmap_query_range()
2117 xfs_rmap_query_range_fn fn, in xfs_rmap_query_all() argument
2123 query.fn = fn; in xfs_rmap_query_all()
Dxfs_alloc.c3063 xfs_alloc_query_range_fn fn; member
3079 return query->fn(cur, &irec, query->priv); in xfs_alloc_query_range_helper()
3088 xfs_alloc_query_range_fn fn, in xfs_alloc_query_range() argument
3099 query.fn = fn; in xfs_alloc_query_range()
3108 xfs_alloc_query_range_fn fn, in xfs_alloc_query_all() argument
3115 query.fn = fn; in xfs_alloc_query_all()
/fs/autofs/
Ddev-ioctl.c595 ioctl_fn fn = NULL; in _autofs_dev_ioctl() local
623 fn = lookup_dev_ioctl(cmd); in _autofs_dev_ioctl()
624 if (!fn) { in _autofs_dev_ioctl()
672 err = fn(fp, sbi, param); in _autofs_dev_ioctl()
/fs/f2fs/
Dnode.c303 struct fsync_node_entry *fn; in f2fs_add_fsync_node_entry() local
307 fn = f2fs_kmem_cache_alloc(fsync_node_entry_slab, GFP_NOFS); in f2fs_add_fsync_node_entry()
310 fn->page = page; in f2fs_add_fsync_node_entry()
311 INIT_LIST_HEAD(&fn->list); in f2fs_add_fsync_node_entry()
314 list_add_tail(&fn->list, &sbi->fsync_node_list); in f2fs_add_fsync_node_entry()
315 fn->seq_id = sbi->fsync_seg_id++; in f2fs_add_fsync_node_entry()
316 seq_id = fn->seq_id; in f2fs_add_fsync_node_entry()
325 struct fsync_node_entry *fn; in f2fs_del_fsync_node_entry() local
329 list_for_each_entry(fn, &sbi->fsync_node_list, list) { in f2fs_del_fsync_node_entry()
330 if (fn->page == page) { in f2fs_del_fsync_node_entry()
[all …]
/fs/ocfs2/
Daops.h29 int (*fn)( handle_t *handle,

12