/fs/jffs2/ |
D | readinode.c | 449 struct jffs2_inode_info *f, in jffs2_build_inode_fragtree() argument 515 ret = jffs2_add_full_dnode_to_inode(c, f, this->fn); in jffs2_build_inode_fragtree() 978 static int jffs2_get_inode_nodes(struct jffs2_sb_info *c, struct jffs2_inode_info *f, in jffs2_get_inode_nodes() argument 989 dbg_readinode("ino #%u\n", f->inocache->ino); in jffs2_get_inode_nodes() 999 valid_ref = jffs2_first_valid_node(f->inocache->nodes); in jffs2_get_inode_nodes() 1000 if (!valid_ref && f->inocache->ino != 1) in jffs2_get_inode_nodes() 1001 JFFS2_WARNING("Eep. No valid nodes for ino #%u.\n", f->inocache->ino); in jffs2_get_inode_nodes() 1127 f->highest_version = rii->highest_version; in jffs2_get_inode_nodes() 1130 f->inocache->ino, rii->highest_version, rii->latest_mctime, in jffs2_get_inode_nodes() 1143 struct jffs2_inode_info *f, in jffs2_do_read_inode_internal() argument [all …]
|
D | gc.c | 26 struct jffs2_inode_info *f, struct jffs2_full_dnode *fd); 28 struct jffs2_inode_info *f, struct jffs2_full_dirent *fd); 30 struct jffs2_inode_info *f, struct jffs2_full_dirent *fd); 32 struct jffs2_inode_info *f, struct jffs2_full_dnode *fn, 35 struct jffs2_inode_info *f, struct jffs2_full_dnode *fn, 38 struct jffs2_raw_node_ref *raw, struct jffs2_inode_info *f); 121 struct jffs2_inode_info *f; in jffs2_garbage_collect_pass() local 404 f = jffs2_gc_fetch_inode(c, inum, !nlink); in jffs2_garbage_collect_pass() 405 if (IS_ERR(f)) { in jffs2_garbage_collect_pass() 406 ret = PTR_ERR(f); in jffs2_garbage_collect_pass() [all …]
|
D | os-linux.h | 23 #define OFNI_EDONI_2SFFJ(f) (&(f)->vfs_inode) argument 28 #define JFFS2_F_I_SIZE(f) (OFNI_EDONI_2SFFJ(f)->i_size) argument 29 #define JFFS2_F_I_MODE(f) (OFNI_EDONI_2SFFJ(f)->i_mode) argument 30 #define JFFS2_F_I_UID(f) (OFNI_EDONI_2SFFJ(f)->i_uid) argument 31 #define JFFS2_F_I_GID(f) (OFNI_EDONI_2SFFJ(f)->i_gid) argument 32 #define JFFS2_F_I_RDEV(f) (OFNI_EDONI_2SFFJ(f)->i_rdev) argument 36 #define JFFS2_F_I_CTIME(f) (OFNI_EDONI_2SFFJ(f)->i_ctime.tv_sec) argument 37 #define JFFS2_F_I_MTIME(f) (OFNI_EDONI_2SFFJ(f)->i_mtime.tv_sec) argument 38 #define JFFS2_F_I_ATIME(f) (OFNI_EDONI_2SFFJ(f)->i_atime.tv_sec) argument 50 static inline void jffs2_init_inode_info(struct jffs2_inode_info *f) in jffs2_init_inode_info() argument [all …]
|
D | fs.c | 30 struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode); in jffs2_do_setattr() local 54 mutex_lock(&f->sem); in jffs2_do_setattr() 55 mdatalen = f->metadata->size; in jffs2_do_setattr() 56 mdata = kmalloc(f->metadata->size, GFP_USER); in jffs2_do_setattr() 58 mutex_unlock(&f->sem); in jffs2_do_setattr() 61 ret = jffs2_read_dnode(c, f, f->metadata, mdata, 0, mdatalen); in jffs2_do_setattr() 63 mutex_unlock(&f->sem); in jffs2_do_setattr() 67 mutex_unlock(&f->sem); in jffs2_do_setattr() 86 mutex_lock(&f->sem); in jffs2_do_setattr() 95 ri->version = cpu_to_je32(++f->highest_version); in jffs2_do_setattr() [all …]
|
D | write.c | 22 int jffs2_do_new_inode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, in jffs2_do_new_inode() argument 34 f->inocache = ic; in jffs2_do_new_inode() 35 f->inocache->pino_nlink = 1; /* Will be overwritten shortly for directories */ in jffs2_do_new_inode() 36 f->inocache->nodes = (struct jffs2_raw_node_ref *)f->inocache; in jffs2_do_new_inode() 37 f->inocache->state = INO_STATE_PRESENT; in jffs2_do_new_inode() 39 jffs2_add_ino_cache(c, f->inocache); in jffs2_do_new_inode() 40 D1(printk(KERN_DEBUG "jffs2_do_new_inode(): Assigned ino# %d\n", f->inocache->ino)); in jffs2_do_new_inode() 41 ri->ino = cpu_to_je32(f->inocache->ino); in jffs2_do_new_inode() 49 f->highest_version = 1; in jffs2_do_new_inode() 50 ri->version = cpu_to_je32(f->highest_version); in jffs2_do_new_inode() [all …]
|
D | dir.c | 120 struct jffs2_inode_info *f; in jffs2_readdir() local 128 f = JFFS2_INODE_INFO(inode); in jffs2_readdir() 148 mutex_lock(&f->sem); in jffs2_readdir() 149 for (fd = f->dents; fd; fd = fd->next) { in jffs2_readdir() 168 mutex_unlock(&f->sem); in jffs2_readdir() 181 struct jffs2_inode_info *f, *dir_f; in jffs2_create() local 207 f = JFFS2_INODE_INFO(inode); in jffs2_create() 215 mutex_unlock(&f->sem); in jffs2_create() 217 ret = jffs2_do_create(c, dir_f, f, ri, in jffs2_create() 229 f->inocache->pino_nlink, inode->i_mapping->nrpages)); in jffs2_create() [all …]
|
D | debug.h | 196 __jffs2_dbg_fragtree_paranoia_check(struct jffs2_inode_info *f); 198 __jffs2_dbg_fragtree_paranoia_check_nolock(struct jffs2_inode_info *f); 225 __jffs2_dbg_dump_fragtree(struct jffs2_inode_info *f); 227 __jffs2_dbg_dump_fragtree_nolock(struct jffs2_inode_info *f); 234 #define jffs2_dbg_fragtree_paranoia_check(f) \ argument 235 __jffs2_dbg_fragtree_paranoia_check(f) 236 #define jffs2_dbg_fragtree_paranoia_check_nolock(f) \ argument 237 __jffs2_dbg_fragtree_paranoia_check_nolock(f) 245 #define jffs2_dbg_fragtree_paranoia_check(f) argument 246 #define jffs2_dbg_fragtree_paranoia_check_nolock(f) argument [all …]
|
D | acl.c | 181 struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode); in jffs2_get_acl() local 188 acl = jffs2_iget_acl(inode, &f->i_acl_access); in jffs2_get_acl() 194 acl = jffs2_iget_acl(inode, &f->i_acl_default); in jffs2_get_acl() 221 jffs2_iset_acl(inode, &f->i_acl_access, acl); in jffs2_get_acl() 224 jffs2_iset_acl(inode, &f->i_acl_default, acl); in jffs2_get_acl() 252 struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode); in jffs2_set_acl() local 291 jffs2_iset_acl(inode, &f->i_acl_access, acl); in jffs2_set_acl() 294 jffs2_iset_acl(inode, &f->i_acl_default, acl); in jffs2_set_acl() 324 struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode); in jffs2_init_acl_pre() local 328 f->i_acl_default = NULL; in jffs2_init_acl_pre() [all …]
|
D | file.c | 76 struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode); in jffs2_do_readpage_nolock() local 88 ret = jffs2_read_inode_range(c, f, pg_buf, pg->index << PAGE_CACHE_SHIFT, PAGE_CACHE_SIZE); in jffs2_do_readpage_nolock() 115 struct jffs2_inode_info *f = JFFS2_INODE_INFO(pg->mapping->host); in jffs2_readpage() local 118 mutex_lock(&f->sem); in jffs2_readpage() 120 mutex_unlock(&f->sem); in jffs2_readpage() 130 struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode); in jffs2_write_begin() local 157 mutex_lock(&f->sem); in jffs2_write_begin() 165 ri.ino = cpu_to_je32(f->inocache->ino); in jffs2_write_begin() 166 ri.version = cpu_to_je32(++f->highest_version); in jffs2_write_begin() 179 fn = jffs2_write_dnode(c, f, &ri, NULL, 0, ALLOC_NORMAL); in jffs2_write_begin() [all …]
|
D | super.c | 35 struct jffs2_inode_info *f; in jffs2_alloc_inode() local 37 f = kmem_cache_alloc(jffs2_inode_cachep, GFP_KERNEL); in jffs2_alloc_inode() 38 if (!f) in jffs2_alloc_inode() 40 return &f->vfs_inode; in jffs2_alloc_inode() 50 struct jffs2_inode_info *f = foo; in jffs2_i_init_once() local 52 mutex_init(&f->sem); in jffs2_i_init_once() 53 inode_init_once(&f->vfs_inode); in jffs2_i_init_once() 91 struct jffs2_inode_info *f; in jffs2_get_parent() local 96 f = JFFS2_INODE_INFO(child->d_inode); in jffs2_get_parent() 98 pino = f->inocache->pino_nlink; in jffs2_get_parent() [all …]
|
/fs/smbfs/ |
D | smb_debug.h | 14 # define PARANOIA(f, a...) printk(KERN_NOTICE "%s: " f, __func__ , ## a) argument 16 # define PARANOIA(f, a...) do { ; } while(0) argument 21 # define VERBOSE(f, a...) printk(KERN_DEBUG "%s: " f, __func__ , ## a) argument 23 # define VERBOSE(f, a...) do { ; } while(0) argument 31 #define DEBUG1(f, a...) printk(KERN_DEBUG "%s: " f, __func__ , ## a) argument 33 #define DEBUG1(f, a...) do { ; } while(0) argument
|
/fs/ |
D | file_table.c | 42 struct file *f = container_of(head, struct file, f_u.fu_rcuhead); in file_free_rcu() local 44 put_cred(f->f_cred); in file_free_rcu() 45 kmem_cache_free(filp_cachep, f); in file_free_rcu() 48 static inline void file_free(struct file *f) in file_free() argument 51 file_check_state(f); in file_free() 52 call_rcu(&f->f_u.fu_rcuhead, file_free_rcu); in file_free() 104 struct file * f; in get_empty_filp() local 118 f = kmem_cache_zalloc(filp_cachep, GFP_KERNEL); in get_empty_filp() 119 if (f == NULL) in get_empty_filp() 123 if (security_file_alloc(f)) in get_empty_filp() [all …]
|
D | xattr.c | 295 struct file *f; in SYSCALL_DEFINE5() local 299 f = fget(fd); in SYSCALL_DEFINE5() 300 if (!f) in SYSCALL_DEFINE5() 302 dentry = f->f_path.dentry; in SYSCALL_DEFINE5() 304 error = mnt_want_write(f->f_path.mnt); in SYSCALL_DEFINE5() 307 mnt_drop_write(f->f_path.mnt); in SYSCALL_DEFINE5() 309 fput(f); in SYSCALL_DEFINE5() 382 struct file *f; in SYSCALL_DEFINE4() local 385 f = fget(fd); in SYSCALL_DEFINE4() 386 if (!f) in SYSCALL_DEFINE4() [all …]
|
D | open.c | 806 int flags, struct file *f, in __dentry_open() argument 813 f->f_flags = flags; in __dentry_open() 814 f->f_mode = (__force fmode_t)((flags+1) & O_ACCMODE) | FMODE_LSEEK | in __dentry_open() 817 if (f->f_mode & FMODE_WRITE) { in __dentry_open() 822 file_take_write(f); in __dentry_open() 825 f->f_mapping = inode->i_mapping; in __dentry_open() 826 f->f_path.dentry = dentry; in __dentry_open() 827 f->f_path.mnt = mnt; in __dentry_open() 828 f->f_pos = 0; in __dentry_open() 829 f->f_op = fops_get(inode->i_fop); in __dentry_open() [all …]
|
D | pipe.c | 919 struct file *f; in create_write_pipe() local 943 f = alloc_file(pipe_mnt, dentry, FMODE_WRITE, &write_pipefifo_fops); in create_write_pipe() 944 if (!f) in create_write_pipe() 946 f->f_mapping = inode->i_mapping; in create_write_pipe() 948 f->f_flags = O_WRONLY | (flags & O_NONBLOCK); in create_write_pipe() 949 f->f_version = 0; in create_write_pipe() 951 return f; in create_write_pipe() 965 void free_write_pipe(struct file *f) in free_write_pipe() argument 967 free_pipe_info(f->f_dentry->d_inode); in free_write_pipe() 968 path_put(&f->f_path); in free_write_pipe() [all …]
|
/fs/proc/ |
D | devices.c | 6 static int devinfo_show(struct seq_file *f, void *v) in devinfo_show() argument 12 seq_printf(f, "Character devices:\n"); in devinfo_show() 13 chrdev_show(f, i); in devinfo_show() 19 seq_printf(f, "\nBlock devices:\n"); in devinfo_show() 20 blkdev_show(f, i); in devinfo_show() 26 static void *devinfo_start(struct seq_file *f, loff_t *pos) in devinfo_start() argument 33 static void *devinfo_next(struct seq_file *f, void *v, loff_t *pos) in devinfo_next() argument 41 static void devinfo_stop(struct seq_file *f, void *v) in devinfo_stop() argument
|
D | proc_net.c | 34 int seq_open_net(struct inode *ino, struct file *f, in seq_open_net() argument 46 p = __seq_open_private(f, ops, size); in seq_open_net() 82 int seq_release_net(struct inode *ino, struct file *f) in seq_release_net() argument 86 seq = f->private_data; in seq_release_net() 89 seq_release_private(ino, f); in seq_release_net() 94 int single_release_net(struct inode *ino, struct file *f) in single_release_net() argument 96 struct seq_file *seq = f->private_data; in single_release_net() 98 return single_release(ino, f); in single_release_net()
|
/fs/ntfs/ |
D | debug.h | 43 #define ntfs_debug(f, a...) \ argument 44 __ntfs_debug(__FILE__, __LINE__, __func__, f, ##a) 50 #define ntfs_debug(f, a...) do {} while (0) argument 57 #define ntfs_warning(sb, f, a...) __ntfs_warning(__func__, sb, f, ##a) argument 61 #define ntfs_error(sb, f, a...) __ntfs_error(__func__, sb, f, ##a) argument
|
/fs/lockd/ |
D | svcsubs.c | 35 static inline void nlm_debug_print_fh(char *msg, struct nfs_fh *f) in nlm_debug_print_fh() argument 37 u32 *fhp = (u32*)f->data; in nlm_debug_print_fh() 53 static inline void nlm_debug_print_fh(char *msg, struct nfs_fh *f) in nlm_debug_print_fh() argument 64 static inline unsigned int file_hash(struct nfs_fh *f) in file_hash() argument 69 tmp += f->data[i]; in file_hash() 84 struct nfs_fh *f) in nlm_lookup_file() argument 91 nlm_debug_print_fh("nlm_lookup_file", f); in nlm_lookup_file() 93 hash = file_hash(f); in nlm_lookup_file() 99 if (!nfs_compare_fh(&file->f_handle, f)) in nlm_lookup_file() 102 nlm_debug_print_fh("creating file for", f); in nlm_lookup_file() [all …]
|
D | xdr4.c | 84 nlm4_decode_fh(__be32 *p, struct nfs_fh *f) in nlm4_decode_fh() argument 86 memset(f->data, 0, sizeof(f->data)); in nlm4_decode_fh() 87 f->size = ntohl(*p++); in nlm4_decode_fh() 88 if (f->size > NFS_MAXFHSIZE) { in nlm4_decode_fh() 90 f->size, NFS_MAXFHSIZE); in nlm4_decode_fh() 93 memcpy(f->data, p, f->size); in nlm4_decode_fh() 94 return p + XDR_QUADLEN(f->size); in nlm4_decode_fh() 98 nlm4_encode_fh(__be32 *p, struct nfs_fh *f) in nlm4_encode_fh() argument 100 *p++ = htonl(f->size); in nlm4_encode_fh() 101 if (f->size) p[XDR_QUADLEN(f->size)-1] = 0; /* don't leak anything */ in nlm4_encode_fh() [all …]
|
/fs/xfs/linux-2.6/ |
D | xfs_linux.h | 122 #define current_test_flags(f) (current->flags & (f)) argument 123 #define current_set_flags_nested(sp, f) \ argument 124 (*(sp) = current->flags, current->flags |= (f)) 125 #define current_clear_flags_nested(sp, f) \ argument 126 (*(sp) = current->flags, current->flags &= ~(f)) 127 #define current_restore_flags_nested(sp, f) \ argument 128 (current->flags = ((current->flags & ~(f)) | (*(sp) & (f))))
|
/fs/nfsd/ |
D | auth.c | 17 struct exp_flavor_info *f; in nfsexp_flags() local 20 for (f = exp->ex_flavors; f < end; f++) { in nfsexp_flags() 21 if (f->pseudoflavor == rqstp->rq_flavor) in nfsexp_flags() 22 return f->flags; in nfsexp_flags()
|
D | lockd.c | 33 nlm_fopen(struct svc_rqst *rqstp, struct nfs_fh *f, struct file **filp) in nlm_fopen() argument 40 fh.fh_handle.fh_size = f->size; in nlm_fopen() 41 memcpy((char*)&fh.fh_handle.fh_base, f->data, f->size); in nlm_fopen()
|
/fs/partitions/ |
D | ldm.c | 44 #define ldm_debug(f, a...) _ldm_printk (KERN_DEBUG, __func__, f, ##a) argument 47 #define ldm_crit(f, a...) _ldm_printk (KERN_CRIT, __func__, f, ##a) argument 48 #define ldm_error(f, a...) _ldm_printk (KERN_ERR, __func__, f, ##a) argument 49 #define ldm_info(f, a...) _ldm_printk (KERN_INFO, __func__, f, ##a) argument 1291 struct frag *f; in ldm_frag_add() local 1306 f = list_entry (item, struct frag, list); in ldm_frag_add() 1307 if (f->group == group) in ldm_frag_add() 1311 f = kmalloc (sizeof (*f) + size*num, GFP_KERNEL); in ldm_frag_add() 1312 if (!f) { in ldm_frag_add() 1317 f->group = group; in ldm_frag_add() [all …]
|
/fs/openpromfs/ |
D | inode.c | 65 static int property_show(struct seq_file *f, void *v) in property_show() argument 67 struct property *prop = f->private; in property_show() 78 seq_printf(f, "%s", (char *) pval); in property_show() 85 seq_printf(f, " + "); in property_show() 92 seq_printf(f, "%02x.", in property_show() 95 seq_printf(f, "%02x", in property_show() 104 seq_printf(f, "%08x.", in property_show() 107 seq_printf(f, "%08x", in property_show() 113 seq_printf(f, "\n"); in property_show() 118 static void *property_start(struct seq_file *f, loff_t *pos) in property_start() argument [all …]
|