Lines Matching refs:host
99 static int create_xattr(struct ubifs_info *c, struct inode *host, in create_xattr() argument
104 struct ubifs_inode *ui, *host_ui = ubifs_inode(host); in create_xattr()
125 inode = ubifs_new_inode(c, host, S_IFREG | S_IRWXUGO); in create_xattr()
150 host->i_ctime = ubifs_current_time(host); in create_xattr()
156 err = ubifs_jnl_update(c, host, nm, inode, 0, 1); in create_xattr()
191 static int change_xattr(struct ubifs_info *c, struct inode *host, in change_xattr() argument
195 struct ubifs_inode *host_ui = ubifs_inode(host); in change_xattr()
216 host->i_ctime = ubifs_current_time(host); in change_xattr()
226 err = ubifs_jnl_change_xattr(c, inode, host); in change_xattr()
300 struct inode *inode, *host = dentry->d_inode; in ubifs_setxattr() local
301 struct ubifs_info *c = host->i_sb->s_fs_info; in ubifs_setxattr()
308 host->i_ino, dentry->d_name.len, dentry->d_name.name, size); in ubifs_setxattr()
309 ubifs_assert(mutex_is_locked(&host->i_mutex)); in ubifs_setxattr()
326 xent_key_init(c, &key, host->i_ino, &nm); in ubifs_setxattr()
336 err = create_xattr(c, host, &nm, value, size); in ubifs_setxattr()
352 err = change_xattr(c, host, inode, value, size); in ubifs_setxattr()
363 struct inode *inode, *host = dentry->d_inode; in ubifs_getxattr() local
364 struct ubifs_info *c = host->i_sb->s_fs_info; in ubifs_getxattr()
372 host->i_ino, dentry->d_name.len, dentry->d_name.name, size); in ubifs_getxattr()
382 xent_key_init(c, &key, host->i_ino, &nm); in ubifs_getxattr()
398 ubifs_assert(ubifs_inode(host)->xattr_size > ui->data_len); in ubifs_getxattr()
423 struct inode *host = dentry->d_inode; in ubifs_listxattr() local
424 struct ubifs_info *c = host->i_sb->s_fs_info; in ubifs_listxattr()
425 struct ubifs_inode *host_ui = ubifs_inode(host); in ubifs_listxattr()
430 dbg_gen("ino %lu ('%.*s'), buffer size %zd", host->i_ino, in ubifs_listxattr()
444 lowest_xent_key(c, &key, host->i_ino); in ubifs_listxattr()
484 static int remove_xattr(struct ubifs_info *c, struct inode *host, in remove_xattr() argument
488 struct ubifs_inode *host_ui = ubifs_inode(host); in remove_xattr()
500 host->i_ctime = ubifs_current_time(host); in remove_xattr()
506 err = ubifs_jnl_delete_xattr(c, host, inode, nm); in remove_xattr()
526 struct inode *inode, *host = dentry->d_inode; in ubifs_removexattr() local
527 struct ubifs_info *c = host->i_sb->s_fs_info; in ubifs_removexattr()
534 host->i_ino, dentry->d_name.len, dentry->d_name.name); in ubifs_removexattr()
535 ubifs_assert(mutex_is_locked(&host->i_mutex)); in ubifs_removexattr()
545 xent_key_init(c, &key, host->i_ino, &nm); in ubifs_removexattr()
561 err = remove_xattr(c, host, inode, &nm); in ubifs_removexattr()