Lines Matching defs:inode

4  * Directory inode and file operations
24 * @param inode inode
28 static int sf_dir_open(struct inode *inode, struct file *file)
32 struct sf_glob_info *sf_g = GET_GLOB_INFO(inode->i_sb);
34 struct sf_inode_info *sf_i = GET_INODE_INFO(inode);
99 * @param inode inode
103 static int sf_dir_release(struct inode *inode, struct file *file)
124 struct inode *inode;
129 inode = GET_F_DENTRY(dir)->d_inode;
130 sf_i = GET_INODE_INFO(inode);
131 sf_g = GET_GLOB_INFO(inode->i_sb);
221 * ino : inode number of the entry (i fake those)
231 * b. failure to compute fake inode number
328 * job of this function is to allocate inode and link it to dentry.
331 * inode is added to [dentry] and vfs should proceed trying to create
335 static struct dentry *sf_lookup(struct inode *parent, struct dentry *dentry
347 struct inode *inode;
367 /* -ENOENT: add NULL inode to dentry so it later can be
370 inode = NULL;
380 LogRelFunc(("could not allocate memory for new inode info\n"));
389 inode = iget_locked(parent->i_sb, ino);
391 inode = iget(parent->i_sb, ino);
393 if (!inode)
400 SET_INODE_INFO(inode, sf_new_i);
401 sf_init_inode(sf_g, inode, &fsinfo);
405 unlock_new_inode(inode);
416 d_add(dentry, inode);
430 * This should allocate memory for sf_inode_info, compute a unique inode
431 * number, get an inode from vfs, initialize inode info, instantiate
434 * @param parent inode entry of the directory
441 static int sf_instantiate(struct inode *parent, struct dentry *dentry,
446 struct inode *inode;
456 LogRelFunc(("could not allocate inode info.\n"));
463 inode = iget_locked(parent->i_sb, ino);
465 inode = iget(parent->i_sb, ino);
467 if (!inode)
474 sf_init_inode(sf_g, inode, info);
476 SET_INODE_INFO(inode, sf_new_i);
480 d_instantiate(dentry, inode);
483 unlock_new_inode(inode);
501 * @param parent inode of the directory
507 static int sf_create_aux(struct inode *parent, struct dentry *dentry,
601 * @param parent inode of the directory
607 static int sf_create(struct inode *parent, struct dentry *dentry, umode_t mode, bool excl)
609 static int sf_create(struct inode *parent, struct dentry *dentry, umode_t mode, struct nameidata *nd)
611 static int sf_create(struct inode *parent, struct dentry *dentry, int mode, struct nameidata *nd)
613 static int sf_create(struct inode *parent, struct dentry *dentry, int mode)
623 * @param parent inode of the directory
629 static int sf_mkdir(struct inode *parent, struct dentry *dentry, umode_t mode)
631 static int sf_mkdir(struct inode *parent, struct dentry *dentry, int mode)
641 * @param parent inode of the directory
646 static int sf_unlink_aux(struct inode *parent, struct dentry *dentry, int fDirectory)
692 * @param parent inode of the directory
696 static int sf_unlink(struct inode *parent, struct dentry *dentry)
705 * @param parent inode of the directory
709 static int sf_rmdir(struct inode *parent, struct dentry *dentry)
718 * @param old_parent inode of the old parent directory
720 * @param new_parent inode of the new parent directory
724 static int sf_rename(struct inode *old_parent, struct dentry *old_dentry,
725 struct inode *new_parent, struct dentry *new_dentry)
741 /* As we save the relative path inside the inode structure, we need to change
767 /* Set the new relative path in the inode. */
782 static int sf_symlink(struct inode *parent, struct dentry *dentry, const char *symname)