Lines Matching refs:host
81 static int create_xattr(struct ubifs_info *c, struct inode *host, in create_xattr() argument
86 struct ubifs_inode *ui, *host_ui = ubifs_inode(host); in create_xattr()
93 host->i_ino, host_ui->xattr_cnt); in create_xattr()
105 host->i_ino, names_len, XATTR_LIST_MAX); in create_xattr()
113 inode = ubifs_new_inode(c, host, S_IFREG | S_IRWXUGO); in create_xattr()
137 host->i_ctime = current_time(host); in create_xattr()
152 err = ubifs_jnl_update(c, host, nm, inode, 0, 1); in create_xattr()
155 ubifs_set_inode_flags(host); in create_xattr()
190 static int change_xattr(struct ubifs_info *c, struct inode *host, in change_xattr() argument
194 struct ubifs_inode *host_ui = ubifs_inode(host); in change_xattr()
220 host->i_ctime = current_time(host); in change_xattr()
230 err = ubifs_jnl_change_xattr(c, inode, host); in change_xattr()
265 int ubifs_xattr_set(struct inode *host, const char *name, const void *value, in ubifs_xattr_set() argument
269 struct ubifs_info *c = host->i_sb->s_fs_info; in ubifs_xattr_set()
276 ubifs_assert(c, inode_is_locked(host)); in ubifs_xattr_set()
292 xent_key_init(c, &key, host->i_ino, &nm); in ubifs_xattr_set()
302 err = create_xattr(c, host, &nm, value, size); in ubifs_xattr_set()
318 err = change_xattr(c, host, inode, value, size); in ubifs_xattr_set()
326 ssize_t ubifs_xattr_get(struct inode *host, const char *name, void *buf, in ubifs_xattr_get() argument
330 struct ubifs_info *c = host->i_sb->s_fs_info; in ubifs_xattr_get()
344 xent_key_init(c, &key, host->i_ino, &nm); in ubifs_xattr_get()
360 ubifs_assert(c, ubifs_inode(host)->xattr_size > ui->data_len); in ubifs_xattr_get()
399 struct inode *host = d_inode(dentry); in ubifs_listxattr() local
400 struct ubifs_info *c = host->i_sb->s_fs_info; in ubifs_listxattr()
401 struct ubifs_inode *host_ui = ubifs_inode(host); in ubifs_listxattr()
406 dbg_gen("ino %lu ('%pd'), buffer size %zd", host->i_ino, in ubifs_listxattr()
420 lowest_xent_key(c, &key, host->i_ino); in ubifs_listxattr()
451 static int remove_xattr(struct ubifs_info *c, struct inode *host, in remove_xattr() argument
455 struct ubifs_inode *host_ui = ubifs_inode(host); in remove_xattr()
467 host->i_ctime = current_time(host); in remove_xattr()
473 err = ubifs_jnl_delete_xattr(c, host, inode, nm); in remove_xattr()
492 int ubifs_purge_xattrs(struct inode *host) in ubifs_purge_xattrs() argument
495 struct ubifs_info *c = host->i_sb->s_fs_info; in ubifs_purge_xattrs()
501 if (ubifs_inode(host)->xattr_cnt < ubifs_xattr_max_cnt(c)) in ubifs_purge_xattrs()
505 host->i_ino); in ubifs_purge_xattrs()
507 lowest_xent_key(c, &key, host->i_ino); in ubifs_purge_xattrs()
531 err = remove_xattr(c, host, xino, &nm); in ubifs_purge_xattrs()
577 static int ubifs_xattr_remove(struct inode *host, const char *name) in ubifs_xattr_remove() argument
580 struct ubifs_info *c = host->i_sb->s_fs_info; in ubifs_xattr_remove()
586 ubifs_assert(c, inode_is_locked(host)); in ubifs_xattr_remove()
595 xent_key_init(c, &key, host->i_ino, &nm); in ubifs_xattr_remove()
611 err = remove_xattr(c, host, inode, &nm); in ubifs_xattr_remove()