Home
last modified time | relevance | path

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

12

/fs/jffs2/
Dreadinode.c31 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.c63 struct jffs2_full_dnode *fn; in jffs2_write_dnode() local
85 fn = jffs2_alloc_full_dnode(); in jffs2_write_dnode()
86 if (!fn) in jffs2_write_dnode()
161 jffs2_free_full_dnode(fn); in jffs2_write_dnode()
176 fn->raw = jffs2_add_physical_node_ref(c, flash_ofs, PAD(sizeof(*ri)+datalen), f->inocache); in jffs2_write_dnode()
177 if (IS_ERR(fn->raw)) { in jffs2_write_dnode()
178 void *hold_err = fn->raw; in jffs2_write_dnode()
180 jffs2_free_full_dnode(fn); in jffs2_write_dnode()
183 fn->ofs = je32_to_cpu(ri->offset); in jffs2_write_dnode()
184 fn->size = je32_to_cpu(ri->dsize); in jffs2_write_dnode()
[all …]
Dgc.c32 struct jffs2_inode_info *f, struct jffs2_full_dnode *fn,
35 struct jffs2_inode_info *f, struct jffs2_full_dnode *fn,
449 struct jffs2_full_dnode *fn = NULL; in jffs2_garbage_collect_live() local
476 fn = f->metadata; in jffs2_garbage_collect_live()
477 ret = jffs2_garbage_collect_metadata(c, jeb, f, fn); in jffs2_garbage_collect_live()
484 fn = frag->node; in jffs2_garbage_collect_live()
492 if (fn) { in jffs2_garbage_collect_live()
505 ret = jffs2_garbage_collect_hole(c, jeb, f, fn, start, end); in jffs2_garbage_collect_live()
508 ret = jffs2_garbage_collect_dnode(c, jeb, f, fn, start, end); in jffs2_garbage_collect_live()
697 struct jffs2_inode_info *f, struct jffs2_full_dnode *fn) in jffs2_garbage_collect_metadata() argument
[all …]
Ddir.c304 struct jffs2_full_dnode *fn; in jffs2_symlink() local
355 fn = jffs2_write_dnode(c, f, ri, target, targetlen, ALLOC_NORMAL); in jffs2_symlink()
359 if (IS_ERR(fn)) { in jffs2_symlink()
364 return PTR_ERR(fn); in jffs2_symlink()
383 f->metadata = fn; in jffs2_symlink()
467 struct jffs2_full_dnode *fn; in jffs2_mkdir() local
514 fn = jffs2_write_dnode(c, f, ri, NULL, 0, ALLOC_NORMAL); in jffs2_mkdir()
518 if (IS_ERR(fn)) { in jffs2_mkdir()
523 return PTR_ERR(fn); in jffs2_mkdir()
528 f->metadata = fn; in jffs2_mkdir()
[all …]
Dfile.c146 struct jffs2_full_dnode *fn; in jffs2_write_begin() local
179 fn = jffs2_write_dnode(c, f, &ri, NULL, 0, ALLOC_NORMAL); in jffs2_write_begin()
181 if (IS_ERR(fn)) { in jffs2_write_begin()
182 ret = PTR_ERR(fn); in jffs2_write_begin()
187 ret = jffs2_add_full_dnode_to_inode(c, f, fn); in jffs2_write_begin()
195 jffs2_mark_node_obsolete(c, fn->raw); in jffs2_write_begin()
196 jffs2_free_full_dnode(fn); in jffs2_write_begin()
Dnodelist.c148 static struct jffs2_node_frag * new_fragment(struct jffs2_full_dnode *fn, uint32_t ofs, uint32_t si… in new_fragment() argument
156 newfrag->node = fn; in new_fragment()
362 …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
367 if (unlikely(!fn->size)) in jffs2_add_full_dnode_to_inode()
370 newfrag = new_fragment(fn, fn->ofs, fn->size); in jffs2_add_full_dnode_to_inode()
376 fn->ofs, fn->ofs+fn->size, ref_offset(fn->raw), newfrag); in jffs2_add_full_dnode_to_inode()
387 mark_ref_normal(fn->raw); in jffs2_add_full_dnode_to_inode()
397 mark_ref_normal(fn->raw); in jffs2_add_full_dnode_to_inode()
Ddebug.c77 struct jffs2_full_dnode *fn = frag->node; in __jffs2_dbg_fragtree_paranoia_check_nolock() local
79 if (!fn || !fn->raw) in __jffs2_dbg_fragtree_paranoia_check_nolock()
82 if (ref_flags(fn->raw) == REF_PRISTINE) { in __jffs2_dbg_fragtree_paranoia_check_nolock()
83 if (fn->frags > 1) { in __jffs2_dbg_fragtree_paranoia_check_nolock()
85 ref_offset(fn->raw), fn->frags); in __jffs2_dbg_fragtree_paranoia_check_nolock()
97 ref_offset(fn->raw)); in __jffs2_dbg_fragtree_paranoia_check_nolock()
104 ref_offset(fn->raw), frag->ofs, frag->ofs+frag->size); in __jffs2_dbg_fragtree_paranoia_check_nolock()
Dnodelist.h230 struct jffs2_full_dnode *fn; member
369 …l_dnode_to_inode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, struct jffs2_full_dnode *fn);
/fs/ntfs/
Dnamei.c191 FILE_NAME_ATTR *fn; in ntfs_lookup() local
232 fn = (FILE_NAME_ATTR*)((u8*)ctx->attr + le16_to_cpu( in ntfs_lookup()
234 if ((u32)(fn->file_name_length * sizeof(ntfschar) + in ntfs_lookup()
237 } while (fn->file_name_type != FILE_NAME_WIN32); in ntfs_lookup()
241 (ntfschar*)&fn->file_name, fn->file_name_length, in ntfs_lookup()
306 FILE_NAME_ATTR *fn; in ntfs_get_parent() local
336 fn = (FILE_NAME_ATTR *)((u8 *)attr + in ntfs_get_parent()
338 if (unlikely((u8 *)fn + le32_to_cpu(attr->data.resident.value_length) > in ntfs_get_parent()
342 parent_ino = MREF_LE(fn->parent_directory); in ntfs_get_parent()
/fs/
Dread_write.c138 loff_t (*fn)(struct file *, loff_t, int); in vfs_llseek() local
140 fn = no_llseek; in vfs_llseek()
142 fn = default_llseek; in vfs_llseek()
144 fn = file->f_op->llseek; in vfs_llseek()
146 return fn(file, offset, origin); in vfs_llseek()
487 unsigned long nr_segs, size_t len, loff_t *ppos, iov_fn_t fn) in do_sync_readv_writev() argument
498 ret = fn(&kiocb, iov, nr_segs, kiocb.ki_pos); in do_sync_readv_writev()
512 unsigned long nr_segs, loff_t *ppos, io_fn_t fn) in do_loop_readv_writev() argument
527 nr = fn(filp, base, len, ppos); in do_loop_readv_writev()
621 io_fn_t fn; in do_readv_writev() local
[all …]
Dread_write.h12 unsigned long nr_segs, size_t len, loff_t *ppos, iov_fn_t fn);
14 unsigned long nr_segs, loff_t *ppos, io_fn_t fn);
Dselect.c852 restart_block->fn = do_restart_poll; in do_restart_poll()
876 restart_block->fn = do_restart_poll; in SYSCALL_DEFINE3()
Dexec.c1206 int (*fn)(struct linux_binprm *, struct pt_regs *) = fmt->load_binary; in search_binary_handler() local
1207 if (!fn) in search_binary_handler()
1212 retval = fn(bprm, regs); in search_binary_handler()
Dcompat_ioctl.c2755 char *fn = "?"; in compat_ioctl_error() local
2761 fn = d_path(&filp->f_path, path, PAGE_SIZE); in compat_ioctl_error()
2762 if (IS_ERR(fn)) in compat_ioctl_error()
2763 fn = "?"; in compat_ioctl_error()
2774 (unsigned int)arg, fn); in compat_ioctl_error()
Dcompat.c1072 io_fn_t fn; in compat_do_readv_writev() local
1144 fn = file->f_op->read; in compat_do_readv_writev()
1147 fn = (io_fn_t)file->f_op->write; in compat_do_readv_writev()
1155 ret = do_loop_readv_writev(file, iov, nr_segs, pos, fn); in compat_do_readv_writev()
Ddquot.c487 int (*fn)(struct dquot *dquot, unsigned long priv), in dquot_scan_active()
506 ret = fn(dquot, priv); in dquot_scan_active()
/fs/proc/
Dgeneric.c565 const char *fn = name; in __proc_create() local
571 if (xlate_proc_name(name, parent, &fn) != 0) in __proc_create()
575 if (strchr(fn, '/')) in __proc_create()
578 len = strlen(fn); in __proc_create()
584 memcpy(((char *) ent) + sizeof(struct proc_dir_entry), fn, len + 1); in __proc_create()
744 const char *fn = name; in remove_proc_entry() local
747 if (xlate_proc_name(name, &parent, &fn) != 0) in remove_proc_entry()
749 len = strlen(fn); in remove_proc_entry()
753 if (proc_match(len, fn, *p)) { in remove_proc_entry()
/fs/ocfs2/dlm/
Ddlmast.c217 dlm_astlockfunc_t *fn; in dlm_do_local_ast() local
223 fn = lock->ast; in dlm_do_local_ast()
227 (*fn)(lock->astdata); in dlm_do_local_ast()
255 dlm_bastlockfunc_t *fn = lock->bast; in dlm_do_local_bast() local
260 (*fn)(lock->astdata, blocked_type); in dlm_do_local_bast()
/fs/autofs4/
Ddev-ioctl.c692 ioctl_fn fn; in lookup_dev_ioctl() member
724 return (idx >= ARRAY_SIZE(_ioctls)) ? NULL : _ioctls[idx].fn; in lookup_dev_ioctl()
734 ioctl_fn fn = NULL; in _autofs_dev_ioctl() local
762 fn = lookup_dev_ioctl(cmd); in _autofs_dev_ioctl()
763 if (!fn) { in _autofs_dev_ioctl()
811 err = fn(fp, sbi, param); in _autofs_dev_ioctl()
/fs/xfs/linux-2.6/
Dxfs_linux.h171 #define xfs_sort(a,n,s,fn) sort(a,n,s,fn,NULL) argument
/fs/ocfs2/
Daops.h44 int (*fn)( handle_t *handle,
Daops.c433 int (*fn)( handle_t *handle, in walk_page_buffers()
453 err = (*fn)(handle, bh); in walk_page_buffers()
/fs/ext2/
Dballoc.c210 const char *fn) in __rsv_window_dump() argument
221 printk("Block Allocation Reservation Windows Map (%s):\n", fn); in __rsv_window_dump()
/fs/yaffs2/
Dyaffs_guts.h856 int (*fn) (yaffs_Object *));
/fs/ext3/
Dballoc.c197 const char *fn) in __rsv_window_dump() argument
208 printk("Block Allocation Reservation Windows Map (%s):\n", fn); in __rsv_window_dump()

12