inode 452 arch/x86/ia32/ia32_aout.c struct inode *inode; inode 457 arch/x86/ia32/ia32_aout.c inode = file->f_path.dentry->d_inode; inode 467 arch/x86/ia32/ia32_aout.c i_size_read(inode) < inode 552 arch/x86/kernel/cpu/mcheck/mce_64.c return nonseekable_open(inode, file); inode 65 arch/x86/kernel/cpuid.c struct inode *inode = file->f_mapping->host; inode 67 arch/x86/kernel/cpuid.c mutex_lock(&inode->i_mutex); inode 80 arch/x86/kernel/cpuid.c mutex_unlock(&inode->i_mutex); inode 72 arch/x86/kernel/kdebugfs.c file->private_data = inode->i_private; inode 49 arch/x86/kernel/msr.c struct inode *inode = file->f_mapping->host; inode 51 arch/x86/kernel/msr.c mutex_lock(&inode->i_mutex); inode 64 arch/x86/kernel/msr.c mutex_unlock(&inode->i_mutex); inode 30 arch/x86/xen/debugfs.c return nonseekable_open(inode, file); inode 76 arch/x86/xen/debugfs.c struct inode *inode = file->f_path.dentry->d_inode; inode 77 arch/x86/xen/debugfs.c struct array_data *data = inode->i_private; inode 260 block/blktrace.c filp->private_data = inode->i_private; inode 284 block/blktrace.c filp->private_data = inode->i_private; inode 779 block/bsg.c hlist_add_head(&bd->dev_list, bsg_dev_idx_hash(iminor(inode))); inode 783 block/bsg.c format_dev_t(buf, inode->i_rdev), bd->max_queue); inode 817 block/bsg.c bcd = idr_find(&bsg_minor_idr, iminor(inode)); inode 825 block/bsg.c bd = __bsg_get_device(iminor(inode), bcd->queue); inode 829 block/bsg.c bd = bsg_add_device(inode, bcd->queue, file); inode 841 block/bsg.c bd = bsg_get_device(inode, file); inode 83 block/compat_ioctl.c error = blkdev_driver_ioctl(inode, file, disk, inode 137 block/compat_ioctl.c return blkdev_driver_ioctl(inode, file, disk, cmd, inode 170 block/compat_ioctl.c return blkdev_driver_ioctl(inode, file, disk, cmd, (unsigned long)cgc); inode 199 block/compat_ioctl.c return blkdev_ioctl(inode, file, cmd, (unsigned long)a); inode 416 block/compat_ioctl.c err = blkdev_driver_ioctl(inode, file, disk, kcmd, (unsigned long)karg); inode 599 block/compat_ioctl.c return compat_hdio_ioctl(inode, file, disk, cmd, arg); inode 609 block/compat_ioctl.c return compat_fd_ioctl(inode, file, disk, cmd, arg); inode 611 block/compat_ioctl.c return compat_cdrom_read_audio(inode, file, disk, cmd, arg); inode 613 block/compat_ioctl.c return compat_cdrom_generic_command(inode, file, disk, cmd, arg); inode 716 block/compat_ioctl.c ret = disk->fops->ioctl(inode, file, cmd, arg); inode 782 block/compat_ioctl.c struct inode *inode = file->f_mapping->host; inode 783 block/compat_ioctl.c struct block_device *bdev = inode->i_bdev; inode 797 block/compat_ioctl.c return blkdev_ioctl(inode, file, cmd, inode 800 block/compat_ioctl.c return blkdev_ioctl(inode, file, BLKBSZSET, inode 803 block/compat_ioctl.c return compat_blkpg_ioctl(inode, file, cmd, compat_ptr(arg)); inode 807 block/compat_ioctl.c ret = compat_blkdev_locked_ioctl(inode, file, bdev, cmd, arg); inode 816 block/compat_ioctl.c return compat_blkdev_driver_ioctl(inode, file, disk, cmd, arg); inode 277 block/ioctl.c ret = disk->fops->ioctl(inode, file, cmd, arg); inode 293 block/ioctl.c struct block_device *bdev = inode->i_bdev; inode 302 block/ioctl.c ret = blkdev_driver_ioctl(inode, file, disk, cmd, arg); inode 314 block/ioctl.c ret = blkdev_driver_ioctl(inode, file, disk, cmd, arg); inode 368 block/ioctl.c return blkdev_driver_ioctl(inode, file, disk, cmd, arg); inode 117 fs/9p/v9fs.h return (inode->i_sb->s_fs_info); inode 47 fs/9p/v9fs_vfs.h struct inode *v9fs_get_inode(struct super_block *sb, int mode); inode 71 fs/9p/vfs_dentry.c struct inode *inode = dentry->d_inode; inode 74 fs/9p/vfs_dentry.c if(!inode) inode 74 fs/9p/vfs_dir.c struct inode *inode; inode 78 fs/9p/vfs_dir.c inode = filp->f_path.dentry->d_inode; inode 79 fs/9p/vfs_dir.c v9ses = v9fs_inode2v9ses(inode); inode 114 fs/9p/vfs_dir.c "inode: %p filp: %p fid: %d\n", inode, filp, fid->fid); inode 115 fs/9p/vfs_dir.c filemap_write_and_wait(inode->i_mapping); inode 60 fs/9p/vfs_file.c P9_DPRINTK(P9_DEBUG_VFS, "inode: %p file: %p \n", inode, file); inode 61 fs/9p/vfs_file.c v9ses = v9fs_inode2v9ses(inode); inode 75 fs/9p/vfs_file.c inode->i_size = 0; inode 76 fs/9p/vfs_file.c inode->i_blocks = 0; inode 106 fs/9p/vfs_file.c struct inode *inode = filp->f_path.dentry->d_inode; inode 111 fs/9p/vfs_file.c if (__mandatory_lock(inode)) inode 115 fs/9p/vfs_file.c filemap_write_and_wait(inode->i_mapping); inode 116 fs/9p/vfs_file.c invalidate_mapping_pages(&inode->i_data, 0, -1); inode 161 fs/9p/vfs_file.c struct inode *inode = filp->f_path.dentry->d_inode; inode 169 fs/9p/vfs_file.c invalidate_inode_pages2_range(inode->i_mapping, *offset, inode 174 fs/9p/vfs_file.c if (*offset > inode->i_size) { inode 175 fs/9p/vfs_file.c inode->i_size = *offset; inode 176 fs/9p/vfs_file.c inode->i_blocks = (inode->i_size + 512 - 1) >> 9; inode 208 fs/9p/vfs_inode.c struct inode *v9fs_get_inode(struct super_block *sb, int mode) inode 210 fs/9p/vfs_inode.c struct inode *inode; inode 215 fs/9p/vfs_inode.c inode = new_inode(sb); inode 216 fs/9p/vfs_inode.c if (inode) { inode 217 fs/9p/vfs_inode.c inode->i_mode = mode; inode 218 fs/9p/vfs_inode.c inode->i_uid = current->fsuid; inode 219 fs/9p/vfs_inode.c inode->i_gid = current->fsgid; inode 220 fs/9p/vfs_inode.c inode->i_blocks = 0; inode 221 fs/9p/vfs_inode.c inode->i_rdev = 0; inode 222 fs/9p/vfs_inode.c inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; inode 223 fs/9p/vfs_inode.c inode->i_mapping->a_ops = &v9fs_addr_operations; inode 235 fs/9p/vfs_inode.c init_special_inode(inode, inode->i_mode, inode 236 fs/9p/vfs_inode.c inode->i_rdev); inode 239 fs/9p/vfs_inode.c inode->i_op = &v9fs_file_inode_operations; inode 240 fs/9p/vfs_inode.c inode->i_fop = &v9fs_file_operations; inode 248 fs/9p/vfs_inode.c inode->i_op = &v9fs_symlink_inode_operations; inode 251 fs/9p/vfs_inode.c inc_nlink(inode); inode 253 fs/9p/vfs_inode.c inode->i_op = &v9fs_dir_inode_operations_ext; inode 255 fs/9p/vfs_inode.c inode->i_op = &v9fs_dir_inode_operations; inode 256 fs/9p/vfs_inode.c inode->i_fop = &v9fs_dir_operations; inode 268 fs/9p/vfs_inode.c return inode; inode 331 fs/9p/vfs_inode.c static struct inode * inode 336 fs/9p/vfs_inode.c struct inode *ret; inode 378 fs/9p/vfs_inode.c struct inode *file_inode; inode 418 fs/9p/vfs_inode.c struct inode *inode; inode 453 fs/9p/vfs_inode.c inode = v9fs_inode_from_fid(v9ses, fid, dir->i_sb); inode 454 fs/9p/vfs_inode.c if (IS_ERR(inode)) { inode 455 fs/9p/vfs_inode.c err = PTR_ERR(inode); inode 464 fs/9p/vfs_inode.c d_instantiate(dentry, inode); inode 584 fs/9p/vfs_inode.c struct inode *inode; inode 609 fs/9p/vfs_inode.c inode = v9fs_inode_from_fid(v9ses, fid, dir->i_sb); inode 610 fs/9p/vfs_inode.c if (IS_ERR(inode)) { inode 611 fs/9p/vfs_inode.c result = PTR_ERR(inode); inode 612 fs/9p/vfs_inode.c inode = NULL; inode 625 fs/9p/vfs_inode.c d_add(dentry, inode); inode 671 fs/9p/vfs_inode.c struct inode *old_inode; inode 825 fs/9p/vfs_inode.c inode->i_nlink = 1; inode 827 fs/9p/vfs_inode.c inode->i_atime.tv_sec = stat->atime; inode 828 fs/9p/vfs_inode.c inode->i_mtime.tv_sec = stat->mtime; inode 829 fs/9p/vfs_inode.c inode->i_ctime.tv_sec = stat->mtime; inode 831 fs/9p/vfs_inode.c inode->i_uid = v9ses->dfltuid; inode 832 fs/9p/vfs_inode.c inode->i_gid = v9ses->dfltgid; inode 835 fs/9p/vfs_inode.c inode->i_uid = stat->n_uid; inode 836 fs/9p/vfs_inode.c inode->i_gid = stat->n_gid; inode 839 fs/9p/vfs_inode.c inode->i_mode = p9mode2unixmode(v9ses, stat->mode); inode 840 fs/9p/vfs_inode.c if ((S_ISBLK(inode->i_mode)) || (S_ISCHR(inode->i_mode))) { inode 853 fs/9p/vfs_inode.c inode->i_mode &= ~S_IFBLK; inode 854 fs/9p/vfs_inode.c inode->i_mode |= S_IFCHR; inode 863 fs/9p/vfs_inode.c inode->i_rdev = MKDEV(major, minor); inode 865 fs/9p/vfs_inode.c inode->i_rdev = 0; inode 867 fs/9p/vfs_inode.c inode->i_size = stat->length; inode 870 fs/9p/vfs_inode.c inode->i_blocks = (inode->i_size + 512 - 1) >> 9; inode 58 fs/9p/vfs_super.c filemap_fdatawrite(inode->i_mapping); inode 111 fs/9p/vfs_super.c struct inode *inode = NULL; inode 147 fs/9p/vfs_super.c inode = v9fs_get_inode(sb, S_IFDIR | mode); inode 148 fs/9p/vfs_super.c if (IS_ERR(inode)) { inode 149 fs/9p/vfs_super.c retval = PTR_ERR(inode); inode 153 fs/9p/vfs_super.c inode->i_uid = uid; inode 154 fs/9p/vfs_super.c inode->i_gid = gid; inode 156 fs/9p/vfs_super.c root = d_alloc_root(inode); inode 67 fs/adfs/adfs.h struct inode *adfs_iget(struct super_block *sb, struct object_info *obj); inode 31 fs/adfs/dir.c struct inode *inode = filp->f_path.dentry->d_inode; inode 32 fs/adfs/dir.c struct super_block *sb = inode->i_sb; inode 43 fs/adfs/dir.c ret = ops->read(sb, inode->i_ino, inode->i_size, &dir); inode 49 fs/adfs/dir.c if (filldir(dirent, ".", 1, 0, inode->i_ino, DT_DIR) < 0) inode 143 fs/adfs/dir.c struct super_block *sb = inode->i_sb; inode 148 fs/adfs/dir.c ret = ops->read(sb, inode->i_ino, inode->i_size, &dir); inode 152 fs/adfs/dir.c if (ADFS_I(inode)->parent_id != dir.parent_id) { inode 154 fs/adfs/dir.c ADFS_I(inode)->parent_id, dir.parent_id); inode 159 fs/adfs/dir.c obj->parent_id = inode->i_ino; inode 274 fs/adfs/dir.c struct inode *inode = NULL; inode 287 fs/adfs/dir.c inode = adfs_iget(dir->i_sb, &obj); inode 288 fs/adfs/dir.c if (inode) inode 292 fs/adfs/dir.c d_add(dentry, inode); inode 35 fs/adfs/inode.c if (block >= inode->i_blocks) inode 38 fs/adfs/inode.c block = __adfs_block_map(inode->i_sb, inode->i_ino, block); inode 40 fs/adfs/inode.c map_bh(bh, inode->i_sb, block); inode 47 fs/adfs/inode.c adfs_error(inode->i_sb, "block %d < 0", block); inode 93 fs/adfs/inode.c if (ADFS_I(inode)->stamped) inode 94 fs/adfs/inode.c type = (ADFS_I(inode)->loadaddr >> 8) & 0xfff; inode 107 fs/adfs/inode.c unsigned int filetype, attr = ADFS_I(inode)->attr; inode 116 fs/adfs/inode.c filetype = adfs_filetype(inode); inode 158 fs/adfs/inode.c if (S_ISLNK(inode->i_mode)) inode 159 fs/adfs/inode.c return ADFS_I(inode)->attr; inode 161 fs/adfs/inode.c if (S_ISDIR(inode->i_mode)) inode 166 fs/adfs/inode.c mode = inode->i_mode & asb->s_owner_mask; inode 172 fs/adfs/inode.c mode = inode->i_mode & asb->s_other_mask; inode 191 fs/adfs/inode.c if (ADFS_I(inode)->stamped == 0) inode 194 fs/adfs/inode.c high = ADFS_I(inode)->loadaddr << 24; inode 195 fs/adfs/inode.c low = ADFS_I(inode)->execaddr; inode 239 fs/adfs/inode.c if (ADFS_I(inode)->stamped) { inode 244 fs/adfs/inode.c ADFS_I(inode)->loadaddr = (high >> 24) | inode 245 fs/adfs/inode.c (ADFS_I(inode)->loadaddr & ~0xff); inode 246 fs/adfs/inode.c ADFS_I(inode)->execaddr = (low & 255) | (high << 8); inode 262 fs/adfs/inode.c struct inode * inode 265 fs/adfs/inode.c struct inode *inode; inode 267 fs/adfs/inode.c inode = new_inode(sb); inode 268 fs/adfs/inode.c if (!inode) inode 271 fs/adfs/inode.c inode->i_uid = ADFS_SB(sb)->s_uid; inode 272 fs/adfs/inode.c inode->i_gid = ADFS_SB(sb)->s_gid; inode 273 fs/adfs/inode.c inode->i_ino = obj->file_id; inode 274 fs/adfs/inode.c inode->i_size = obj->size; inode 275 fs/adfs/inode.c inode->i_nlink = 2; inode 276 fs/adfs/inode.c inode->i_blocks = (inode->i_size + sb->s_blocksize - 1) >> inode 285 fs/adfs/inode.c ADFS_I(inode)->parent_id = obj->parent_id; inode 286 fs/adfs/inode.c ADFS_I(inode)->loadaddr = obj->loadaddr; inode 287 fs/adfs/inode.c ADFS_I(inode)->execaddr = obj->execaddr; inode 288 fs/adfs/inode.c ADFS_I(inode)->attr = obj->attr; inode 289 fs/adfs/inode.c ADFS_I(inode)->stamped = ((obj->loadaddr & 0xfff00000) == 0xfff00000); inode 291 fs/adfs/inode.c inode->i_mode = adfs_atts2mode(sb, inode); inode 292 fs/adfs/inode.c adfs_adfs2unix_time(&inode->i_mtime, inode); inode 293 fs/adfs/inode.c inode->i_atime = inode->i_mtime; inode 294 fs/adfs/inode.c inode->i_ctime = inode->i_mtime; inode 296 fs/adfs/inode.c if (S_ISDIR(inode->i_mode)) { inode 297 fs/adfs/inode.c inode->i_op = &adfs_dir_inode_operations; inode 298 fs/adfs/inode.c inode->i_fop = &adfs_dir_operations; inode 299 fs/adfs/inode.c } else if (S_ISREG(inode->i_mode)) { inode 300 fs/adfs/inode.c inode->i_op = &adfs_file_inode_operations; inode 301 fs/adfs/inode.c inode->i_fop = &adfs_file_operations; inode 302 fs/adfs/inode.c inode->i_mapping->a_ops = &adfs_aops; inode 303 fs/adfs/inode.c ADFS_I(inode)->mmu_private = inode->i_size; inode 306 fs/adfs/inode.c insert_inode_hash(inode); inode 309 fs/adfs/inode.c return inode; inode 320 fs/adfs/inode.c struct inode *inode = dentry->d_inode; inode 321 fs/adfs/inode.c struct super_block *sb = inode->i_sb; inode 327 fs/adfs/inode.c error = inode_change_ok(inode, attr); inode 341 fs/adfs/inode.c error = vmtruncate(inode, attr->ia_size); inode 347 fs/adfs/inode.c inode->i_mtime = attr->ia_mtime; inode 348 fs/adfs/inode.c adfs_unix2adfs_time(inode, attr->ia_mtime.tv_sec); inode 355 fs/adfs/inode.c inode->i_atime = attr->ia_atime; inode 357 fs/adfs/inode.c inode->i_ctime = attr->ia_ctime; inode 359 fs/adfs/inode.c ADFS_I(inode)->attr = adfs_mode2atts(sb, inode); inode 360 fs/adfs/inode.c inode->i_mode = adfs_atts2mode(sb, inode); inode 368 fs/adfs/inode.c mark_inode_dirty(inode); inode 381 fs/adfs/inode.c struct super_block *sb = inode->i_sb; inode 386 fs/adfs/inode.c obj.file_id = inode->i_ino; inode 388 fs/adfs/inode.c obj.parent_id = ADFS_I(inode)->parent_id; inode 389 fs/adfs/inode.c obj.loadaddr = ADFS_I(inode)->loadaddr; inode 390 fs/adfs/inode.c obj.execaddr = ADFS_I(inode)->execaddr; inode 391 fs/adfs/inode.c obj.attr = ADFS_I(inode)->attr; inode 392 fs/adfs/inode.c obj.size = inode->i_size; inode 238 fs/adfs/super.c static struct inode *adfs_alloc_inode(struct super_block *sb) inode 249 fs/adfs/super.c kmem_cache_free(adfs_inode_cachep, ADFS_I(inode)); inode 357 fs/adfs/super.c struct inode *root; inode 69 fs/affs/affs.h struct inode vfs_inode; inode 75 fs/affs/affs.h return list_entry(inode, struct affs_inode_info, vfs_inode); inode 172 fs/affs/affs.h extern struct inode *affs_new_inode(struct inode *dir); inode 176 fs/affs/affs.h extern struct inode *affs_iget(struct super_block *sb, inode 278 fs/affs/affs.h down(&AFFS_I(inode)->i_link_lock); inode 283 fs/affs/affs.h up(&AFFS_I(inode)->i_link_lock); inode 288 fs/affs/affs.h down(&AFFS_I(inode)->i_hash_lock); inode 293 fs/affs/affs.h up(&AFFS_I(inode)->i_hash_lock); inode 298 fs/affs/affs.h down(&AFFS_I(inode)->i_ext_lock); inode 303 fs/affs/affs.h up(&AFFS_I(inode)->i_ext_lock); inode 127 fs/affs/amigaffs.c struct inode *inode = dentry->d_inode; inode 132 fs/affs/amigaffs.c head = &inode->i_dentry; inode 151 fs/affs/amigaffs.c struct inode *dir, *inode = dentry->d_inode; inode 152 fs/affs/amigaffs.c struct super_block *sb = inode->i_sb; inode 157 fs/affs/amigaffs.c pr_debug("AFFS: remove_link(key=%ld)\n", inode->i_ino); inode 159 fs/affs/amigaffs.c bh = affs_bread(sb, inode->i_ino); inode 164 fs/affs/amigaffs.c if (inode->i_ino == link_ino) { inode 184 fs/affs/amigaffs.c mark_buffer_dirty_inode(link_bh, inode); inode 190 fs/affs/amigaffs.c mark_buffer_dirty_inode(bh, inode); inode 205 fs/affs/amigaffs.c mark_buffer_dirty_inode(bh, inode); inode 214 fs/affs/amigaffs.c inode->i_nlink = 1; inode 235 fs/affs/amigaffs.c struct super_block *sb = inode->i_sb; inode 240 fs/affs/amigaffs.c bh = affs_bread(sb, inode->i_ino); inode 269 fs/affs/amigaffs.c struct inode *inode, *dir; inode 277 fs/affs/amigaffs.c inode = dentry->d_inode; inode 278 fs/affs/amigaffs.c if (!inode) inode 281 fs/affs/amigaffs.c pr_debug("AFFS: remove_header(key=%ld)\n", inode->i_ino); inode 287 fs/affs/amigaffs.c affs_lock_link(inode); inode 295 fs/affs/amigaffs.c affs_lock_dir(inode); inode 296 fs/affs/amigaffs.c retval = affs_empty_dir(inode); inode 297 fs/affs/amigaffs.c affs_unlock_dir(inode); inode 308 fs/affs/amigaffs.c mark_buffer_dirty_inode(bh, inode); inode 312 fs/affs/amigaffs.c if (inode->i_nlink > 1) inode 315 fs/affs/amigaffs.c inode->i_nlink = 0; inode 316 fs/affs/amigaffs.c affs_unlock_link(inode); inode 317 fs/affs/amigaffs.c inode->i_ctime = CURRENT_TIME_SEC; inode 318 fs/affs/amigaffs.c mark_inode_dirty(inode); inode 326 fs/affs/amigaffs.c affs_unlock_link(inode); inode 419 fs/affs/amigaffs.c u32 prot = AFFS_I(inode)->i_protect; inode 420 fs/affs/amigaffs.c mode_t mode = inode->i_mode; inode 441 fs/affs/amigaffs.c AFFS_I(inode)->i_protect = prot; inode 148 fs/affs/bitmap.c sb = inode->i_sb; inode 151 fs/affs/bitmap.c pr_debug("AFFS: balloc(inode=%lu,goal=%u): ", inode->i_ino, goal); inode 153 fs/affs/bitmap.c if (AFFS_I(inode)->i_pa_cnt) { inode 154 fs/affs/bitmap.c pr_debug("%d\n", AFFS_I(inode)->i_lastalloc+1); inode 155 fs/affs/bitmap.c AFFS_I(inode)->i_pa_cnt--; inode 156 fs/affs/bitmap.c return ++AFFS_I(inode)->i_lastalloc; inode 232 fs/affs/bitmap.c AFFS_I(inode)->i_lastalloc = blk; inode 238 fs/affs/bitmap.c AFFS_I(inode)->i_pa_cnt++; inode 241 fs/affs/bitmap.c bm->bm_free -= AFFS_I(inode)->i_pa_cnt + 1; inode 45 fs/affs/dir.c struct inode *inode = filp->f_path.dentry->d_inode; inode 46 fs/affs/dir.c struct super_block *sb = inode->i_sb; inode 59 fs/affs/dir.c pr_debug("AFFS: readdir(ino=%lu,f_pos=%lx)\n",inode->i_ino,(unsigned long)filp->f_pos); inode 69 fs/affs/dir.c if (filldir(dirent, ".", 1, f_pos, inode->i_ino, DT_DIR) < 0) inode 81 fs/affs/dir.c affs_lock_dir(inode); inode 90 fs/affs/dir.c dir_bh = affs_bread(sb, inode->i_ino); inode 98 fs/affs/dir.c if (ino && filp->f_version == inode->i_version) { inode 146 fs/affs/dir.c filp->f_version = inode->i_version; inode 153 fs/affs/dir.c affs_unlock_dir(inode); inode 50 fs/affs/file.c inode->i_ino, atomic_read(&AFFS_I(inode)->i_opencnt)); inode 51 fs/affs/file.c atomic_inc(&AFFS_I(inode)->i_opencnt); inode 59 fs/affs/file.c inode->i_ino, atomic_read(&AFFS_I(inode)->i_opencnt)); inode 61 fs/affs/file.c if (atomic_dec_and_test(&AFFS_I(inode)->i_opencnt)) { inode 62 fs/affs/file.c mutex_lock(&inode->i_mutex); inode 63 fs/affs/file.c if (inode->i_size != AFFS_I(inode)->mmu_private) inode 64 fs/affs/file.c affs_truncate(inode); inode 65 fs/affs/file.c affs_free_prealloc(inode); inode 66 fs/affs/file.c mutex_unlock(&inode->i_mutex); inode 75 fs/affs/file.c struct super_block *sb = inode->i_sb; inode 80 fs/affs/file.c if (!AFFS_I(inode)->i_lc) { inode 84 fs/affs/file.c AFFS_I(inode)->i_lc = (u32 *)ptr; inode 85 fs/affs/file.c AFFS_I(inode)->i_ac = (struct affs_ext_key *)(ptr + AFFS_CACHE_SIZE / 2); inode 88 fs/affs/file.c lc_max = AFFS_LC_SIZE << AFFS_I(inode)->i_lc_shift; inode 90 fs/affs/file.c if (AFFS_I(inode)->i_extcnt > lc_max) { inode 94 fs/affs/file.c lc_shift = AFFS_I(inode)->i_lc_shift; inode 95 fs/affs/file.c tmp = (AFFS_I(inode)->i_extcnt / AFFS_LC_SIZE) >> lc_shift; inode 101 fs/affs/file.c lc_idx >>= (lc_shift - AFFS_I(inode)->i_lc_shift); inode 102 fs/affs/file.c AFFS_I(inode)->i_lc_size >>= (lc_shift - AFFS_I(inode)->i_lc_shift); inode 105 fs/affs/file.c off = 1 << (lc_shift - AFFS_I(inode)->i_lc_shift); inode 107 fs/affs/file.c AFFS_I(inode)->i_ac[i] = AFFS_I(inode)->i_ac[j]; inode 109 fs/affs/file.c AFFS_I(inode)->i_lc_shift = lc_shift; inode 110 fs/affs/file.c AFFS_I(inode)->i_lc_mask = lc_mask; inode 114 fs/affs/file.c i = AFFS_I(inode)->i_lc_size; inode 115 fs/affs/file.c AFFS_I(inode)->i_lc_size = lc_idx + 1; inode 118 fs/affs/file.c AFFS_I(inode)->i_lc[0] = inode->i_ino; inode 121 fs/affs/file.c key = AFFS_I(inode)->i_lc[i - 1]; inode 122 fs/affs/file.c j = AFFS_I(inode)->i_lc_mask + 1; inode 132 fs/affs/file.c AFFS_I(inode)->i_lc[i] = key; inode 145 fs/affs/file.c struct super_block *sb = inode->i_sb; inode 149 fs/affs/file.c blocknr = affs_alloc_block(inode, bh->b_blocknr); inode 162 fs/affs/file.c AFFS_TAIL(sb, new_bh)->parent = cpu_to_be32(inode->i_ino); inode 165 fs/affs/file.c mark_buffer_dirty_inode(new_bh, inode); inode 172 fs/affs/file.c mark_buffer_dirty_inode(bh, inode); inode 174 fs/affs/file.c AFFS_I(inode)->i_extcnt++; inode 175 fs/affs/file.c mark_inode_dirty(inode); inode 184 fs/affs/file.c struct buffer_head *bh = AFFS_I(inode)->i_ext_bh; inode 185 fs/affs/file.c if (ext == AFFS_I(inode)->i_ext_last) inode 189 fs/affs/file.c bh = affs_get_extblock_slow(inode, ext); inode 197 fs/affs/file.c struct super_block *sb = inode->i_sb; inode 203 fs/affs/file.c if (ext == AFFS_I(inode)->i_ext_last + 1) { inode 205 fs/affs/file.c bh = AFFS_I(inode)->i_ext_bh; inode 207 fs/affs/file.c if (ext < AFFS_I(inode)->i_extcnt) inode 209 fs/affs/file.c if (ext > AFFS_I(inode)->i_extcnt) inode 211 fs/affs/file.c bh = affs_alloc_extblock(inode, bh, ext); inode 219 fs/affs/file.c ext_key = inode->i_ino; inode 223 fs/affs/file.c if (ext >= AFFS_I(inode)->i_extcnt) { inode 227 fs/affs/file.c if (ext > AFFS_I(inode)->i_extcnt) inode 231 fs/affs/file.c prev_bh = affs_get_extblock(inode, ext - 1); inode 234 fs/affs/file.c bh = affs_alloc_extblock(inode, prev_bh, ext); inode 243 fs/affs/file.c lc_idx = ext >> AFFS_I(inode)->i_lc_shift; inode 244 fs/affs/file.c lc_off = ext & AFFS_I(inode)->i_lc_mask; inode 246 fs/affs/file.c if (lc_idx >= AFFS_I(inode)->i_lc_size) { inode 249 fs/affs/file.c err = affs_grow_extcache(inode, lc_idx); inode 257 fs/affs/file.c ext_key = AFFS_I(inode)->i_lc[lc_idx]; inode 263 fs/affs/file.c if (AFFS_I(inode)->i_ac[ac_idx].ext == ext) { inode 264 fs/affs/file.c ext_key = AFFS_I(inode)->i_ac[ac_idx].key; inode 273 fs/affs/file.c if (AFFS_I(inode)->i_ac[idx].ext == tmp) { inode 274 fs/affs/file.c ext_key = AFFS_I(inode)->i_ac[idx].key; inode 280 fs/affs/file.c ext_key = AFFS_I(inode)->i_lc[lc_idx]; inode 296 fs/affs/file.c AFFS_I(inode)->i_ac[ac_idx].ext = ext; inode 297 fs/affs/file.c AFFS_I(inode)->i_ac[ac_idx].key = ext_key; inode 309 fs/affs/file.c affs_brelse(AFFS_I(inode)->i_ext_bh); inode 310 fs/affs/file.c AFFS_I(inode)->i_ext_last = ext; inode 311 fs/affs/file.c AFFS_I(inode)->i_ext_bh = bh; inode 324 fs/affs/file.c struct super_block *sb = inode->i_sb; inode 328 fs/affs/file.c pr_debug("AFFS: get_block(%u, %lu)\n", (u32)inode->i_ino, (unsigned long)block); inode 332 fs/affs/file.c if (block >= AFFS_I(inode)->i_blkcnt) { inode 333 fs/affs/file.c if (block > AFFS_I(inode)->i_blkcnt || !create) inode 339 fs/affs/file.c affs_lock_ext(inode); inode 343 fs/affs/file.c ext_bh = affs_get_extblock(inode, ext); inode 349 fs/affs/file.c u32 blocknr = affs_alloc_block(inode, ext_bh->b_blocknr); inode 353 fs/affs/file.c AFFS_I(inode)->mmu_private += AFFS_SB(sb)->s_data_blksize; inode 354 fs/affs/file.c AFFS_I(inode)->i_blkcnt++; inode 376 fs/affs/file.c affs_unlock_ext(inode); inode 380 fs/affs/file.c affs_error(inode->i_sb,"get_block","strange block request %d", block); inode 384 fs/affs/file.c affs_unlock_ext(inode); inode 391 fs/affs/file.c affs_unlock_ext(inode); inode 436 fs/affs/file.c err = affs_get_block(inode, block, &tmp_bh, create); inode 438 fs/affs/file.c bh = affs_bread(inode->i_sb, tmp_bh.b_blocknr); inode 455 fs/affs/file.c err = affs_get_block(inode, block, &tmp_bh, 1); inode 457 fs/affs/file.c bh = affs_getzeroblk(inode->i_sb, tmp_bh.b_blocknr); inode 474 fs/affs/file.c err = affs_get_block(inode, block, &tmp_bh, 1); inode 476 fs/affs/file.c bh = affs_getemptyblk(inode->i_sb, tmp_bh.b_blocknr); inode 489 fs/affs/file.c struct inode *inode = page->mapping->host; inode 490 fs/affs/file.c struct super_block *sb = inode->i_sb; inode 496 fs/affs/file.c pr_debug("AFFS: read_page(%u, %ld, %d, %d)\n", (u32)inode->i_ino, page->index, from, to); inode 506 fs/affs/file.c bh = affs_bread_ino(inode, bidx, 0); inode 525 fs/affs/file.c struct super_block *sb = inode->i_sb; inode 531 fs/affs/file.c pr_debug("AFFS: extent_file(%u, %d)\n", (u32)inode->i_ino, newsize); inode 534 fs/affs/file.c size = AFFS_I(inode)->mmu_private; inode 538 fs/affs/file.c bh = affs_bread_ino(inode, bidx, 0); inode 546 fs/affs/file.c mark_buffer_dirty_inode(bh, inode); inode 550 fs/affs/file.c bh = affs_bread_ino(inode, bidx - 1, 0); inode 557 fs/affs/file.c bh = affs_getzeroblk_ino(inode, bidx); inode 563 fs/affs/file.c AFFS_DATA_HEAD(bh)->key = cpu_to_be32(inode->i_ino); inode 568 fs/affs/file.c mark_buffer_dirty_inode(bh, inode); inode 575 fs/affs/file.c mark_buffer_dirty_inode(prev_bh, inode); inode 582 fs/affs/file.c inode->i_size = AFFS_I(inode)->mmu_private = newsize; inode 586 fs/affs/file.c inode->i_size = AFFS_I(inode)->mmu_private = newsize; inode 593 fs/affs/file.c struct inode *inode = page->mapping->host; inode 597 fs/affs/file.c pr_debug("AFFS: read_page(%u, %ld)\n", (u32)inode->i_ino, page->index); inode 599 fs/affs/file.c if (((page->index + 1) << PAGE_CACHE_SHIFT) > inode->i_size) { inode 600 fs/affs/file.c to = inode->i_size & ~PAGE_CACHE_MASK; inode 615 fs/affs/file.c struct inode *inode = mapping->host; inode 620 fs/affs/file.c pr_debug("AFFS: write_begin(%u, %llu, %llu)\n", (u32)inode->i_ino, (unsigned long long)pos, (unsigned long long)pos + len); inode 621 fs/affs/file.c if (pos > AFFS_I(inode)->mmu_private) { inode 625 fs/affs/file.c err = affs_extent_file_ofs(inode, pos); inode 652 fs/affs/file.c struct inode *inode = mapping->host; inode 653 fs/affs/file.c struct super_block *sb = inode->i_sb; inode 669 fs/affs/file.c pr_debug("AFFS: write_begin(%u, %llu, %llu)\n", (u32)inode->i_ino, (unsigned long long)pos, (unsigned long long)pos + len); inode 679 fs/affs/file.c bh = affs_bread_ino(inode, bidx, 0); inode 687 fs/affs/file.c mark_buffer_dirty_inode(bh, inode); inode 692 fs/affs/file.c bh = affs_bread_ino(inode, bidx - 1, 0); inode 698 fs/affs/file.c bh = affs_getemptyblk_ino(inode, bidx); inode 704 fs/affs/file.c AFFS_DATA_HEAD(bh)->key = cpu_to_be32(inode->i_ino); inode 715 fs/affs/file.c mark_buffer_dirty_inode(prev_bh, inode); inode 720 fs/affs/file.c mark_buffer_dirty_inode(bh, inode); inode 727 fs/affs/file.c bh = affs_bread_ino(inode, bidx, 1); inode 735 fs/affs/file.c AFFS_DATA_HEAD(bh)->key = cpu_to_be32(inode->i_ino); inode 746 fs/affs/file.c mark_buffer_dirty_inode(prev_bh, inode); inode 752 fs/affs/file.c mark_buffer_dirty_inode(bh, inode); inode 762 fs/affs/file.c if (tmp > inode->i_size) inode 763 fs/affs/file.c inode->i_size = AFFS_I(inode)->mmu_private = tmp; inode 790 fs/affs/file.c struct super_block *sb = inode->i_sb; inode 792 fs/affs/file.c pr_debug("AFFS: free_prealloc(ino=%lu)\n", inode->i_ino); inode 794 fs/affs/file.c while (AFFS_I(inode)->i_pa_cnt) { inode 795 fs/affs/file.c AFFS_I(inode)->i_pa_cnt--; inode 796 fs/affs/file.c affs_free_block(sb, ++AFFS_I(inode)->i_lastalloc); inode 805 fs/affs/file.c struct super_block *sb = inode->i_sb; inode 813 fs/affs/file.c (u32)inode->i_ino, (u32)AFFS_I(inode)->mmu_private, (u32)inode->i_size); inode 817 fs/affs/file.c if (inode->i_size) { inode 818 fs/affs/file.c last_blk = ((u32)inode->i_size - 1) / AFFS_SB(sb)->s_data_blksize; inode 822 fs/affs/file.c if (inode->i_size > AFFS_I(inode)->mmu_private) { inode 823 fs/affs/file.c struct address_space *mapping = inode->i_mapping; inode 826 fs/affs/file.c u32 size = inode->i_size; inode 833 fs/affs/file.c inode->i_size = AFFS_I(inode)->mmu_private; inode 834 fs/affs/file.c mark_inode_dirty(inode); inode 836 fs/affs/file.c } else if (inode->i_size == AFFS_I(inode)->mmu_private) inode 840 fs/affs/file.c ext_bh = affs_get_extblock(inode, ext); inode 846 fs/affs/file.c if (AFFS_I(inode)->i_lc) { inode 848 fs/affs/file.c i = (ext + 1) >> AFFS_I(inode)->i_lc_shift; inode 849 fs/affs/file.c if (AFFS_I(inode)->i_lc_size > i) { inode 850 fs/affs/file.c AFFS_I(inode)->i_lc_size = i; inode 852 fs/affs/file.c AFFS_I(inode)->i_lc[i] = 0; inode 856 fs/affs/file.c if (AFFS_I(inode)->i_ac[i].ext >= ext) inode 857 fs/affs/file.c AFFS_I(inode)->i_ac[i].ext = 0; inode 861 fs/affs/file.c blkcnt = AFFS_I(inode)->i_blkcnt; inode 864 fs/affs/file.c if (inode->i_size) { inode 879 fs/affs/file.c mark_buffer_dirty_inode(ext_bh, inode); inode 882 fs/affs/file.c if (inode->i_size) { inode 883 fs/affs/file.c AFFS_I(inode)->i_blkcnt = last_blk + 1; inode 884 fs/affs/file.c AFFS_I(inode)->i_extcnt = ext + 1; inode 886 fs/affs/file.c struct buffer_head *bh = affs_bread_ino(inode, last_blk, 0); inode 899 fs/affs/file.c AFFS_I(inode)->i_blkcnt = 0; inode 900 fs/affs/file.c AFFS_I(inode)->i_extcnt = 1; inode 902 fs/affs/file.c AFFS_I(inode)->mmu_private = inode->i_size; inode 916 fs/affs/file.c affs_free_prealloc(inode); inode 18 fs/affs/inode.c struct inode *affs_iget(struct super_block *sb, unsigned long ino) inode 24 fs/affs/inode.c struct inode *inode; inode 30 fs/affs/inode.c inode = iget_locked(sb, ino); inode 31 fs/affs/inode.c if (!inode) inode 33 fs/affs/inode.c if (!(inode->i_state & I_NEW)) inode 34 fs/affs/inode.c return inode; inode 36 fs/affs/inode.c pr_debug("AFFS: affs_iget(%lu)\n", inode->i_ino); inode 38 fs/affs/inode.c block = inode->i_ino; inode 55 fs/affs/inode.c inode->i_size = 0; inode 56 fs/affs/inode.c inode->i_nlink = 1; inode 57 fs/affs/inode.c inode->i_mode = 0; inode 58 fs/affs/inode.c AFFS_I(inode)->i_extcnt = 1; inode 59 fs/affs/inode.c AFFS_I(inode)->i_ext_last = ~1; inode 60 fs/affs/inode.c AFFS_I(inode)->i_protect = prot; inode 61 fs/affs/inode.c atomic_set(&AFFS_I(inode)->i_opencnt, 0); inode 62 fs/affs/inode.c AFFS_I(inode)->i_blkcnt = 0; inode 63 fs/affs/inode.c AFFS_I(inode)->i_lc = NULL; inode 64 fs/affs/inode.c AFFS_I(inode)->i_lc_size = 0; inode 65 fs/affs/inode.c AFFS_I(inode)->i_lc_shift = 0; inode 66 fs/affs/inode.c AFFS_I(inode)->i_lc_mask = 0; inode 67 fs/affs/inode.c AFFS_I(inode)->i_ac = NULL; inode 68 fs/affs/inode.c AFFS_I(inode)->i_ext_bh = NULL; inode 69 fs/affs/inode.c AFFS_I(inode)->mmu_private = 0; inode 70 fs/affs/inode.c AFFS_I(inode)->i_lastalloc = 0; inode 71 fs/affs/inode.c AFFS_I(inode)->i_pa_cnt = 0; inode 74 fs/affs/inode.c inode->i_mode = sbi->s_mode; inode 76 fs/affs/inode.c inode->i_mode = prot_to_mode(prot); inode 80 fs/affs/inode.c inode->i_uid = sbi->s_uid; inode 82 fs/affs/inode.c inode->i_uid = 0; inode 84 fs/affs/inode.c inode->i_uid = id; inode 88 fs/affs/inode.c inode->i_gid = sbi->s_gid; inode 90 fs/affs/inode.c inode->i_gid = 0; inode 92 fs/affs/inode.c inode->i_gid = id; inode 96 fs/affs/inode.c inode->i_uid = sbi->s_uid; inode 97 fs/affs/inode.c inode->i_gid = sbi->s_gid; inode 102 fs/affs/inode.c if (inode->i_mode & S_IRUSR) inode 103 fs/affs/inode.c inode->i_mode |= S_IXUSR; inode 104 fs/affs/inode.c if (inode->i_mode & S_IRGRP) inode 105 fs/affs/inode.c inode->i_mode |= S_IXGRP; inode 106 fs/affs/inode.c if (inode->i_mode & S_IROTH) inode 107 fs/affs/inode.c inode->i_mode |= S_IXOTH; inode 108 fs/affs/inode.c inode->i_mode |= S_IFDIR; inode 110 fs/affs/inode.c inode->i_mode = S_IRUGO | S_IXUGO | S_IWUSR | S_IFDIR; inode 113 fs/affs/inode.c inode->i_op = &affs_dir_inode_operations; inode 114 fs/affs/inode.c inode->i_fop = &affs_dir_operations; inode 121 fs/affs/inode.c inode->i_mode |= S_IFDIR; inode 122 fs/affs/inode.c inode->i_op = NULL; inode 123 fs/affs/inode.c inode->i_fop = NULL; inode 131 fs/affs/inode.c inode->i_mode |= S_IFREG; inode 132 fs/affs/inode.c AFFS_I(inode)->mmu_private = inode->i_size = size; inode 133 fs/affs/inode.c if (inode->i_size) { inode 134 fs/affs/inode.c AFFS_I(inode)->i_blkcnt = (size - 1) / inode 136 fs/affs/inode.c AFFS_I(inode)->i_extcnt = (AFFS_I(inode)->i_blkcnt - 1) / inode 140 fs/affs/inode.c inode->i_nlink = 2; inode 141 fs/affs/inode.c inode->i_mapping->a_ops = (sbi->s_flags & SF_OFS) ? &affs_aops_ofs : &affs_aops; inode 142 fs/affs/inode.c inode->i_op = &affs_file_inode_operations; inode 143 fs/affs/inode.c inode->i_fop = &affs_file_operations; inode 146 fs/affs/inode.c inode->i_mode |= S_IFLNK; inode 147 fs/affs/inode.c inode->i_op = &affs_symlink_inode_operations; inode 148 fs/affs/inode.c inode->i_data.a_ops = &affs_symlink_aops; inode 152 fs/affs/inode.c inode->i_mtime.tv_sec = inode->i_atime.tv_sec = inode->i_ctime.tv_sec inode 158 fs/affs/inode.c inode->i_mtime.tv_nsec = inode->i_ctime.tv_nsec = inode->i_atime.tv_nsec = 0; inode 160 fs/affs/inode.c unlock_new_inode(inode); inode 161 fs/affs/inode.c return inode; inode 165 fs/affs/inode.c iget_failed(inode); inode 172 fs/affs/inode.c struct super_block *sb = inode->i_sb; inode 178 fs/affs/inode.c pr_debug("AFFS: write_inode(%lu)\n",inode->i_ino); inode 180 fs/affs/inode.c if (!inode->i_nlink) inode 183 fs/affs/inode.c bh = affs_bread(sb, inode->i_ino); inode 185 fs/affs/inode.c affs_error(sb,"write_inode","Cannot read block %lu",inode->i_ino); inode 190 fs/affs/inode.c secs_to_datestamp(inode->i_mtime.tv_sec,&AFFS_ROOT_TAIL(sb, bh)->root_change); inode 192 fs/affs/inode.c tail->protect = cpu_to_be32(AFFS_I(inode)->i_protect); inode 193 fs/affs/inode.c tail->size = cpu_to_be32(inode->i_size); inode 194 fs/affs/inode.c secs_to_datestamp(inode->i_mtime.tv_sec,&tail->change); inode 195 fs/affs/inode.c if (!(inode->i_ino == AFFS_SB(sb)->s_root_block)) { inode 196 fs/affs/inode.c uid = inode->i_uid; inode 197 fs/affs/inode.c gid = inode->i_gid; inode 199 fs/affs/inode.c if (inode->i_uid == 0 || inode->i_uid == 0xFFFF) inode 200 fs/affs/inode.c uid = inode->i_uid ^ ~0; inode 201 fs/affs/inode.c if (inode->i_gid == 0 || inode->i_gid == 0xFFFF) inode 202 fs/affs/inode.c gid = inode->i_gid ^ ~0; inode 211 fs/affs/inode.c mark_buffer_dirty_inode(bh, inode); inode 213 fs/affs/inode.c affs_free_prealloc(inode); inode 220 fs/affs/inode.c struct inode *inode = dentry->d_inode; inode 223 fs/affs/inode.c pr_debug("AFFS: notify_change(%lu,0x%x)\n",inode->i_ino,attr->ia_valid); inode 225 fs/affs/inode.c error = inode_change_ok(inode,attr); inode 229 fs/affs/inode.c if (((attr->ia_valid & ATTR_UID) && (AFFS_SB(inode->i_sb)->s_flags & SF_SETUID)) || inode 230 fs/affs/inode.c ((attr->ia_valid & ATTR_GID) && (AFFS_SB(inode->i_sb)->s_flags & SF_SETGID)) || inode 232 fs/affs/inode.c (AFFS_SB(inode->i_sb)->s_flags & (SF_SETMODE | SF_IMMUTABLE)))) { inode 233 fs/affs/inode.c if (!(AFFS_SB(inode->i_sb)->s_flags & SF_QUIET)) inode 238 fs/affs/inode.c error = inode_setattr(inode, attr); inode 240 fs/affs/inode.c mode_to_prot(inode); inode 248 fs/affs/inode.c pr_debug("AFFS: delete_inode(ino=%lu, nlink=%u)\n", inode->i_ino, inode->i_nlink); inode 249 fs/affs/inode.c truncate_inode_pages(&inode->i_data, 0); inode 250 fs/affs/inode.c inode->i_size = 0; inode 251 fs/affs/inode.c affs_truncate(inode); inode 252 fs/affs/inode.c clear_inode(inode); inode 253 fs/affs/inode.c affs_free_block(inode->i_sb, inode->i_ino); inode 261 fs/affs/inode.c pr_debug("AFFS: clear_inode(ino=%lu, nlink=%u)\n", inode->i_ino, inode->i_nlink); inode 263 fs/affs/inode.c affs_free_prealloc(inode); inode 264 fs/affs/inode.c cache_page = (unsigned long)AFFS_I(inode)->i_lc; inode 267 fs/affs/inode.c AFFS_I(inode)->i_lc = NULL; inode 268 fs/affs/inode.c AFFS_I(inode)->i_ac = NULL; inode 271 fs/affs/inode.c affs_brelse(AFFS_I(inode)->i_ext_bh); inode 272 fs/affs/inode.c AFFS_I(inode)->i_ext_last = ~1; inode 273 fs/affs/inode.c AFFS_I(inode)->i_ext_bh = NULL; inode 276 fs/affs/inode.c struct inode * inode 280 fs/affs/inode.c struct inode *inode; inode 284 fs/affs/inode.c if (!(inode = new_inode(sb))) inode 293 fs/affs/inode.c mark_buffer_dirty_inode(bh, inode); inode 296 fs/affs/inode.c inode->i_uid = current->fsuid; inode 297 fs/affs/inode.c inode->i_gid = current->fsgid; inode 298 fs/affs/inode.c inode->i_ino = block; inode 299 fs/affs/inode.c inode->i_nlink = 1; inode 300 fs/affs/inode.c inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; inode 301 fs/affs/inode.c atomic_set(&AFFS_I(inode)->i_opencnt, 0); inode 302 fs/affs/inode.c AFFS_I(inode)->i_blkcnt = 0; inode 303 fs/affs/inode.c AFFS_I(inode)->i_lc = NULL; inode 304 fs/affs/inode.c AFFS_I(inode)->i_lc_size = 0; inode 305 fs/affs/inode.c AFFS_I(inode)->i_lc_shift = 0; inode 306 fs/affs/inode.c AFFS_I(inode)->i_lc_mask = 0; inode 307 fs/affs/inode.c AFFS_I(inode)->i_ac = NULL; inode 308 fs/affs/inode.c AFFS_I(inode)->i_ext_bh = NULL; inode 309 fs/affs/inode.c AFFS_I(inode)->mmu_private = 0; inode 310 fs/affs/inode.c AFFS_I(inode)->i_protect = 0; inode 311 fs/affs/inode.c AFFS_I(inode)->i_lastalloc = 0; inode 312 fs/affs/inode.c AFFS_I(inode)->i_pa_cnt = 0; inode 313 fs/affs/inode.c AFFS_I(inode)->i_extcnt = 1; inode 314 fs/affs/inode.c AFFS_I(inode)->i_ext_last = ~1; inode 316 fs/affs/inode.c insert_inode_hash(inode); inode 318 fs/affs/inode.c return inode; inode 323 fs/affs/inode.c iput(inode); inode 343 fs/affs/inode.c (u32)inode->i_ino, (int)dentry->d_name.len, dentry->d_name.name, type); inode 346 fs/affs/inode.c bh = affs_bread(sb, inode->i_ino); inode 350 fs/affs/inode.c affs_lock_link(inode); inode 377 fs/affs/inode.c AFFS_TAIL(sb, bh)->original = cpu_to_be32(inode->i_ino); inode 381 fs/affs/inode.c mark_buffer_dirty_inode(inode_bh, inode); inode 382 fs/affs/inode.c inode->i_nlink = 2; inode 383 fs/affs/inode.c atomic_inc(&inode->i_count); inode 386 fs/affs/inode.c mark_buffer_dirty_inode(bh, inode); inode 391 fs/affs/inode.c mark_buffer_dirty_inode(bh, inode); inode 393 fs/affs/inode.c affs_unlock_link(inode); inode 395 fs/affs/inode.c d_instantiate(dentry, inode); inode 403 fs/affs/inode.c affs_unlock_link(inode); inode 204 fs/affs/namei.c struct inode *inode = NULL; inode 225 fs/affs/namei.c inode = affs_iget(sb, ino); inode 226 fs/affs/namei.c if (IS_ERR(inode)) inode 227 fs/affs/namei.c return ERR_PTR(PTR_ERR(inode)); inode 230 fs/affs/namei.c d_add(dentry, inode); inode 248 fs/affs/namei.c struct inode *inode; inode 254 fs/affs/namei.c inode = affs_new_inode(dir); inode 255 fs/affs/namei.c if (!inode) inode 258 fs/affs/namei.c inode->i_mode = mode; inode 259 fs/affs/namei.c mode_to_prot(inode); inode 260 fs/affs/namei.c mark_inode_dirty(inode); inode 262 fs/affs/namei.c inode->i_op = &affs_file_inode_operations; inode 263 fs/affs/namei.c inode->i_fop = &affs_file_operations; inode 264 fs/affs/namei.c inode->i_mapping->a_ops = (AFFS_SB(sb)->s_flags & SF_OFS) ? &affs_aops_ofs : &affs_aops; inode 265 fs/affs/namei.c error = affs_add_entry(dir, inode, dentry, ST_FILE); inode 267 fs/affs/namei.c inode->i_nlink = 0; inode 268 fs/affs/namei.c iput(inode); inode 277 fs/affs/namei.c struct inode *inode; inode 283 fs/affs/namei.c inode = affs_new_inode(dir); inode 284 fs/affs/namei.c if (!inode) inode 287 fs/affs/namei.c inode->i_mode = S_IFDIR | mode; inode 288 fs/affs/namei.c mode_to_prot(inode); inode 290 fs/affs/namei.c inode->i_op = &affs_dir_inode_operations; inode 291 fs/affs/namei.c inode->i_fop = &affs_dir_operations; inode 293 fs/affs/namei.c error = affs_add_entry(dir, inode, dentry, ST_USERDIR); inode 295 fs/affs/namei.c inode->i_nlink = 0; inode 296 fs/affs/namei.c mark_inode_dirty(inode); inode 297 fs/affs/namei.c iput(inode); inode 318 fs/affs/namei.c struct inode *inode; inode 327 fs/affs/namei.c inode = affs_new_inode(dir); inode 328 fs/affs/namei.c if (!inode) inode 331 fs/affs/namei.c inode->i_op = &affs_symlink_inode_operations; inode 332 fs/affs/namei.c inode->i_data.a_ops = &affs_symlink_aops; inode 333 fs/affs/namei.c inode->i_mode = S_IFLNK | 0777; inode 334 fs/affs/namei.c mode_to_prot(inode); inode 337 fs/affs/namei.c bh = affs_bread(sb, inode->i_ino); inode 368 fs/affs/namei.c mark_buffer_dirty_inode(bh, inode); inode 370 fs/affs/namei.c mark_inode_dirty(inode); inode 372 fs/affs/namei.c error = affs_add_entry(dir, inode, dentry, ST_SOFTLINK); inode 379 fs/affs/namei.c inode->i_nlink = 0; inode 380 fs/affs/namei.c mark_inode_dirty(inode); inode 381 fs/affs/namei.c iput(inode); inode 388 fs/affs/namei.c struct inode *inode = old_dentry->d_inode; inode 390 fs/affs/namei.c pr_debug("AFFS: link(%u, %u, \"%.*s\")\n", (u32)inode->i_ino, (u32)dir->i_ino, inode 393 fs/affs/namei.c return affs_add_entry(dir, inode, dentry, ST_LINKFILE); inode 72 fs/affs/super.c static struct inode *affs_alloc_inode(struct super_block *sb) inode 90 fs/affs/super.c kmem_cache_free(affs_inode_cachep, AFFS_I(inode)); inode 266 fs/affs/super.c struct inode *root_inode = NULL; inode 16 fs/affs/symlink.c struct inode *inode = page->mapping->host; inode 25 fs/affs/symlink.c pr_debug("AFFS: follow_link(ino=%lu)\n",inode->i_ino); inode 28 fs/affs/symlink.c bh = affs_bread(inode->i_sb, inode->i_ino); inode 35 fs/affs/symlink.c pf = AFFS_SB(inode->i_sb)->s_prefix ? AFFS_SB(inode->i_sb)->s_prefix : "/"; inode 219 fs/afs/dir.c _enter("{%lu}", inode->i_ino); inode 224 fs/afs/dir.c if (test_bit(AFS_VNODE_DELETED, &AFS_FS_I(inode)->flags)) inode 227 fs/afs/dir.c return afs_open(inode, file); inode 491 fs/afs/dir.c struct inode *inode; inode 539 fs/afs/dir.c inode = afs_iget(dir->i_sb, key, &fid, NULL, NULL); inode 541 fs/afs/dir.c if (IS_ERR(inode)) { inode 542 fs/afs/dir.c _leave(" = %ld", PTR_ERR(inode)); inode 543 fs/afs/dir.c return ERR_CAST(inode); inode 548 fs/afs/dir.c d_add(dentry, inode); inode 732 fs/afs/dir.c struct inode *inode; inode 757 fs/afs/dir.c inode = afs_iget(dir->i_sb, key, &fid, &status, &cb); inode 758 fs/afs/dir.c if (IS_ERR(inode)) { inode 761 fs/afs/dir.c ret = PTR_ERR(inode); inode 766 fs/afs/dir.c vnode = AFS_FS_I(inode); inode 773 fs/afs/dir.c d_instantiate(dentry, inode); inode 917 fs/afs/dir.c struct inode *inode; inode 942 fs/afs/dir.c inode = afs_iget(dir->i_sb, key, &fid, &status, &cb); inode 943 fs/afs/dir.c if (IS_ERR(inode)) { inode 946 fs/afs/dir.c ret = PTR_ERR(inode); inode 951 fs/afs/dir.c vnode = AFS_FS_I(inode); inode 958 fs/afs/dir.c d_instantiate(dentry, inode); inode 1033 fs/afs/dir.c struct inode *inode; inode 1062 fs/afs/dir.c inode = afs_iget(dir->i_sb, key, &fid, &status, NULL); inode 1063 fs/afs/dir.c if (IS_ERR(inode)) { inode 1066 fs/afs/dir.c ret = PTR_ERR(inode); inode 1071 fs/afs/dir.c vnode = AFS_FS_I(inode); inode 1078 fs/afs/dir.c d_instantiate(dentry, inode); inode 64 fs/afs/file.c struct afs_vnode *vnode = AFS_FS_I(inode); inode 92 fs/afs/file.c struct afs_vnode *vnode = AFS_FS_I(inode); inode 142 fs/afs/file.c struct inode *inode; inode 148 fs/afs/file.c inode = page->mapping->host; inode 154 fs/afs/file.c _enter("{%x},{%lu},{%lu}", key_serial(key), inode->i_ino, page->index); inode 156 fs/afs/file.c vnode = AFS_FS_I(inode); inode 189 fs/afs/file.c len = min_t(size_t, i_size_read(inode) - offset, PAGE_SIZE); inode 35 fs/afs/inode.c struct inode *inode = AFS_VNODE_TO_I(vnode); inode 46 fs/afs/inode.c inode->i_mode = S_IFREG | vnode->status.mode; inode 47 fs/afs/inode.c inode->i_op = &afs_file_inode_operations; inode 48 fs/afs/inode.c inode->i_fop = &afs_file_operations; inode 51 fs/afs/inode.c inode->i_mode = S_IFDIR | vnode->status.mode; inode 52 fs/afs/inode.c inode->i_op = &afs_dir_inode_operations; inode 53 fs/afs/inode.c inode->i_fop = &afs_dir_file_operations; inode 56 fs/afs/inode.c inode->i_mode = S_IFLNK | vnode->status.mode; inode 57 fs/afs/inode.c inode->i_op = &page_symlink_inode_operations; inode 64 fs/afs/inode.c inode->i_nlink = vnode->status.nlink; inode 65 fs/afs/inode.c inode->i_uid = vnode->status.owner; inode 66 fs/afs/inode.c inode->i_gid = 0; inode 67 fs/afs/inode.c inode->i_size = vnode->status.size; inode 68 fs/afs/inode.c inode->i_ctime.tv_sec = vnode->status.mtime_server; inode 69 fs/afs/inode.c inode->i_ctime.tv_nsec = 0; inode 70 fs/afs/inode.c inode->i_atime = inode->i_mtime = inode->i_ctime; inode 71 fs/afs/inode.c inode->i_blocks = 0; inode 72 fs/afs/inode.c inode->i_version = vnode->fid.unique; inode 73 fs/afs/inode.c inode->i_mapping->a_ops = &afs_fs_aops; inode 80 fs/afs/inode.c inode->i_mode = S_IFDIR | vnode->status.mode; inode 81 fs/afs/inode.c inode->i_op = &afs_mntpt_inode_operations; inode 82 fs/afs/inode.c inode->i_fop = &afs_mntpt_file_operations; inode 96 fs/afs/inode.c return inode->i_ino == data->fid.vnode && inode 97 fs/afs/inode.c inode->i_version == data->fid.unique; inode 106 fs/afs/inode.c struct afs_vnode *vnode = AFS_FS_I(inode); inode 108 fs/afs/inode.c inode->i_ino = data->fid.vnode; inode 109 fs/afs/inode.c inode->i_version = data->fid.unique; inode 119 fs/afs/inode.c struct inode *afs_iget(struct super_block *sb, struct key *key, inode 126 fs/afs/inode.c struct inode *inode; inode 134 fs/afs/inode.c inode = iget5_locked(sb, fid->vnode, afs_iget5_test, afs_iget5_set, inode 136 fs/afs/inode.c if (!inode) { inode 142 fs/afs/inode.c inode, fid->vid, fid->vnode, fid->unique); inode 144 fs/afs/inode.c vnode = AFS_FS_I(inode); inode 147 fs/afs/inode.c if (!(inode->i_state & I_NEW)) { inode 148 fs/afs/inode.c _leave(" = %p", inode); inode 149 fs/afs/inode.c return inode; inode 192 fs/afs/inode.c inode->i_flags |= S_NOATIME; inode 193 fs/afs/inode.c unlock_new_inode(inode); inode 194 fs/afs/inode.c _leave(" = %p [CB { v=%u t=%u }]", inode, vnode->cb_version, vnode->cb_type); inode 195 fs/afs/inode.c return inode; inode 199 fs/afs/inode.c iget_failed(inode); inode 297 fs/afs/inode.c struct inode *inode; inode 299 fs/afs/inode.c inode = dentry->d_inode; inode 301 fs/afs/inode.c _enter("{ ino=%lu v=%llu }", inode->i_ino, inode 302 fs/afs/inode.c (unsigned long long)inode->i_version); inode 304 fs/afs/inode.c generic_fillattr(inode, stat); inode 316 fs/afs/inode.c vnode = AFS_FS_I(inode); inode 326 fs/afs/inode.c _debug("CLEAR INODE %p", inode); inode 328 fs/afs/inode.c ASSERTCMP(inode->i_ino, ==, vnode->fid.vnode); inode 330 fs/afs/internal.h struct inode vfs_inode; /* the VFS's inode record */ inode 544 fs/afs/internal.h extern struct inode *afs_iget(struct super_block *, struct key *, inode 675 fs/afs/internal.h return container_of(inode, struct afs_vnode, vfs_inode); inode 678 fs/afs/internal.h static inline struct inode *AFS_VNODE_TO_I(struct afs_vnode *vnode) inode 125 fs/afs/mntpt.c inode, file, inode 194 fs/afs/proc.c m->private = PDE(inode)->data; inode 452 fs/afs/proc.c cell = PDE(inode)->data; inode 471 fs/afs/proc.c return seq_release(inode, file); inode 558 fs/afs/proc.c cell = PDE(inode)->data; inode 578 fs/afs/proc.c return seq_release(inode, file); inode 663 fs/afs/proc.c cell = PDE(inode)->data; inode 682 fs/afs/proc.c return seq_release(inode, file); inode 87 fs/afs/security.c struct inode *auth_inode; inode 289 fs/afs/security.c struct afs_vnode *vnode = AFS_FS_I(inode); inode 319 fs/afs/security.c mask, access, S_ISDIR(inode->i_mode) ? "dir" : "file"); inode 321 fs/afs/security.c if (S_ISDIR(inode->i_mode)) { inode 349 fs/afs/security.c ret = generic_permission(inode, mask, NULL); inode 34 fs/afs/super.c static struct inode *afs_alloc_inode(struct super_block *sb); inode 293 fs/afs/super.c struct inode *inode = NULL; inode 319 fs/afs/super.c inode = afs_iget(sb, params->key, &fid, NULL, NULL); inode 320 fs/afs/super.c if (IS_ERR(inode)) inode 324 fs/afs/super.c root = d_alloc_root(inode); inode 334 fs/afs/super.c ret = PTR_ERR(inode); inode 335 fs/afs/super.c inode = NULL; inode 337 fs/afs/super.c iput(inode); inode 473 fs/afs/super.c static struct inode *afs_alloc_inode(struct super_block *sb) inode 500 fs/afs/super.c struct afs_vnode *vnode = AFS_FS_I(inode); inode 502 fs/afs/super.c _enter("%p{%x:%u}", inode, vnode->fid.vid, vnode->fid.vnode); inode 504 fs/afs/super.c _debug("DESTROY INODE %p", inode); inode 637 fs/afs/write.c struct afs_vnode *vnode = AFS_FS_I(inode); inode 644 fs/afs/write.c ret = filemap_fdatawait(inode->i_mapping); inode 646 fs/afs/write.c __mark_inode_dirty(inode, I_DIRTY_DATASYNC); inode 1337 fs/aio.c struct inode *inode = mapping->host; inode 1367 fs/aio.c (!S_ISFIFO(inode->i_mode) && !S_ISSOCK(inode->i_mode)))); inode 25 fs/anon_inodes.c static struct inode *anon_inode_inode; inode 140 fs/anon_inodes.c static struct inode *anon_inode_mkinode(void) inode 142 fs/anon_inodes.c struct inode *inode = new_inode(anon_inode_mnt->mnt_sb); inode 144 fs/anon_inodes.c if (!inode) inode 147 fs/anon_inodes.c inode->i_fop = &anon_inode_fops; inode 155 fs/anon_inodes.c inode->i_state = I_DIRTY; inode 156 fs/anon_inodes.c inode->i_mode = S_IRUSR | S_IWUSR; inode 157 fs/anon_inodes.c inode->i_uid = current->fsuid; inode 158 fs/anon_inodes.c inode->i_gid = current->fsgid; inode 159 fs/anon_inodes.c inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; inode 160 fs/anon_inodes.c return inode; inode 32 fs/attr.c (current->fsuid != inode->i_uid || inode 33 fs/attr.c attr->ia_uid != inode->i_uid) && !capable(CAP_CHOWN)) inode 38 fs/attr.c (current->fsuid != inode->i_uid || inode 39 fs/attr.c (!in_group_p(attr->ia_gid) && attr->ia_gid != inode->i_gid)) && inode 45 fs/attr.c if (!is_owner_or_cap(inode)) inode 49 fs/attr.c inode->i_gid) && !capable(CAP_FSETID)) inode 55 fs/attr.c if (!is_owner_or_cap(inode)) inode 71 fs/attr.c attr->ia_size != i_size_read(inode)) { inode 72 fs/attr.c int error = vmtruncate(inode, attr->ia_size); inode 78 fs/attr.c inode->i_uid = attr->ia_uid; inode 80 fs/attr.c inode->i_gid = attr->ia_gid; inode 82 fs/attr.c inode->i_atime = timespec_trunc(attr->ia_atime, inode 83 fs/attr.c inode->i_sb->s_time_gran); inode 85 fs/attr.c inode->i_mtime = timespec_trunc(attr->ia_mtime, inode 86 fs/attr.c inode->i_sb->s_time_gran); inode 88 fs/attr.c inode->i_ctime = timespec_trunc(attr->ia_ctime, inode 89 fs/attr.c inode->i_sb->s_time_gran); inode 93 fs/attr.c if (!in_group_p(inode->i_gid) && !capable(CAP_FSETID)) inode 95 fs/attr.c inode->i_mode = mode; inode 97 fs/attr.c mark_inode_dirty(inode); inode 105 fs/attr.c struct inode *inode = dentry->d_inode; inode 106 fs/attr.c mode_t mode = inode->i_mode; inode 112 fs/attr.c if (IS_IMMUTABLE(inode) || IS_APPEND(inode)) inode 116 fs/attr.c now = current_fs_time(inode->i_sb); inode 147 fs/attr.c attr->ia_mode = (inode->i_mode & ~S_ISUID); inode 154 fs/attr.c attr->ia_mode = inode->i_mode; inode 165 fs/attr.c if (inode->i_op && inode->i_op->setattr) { inode 168 fs/attr.c error = inode->i_op->setattr(dentry, attr); inode 170 fs/attr.c error = inode_change_ok(inode, attr); inode 174 fs/attr.c if ((ia_valid & ATTR_UID && attr->ia_uid != inode->i_uid) || inode 175 fs/attr.c (ia_valid & ATTR_GID && attr->ia_gid != inode->i_gid)) inode 176 fs/attr.c error = DQUOT_TRANSFER(inode, attr) ? -EDQUOT : 0; inode 178 fs/attr.c error = inode_setattr(inode, attr); inode 153 fs/autofs/autofs_i.h struct inode *autofs_iget(struct super_block *, unsigned long); inode 136 fs/autofs/inode.c struct inode * root_inode; inode 235 fs/autofs/inode.c struct inode *autofs_iget(struct super_block *sb, unsigned long ino) inode 239 fs/autofs/inode.c struct inode *inode; inode 241 fs/autofs/inode.c inode = iget_locked(sb, ino); inode 242 fs/autofs/inode.c if (!inode) inode 244 fs/autofs/inode.c if (!(inode->i_state & I_NEW)) inode 245 fs/autofs/inode.c return inode; inode 249 fs/autofs/inode.c inode->i_op = &simple_dir_inode_operations; inode 250 fs/autofs/inode.c inode->i_fop = &simple_dir_operations; inode 251 fs/autofs/inode.c inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO; inode 252 fs/autofs/inode.c inode->i_nlink = 2; inode 253 fs/autofs/inode.c inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; inode 254 fs/autofs/inode.c inode->i_blocks = 0; inode 257 fs/autofs/inode.c inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO | S_IWUSR; inode 258 fs/autofs/inode.c inode->i_op = &autofs_root_inode_operations; inode 259 fs/autofs/inode.c inode->i_fop = &autofs_root_operations; inode 260 fs/autofs/inode.c inode->i_uid = inode->i_gid = 0; /* Changed in read_super */ inode 264 fs/autofs/inode.c inode->i_uid = inode->i_sb->s_root->d_inode->i_uid; inode 265 fs/autofs/inode.c inode->i_gid = inode->i_sb->s_root->d_inode->i_gid; inode 277 fs/autofs/inode.c inode->i_op = &autofs_symlink_inode_operations; inode 279 fs/autofs/inode.c inode->i_private = sl; inode 280 fs/autofs/inode.c inode->i_mode = S_IFLNK | S_IRWXUGO; inode 281 fs/autofs/inode.c inode->i_mtime.tv_sec = inode->i_ctime.tv_sec = sl->mtime; inode 282 fs/autofs/inode.c inode->i_mtime.tv_nsec = inode->i_ctime.tv_nsec = 0; inode 283 fs/autofs/inode.c inode->i_size = sl->len; inode 284 fs/autofs/inode.c inode->i_nlink = 1; inode 288 fs/autofs/inode.c unlock_new_inode(inode); inode 289 fs/autofs/inode.c return inode; inode 48 fs/autofs/root.c struct inode * inode = filp->f_path.dentry->d_inode; inode 53 fs/autofs/root.c sbi = autofs_sbi(inode->i_sb); inode 60 fs/autofs/root.c if (filldir(dirent, ".", 1, nr, inode->i_ino, DT_DIR) < 0) inode 65 fs/autofs/root.c if (filldir(dirent, "..", 2, nr, inode->i_ino, DT_DIR) < 0) inode 87 fs/autofs/root.c struct inode * inode; inode 117 fs/autofs/root.c inode = autofs_iget(sb, ent->ino); inode 118 fs/autofs/root.c if (IS_ERR(inode)) { inode 122 fs/autofs/root.c dentry->d_inode = inode; inode 150 fs/autofs/root.c struct inode * dir; inode 277 fs/autofs/root.c struct inode *inode; inode 336 fs/autofs/root.c inode = autofs_iget(dir->i_sb, ent->ino); inode 337 fs/autofs/root.c if (IS_ERR(inode)) inode 338 fs/autofs/root.c return PTR_ERR(inode); inode 340 fs/autofs/root.c d_instantiate(dentry, inode); inode 437 fs/autofs/root.c struct inode *inode; inode 480 fs/autofs/root.c inode = autofs_iget(dir->i_sb, ino); inode 481 fs/autofs/root.c if (IS_ERR(inode)) { inode 483 fs/autofs/root.c return PTR_ERR(inode); inode 486 fs/autofs/root.c d_instantiate(dentry, inode); inode 550 fs/autofs/root.c struct autofs_sb_info *sbi = autofs_sbi(inode->i_sb); inode 575 fs/autofs/root.c return autofs_expire_run(inode->i_sb, sbi, filp->f_path.mnt, inode 51 fs/autofs4/autofs_i.h struct inode *inode; inode 161 fs/autofs4/autofs_i.h struct inode *autofs4_get_inode(struct super_block *, struct autofs_info *); inode 48 fs/autofs4/inode.c ino->inode = NULL; inode 183 fs/autofs4/inode.c struct inode *root_inode = mnt->mnt_sb->s_root->d_inode; inode 317 fs/autofs4/inode.c struct inode * root_inode; inode 443 fs/autofs4/inode.c struct inode *autofs4_get_inode(struct super_block *sb, inode 446 fs/autofs4/inode.c struct inode *inode = new_inode(sb); inode 448 fs/autofs4/inode.c if (inode == NULL) inode 451 fs/autofs4/inode.c inf->inode = inode; inode 452 fs/autofs4/inode.c inode->i_mode = inf->mode; inode 454 fs/autofs4/inode.c inode->i_uid = sb->s_root->d_inode->i_uid; inode 455 fs/autofs4/inode.c inode->i_gid = sb->s_root->d_inode->i_gid; inode 457 fs/autofs4/inode.c inode->i_uid = 0; inode 458 fs/autofs4/inode.c inode->i_gid = 0; inode 460 fs/autofs4/inode.c inode->i_blocks = 0; inode 461 fs/autofs4/inode.c inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; inode 464 fs/autofs4/inode.c inode->i_nlink = 2; inode 465 fs/autofs4/inode.c inode->i_op = &autofs4_dir_inode_operations; inode 466 fs/autofs4/inode.c inode->i_fop = &autofs4_dir_operations; inode 468 fs/autofs4/inode.c inode->i_size = inf->size; inode 469 fs/autofs4/inode.c inode->i_op = &autofs4_symlink_inode_operations; inode 472 fs/autofs4/inode.c return inode; inode 103 fs/autofs4/root.c return dcache_dir_open(inode, file); inode 256 fs/autofs4/root.c struct inode *dir = dentry->d_parent->d_inode; inode 345 fs/autofs4/root.c inf->inode = NULL; inode 614 fs/autofs4/root.c struct inode *inode; inode 642 fs/autofs4/root.c inode = autofs4_get_inode(dir->i_sb, ino); inode 643 fs/autofs4/root.c if (!inode) { inode 649 fs/autofs4/root.c d_add(dentry, inode); inode 662 fs/autofs4/root.c ino->inode = inode; inode 766 fs/autofs4/root.c struct inode *inode; inode 783 fs/autofs4/root.c inode = autofs4_get_inode(dir->i_sb, ino); inode 784 fs/autofs4/root.c if (!inode) { inode 789 fs/autofs4/root.c d_add(dentry, inode); inode 802 fs/autofs4/root.c ino->inode = inode; inode 876 fs/autofs4/root.c struct autofs_sb_info *sbi = autofs4_sbi(inode->i_sb); inode 909 fs/autofs4/root.c return autofs4_expire_run(inode->i_sb,filp->f_path.mnt,sbi, p); inode 912 fs/autofs4/root.c return autofs4_expire_multi(inode->i_sb,filp->f_path.mnt,sbi, p); inode 332 fs/bad_inode.c remove_inode_hash(inode); inode 334 fs/bad_inode.c inode->i_mode = S_IFREG; inode 335 fs/bad_inode.c inode->i_atime = inode->i_mtime = inode->i_ctime = inode 336 fs/bad_inode.c current_fs_time(inode->i_sb); inode 337 fs/bad_inode.c inode->i_op = &bad_inode_ops; inode 338 fs/bad_inode.c inode->i_fop = &bad_file_ops; inode 357 fs/bad_inode.c return (inode->i_op == &bad_inode_ops); inode 370 fs/bad_inode.c make_bad_inode(inode); inode 371 fs/bad_inode.c unlock_new_inode(inode); inode 372 fs/bad_inode.c iput(inode); inode 73 fs/befs/befs.h struct inode vfs_inode; inode 114 fs/befs/befs.h return list_entry(inode, struct befs_inode_info, vfs_inode); inode 101 fs/befs/debug.c befs_debug(sb, " magic1 %08x", fs32_to_cpu(sb, inode->magic1)); inode 103 fs/befs/debug.c tmp_run = fsrun_to_cpu(sb, inode->inode_num); inode 107 fs/befs/debug.c befs_debug(sb, " uid %u", fs32_to_cpu(sb, inode->uid)); inode 108 fs/befs/debug.c befs_debug(sb, " gid %u", fs32_to_cpu(sb, inode->gid)); inode 109 fs/befs/debug.c befs_debug(sb, " mode %08x", fs32_to_cpu(sb, inode->mode)); inode 110 fs/befs/debug.c befs_debug(sb, " flags %08x", fs32_to_cpu(sb, inode->flags)); inode 112 fs/befs/debug.c fs64_to_cpu(sb, inode->create_time)); inode 114 fs/befs/debug.c fs64_to_cpu(sb, inode->last_modified_time)); inode 116 fs/befs/debug.c tmp_run = fsrun_to_cpu(sb, inode->parent); inode 120 fs/befs/debug.c tmp_run = fsrun_to_cpu(sb, inode->attributes); inode 124 fs/befs/debug.c befs_debug(sb, " type %08x", fs32_to_cpu(sb, inode->type)); inode 125 fs/befs/debug.c befs_debug(sb, " inode_size %u", fs32_to_cpu(sb, inode->inode_size)); inode 127 fs/befs/debug.c if (S_ISLNK(fs32_to_cpu(sb, inode->mode))) { inode 128 fs/befs/debug.c befs_debug(sb, " Symbolic link [%s]", inode->data.symlink); inode 134 fs/befs/debug.c fsrun_to_cpu(sb, inode->data.datastream.direct[i]); inode 141 fs/befs/debug.c inode->data.datastream. inode 144 fs/befs/debug.c tmp_run = fsrun_to_cpu(sb, inode->data.datastream.indirect); inode 151 fs/befs/debug.c inode->data.datastream. inode 155 fs/befs/debug.c fsrun_to_cpu(sb, inode->data.datastream.double_indirect); inode 162 fs/befs/debug.c inode->data.datastream. inode 166 fs/befs/debug.c fs64_to_cpu(sb, inode->data.datastream.size)); inode 28 fs/befs/inode.c "Inode has a bad magic header - inode = %lu", inode); inode 35 fs/befs/inode.c if (inode != iaddr2blockno(sb, &ino_num)) { inode 38 fs/befs/inode.c inode, iaddr2blockno(sb, &ino_num)); inode 47 fs/befs/inode.c befs_error(sb, "inode is not used - inode = %lu", inode); inode 38 fs/befs/linuxvfs.c static struct inode *befs_iget(struct super_block *, unsigned long); inode 39 fs/befs/linuxvfs.c static struct inode *befs_alloc_inode(struct super_block *sb); inode 122 fs/befs/linuxvfs.c struct super_block *sb = inode->i_sb; inode 123 fs/befs/linuxvfs.c befs_data_stream *ds = &BEFS_I(inode)->i_data.ds; inode 129 fs/befs/linuxvfs.c inode->i_ino, block); inode 134 fs/befs/linuxvfs.c block, inode->i_ino); inode 140 fs/befs/linuxvfs.c "block %ld in inode %lu", block, inode->i_ino); inode 148 fs/befs/linuxvfs.c "%ld ERROR", inode->i_ino, block); inode 154 fs/befs/linuxvfs.c map_bh(bh_result, inode->i_sb, disk_off); inode 157 fs/befs/linuxvfs.c "disk address %lu", inode->i_ino, block, disk_off); inode 165 fs/befs/linuxvfs.c struct inode *inode = NULL; inode 202 fs/befs/linuxvfs.c inode = befs_iget(dir->i_sb, (ino_t) offset); inode 203 fs/befs/linuxvfs.c if (IS_ERR(inode)) inode 204 fs/befs/linuxvfs.c return ERR_CAST(inode); inode 206 fs/befs/linuxvfs.c d_add(dentry, inode); inode 216 fs/befs/linuxvfs.c struct inode *inode = filp->f_path.dentry->d_inode; inode 217 fs/befs/linuxvfs.c struct super_block *sb = inode->i_sb; inode 218 fs/befs/linuxvfs.c befs_data_stream *ds = &BEFS_I(inode)->i_data.ds; inode 230 fs/befs/linuxvfs.c dirname, inode->i_ino, filp->f_pos); inode 238 fs/befs/linuxvfs.c dirname, inode->i_ino); inode 276 fs/befs/linuxvfs.c static struct inode * inode 290 fs/befs/linuxvfs.c kmem_cache_free(befs_inode_cachep, BEFS_I(inode)); inode 300 fs/befs/linuxvfs.c static struct inode *befs_iget(struct super_block *sb, unsigned long ino) inode 307 fs/befs/linuxvfs.c struct inode *inode; inode 312 fs/befs/linuxvfs.c inode = iget_locked(sb, ino); inode 313 fs/befs/linuxvfs.c if (IS_ERR(inode)) inode 314 fs/befs/linuxvfs.c return inode; inode 315 fs/befs/linuxvfs.c if (!(inode->i_state & I_NEW)) inode 316 fs/befs/linuxvfs.c return inode; inode 318 fs/befs/linuxvfs.c befs_ino = BEFS_I(inode); inode 321 fs/befs/linuxvfs.c befs_ino->i_inode_num = blockno2iaddr(sb, inode->i_ino); inode 327 fs/befs/linuxvfs.c bh = befs_bread(sb, inode->i_ino); inode 330 fs/befs/linuxvfs.c "inode = %lu", inode->i_ino); inode 338 fs/befs/linuxvfs.c if (befs_check_inode(sb, raw_inode, inode->i_ino) != BEFS_OK) { inode 339 fs/befs/linuxvfs.c befs_error(sb, "Bad inode: %lu", inode->i_ino); inode 343 fs/befs/linuxvfs.c inode->i_mode = (umode_t) fs32_to_cpu(sb, raw_inode->mode); inode 350 fs/befs/linuxvfs.c inode->i_uid = befs_sb->mount_opts.use_uid ? inode 352 fs/befs/linuxvfs.c inode->i_gid = befs_sb->mount_opts.use_gid ? inode 355 fs/befs/linuxvfs.c inode->i_nlink = 1; inode 366 fs/befs/linuxvfs.c inode->i_mtime.tv_sec = inode 368 fs/befs/linuxvfs.c inode->i_mtime.tv_nsec = 0; /* lower 16 bits are not a time */ inode 369 fs/befs/linuxvfs.c inode->i_ctime = inode->i_mtime; inode 370 fs/befs/linuxvfs.c inode->i_atime = inode->i_mtime; inode 377 fs/befs/linuxvfs.c if (S_ISLNK(inode->i_mode) && !(befs_ino->i_flags & BEFS_LONG_SYMLINK)){ inode 378 fs/befs/linuxvfs.c inode->i_size = 0; inode 379 fs/befs/linuxvfs.c inode->i_blocks = befs_sb->block_size / VFS_BLOCK_SIZE; inode 389 fs/befs/linuxvfs.c inode->i_blocks = inode 391 fs/befs/linuxvfs.c inode->i_size = befs_ino->i_data.ds.size; inode 394 fs/befs/linuxvfs.c inode->i_mapping->a_ops = &befs_aops; inode 396 fs/befs/linuxvfs.c if (S_ISREG(inode->i_mode)) { inode 397 fs/befs/linuxvfs.c inode->i_fop = &generic_ro_fops; inode 398 fs/befs/linuxvfs.c } else if (S_ISDIR(inode->i_mode)) { inode 399 fs/befs/linuxvfs.c inode->i_op = &befs_dir_inode_operations; inode 400 fs/befs/linuxvfs.c inode->i_fop = &befs_dir_operations; inode 401 fs/befs/linuxvfs.c } else if (S_ISLNK(inode->i_mode)) { inode 402 fs/befs/linuxvfs.c inode->i_op = &befs_symlink_inode_operations; inode 406 fs/befs/linuxvfs.c "on disk special files", inode->i_ino); inode 412 fs/befs/linuxvfs.c unlock_new_inode(inode); inode 413 fs/befs/linuxvfs.c return inode; inode 419 fs/befs/linuxvfs.c iget_failed(inode); inode 762 fs/befs/linuxvfs.c struct inode *root; inode 31 fs/bfs/bfs.h struct inode vfs_inode; inode 41 fs/bfs/bfs.h return container_of(inode, struct bfs_inode_info, vfs_inode); inode 49 fs/bfs/bfs.h extern struct inode *bfs_iget(struct super_block *sb, unsigned long ino); inode 32 fs/bfs/dir.c struct inode *dir = f->f_path.dentry->d_inode; inode 91 fs/bfs/dir.c struct inode *inode; inode 96 fs/bfs/dir.c inode = new_inode(s); inode 97 fs/bfs/dir.c if (!inode) inode 103 fs/bfs/dir.c iput(inode); inode 108 fs/bfs/dir.c inode->i_uid = current->fsuid; inode 109 fs/bfs/dir.c inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->fsgid; inode 110 fs/bfs/dir.c inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; inode 111 fs/bfs/dir.c inode->i_blocks = 0; inode 112 fs/bfs/dir.c inode->i_op = &bfs_file_inops; inode 113 fs/bfs/dir.c inode->i_fop = &bfs_file_operations; inode 114 fs/bfs/dir.c inode->i_mapping->a_ops = &bfs_aops; inode 115 fs/bfs/dir.c inode->i_mode = mode; inode 116 fs/bfs/dir.c inode->i_ino = ino; inode 117 fs/bfs/dir.c BFS_I(inode)->i_dsk_ino = ino; inode 118 fs/bfs/dir.c BFS_I(inode)->i_sblock = 0; inode 119 fs/bfs/dir.c BFS_I(inode)->i_eblock = 0; inode 120 fs/bfs/dir.c insert_inode_hash(inode); inode 121 fs/bfs/dir.c mark_inode_dirty(inode); inode 125 fs/bfs/dir.c inode->i_ino); inode 127 fs/bfs/dir.c inode_dec_link_count(inode); inode 129 fs/bfs/dir.c iput(inode); inode 133 fs/bfs/dir.c d_instantiate(dentry, inode); inode 140 fs/bfs/dir.c struct inode *inode = NULL; inode 153 fs/bfs/dir.c inode = bfs_iget(dir->i_sb, ino); inode 154 fs/bfs/dir.c if (IS_ERR(inode)) { inode 156 fs/bfs/dir.c return ERR_CAST(inode); inode 160 fs/bfs/dir.c d_add(dentry, inode); inode 167 fs/bfs/dir.c struct inode *inode = old->d_inode; inode 168 fs/bfs/dir.c struct bfs_sb_info *info = BFS_SB(inode->i_sb); inode 173 fs/bfs/dir.c inode->i_ino); inode 178 fs/bfs/dir.c inc_nlink(inode); inode 179 fs/bfs/dir.c inode->i_ctime = CURRENT_TIME_SEC; inode 180 fs/bfs/dir.c mark_inode_dirty(inode); inode 181 fs/bfs/dir.c atomic_inc(&inode->i_count); inode 182 fs/bfs/dir.c d_instantiate(new, inode); inode 190 fs/bfs/dir.c struct inode *inode = dentry->d_inode; inode 193 fs/bfs/dir.c struct bfs_sb_info *info = BFS_SB(inode->i_sb); inode 197 fs/bfs/dir.c if (!bh || (le16_to_cpu(de->ino) != inode->i_ino)) inode 200 fs/bfs/dir.c if (!inode->i_nlink) { inode 202 fs/bfs/dir.c inode->i_sb->s_id, inode->i_ino, inode 203 fs/bfs/dir.c inode->i_nlink); inode 204 fs/bfs/dir.c inode->i_nlink = 1; inode 210 fs/bfs/dir.c inode->i_ctime = dir->i_ctime; inode 211 fs/bfs/dir.c inode_dec_link_count(inode); inode 223 fs/bfs/dir.c struct inode *old_inode, *new_inode; inode 71 fs/bfs/file.c struct super_block *sb = inode->i_sb; inode 73 fs/bfs/file.c struct bfs_inode_info *bi = BFS_I(inode); inode 115 fs/bfs/file.c mark_inode_dirty(inode); inode 129 fs/bfs/file.c err = bfs_move_blocks(inode->i_sb, bi->i_sblock, inode 133 fs/bfs/file.c inode->i_ino); inode 149 fs/bfs/file.c info->si_freeb -= bi->i_eblock - bi->i_sblock + 1 - inode->i_blocks; inode 150 fs/bfs/file.c mark_inode_dirty(inode); inode 35 fs/bfs/inode.c struct inode *bfs_iget(struct super_block *sb, unsigned long ino) inode 38 fs/bfs/inode.c struct inode *inode; inode 42 fs/bfs/inode.c inode = iget_locked(sb, ino); inode 43 fs/bfs/inode.c if (IS_ERR(inode)) inode 45 fs/bfs/inode.c if (!(inode->i_state & I_NEW)) inode 46 fs/bfs/inode.c return inode; inode 48 fs/bfs/inode.c if ((ino < BFS_ROOT_INO) || (ino > BFS_SB(inode->i_sb)->si_lasti)) { inode 49 fs/bfs/inode.c printf("Bad inode number %s:%08lx\n", inode->i_sb->s_id, ino); inode 54 fs/bfs/inode.c bh = sb_bread(inode->i_sb, block); inode 56 fs/bfs/inode.c printf("Unable to read inode %s:%08lx\n", inode->i_sb->s_id, inode 64 fs/bfs/inode.c inode->i_mode = 0x0000FFFF & le32_to_cpu(di->i_mode); inode 66 fs/bfs/inode.c inode->i_mode |= S_IFDIR; inode 67 fs/bfs/inode.c inode->i_op = &bfs_dir_inops; inode 68 fs/bfs/inode.c inode->i_fop = &bfs_dir_operations; inode 70 fs/bfs/inode.c inode->i_mode |= S_IFREG; inode 71 fs/bfs/inode.c inode->i_op = &bfs_file_inops; inode 72 fs/bfs/inode.c inode->i_fop = &bfs_file_operations; inode 73 fs/bfs/inode.c inode->i_mapping->a_ops = &bfs_aops; inode 76 fs/bfs/inode.c BFS_I(inode)->i_sblock = le32_to_cpu(di->i_sblock); inode 77 fs/bfs/inode.c BFS_I(inode)->i_eblock = le32_to_cpu(di->i_eblock); inode 78 fs/bfs/inode.c BFS_I(inode)->i_dsk_ino = le16_to_cpu(di->i_ino); inode 79 fs/bfs/inode.c inode->i_uid = le32_to_cpu(di->i_uid); inode 80 fs/bfs/inode.c inode->i_gid = le32_to_cpu(di->i_gid); inode 81 fs/bfs/inode.c inode->i_nlink = le32_to_cpu(di->i_nlink); inode 82 fs/bfs/inode.c inode->i_size = BFS_FILESIZE(di); inode 83 fs/bfs/inode.c inode->i_blocks = BFS_FILEBLOCKS(di); inode 84 fs/bfs/inode.c inode->i_atime.tv_sec = le32_to_cpu(di->i_atime); inode 85 fs/bfs/inode.c inode->i_mtime.tv_sec = le32_to_cpu(di->i_mtime); inode 86 fs/bfs/inode.c inode->i_ctime.tv_sec = le32_to_cpu(di->i_ctime); inode 87 fs/bfs/inode.c inode->i_atime.tv_nsec = 0; inode 88 fs/bfs/inode.c inode->i_mtime.tv_nsec = 0; inode 89 fs/bfs/inode.c inode->i_ctime.tv_nsec = 0; inode 92 fs/bfs/inode.c unlock_new_inode(inode); inode 93 fs/bfs/inode.c return inode; inode 96 fs/bfs/inode.c iget_failed(inode); inode 102 fs/bfs/inode.c unsigned int ino = (u16)inode->i_ino; inode 107 fs/bfs/inode.c struct bfs_sb_info *info = BFS_SB(inode->i_sb); inode 111 fs/bfs/inode.c if ((ino < BFS_ROOT_INO) || (ino > BFS_SB(inode->i_sb)->si_lasti)) { inode 112 fs/bfs/inode.c printf("Bad inode number %s:%08x\n", inode->i_sb->s_id, ino); inode 118 fs/bfs/inode.c bh = sb_bread(inode->i_sb, block); inode 121 fs/bfs/inode.c inode->i_sb->s_id, ino); inode 135 fs/bfs/inode.c di->i_mode = cpu_to_le32(inode->i_mode); inode 136 fs/bfs/inode.c di->i_uid = cpu_to_le32(inode->i_uid); inode 137 fs/bfs/inode.c di->i_gid = cpu_to_le32(inode->i_gid); inode 138 fs/bfs/inode.c di->i_nlink = cpu_to_le32(inode->i_nlink); inode 139 fs/bfs/inode.c di->i_atime = cpu_to_le32(inode->i_atime.tv_sec); inode 140 fs/bfs/inode.c di->i_mtime = cpu_to_le32(inode->i_mtime.tv_sec); inode 141 fs/bfs/inode.c di->i_ctime = cpu_to_le32(inode->i_ctime.tv_sec); inode 142 fs/bfs/inode.c i_sblock = BFS_I(inode)->i_sblock; inode 144 fs/bfs/inode.c di->i_eblock = cpu_to_le32(BFS_I(inode)->i_eblock); inode 145 fs/bfs/inode.c di->i_eoffset = cpu_to_le32(i_sblock * BFS_BSIZE + inode->i_size - 1); inode 155 fs/bfs/inode.c unsigned long ino = inode->i_ino; inode 159 fs/bfs/inode.c struct super_block *s = inode->i_sb; inode 161 fs/bfs/inode.c struct bfs_inode_info *bi = BFS_I(inode); inode 165 fs/bfs/inode.c truncate_inode_pages(&inode->i_data, 0); inode 172 fs/bfs/inode.c inode->i_size = 0; inode 173 fs/bfs/inode.c inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME_SEC; inode 175 fs/bfs/inode.c mark_inode_dirty(inode); inode 181 fs/bfs/inode.c inode->i_sb->s_id, ino); inode 209 fs/bfs/inode.c clear_inode(inode); inode 253 fs/bfs/inode.c static struct inode *bfs_alloc_inode(struct super_block *sb) inode 264 fs/bfs/inode.c kmem_cache_free(bfs_inode_cachep, BFS_I(inode)); inode 326 fs/bfs/inode.c struct inode *inode; inode 364 fs/bfs/inode.c inode = bfs_iget(s, BFS_ROOT_INO); inode 365 fs/bfs/inode.c if (IS_ERR(inode)) { inode 366 fs/bfs/inode.c ret = PTR_ERR(inode); inode 370 fs/bfs/inode.c s->s_root = d_alloc_root(inode); inode 372 fs/bfs/inode.c iput(inode); inode 452 fs/binfmt_aout.c struct inode * inode; inode 458 fs/binfmt_aout.c inode = file->f_path.dentry->d_inode; inode 468 fs/binfmt_aout.c i_size_read(inode) < ex.a_text+ex.a_data+N_SYMSIZE(ex)+N_TXTOFF(ex)) { inode 423 fs/binfmt_flat.c struct inode *inode; inode 430 fs/binfmt_flat.c inode = bprm->file->f_path.dentry->d_inode; inode 493 fs/binfmt_misc.c static struct inode *bm_get_inode(struct super_block *sb, int mode) inode 495 fs/binfmt_misc.c struct inode * inode = new_inode(sb); inode 497 fs/binfmt_misc.c if (inode) { inode 498 fs/binfmt_misc.c inode->i_mode = mode; inode 499 fs/binfmt_misc.c inode->i_uid = 0; inode 500 fs/binfmt_misc.c inode->i_gid = 0; inode 501 fs/binfmt_misc.c inode->i_blocks = 0; inode 502 fs/binfmt_misc.c inode->i_atime = inode->i_mtime = inode->i_ctime = inode 503 fs/binfmt_misc.c current_fs_time(inode->i_sb); inode 505 fs/binfmt_misc.c return inode; inode 510 fs/binfmt_misc.c kfree(inode->i_private); inode 589 fs/binfmt_misc.c struct inode *inode; inode 610 fs/binfmt_misc.c inode = bm_get_inode(sb, S_IFREG | 0644); inode 613 fs/binfmt_misc.c if (!inode) inode 618 fs/binfmt_misc.c iput(inode); inode 619 fs/binfmt_misc.c inode = NULL; inode 624 fs/binfmt_misc.c inode->i_private = e; inode 625 fs/binfmt_misc.c inode->i_fop = &bm_entry_operations; inode 627 fs/binfmt_misc.c d_instantiate(dentry, inode); inode 32 fs/block_dev.c struct inode vfs_inode; inode 39 fs/block_dev.c return container_of(inode, struct bdev_inode, vfs_inode); inode 44 fs/block_dev.c return &BDEV_I(inode)->bdev; inode 120 fs/block_dev.c if (iblock >= max_block(I_BDEV(inode))) { inode 132 fs/block_dev.c bh->b_bdev = I_BDEV(inode); inode 142 fs/block_dev.c sector_t end_block = max_block(I_BDEV(inode)); inode 143 fs/block_dev.c unsigned long max_blocks = bh->b_size >> inode->i_blkbits; inode 158 fs/block_dev.c bh->b_bdev = I_BDEV(inode); inode 160 fs/block_dev.c bh->b_size = max_blocks << inode->i_blkbits; inode 171 fs/block_dev.c struct inode *inode = file->f_mapping->host; inode 173 fs/block_dev.c return blockdev_direct_IO_no_locking(rw, iocb, inode, I_BDEV(inode), inode 216 fs/block_dev.c struct inode *bd_inode = file->f_mapping->host; inode 258 fs/block_dev.c static struct inode *bdev_alloc_inode(struct super_block *sb) inode 268 fs/block_dev.c struct bdev_inode *bdi = BDEV_I(inode); inode 292 fs/block_dev.c list_del_init(&inode->i_devices); inode 293 fs/block_dev.c inode->i_bdev = NULL; inode 294 fs/block_dev.c inode->i_mapping = &inode->i_data; inode 299 fs/block_dev.c struct block_device *bdev = &BDEV_I(inode)->bdev; inode 303 fs/block_dev.c __bd_forget(list_entry(p, struct inode, i_devices)); inode 360 fs/block_dev.c return BDEV_I(inode)->bdev.bd_dev == *(dev_t *)data; inode 365 fs/block_dev.c BDEV_I(inode)->bdev.bd_dev = *(dev_t *)data; inode 374 fs/block_dev.c struct inode *inode; inode 376 fs/block_dev.c inode = iget5_locked(bd_mnt->mnt_sb, hash(dev), inode 379 fs/block_dev.c if (!inode) inode 382 fs/block_dev.c bdev = &BDEV_I(inode)->bdev; inode 384 fs/block_dev.c if (inode->i_state & I_NEW) { inode 386 fs/block_dev.c bdev->bd_inode = inode; inode 387 fs/block_dev.c bdev->bd_block_size = (1 << inode->i_blkbits); inode 390 fs/block_dev.c inode->i_mode = S_IFBLK; inode 391 fs/block_dev.c inode->i_rdev = dev; inode 392 fs/block_dev.c inode->i_bdev = bdev; inode 393 fs/block_dev.c inode->i_data.a_ops = &def_blk_aops; inode 394 fs/block_dev.c mapping_set_gfp_mask(&inode->i_data, GFP_USER); inode 395 fs/block_dev.c inode->i_data.backing_dev_info = &default_backing_dev_info; inode 399 fs/block_dev.c unlock_new_inode(inode); inode 430 fs/block_dev.c bdev = inode->i_bdev; inode 438 fs/block_dev.c bdev = bdget(inode->i_rdev); inode 441 fs/block_dev.c if (!inode->i_bdev) { inode 449 fs/block_dev.c inode->i_bdev = bdev; inode 450 fs/block_dev.c inode->i_mapping = bdev->bd_inode->i_mapping; inode 451 fs/block_dev.c list_add(&inode->i_devices, &bdev->bd_inodes); inode 465 fs/block_dev.c if (inode->i_bdev) { inode 466 fs/block_dev.c if (inode->i_sb != blockdev_superblock) inode 467 fs/block_dev.c bdev = inode->i_bdev; inode 468 fs/block_dev.c __bd_forget(inode); inode 1145 fs/block_dev.c bdev = bd_acquire(inode); inode 1166 fs/block_dev.c struct inode *bd_inode = bdev->bd_inode; inode 1274 fs/block_dev.c struct inode *inode; inode 1285 fs/block_dev.c inode = nd.path.dentry->d_inode; inode 1287 fs/block_dev.c if (!S_ISBLK(inode->i_mode)) inode 1293 fs/block_dev.c bdev = bd_acquire(inode); inode 264 fs/buffer.c struct inode *bd_inode = bdev->bd_inode; inode 594 fs/buffer.c return !list_empty(&inode->i_data.private_list); inode 674 fs/buffer.c struct address_space *mapping = inode->i_mapping; inode 871 fs/buffer.c if (inode_has_buffers(inode)) { inode 872 fs/buffer.c struct address_space *mapping = &inode->i_data; inode 893 fs/buffer.c if (inode_has_buffers(inode)) { inode 894 fs/buffer.c struct address_space *mapping = &inode->i_data; inode 1031 fs/buffer.c struct inode *inode = bdev->bd_inode; inode 1035 fs/buffer.c page = find_or_create_page(inode->i_mapping, index, inode 1036 fs/buffer.c (mapping_gfp_mask(inode->i_mapping) & ~__GFP_FS)|__GFP_MOVABLE); inode 1064 fs/buffer.c spin_lock(&inode->i_mapping->private_lock); inode 1067 fs/buffer.c spin_unlock(&inode->i_mapping->private_lock); inode 1651 fs/buffer.c const unsigned blocksize = 1 << inode->i_blkbits; inode 1656 fs/buffer.c last_block = (i_size_read(inode) - 1) >> inode->i_blkbits; inode 1673 fs/buffer.c block = (sector_t)page->index << (PAGE_CACHE_SHIFT - inode->i_blkbits); inode 1696 fs/buffer.c err = get_block(inode, block, bh, 1); inode 1863 fs/buffer.c blocksize = 1 << inode->i_blkbits; inode 1868 fs/buffer.c bbits = inode->i_blkbits; inode 1885 fs/buffer.c err = get_block(inode, block, bh, 1); inode 1937 fs/buffer.c blocksize = 1 << inode->i_blkbits; inode 1977 fs/buffer.c struct inode *inode = mapping->host; inode 2000 fs/buffer.c status = __block_prepare_write(inode, page, start, end, get_block); inode 2014 fs/buffer.c if (pos + len > inode->i_size) inode 2015 fs/buffer.c vmtruncate(inode, inode->i_size); inode 2029 fs/buffer.c struct inode *inode = mapping->host; inode 2055 fs/buffer.c __block_commit_write(inode, page, start, start+copied); inode 2065 fs/buffer.c struct inode *inode = mapping->host; inode 2077 fs/buffer.c if (pos+copied > inode->i_size) { inode 2078 fs/buffer.c i_size_write(inode, pos+copied); inode 2092 fs/buffer.c mark_inode_dirty(inode); inode 2108 fs/buffer.c struct inode *inode = page->mapping->host; inode 2117 fs/buffer.c blocksize = 1 << inode->i_blkbits; inode 2153 fs/buffer.c struct inode *inode = page->mapping->host; inode 2161 fs/buffer.c blocksize = 1 << inode->i_blkbits; inode 2166 fs/buffer.c iblock = (sector_t)page->index << (PAGE_CACHE_SHIFT - inode->i_blkbits); inode 2167 fs/buffer.c lblock = (i_size_read(inode)+blocksize-1) >> inode->i_blkbits; inode 2182 fs/buffer.c err = get_block(inode, iblock, bh, 0); inode 2244 fs/buffer.c struct address_space *mapping = inode->i_mapping; inode 2256 fs/buffer.c if (size > inode->i_sb->s_maxbytes) inode 2275 fs/buffer.c struct inode *inode = mapping->host; inode 2276 fs/buffer.c unsigned blocksize = 1 << inode->i_blkbits; inode 2350 fs/buffer.c struct inode *inode = mapping->host; inode 2351 fs/buffer.c unsigned blocksize = 1 << inode->i_blkbits; inode 2375 fs/buffer.c struct inode *inode = page->mapping->host; inode 2376 fs/buffer.c int err = __block_prepare_write(inode, page, from, to, get_block); inode 2384 fs/buffer.c struct inode *inode = page->mapping->host; inode 2385 fs/buffer.c __block_commit_write(inode,page,from,to); inode 2408 fs/buffer.c struct inode *inode = vma->vm_file->f_path.dentry->d_inode; inode 2414 fs/buffer.c size = i_size_read(inode); inode 2415 fs/buffer.c if ((page->mapping != inode->i_mapping) || inode 2479 fs/buffer.c struct inode *inode = mapping->host; inode 2480 fs/buffer.c const unsigned blkbits = inode->i_blkbits; inode 2546 fs/buffer.c ret = get_block(inode, block_in_file + block_in_page, inode 2612 fs/buffer.c if (pos + len > inode->i_size) inode 2613 fs/buffer.c vmtruncate(inode, inode->i_size); inode 2623 fs/buffer.c struct inode *inode = page->mapping->host; inode 2636 fs/buffer.c if (pos+copied > inode->i_size) { inode 2637 fs/buffer.c i_size_write(inode, pos+copied); inode 2638 fs/buffer.c mark_inode_dirty(inode); inode 2662 fs/buffer.c struct inode * const inode = page->mapping->host; inode 2663 fs/buffer.c loff_t i_size = i_size_read(inode); inode 2700 fs/buffer.c ret = __block_write_full_page(inode, page, get_block, wbc); inode 2713 fs/buffer.c struct inode *inode = mapping->host; inode 2718 fs/buffer.c blocksize = 1 << inode->i_blkbits; inode 2726 fs/buffer.c iblock = (sector_t)index << (PAGE_CACHE_SHIFT - inode->i_blkbits); inode 2747 fs/buffer.c err = get_block(inode, iblock, &map_bh, 0); inode 2789 fs/buffer.c struct inode *inode = mapping->host; inode 2794 fs/buffer.c blocksize = 1 << inode->i_blkbits; inode 2802 fs/buffer.c iblock = (sector_t)index << (PAGE_CACHE_SHIFT - inode->i_blkbits); inode 2824 fs/buffer.c err = get_block(inode, iblock, bh, 0); inode 2862 fs/buffer.c struct inode * const inode = page->mapping->host; inode 2863 fs/buffer.c loff_t i_size = i_size_read(inode); inode 2869 fs/buffer.c return __block_write_full_page(inode, page, get_block, wbc); inode 2892 fs/buffer.c return __block_write_full_page(inode, page, get_block, wbc); inode 2899 fs/buffer.c struct inode *inode = mapping->host; inode 2902 fs/buffer.c tmp.b_size = 1 << inode->i_blkbits; inode 2903 fs/buffer.c get_block(inode, block, &tmp, 0); inode 366 fs/char_dev.c p = inode->i_cdev; inode 371 fs/char_dev.c kobj = kobj_lookup(cdev_map, inode->i_rdev, &idx); inode 378 fs/char_dev.c p = inode->i_cdev; inode 380 fs/char_dev.c inode->i_cdev = p = new; inode 381 fs/char_dev.c inode->i_cindex = idx; inode 382 fs/char_dev.c list_add(&inode->i_devices, &p->list); inode 398 fs/char_dev.c ret = filp->f_op->open(inode,filp); inode 407 fs/char_dev.c list_del_init(&inode->i_devices); inode 408 fs/char_dev.c inode->i_cdev = NULL; inode 416 fs/char_dev.c struct inode *inode; inode 417 fs/char_dev.c inode = container_of(cdev->list.next, struct inode, i_devices); inode 418 fs/char_dev.c list_del_init(&inode->i_devices); inode 419 fs/char_dev.c inode->i_cdev = NULL; inode 343 fs/cifs/cifsacl.c inode->i_mode |= S_IRWXUGO; inode 360 fs/cifs/cifsacl.c inode->i_mode &= ~(S_IRWXUGO); inode 382 fs/cifs/cifsacl.c &(inode->i_mode), inode 387 fs/cifs/cifsacl.c &(inode->i_mode), inode 392 fs/cifs/cifsacl.c &(inode->i_mode), inode 475 fs/cifs/cifsacl.c if ((inode == NULL) || (pntsd == NULL)) inode 500 fs/cifs/cifsacl.c group_sid_ptr, inode); inode 528 fs/cifs/cifsacl.c if ((inode == NULL) || (pntsd == NULL) || (pnntsd == NULL)) inode 571 fs/cifs/cifsacl.c if (inode == NULL) inode 576 fs/cifs/cifsacl.c open_file = find_readable_file(CIFS_I(inode)); inode 580 fs/cifs/cifsacl.c sb = inode->i_sb; inode 628 fs/cifs/cifsacl.c cFYI(DBG2, ("set ACL for %s from mode 0x%x", path, inode->i_mode)); inode 630 fs/cifs/cifsacl.c if (!inode) inode 633 fs/cifs/cifsacl.c sb = inode->i_sb; inode 640 fs/cifs/cifsacl.c open_file = find_readable_file(CIFS_I(inode)); inode 678 fs/cifs/cifsacl.c pntsd = get_cifs_acl(&acllen, inode, path, pfid); inode 682 fs/cifs/cifsacl.c rc = parse_sec_desc(pntsd, acllen, inode); inode 701 fs/cifs/cifsacl.c pntsd = get_cifs_acl(&secdesclen, inode, path, NULL); inode 720 fs/cifs/cifsacl.c rc = build_sec_desc(pntsd, pnntsd, inode, nmode); inode 726 fs/cifs/cifsacl.c rc = set_cifs_acl(pnntsd, secdesclen, inode, path); inode 98 fs/cifs/cifsfs.c struct inode *inode; inode 149 fs/cifs/cifsfs.c inode = cifs_iget(sb, ROOT_I); inode 151 fs/cifs/cifsfs.c if (IS_ERR(inode)) { inode 152 fs/cifs/cifsfs.c rc = PTR_ERR(inode); inode 153 fs/cifs/cifsfs.c inode = NULL; inode 157 fs/cifs/cifsfs.c sb->s_root = d_alloc_root(inode); inode 175 fs/cifs/cifsfs.c if (inode) inode 176 fs/cifs/cifsfs.c iput(inode); inode 276 fs/cifs/cifsfs.c cifs_sb = CIFS_SB(inode->i_sb); inode 284 fs/cifs/cifsfs.c return generic_permission(inode, mask, NULL); inode 296 fs/cifs/cifsfs.c static struct inode * inode 324 fs/cifs/cifsfs.c kmem_cache_free(cifs_inode_cachep, CIFS_I(inode)); inode 593 fs/cifs/cifsfs.c struct inode *inode = iocb->ki_filp->f_path.dentry->d_inode; inode 597 fs/cifs/cifsfs.c if (!CIFS_I(inode)->clientCanCacheAll) inode 598 fs/cifs/cifsfs.c filemap_fdatawrite(inode->i_mapping); inode 773 fs/cifs/cifsfs.c struct cifsInodeInfo *cifsi = inode; inode 919 fs/cifs/cifsfs.c struct inode *inode; inode 938 fs/cifs/cifsfs.c inode = oplock_item->pinode; inode 947 fs/cifs/cifsfs.c if (S_ISREG(inode->i_mode)) { inode 948 fs/cifs/cifsfs.c rc = filemap_fdatawrite(inode->i_mapping); inode 949 fs/cifs/cifsfs.c if (CIFS_I(inode)->clientCanCacheRead == 0) { inode 951 fs/cifs/cifsfs.c inode->i_mapping); inode 952 fs/cifs/cifsfs.c invalidate_remote_inode(inode); inode 960 fs/cifs/cifsfs.c CIFS_I(inode)->write_behind_rc = rc; inode 962 fs/cifs/cifsfs.c inode, rc)); inode 39 fs/cifs/cifsfs.h extern struct inode *cifs_iget(struct super_block *, unsigned long); inode 330 fs/cifs/cifsglob.h struct inode *pInode; /* needed for oplock break */ inode 356 fs/cifs/cifsglob.h struct inode vfs_inode; inode 362 fs/cifs/cifsglob.h return container_of(inode, struct cifsInodeInfo, vfs_inode); inode 430 fs/cifs/cifsglob.h struct inode *pinode; inode 148 fs/cifs/dir.c struct inode *newinode = NULL; inode 156 fs/cifs/dir.c cifs_sb = CIFS_SB(inode->i_sb); inode 239 fs/cifs/dir.c if (inode->i_mode & S_ISGID) inode 240 fs/cifs/dir.c args.gid = (__u64) inode->i_gid; inode 262 fs/cifs/dir.c inode->i_sb, xid); inode 265 fs/cifs/dir.c buf, inode->i_sb, xid, inode 275 fs/cifs/dir.c if (inode->i_mode & S_ISGID) inode 277 fs/cifs/dir.c inode->i_gid; inode 356 fs/cifs/dir.c struct inode *newinode = NULL; inode 363 fs/cifs/dir.c cifs_sb = CIFS_SB(inode->i_sb); inode 391 fs/cifs/dir.c inode->i_sb, xid); inode 481 fs/cifs/dir.c struct inode *newInode = NULL; inode 53 fs/cifs/file.c private_data->pInode = inode; inode 149 fs/cifs/file.c full_path, inode->i_sb, xid); inode 152 fs/cifs/file.c full_path, buf, inode->i_sb, xid, NULL); inode 182 fs/cifs/file.c cifs_sb = CIFS_SB(inode->i_sb); inode 222 fs/cifs/file.c inode, file->f_flags, full_path)); inode 296 fs/cifs/file.c pCifsFile = cifs_init_private(file->private_data, inode, file, netfid); inode 302 fs/cifs/file.c rc = cifs_open_inode_helper(inode, file, pCifsInode, inode 314 fs/cifs/file.c .mode = inode->i_mode, inode 355 fs/cifs/file.c struct inode *inode; inode 381 fs/cifs/file.c inode = file->f_path.dentry->d_inode; inode 382 fs/cifs/file.c if (inode == NULL) { inode 389 fs/cifs/file.c cifs_sb = CIFS_SB(inode->i_sb); inode 406 fs/cifs/file.c inode, file->f_flags, full_path)); inode 432 fs/cifs/file.c pCifsInode = CIFS_I(inode); inode 435 fs/cifs/file.c rc = filemap_write_and_wait(inode->i_mapping); inode 437 fs/cifs/file.c CIFS_I(inode)->write_behind_rc = rc; inode 443 fs/cifs/file.c rc = cifs_get_inode_info_unix(&inode, inode 444 fs/cifs/file.c full_path, inode->i_sb, xid); inode 446 fs/cifs/file.c rc = cifs_get_inode_info(&inode, inode 447 fs/cifs/file.c full_path, NULL, inode->i_sb, inode 487 fs/cifs/file.c cifs_sb = CIFS_SB(inode->i_sb); inode 556 fs/cifs/file.c if (list_empty(&(CIFS_I(inode)->openFileList))) { inode 557 fs/cifs/file.c cFYI(1, ("closing last open instance for inode %p", inode)); inode 560 fs/cifs/file.c CIFS_I(inode)->clientCanCacheRead = false; inode 561 fs/cifs/file.c CIFS_I(inode)->clientCanCacheAll = false; inode 564 fs/cifs/file.c if ((rc == 0) && CIFS_I(inode)->write_behind_rc) inode 565 fs/cifs/file.c rc = CIFS_I(inode)->write_behind_rc; inode 578 fs/cifs/file.c cFYI(1, ("Closedir inode = 0x%p", inode)); inode 900 fs/cifs/file.c struct inode *inode = file->f_path.dentry->d_inode; inode 905 fs/cifs/file.c spin_lock(&inode->i_lock); inode 909 fs/cifs/file.c spin_unlock(&inode->i_lock); inode 1155 fs/cifs/file.c struct inode *inode; inode 1161 fs/cifs/file.c inode = page->mapping->host; inode 1162 fs/cifs/file.c cifs_sb = CIFS_SB(inode->i_sb); inode 1190 fs/cifs/file.c inode->i_atime = inode->i_mtime = current_fs_time(inode->i_sb); inode 1463 fs/cifs/file.c struct inode *inode = mapping->host; inode 1495 fs/cifs/file.c spin_lock(&inode->i_lock); inode 1496 fs/cifs/file.c if (pos > inode->i_size) inode 1497 fs/cifs/file.c i_size_write(inode, pos); inode 1498 fs/cifs/file.c spin_unlock(&inode->i_lock); inode 1511 fs/cifs/file.c struct inode *inode = file->f_path.dentry->d_inode; inode 1518 fs/cifs/file.c rc = filemap_write_and_wait(inode->i_mapping); inode 1520 fs/cifs/file.c rc = CIFS_I(inode)->write_behind_rc; inode 1521 fs/cifs/file.c CIFS_I(inode)->write_behind_rc = 0; inode 1561 fs/cifs/file.c struct inode *inode = file->f_path.dentry->d_inode; inode 1573 fs/cifs/file.c rc = filemap_fdatawrite(inode->i_mapping); inode 1576 fs/cifs/file.c rc = CIFS_I(inode)->write_behind_rc; inode 1577 fs/cifs/file.c CIFS_I(inode)->write_behind_rc = 0; inode 1580 fs/cifs/file.c cFYI(1, ("Flush inode %p file %p rc %d", inode, file, rc)); inode 35 fs/cifs/inode.c struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); inode 37 fs/cifs/inode.c switch (inode->i_mode & S_IFMT) { inode 39 fs/cifs/inode.c inode->i_op = &cifs_file_inode_ops; inode 42 fs/cifs/inode.c inode->i_fop = &cifs_file_direct_nobrl_ops; inode 44 fs/cifs/inode.c inode->i_fop = &cifs_file_direct_ops; inode 46 fs/cifs/inode.c inode->i_fop = &cifs_file_nobrl_ops; inode 48 fs/cifs/inode.c inode->i_fop = &cifs_file_ops; inode 55 fs/cifs/inode.c inode->i_data.a_ops = &cifs_addr_ops_smallbuf; inode 57 fs/cifs/inode.c inode->i_data.a_ops = &cifs_addr_ops; inode 62 fs/cifs/inode.c inode->i_op = &cifs_dfs_referral_inode_operations; inode 67 fs/cifs/inode.c inode->i_op = &cifs_dir_inode_ops; inode 68 fs/cifs/inode.c inode->i_fop = &cifs_dir_ops; inode 72 fs/cifs/inode.c inode->i_op = &cifs_symlink_inode_ops; inode 75 fs/cifs/inode.c init_special_inode(inode, inode->i_mode, inode->i_rdev); inode 83 fs/cifs/inode.c struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); inode 84 fs/cifs/inode.c struct cifsInodeInfo *cifsInfo = CIFS_I(inode); inode 88 fs/cifs/inode.c inode->i_atime = cifs_NTtimeToUnix(le64_to_cpu(info->LastAccessTime)); inode 89 fs/cifs/inode.c inode->i_mtime = inode 91 fs/cifs/inode.c inode->i_ctime = cifs_NTtimeToUnix(le64_to_cpu(info->LastStatusChange)); inode 92 fs/cifs/inode.c inode->i_mode = le64_to_cpu(info->Permissions); inode 98 fs/cifs/inode.c inode->i_mode &= ~S_IFMT; inode 101 fs/cifs/inode.c inode->i_mode |= S_IFREG; inode 104 fs/cifs/inode.c inode->i_mode |= S_IFLNK; inode 107 fs/cifs/inode.c inode->i_mode |= S_IFDIR; inode 110 fs/cifs/inode.c inode->i_mode |= S_IFCHR; inode 111 fs/cifs/inode.c inode->i_rdev = MKDEV(le64_to_cpu(info->DevMajor), inode 115 fs/cifs/inode.c inode->i_mode |= S_IFBLK; inode 116 fs/cifs/inode.c inode->i_rdev = MKDEV(le64_to_cpu(info->DevMajor), inode 120 fs/cifs/inode.c inode->i_mode |= S_IFIFO; inode 123 fs/cifs/inode.c inode->i_mode |= S_IFSOCK; inode 127 fs/cifs/inode.c inode->i_mode |= S_IFREG; inode 134 fs/cifs/inode.c inode->i_uid = cifs_sb->mnt_uid; inode 136 fs/cifs/inode.c inode->i_uid = le64_to_cpu(info->Uid); inode 140 fs/cifs/inode.c inode->i_gid = cifs_sb->mnt_gid; inode 142 fs/cifs/inode.c inode->i_gid = le64_to_cpu(info->Gid); inode 144 fs/cifs/inode.c inode->i_nlink = le64_to_cpu(info->Nlinks); inode 146 fs/cifs/inode.c spin_lock(&inode->i_lock); inode 152 fs/cifs/inode.c i_size_write(inode, end_of_file); inode 159 fs/cifs/inode.c inode->i_blocks = (512 - 1 + num_of_bytes) >> 9; inode 161 fs/cifs/inode.c spin_unlock(&inode->i_lock); inode 173 fs/cifs/inode.c struct inode *pinode = NULL; inode 208 fs/cifs/inode.c struct inode *inode; inode 254 fs/cifs/inode.c inode = *pinode; inode 255 fs/cifs/inode.c cifsInfo = CIFS_I(inode); inode 263 fs/cifs/inode.c cifs_unix_info_to_inode(inode, &find_data, 0); inode 268 fs/cifs/inode.c (unsigned long) inode->i_size, inode 269 fs/cifs/inode.c (unsigned long long)inode->i_blocks)); inode 271 fs/cifs/inode.c cifs_set_ops(inode, is_dfs_referral); inode 291 fs/cifs/inode.c inode->i_mode |= S_IFIFO; inode 312 fs/cifs/inode.c inode->i_mode |= S_IFBLK; inode 319 fs/cifs/inode.c inode->i_rdev = MKDEV(mjr, mnr); inode 323 fs/cifs/inode.c inode->i_mode |= S_IFCHR; inode 330 fs/cifs/inode.c inode->i_rdev = MKDEV(mjr, mnr); inode 334 fs/cifs/inode.c inode->i_mode |= S_IFLNK; inode 336 fs/cifs/inode.c inode->i_mode |= S_IFREG; /* file? */ inode 340 fs/cifs/inode.c inode->i_mode |= S_IFREG; /* then it is a file */ inode 366 fs/cifs/inode.c inode->i_mode &= ~SFBITS_MASK; inode 367 fs/cifs/inode.c cFYI(1, ("special bits 0%o org mode 0%o", mode, inode->i_mode)); inode 368 fs/cifs/inode.c inode->i_mode = (mode & SFBITS_MASK) | inode->i_mode; inode 416 fs/cifs/inode.c struct inode *inode; inode 506 fs/cifs/inode.c inode = *pinode; inode 507 fs/cifs/inode.c cifsInfo = CIFS_I(inode); inode 520 fs/cifs/inode.c inode->i_atime = cifs_NTtimeToUnix inode 523 fs/cifs/inode.c inode->i_atime = CURRENT_TIME; inode 524 fs/cifs/inode.c inode->i_mtime = inode 526 fs/cifs/inode.c inode->i_ctime = inode 530 fs/cifs/inode.c inode->i_ctime.tv_sec += pTcon->ses->server->timeAdj; inode 531 fs/cifs/inode.c inode->i_mtime.tv_sec += pTcon->ses->server->timeAdj; inode 543 fs/cifs/inode.c inode->i_mode = default_mode; inode 546 fs/cifs/inode.c if ((inode->i_mode & S_IWUGO) == 0 && inode 548 fs/cifs/inode.c inode->i_mode |= (S_IWUGO & default_mode); inode 550 fs/cifs/inode.c inode->i_mode &= ~S_IFMT; inode 554 fs/cifs/inode.c inode->i_mode &= ~S_IWUGO; inode 561 fs/cifs/inode.c inode->i_mode |= S_IFIFO; inode 562 fs/cifs/inode.c else if (decode_sfu_inode(inode, inode 568 fs/cifs/inode.c inode->i_mode |= S_IFDIR; inode 570 fs/cifs/inode.c inode->i_mode |= S_IFREG; inode 573 fs/cifs/inode.c spin_lock(&inode->i_lock); inode 578 fs/cifs/inode.c i_size_write(inode, le64_to_cpu(pfindData->EndOfFile)); inode 582 fs/cifs/inode.c inode->i_blocks = (512 - 1 + le64_to_cpu( inode 585 fs/cifs/inode.c spin_unlock(&inode->i_lock); inode 587 fs/cifs/inode.c inode->i_nlink = le32_to_cpu(pfindData->NumberOfLinks); inode 595 fs/cifs/inode.c acl_to_uid_mode(inode, full_path, pfid); inode 600 fs/cifs/inode.c get_sfu_mode(inode, full_path, cifs_sb, xid); inode 602 fs/cifs/inode.c inode->i_uid = cifs_sb->mnt_uid; inode 603 fs/cifs/inode.c inode->i_gid = cifs_sb->mnt_gid; inode 609 fs/cifs/inode.c cifs_set_ops(inode, is_dfs_referral); inode 624 fs/cifs/inode.c struct inode *cifs_iget(struct super_block *sb, unsigned long ino) inode 628 fs/cifs/inode.c struct inode *inode; inode 631 fs/cifs/inode.c inode = iget_locked(sb, ino); inode 632 fs/cifs/inode.c if (!inode) inode 634 fs/cifs/inode.c if (!(inode->i_state & I_NEW)) inode 635 fs/cifs/inode.c return inode; inode 637 fs/cifs/inode.c cifs_sb = CIFS_SB(inode->i_sb); inode 641 fs/cifs/inode.c rc = cifs_get_inode_info_unix(&inode, "", inode->i_sb, xid); inode 643 fs/cifs/inode.c rc = cifs_get_inode_info(&inode, "", NULL, inode->i_sb, xid, inode 647 fs/cifs/inode.c inode->i_mode |= S_IFDIR; inode 648 fs/cifs/inode.c inode->i_nlink = 2; inode 649 fs/cifs/inode.c inode->i_op = &cifs_ipc_inode_ops; inode 650 fs/cifs/inode.c inode->i_fop = &simple_dir_operations; inode 651 fs/cifs/inode.c inode->i_uid = cifs_sb->mnt_uid; inode 652 fs/cifs/inode.c inode->i_gid = cifs_sb->mnt_gid; inode 655 fs/cifs/inode.c iget_failed(inode); inode 659 fs/cifs/inode.c unlock_new_inode(inode); inode 665 fs/cifs/inode.c return inode; inode 678 fs/cifs/inode.c struct cifsInodeInfo *cifsInode = CIFS_I(inode); inode 679 fs/cifs/inode.c struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); inode 780 fs/cifs/inode.c struct cifsInodeInfo *cifsInode = CIFS_I(inode); inode 781 fs/cifs/inode.c struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); inode 795 fs/cifs/inode.c cifsInode = CIFS_I(inode); inode 839 fs/cifs/inode.c struct inode *inode = dentry->d_inode; inode 840 fs/cifs/inode.c struct cifsInodeInfo *cifsInode = CIFS_I(inode); inode 876 fs/cifs/inode.c if (inode) inode 877 fs/cifs/inode.c drop_nlink(inode); inode 881 fs/cifs/inode.c rc = cifs_rename_pending_delete(full_path, inode, xid); inode 883 fs/cifs/inode.c drop_nlink(inode); inode 900 fs/cifs/inode.c rc = cifs_set_file_info(inode, attrs, xid, full_path, dosattr); inode 909 fs/cifs/inode.c cifs_set_file_info(inode, attrs, xid, full_path, origattr); inode 912 fs/cifs/inode.c if (inode) { inode 913 fs/cifs/inode.c cifsInode = CIFS_I(inode); inode 916 fs/cifs/inode.c inode->i_ctime = current_fs_time(sb); inode 973 fs/cifs/inode.c struct inode *newinode = NULL; inode 975 fs/cifs/inode.c cFYI(1, ("In cifs_mkdir, mode = 0x%x inode = 0x%p", mode, inode)); inode 979 fs/cifs/inode.c cifs_sb = CIFS_SB(inode->i_sb); inode 1019 fs/cifs/inode.c inc_nlink(inode); inode 1025 fs/cifs/inode.c newinode = new_inode(inode->i_sb); inode 1038 fs/cifs/inode.c if (inode->i_sb->s_flags & MS_NOATIME) inode 1070 fs/cifs/inode.c inc_nlink(inode); inode 1073 fs/cifs/inode.c inode->i_sb, xid); inode 1076 fs/cifs/inode.c inode->i_sb, xid, NULL); inode 1090 fs/cifs/inode.c if (inode->i_mode & S_ISGID) inode 1103 fs/cifs/inode.c if (inode->i_mode & S_ISGID) inode 1104 fs/cifs/inode.c args.gid = (__u64)inode->i_gid; inode 1144 fs/cifs/inode.c if (inode->i_mode & S_ISGID) inode 1146 fs/cifs/inode.c inode->i_gid; inode 1169 fs/cifs/inode.c cFYI(1, ("cifs_rmdir, inode = 0x%p", inode)); inode 1173 fs/cifs/inode.c cifs_sb = CIFS_SB(inode->i_sb); inode 1186 fs/cifs/inode.c drop_nlink(inode); inode 1196 fs/cifs/inode.c direntry->d_inode->i_ctime = inode->i_ctime = inode->i_mtime = inode 1197 fs/cifs/inode.c current_fs_time(inode->i_sb); inode 1509 fs/cifs/inode.c struct address_space *mapping = inode->i_mapping; inode 1512 fs/cifs/inode.c spin_lock(&inode->i_lock); inode 1513 fs/cifs/inode.c if (inode->i_size < offset) inode 1519 fs/cifs/inode.c if (IS_SWAPFILE(inode)) { inode 1520 fs/cifs/inode.c spin_unlock(&inode->i_lock); inode 1523 fs/cifs/inode.c i_size_write(inode, offset); inode 1524 fs/cifs/inode.c spin_unlock(&inode->i_lock); inode 1541 fs/cifs/inode.c spin_unlock(&inode->i_lock); inode 1544 fs/cifs/inode.c if (offset > inode->i_sb->s_maxbytes) { inode 1545 fs/cifs/inode.c spin_unlock(&inode->i_lock); inode 1548 fs/cifs/inode.c i_size_write(inode, offset); inode 1549 fs/cifs/inode.c spin_unlock(&inode->i_lock); inode 1551 fs/cifs/inode.c if (inode->i_op && inode->i_op->truncate) inode 1552 fs/cifs/inode.c inode->i_op->truncate(inode); inode 1568 fs/cifs/inode.c struct cifsInodeInfo *cifsInode = CIFS_I(inode); inode 1569 fs/cifs/inode.c struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); inode 1631 fs/cifs/inode.c rc = cifs_vmtruncate(inode, attrs->ia_size); inode 1632 fs/cifs/inode.c cifs_truncate_page(inode->i_mapping, inode->i_size); inode 1644 fs/cifs/inode.c struct inode *inode = direntry->d_inode; inode 1645 fs/cifs/inode.c struct cifsInodeInfo *cifsInode = CIFS_I(inode); inode 1646 fs/cifs/inode.c struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); inode 1657 fs/cifs/inode.c rc = inode_change_ok(inode, attrs); inode 1679 fs/cifs/inode.c rc = filemap_write_and_wait(inode->i_mapping); inode 1687 fs/cifs/inode.c rc = cifs_set_file_size(inode, attrs, xid, full_path); inode 1740 fs/cifs/inode.c rc = inode_setattr(inode, attrs); inode 1752 fs/cifs/inode.c struct inode *inode = direntry->d_inode; inode 1753 fs/cifs/inode.c struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); inode 1754 fs/cifs/inode.c struct cifsInodeInfo *cifsInode = CIFS_I(inode); inode 1767 fs/cifs/inode.c rc = inode_change_ok(inode, attrs); inode 1790 fs/cifs/inode.c rc = filemap_write_and_wait(inode->i_mapping); inode 1798 fs/cifs/inode.c rc = cifs_set_file_size(inode, attrs, xid, full_path); inode 1826 fs/cifs/inode.c rc = mode_to_acl(inode, full_path, mode); inode 1836 fs/cifs/inode.c attrs->ia_mode = inode->i_mode & ~S_IWUGO; inode 1848 fs/cifs/inode.c if (S_ISDIR(inode->i_mode)) inode 1863 fs/cifs/inode.c rc = cifs_set_file_info(inode, attrs, xid, full_path, dosattr); inode 1879 fs/cifs/inode.c rc = inode_setattr(inode, attrs); inode 1889 fs/cifs/inode.c struct inode *inode = direntry->d_inode; inode 1890 fs/cifs/inode.c struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); inode 1904 fs/cifs/inode.c cFYI(1, ("In cifs_delete_inode, inode = 0x%p", inode)); inode 35 fs/cifs/ioctl.c struct inode *inode = filep->f_dentry->d_inode; inode 52 fs/cifs/ioctl.c cifs_sb = CIFS_SB(inode->i_sb); inode 45 fs/cifs/link.c cifs_sb_target = CIFS_SB(inode->i_sb); inode 109 fs/cifs/link.c struct inode *inode = direntry->d_inode; inode 124 fs/cifs/link.c cFYI(1, ("Full path: %s inode = 0x%p", full_path, inode)); inode 125 fs/cifs/link.c cifs_sb = CIFS_SB(inode->i_sb); inode 177 fs/cifs/link.c struct inode *newinode = NULL; inode 181 fs/cifs/link.c cifs_sb = CIFS_SB(inode->i_sb); inode 205 fs/cifs/link.c inode->i_sb, xid); inode 208 fs/cifs/link.c inode->i_sb, xid, NULL); inode 230 fs/cifs/link.c struct inode *inode = direntry->d_inode; inode 242 fs/cifs/link.c cifs_sb = CIFS_SB(inode->i_sb); inode 258 fs/cifs/link.c full_path, inode, pBuffer, buflen)); inode 116 fs/cifs/readdir.c inode->i_ctime.tv_sec += tcon->ses->server->timeAdj; inode 117 fs/cifs/readdir.c inode->i_mtime.tv_sec += tcon->ses->server->timeAdj; inode 118 fs/cifs/readdir.c inode->i_atime.tv_sec += tcon->ses->server->timeAdj; inode 633 fs/cifs/readdir.c struct inode *inode = file->f_path.dentry->d_inode; inode 634 fs/cifs/readdir.c struct cifsInodeInfo *cifsInfo = CIFS_I(inode); inode 908 fs/cifs/readdir.c struct inode *tmp_inode; inode 32 fs/coda/cache.c struct coda_inode_info *cii = ITOC(inode); inode 45 fs/coda/cache.c struct coda_inode_info *cii = ITOC(inode); inode 59 fs/coda/cache.c struct coda_inode_info *cii = ITOC(inode); inode 106 fs/coda/cache.c if ( !inode || !S_ISDIR(inode->i_mode)) inode 109 fs/coda/cache.c alias_de = d_find_alias(inode); inode 29 fs/coda/cnode.c coda_vattr_to_iattr(inode, attr); inode 31 fs/coda/cnode.c if (S_ISREG(inode->i_mode)) { inode 32 fs/coda/cnode.c inode->i_op = &coda_file_inode_operations; inode 33 fs/coda/cnode.c inode->i_fop = &coda_file_operations; inode 34 fs/coda/cnode.c } else if (S_ISDIR(inode->i_mode)) { inode 35 fs/coda/cnode.c inode->i_op = &coda_dir_inode_operations; inode 36 fs/coda/cnode.c inode->i_fop = &coda_dir_operations; inode 37 fs/coda/cnode.c } else if (S_ISLNK(inode->i_mode)) { inode 38 fs/coda/cnode.c inode->i_op = &coda_symlink_inode_operations; inode 39 fs/coda/cnode.c inode->i_data.a_ops = &coda_symlink_aops; inode 40 fs/coda/cnode.c inode->i_mapping = &inode->i_data; inode 42 fs/coda/cnode.c init_special_inode(inode, inode->i_mode, huge_decode_dev(attr->va_rdev)); inode 48 fs/coda/cnode.c return coda_fideq(&(ITOC(inode)->c_fid), fid); inode 54 fs/coda/cnode.c ITOC(inode)->c_fid = *fid; inode 58 fs/coda/cnode.c struct inode * coda_iget(struct super_block * sb, struct CodaFid * fid, inode 61 fs/coda/cnode.c struct inode *inode; inode 65 fs/coda/cnode.c inode = iget5_locked(sb, hash, coda_test_inode, coda_set_inode, fid); inode 67 fs/coda/cnode.c if (!inode) inode 70 fs/coda/cnode.c if (inode->i_state & I_NEW) { inode 71 fs/coda/cnode.c cii = ITOC(inode); inode 73 fs/coda/cnode.c inode->i_ino = hash; inode 75 fs/coda/cnode.c unlock_new_inode(inode); inode 79 fs/coda/cnode.c coda_fill_inode(inode, attr); inode 80 fs/coda/cnode.c return inode; inode 97 fs/coda/cnode.c *inode = NULL; inode 101 fs/coda/cnode.c *inode = coda_iget(sb, fid, &attr); inode 102 fs/coda/cnode.c if ( IS_ERR(*inode) ) { inode 104 fs/coda/cnode.c return PTR_ERR(*inode); inode 116 fs/coda/cnode.c cii = ITOC(inode); inode 122 fs/coda/cnode.c remove_inode_hash(inode); inode 124 fs/coda/cnode.c inode->i_ino = hash; inode 125 fs/coda/cnode.c __insert_inode_hash(inode, hash); inode 129 fs/coda/cnode.c struct inode *coda_fid_to_inode(struct CodaFid *fid, struct super_block *sb) inode 131 fs/coda/cnode.c struct inode *inode; inode 139 fs/coda/cnode.c inode = ilookup5(sb, hash, coda_test_inode, fid); inode 140 fs/coda/cnode.c if ( !inode ) inode 145 fs/coda/cnode.c BUG_ON(inode->i_state & I_NEW); inode 147 fs/coda/cnode.c return inode; inode 155 fs/coda/cnode.c *inode = new_inode(sb); inode 156 fs/coda/cnode.c if (*inode) { inode 157 fs/coda/cnode.c (*inode)->i_ino = CTL_INO; inode 158 fs/coda/cnode.c (*inode)->i_op = &coda_ioctl_inode_operations; inode 159 fs/coda/cnode.c (*inode)->i_fop = &coda_ioctl_operations; inode 160 fs/coda/cnode.c (*inode)->i_mode = 0444; inode 99 fs/coda/coda_linux.c inode->i_mode |= inode_type; inode 102 fs/coda/coda_linux.c inode->i_mode = attr->va_mode | inode_type; inode 104 fs/coda/coda_linux.c inode->i_uid = (uid_t) attr->va_uid; inode 106 fs/coda/coda_linux.c inode->i_gid = (gid_t) attr->va_gid; inode 108 fs/coda/coda_linux.c inode->i_nlink = attr->va_nlink; inode 110 fs/coda/coda_linux.c inode->i_size = attr->va_size; inode 112 fs/coda/coda_linux.c inode->i_blocks = (attr->va_size + 511) >> 9; inode 114 fs/coda/coda_linux.c inode->i_atime = attr->va_atime; inode 116 fs/coda/coda_linux.c inode->i_mtime = attr->va_mtime; inode 118 fs/coda/coda_linux.c inode->i_ctime = attr->va_ctime; inode 98 fs/coda/dir.c struct inode *inode = NULL; inode 113 fs/coda/dir.c error = coda_cnode_makectl(&inode, dir->i_sb); inode 123 fs/coda/dir.c error = coda_cnode_make(&inode, &resfid, dir->i_sb); inode 133 fs/coda/dir.c if (inode && (type & CODA_NOCACHE)) inode 134 fs/coda/dir.c coda_flag_inode(inode, C_VATTR | C_PURGE); inode 136 fs/coda/dir.c return d_splice_alias(inode, entry); inode 151 fs/coda/dir.c if (coda_cache_check(inode, mask)) inode 154 fs/coda/dir.c error = venus_access(inode->i_sb, coda_i2f(inode), mask); inode 157 fs/coda/dir.c coda_cache_enter(inode, mask); inode 202 fs/coda/dir.c struct inode *inode; inode 222 fs/coda/dir.c inode = coda_iget(dir->i_sb, &newfid, &attrs); inode 223 fs/coda/dir.c if ( IS_ERR(inode) ) { inode 226 fs/coda/dir.c return PTR_ERR(inode); inode 232 fs/coda/dir.c d_instantiate(de, inode); inode 238 fs/coda/dir.c struct inode *inode; inode 262 fs/coda/dir.c inode = coda_iget(dir->i_sb, &newfid, &attrs); inode 263 fs/coda/dir.c if ( IS_ERR(inode) ) { inode 266 fs/coda/dir.c return PTR_ERR(inode); inode 273 fs/coda/dir.c d_instantiate(de, inode); inode 281 fs/coda/dir.c struct inode *inode = source_de->d_inode; inode 293 fs/coda/dir.c error = venus_link(dir_inode->i_sb, coda_i2f(inode), inode 302 fs/coda/dir.c atomic_inc(&inode->i_count); inode 303 fs/coda/dir.c d_instantiate(de, inode); inode 304 fs/coda/dir.c inc_nlink(inode); inode 448 fs/coda/dir.c struct inode *host_inode = host_file->f_path.dentry->d_inode; inode 590 fs/coda/dir.c struct inode *inode = de->d_inode; inode 593 fs/coda/dir.c if (!inode) inode 596 fs/coda/dir.c if (coda_isroot(inode)) inode 598 fs/coda/dir.c if (is_bad_inode(inode)) inode 609 fs/coda/dir.c coda_flag_inode_children(inode, C_FLUSH); inode 658 fs/coda/dir.c struct inode *inode = dentry->d_inode; inode 659 fs/coda/dir.c struct coda_inode_info *cii = ITOC(inode); inode 666 fs/coda/dir.c error = venus_getattr(inode->i_sb, &(cii->c_fid), &attr); inode 675 fs/coda/dir.c old_mode = inode->i_mode; inode 676 fs/coda/dir.c old_ino = inode->i_ino; inode 677 fs/coda/dir.c coda_vattr_to_iattr(inode, &attr); inode 679 fs/coda/dir.c if ((old_mode & S_IFMT) != (inode->i_mode & S_IFMT)) { inode 681 fs/coda/dir.c inode->i_ino, coda_f2s(&(cii->c_fid))); inode 686 fs/coda/dir.c if (inode->i_ino != old_ino) inode 689 fs/coda/dir.c coda_flag_inode_children(inode, C_FLUSH); inode 65 fs/coda/file.c struct inode *host_inode, *coda_inode = coda_file->f_path.dentry->d_inode; inode 96 fs/coda/file.c struct inode *coda_inode, *host_inode; inode 168 fs/coda/file.c struct inode *host_inode; inode 204 fs/coda/file.c struct inode *host_inode, *coda_inode = coda_dentry->d_inode; inode 43 fs/coda/inode.c static struct inode *coda_alloc_inode(struct super_block *sb) inode 58 fs/coda/inode.c kmem_cache_free(coda_inode_cachep, ITOC(inode)); inode 104 fs/coda/inode.c struct inode *inode; inode 118 fs/coda/inode.c inode = NULL; inode 120 fs/coda/inode.c inode = file->f_path.dentry->d_inode; inode 122 fs/coda/inode.c if(!inode || !S_ISCHR(inode->i_mode) || inode 123 fs/coda/inode.c imajor(inode) != CODA_PSDEV_MAJOR) { inode 131 fs/coda/inode.c idx = iminor(inode); inode 144 fs/coda/inode.c struct inode *root = NULL; inode 220 fs/coda/inode.c coda_cache_clear_inode(inode); inode 233 fs/coda/inode.c struct inode *inode = de->d_inode; inode 241 fs/coda/inode.c inode->i_ctime = CURRENT_TIME_SEC; inode 246 fs/coda/inode.c error = venus_setattr(inode->i_sb, coda_i2f(inode), &vattr); inode 249 fs/coda/inode.c coda_vattr_to_iattr(inode, &vattr); inode 250 fs/coda/inode.c coda_cache_clear_inode(inode); inode 55 fs/coda/pioctl.c struct inode *target_inode = NULL; inode 80 fs/coda/pioctl.c if ( target_inode->i_sb != inode->i_sb ) { inode 88 fs/coda/pioctl.c error = venus_pioctl(inode->i_sb, &(cnp->c_fid), cmd, &data); inode 275 fs/coda/psdev.c idx = iminor(inode); inode 26 fs/coda/symlink.c struct inode *inode = page->mapping->host; inode 33 fs/coda/symlink.c cii = ITOC(inode); inode 35 fs/coda/symlink.c error = venus_readlink(inode->i_sb, &cii->c_fid, p, &len); inode 800 fs/coda/upcall.c struct inode *inode = NULL; inode 821 fs/coda/upcall.c inode = coda_fid_to_inode(fid, sb); inode 822 fs/coda/upcall.c if (inode) { inode 823 fs/coda/upcall.c coda_flag_inode_children(inode, C_PURGE); inode 824 fs/coda/upcall.c coda_flag_inode(inode, C_VATTR); inode 830 fs/coda/upcall.c inode = coda_fid_to_inode(fid, sb); inode 831 fs/coda/upcall.c if (inode) inode 832 fs/coda/upcall.c coda_flag_inode(inode, C_VATTR); inode 837 fs/coda/upcall.c inode = coda_fid_to_inode(fid, sb); inode 838 fs/coda/upcall.c if (inode) { inode 839 fs/coda/upcall.c coda_flag_inode_children(inode, C_PURGE); inode 842 fs/coda/upcall.c coda_flag_inode(inode, C_PURGE); inode 843 fs/coda/upcall.c d_prune_aliases(inode); inode 851 fs/coda/upcall.c inode = coda_fid_to_inode(fid, sb); inode 852 fs/coda/upcall.c if (inode) inode 853 fs/coda/upcall.c coda_replace_fid(inode, fid, newfid); inode 857 fs/coda/upcall.c if (inode) inode 858 fs/coda/upcall.c iput(inode); inode 1046 fs/compat_ioctl.c struct inode *inode = file->f_path.dentry->d_inode; inode 1053 fs/compat_ioctl.c if (tty_paranoia_check(tty, inode, "tty_ioctl")) inode 63 fs/configfs/configfs_internal.h extern struct inode * configfs_new_inode(mode_t mode, struct configfs_dirent *); inode 63 fs/configfs/dir.c iput(inode); inode 158 fs/configfs/dir.c inode->i_op = &configfs_dir_inode_operations; inode 159 fs/configfs/dir.c inode->i_fop = &configfs_dir_operations; inode 162 fs/configfs/dir.c inc_nlink(inode); inode 168 fs/configfs/dir.c inode->i_size = PAGE_SIZE; inode 169 fs/configfs/dir.c inode->i_fop = &configfs_file_operations; inode 175 fs/configfs/dir.c inode->i_op = &configfs_symlink_inode_operations; inode 241 fs/configfs/file.c if (!(inode->i_mode & S_IWUGO) || !ops->store_attribute) inode 251 fs/configfs/file.c if (!(inode->i_mode & S_IRUGO) || !ops->show_attribute) inode 284 fs/configfs/file.c return check_perm(inode,filp); inode 59 fs/configfs/inode.c struct inode * inode = dentry->d_inode; inode 70 fs/configfs/inode.c error = inode_change_ok(inode, iattr); inode 74 fs/configfs/inode.c error = inode_setattr(inode, iattr); inode 99 fs/configfs/inode.c inode->i_sb->s_time_gran); inode 102 fs/configfs/inode.c inode->i_sb->s_time_gran); inode 105 fs/configfs/inode.c inode->i_sb->s_time_gran); inode 109 fs/configfs/inode.c if (!in_group_p(inode->i_gid) && !capable(CAP_FSETID)) inode 119 fs/configfs/inode.c inode->i_mode = mode; inode 120 fs/configfs/inode.c inode->i_uid = 0; inode 121 fs/configfs/inode.c inode->i_gid = 0; inode 122 fs/configfs/inode.c inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; inode 127 fs/configfs/inode.c inode->i_mode = iattr->ia_mode; inode 128 fs/configfs/inode.c inode->i_uid = iattr->ia_uid; inode 129 fs/configfs/inode.c inode->i_gid = iattr->ia_gid; inode 130 fs/configfs/inode.c inode->i_atime = iattr->ia_atime; inode 131 fs/configfs/inode.c inode->i_mtime = iattr->ia_mtime; inode 132 fs/configfs/inode.c inode->i_ctime = iattr->ia_ctime; inode 135 fs/configfs/inode.c struct inode * configfs_new_inode(mode_t mode, struct configfs_dirent * sd) inode 137 fs/configfs/inode.c struct inode * inode = new_inode(configfs_sb); inode 138 fs/configfs/inode.c if (inode) { inode 139 fs/configfs/inode.c inode->i_blocks = 0; inode 140 fs/configfs/inode.c inode->i_mapping->a_ops = &configfs_aops; inode 141 fs/configfs/inode.c inode->i_mapping->backing_dev_info = &configfs_backing_dev_info; inode 142 fs/configfs/inode.c inode->i_op = &configfs_inode_operations; inode 149 fs/configfs/inode.c set_inode_attr(inode, sd->s_iattr); inode 151 fs/configfs/inode.c set_default_inode_attr(inode, mode); inode 153 fs/configfs/inode.c return inode; inode 159 fs/configfs/inode.c struct inode * inode = NULL; inode 163 fs/configfs/inode.c if ((inode = configfs_new_inode(mode, sd))) { inode 165 fs/configfs/inode.c struct inode *p_inode = dentry->d_parent->d_inode; inode 180 fs/configfs/inode.c error = init(inode); inode 182 fs/configfs/inode.c d_instantiate(dentry, inode); inode 186 fs/configfs/inode.c iput(inode); inode 71 fs/configfs/mount.c struct inode *inode; inode 81 fs/configfs/mount.c inode = configfs_new_inode(S_IFDIR | S_IRWXU | S_IRUGO | S_IXUGO, inode 83 fs/configfs/mount.c if (inode) { inode 84 fs/configfs/mount.c inode->i_op = &configfs_dir_inode_operations; inode 85 fs/configfs/mount.c inode->i_fop = &configfs_dir_operations; inode 87 fs/configfs/mount.c inc_nlink(inode); inode 93 fs/configfs/mount.c root = d_alloc_root(inode); inode 96 fs/configfs/mount.c iput(inode); inode 46 fs/cramfs/inode.c return inode->i_ino == CRAMINO(cramfs_inode) && inode->i_ino != 1; inode 52 fs/cramfs/inode.c inode->i_ino = CRAMINO(cramfs_inode); inode 56 fs/cramfs/inode.c static struct inode *get_cramfs_inode(struct super_block *sb, inode 59 fs/cramfs/inode.c struct inode *inode = iget5_locked(sb, CRAMINO(cramfs_inode), inode 64 fs/cramfs/inode.c if (inode && (inode->i_state & I_NEW)) { inode 65 fs/cramfs/inode.c inode->i_mode = cramfs_inode->mode; inode 66 fs/cramfs/inode.c inode->i_uid = cramfs_inode->uid; inode 67 fs/cramfs/inode.c inode->i_size = cramfs_inode->size; inode 68 fs/cramfs/inode.c inode->i_blocks = (cramfs_inode->size - 1) / 512 + 1; inode 69 fs/cramfs/inode.c inode->i_gid = cramfs_inode->gid; inode 71 fs/cramfs/inode.c inode->i_mtime = inode->i_atime = inode->i_ctime = zerotime; inode 76 fs/cramfs/inode.c if (S_ISREG(inode->i_mode)) { inode 77 fs/cramfs/inode.c inode->i_fop = &generic_ro_fops; inode 78 fs/cramfs/inode.c inode->i_data.a_ops = &cramfs_aops; inode 79 fs/cramfs/inode.c } else if (S_ISDIR(inode->i_mode)) { inode 80 fs/cramfs/inode.c inode->i_op = &cramfs_dir_inode_operations; inode 81 fs/cramfs/inode.c inode->i_fop = &cramfs_directory_operations; inode 82 fs/cramfs/inode.c } else if (S_ISLNK(inode->i_mode)) { inode 83 fs/cramfs/inode.c inode->i_op = &page_symlink_inode_operations; inode 84 fs/cramfs/inode.c inode->i_data.a_ops = &cramfs_aops; inode 86 fs/cramfs/inode.c inode->i_size = 0; inode 87 fs/cramfs/inode.c inode->i_blocks = 0; inode 88 fs/cramfs/inode.c init_special_inode(inode, inode->i_mode, inode 91 fs/cramfs/inode.c unlock_new_inode(inode); inode 93 fs/cramfs/inode.c return inode; inode 98 fs/cramfs/inode.c if (inode->i_ino == 1) inode 99 fs/cramfs/inode.c generic_delete_inode(inode); inode 101 fs/cramfs/inode.c generic_drop_inode(inode); inode 230 fs/cramfs/inode.c struct inode *root; inode 340 fs/cramfs/inode.c struct inode *inode = filp->f_path.dentry->d_inode; inode 341 fs/cramfs/inode.c struct super_block *sb = inode->i_sb; inode 348 fs/cramfs/inode.c if (offset >= inode->i_size) inode 359 fs/cramfs/inode.c while (offset < inode->i_size) { inode 368 fs/cramfs/inode.c de = cramfs_read(sb, OFFSET(inode) + offset, sizeof(*de)+CRAMFS_MAXPATHLEN); inode 463 fs/cramfs/inode.c struct inode *inode = page->mapping->host; inode 467 fs/cramfs/inode.c maxblock = (inode->i_size + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT; inode 470 fs/cramfs/inode.c struct super_block *sb = inode->i_sb; inode 471 fs/cramfs/inode.c u32 blkptr_offset = OFFSET(inode) + page->index*4; inode 474 fs/cramfs/inode.c start_offset = OFFSET(inode) + maxblock*4; inode 106 fs/dcache.c struct inode *inode = dentry->d_inode; inode 107 fs/dcache.c if (inode) { inode 112 fs/dcache.c if (!inode->i_nlink) inode 113 fs/dcache.c fsnotify_inoderemove(inode); inode 115 fs/dcache.c dentry->d_op->d_iput(dentry, inode); inode 117 fs/dcache.c iput(inode); inode 350 fs/dcache.c head = &inode->i_dentry; inode 351 fs/dcache.c next = inode->i_dentry.next; inode 357 fs/dcache.c if (S_ISDIR(inode->i_mode) || !d_unhashed(alias)) { inode 376 fs/dcache.c if (!list_empty(&inode->i_dentry)) { inode 378 fs/dcache.c de = __d_find_alias(inode, 0); inode 393 fs/dcache.c list_for_each_entry(dentry, &inode->i_dentry, d_alias) { inode 652 fs/dcache.c struct inode *inode; inode 678 fs/dcache.c inode = dentry->d_inode; inode 679 fs/dcache.c if (inode) { inode 683 fs/dcache.c dentry->d_op->d_iput(dentry, inode); inode 685 fs/dcache.c iput(inode); inode 999 fs/dcache.c if (inode) inode 1000 fs/dcache.c list_add(&entry->d_alias, &inode->i_dentry); inode 1001 fs/dcache.c entry->d_inode = inode; inode 1002 fs/dcache.c fsnotify_d_instantiate(entry, inode); inode 1004 fs/dcache.c security_d_instantiate(entry, inode); inode 1031 fs/dcache.c if (!inode) { inode 1036 fs/dcache.c list_for_each_entry(alias, &inode->i_dentry, d_alias) { inode 1051 fs/dcache.c list_add(&entry->d_alias, &inode->i_dentry); inode 1052 fs/dcache.c entry->d_inode = inode; inode 1053 fs/dcache.c fsnotify_d_instantiate(entry, inode); inode 1064 fs/dcache.c result = __d_instantiate_unique(entry, inode); inode 1068 fs/dcache.c security_d_instantiate(entry, inode); inode 1073 fs/dcache.c iput(inode); inode 1139 fs/dcache.c if ((res = d_find_alias(inode))) { inode 1140 fs/dcache.c iput(inode); inode 1151 fs/dcache.c res = __d_find_alias(inode, 0); inode 1157 fs/dcache.c res->d_sb = inode->i_sb; inode 1159 fs/dcache.c res->d_inode = inode; inode 1162 fs/dcache.c list_add(&res->d_alias, &inode->i_dentry); inode 1163 fs/dcache.c hlist_add_head(&res->d_hash, &inode->i_sb->s_anon); inode 1166 fs/dcache.c inode = NULL; /* don't drop reference */ inode 1170 fs/dcache.c if (inode) inode 1171 fs/dcache.c iput(inode); inode 1198 fs/dcache.c if (inode && S_ISDIR(inode->i_mode)) { inode 1200 fs/dcache.c new = __d_find_alias(inode, 1); inode 1203 fs/dcache.c fsnotify_d_instantiate(new, inode); inode 1205 fs/dcache.c security_d_instantiate(new, inode); inode 1208 fs/dcache.c iput(inode); inode 1211 fs/dcache.c list_add(&dentry->d_alias, &inode->i_dentry); inode 1212 fs/dcache.c dentry->d_inode = inode; inode 1213 fs/dcache.c fsnotify_d_instantiate(dentry, inode); inode 1215 fs/dcache.c security_d_instantiate(dentry, inode); inode 1219 fs/dcache.c d_add(dentry, inode); inode 1255 fs/dcache.c found = d_splice_alias(inode, new); inode 1264 fs/dcache.c if (unlikely(found->d_inode != inode)) { inode 1266 fs/dcache.c BUG_ON(!is_bad_inode(inode)); inode 1276 fs/dcache.c iput(inode); inode 1284 fs/dcache.c if (!S_ISDIR(inode->i_mode)) { inode 1286 fs/dcache.c d_instantiate(found, inode); inode 1290 fs/dcache.c if (list_empty(&inode->i_dentry)) { inode 1296 fs/dcache.c list_add(&found->d_alias, &inode->i_dentry); inode 1297 fs/dcache.c found->d_inode = inode; inode 1299 fs/dcache.c security_d_instantiate(found, inode); inode 1306 fs/dcache.c new = list_entry(inode->i_dentry.next, struct dentry, d_alias); inode 1310 fs/dcache.c security_d_instantiate(found, inode); inode 1314 fs/dcache.c iput(inode); inode 1321 fs/dcache.c iput(inode); inode 1823 fs/dcache.c if (!inode) { inode 1829 fs/dcache.c if (S_ISDIR(inode->i_mode)) { inode 1833 fs/dcache.c alias = __d_find_alias(inode, 0); inode 1853 fs/dcache.c actual = __d_instantiate_unique(dentry, inode); inode 1867 fs/dcache.c security_d_instantiate(dentry, inode); inode 1871 fs/dcache.c iput(inode); inode 36 fs/debugfs/file.c if (inode->i_private) inode 37 fs/debugfs/file.c file->private_data = inode->i_private; inode 34 fs/debugfs/inode.c static struct inode *debugfs_get_inode(struct super_block *sb, int mode, dev_t dev) inode 36 fs/debugfs/inode.c struct inode *inode = new_inode(sb); inode 38 fs/debugfs/inode.c if (inode) { inode 39 fs/debugfs/inode.c inode->i_mode = mode; inode 40 fs/debugfs/inode.c inode->i_uid = 0; inode 41 fs/debugfs/inode.c inode->i_gid = 0; inode 42 fs/debugfs/inode.c inode->i_blocks = 0; inode 43 fs/debugfs/inode.c inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; inode 46 fs/debugfs/inode.c init_special_inode(inode, mode, dev); inode 49 fs/debugfs/inode.c inode->i_fop = &debugfs_file_operations; inode 52 fs/debugfs/inode.c inode->i_op = &debugfs_link_operations; inode 55 fs/debugfs/inode.c inode->i_op = &simple_dir_inode_operations; inode 56 fs/debugfs/inode.c inode->i_fop = &simple_dir_operations; inode 60 fs/debugfs/inode.c inc_nlink(inode); inode 64 fs/debugfs/inode.c return inode; inode 71 fs/debugfs/inode.c struct inode *inode; inode 77 fs/debugfs/inode.c inode = debugfs_get_inode(dir->i_sb, mode, dev); inode 78 fs/debugfs/inode.c if (inode) { inode 79 fs/debugfs/inode.c d_instantiate(dentry, inode); inode 125 fs/devpts/inode.c struct inode * inode; inode 133 fs/devpts/inode.c inode = new_inode(s); inode 134 fs/devpts/inode.c if (!inode) inode 136 fs/devpts/inode.c inode->i_ino = 1; inode 137 fs/devpts/inode.c inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; inode 138 fs/devpts/inode.c inode->i_blocks = 0; inode 139 fs/devpts/inode.c inode->i_uid = inode->i_gid = 0; inode 140 fs/devpts/inode.c inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO | S_IWUSR; inode 141 fs/devpts/inode.c inode->i_op = &simple_dir_inode_operations; inode 142 fs/devpts/inode.c inode->i_fop = &simple_dir_operations; inode 143 fs/devpts/inode.c inode->i_nlink = 2; inode 145 fs/devpts/inode.c devpts_root = s->s_root = d_alloc_root(inode); inode 150 fs/devpts/inode.c iput(inode); inode 214 fs/devpts/inode.c struct inode *inode = new_inode(devpts_mnt->mnt_sb); inode 221 fs/devpts/inode.c if (!inode) inode 224 fs/devpts/inode.c inode->i_ino = number+2; inode 225 fs/devpts/inode.c inode->i_uid = config.setuid ? config.uid : current->fsuid; inode 226 fs/devpts/inode.c inode->i_gid = config.setgid ? config.gid : current->fsgid; inode 227 fs/devpts/inode.c inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; inode 228 fs/devpts/inode.c init_special_inode(inode, S_IFCHR|config.mode, device); inode 229 fs/devpts/inode.c inode->i_private = tty; inode 230 fs/devpts/inode.c tty->driver_data = inode; inode 238 fs/devpts/inode.c d_add(dentry, inode); inode 258 fs/devpts/inode.c struct inode *inode = tty->driver_data; inode 261 fs/devpts/inode.c BUG_ON(inode->i_rdev == MKDEV(TTYAUX_MAJOR, PTMX_MINOR)); inode 265 fs/devpts/inode.c dentry = d_find_alias(inode); inode 267 fs/devpts/inode.c inode->i_nlink--; inode 68 fs/direct-io.c struct inode *inode; inode 245 fs/direct-io.c up_read_non_owner(&dio->inode->i_alloc_sem); inode 518 fs/direct-io.c map_bh->b_size = fs_count << dio->inode->i_blkbits; inode 522 fs/direct-io.c if (dio->block_in_file < (i_size_read(dio->inode) >> inode 535 fs/direct-io.c ret = (*dio->get_block)(dio->inode, fs_startblk, inode 717 fs/direct-io.c nblocks = dio->map_bh.b_size >> dio->inode->i_blkbits; inode 867 fs/direct-io.c i_size_aligned = ALIGN(i_size_read(dio->inode), inode 946 fs/direct-io.c dio->inode = inode; inode 949 fs/direct-io.c dio->blkfactor = inode->i_blkbits - blkbits; inode 958 fs/direct-io.c dio->i_size = i_size_read(inode); inode 1034 fs/direct-io.c blk_run_address_space(inode->i_mapping); inode 1048 fs/direct-io.c mutex_unlock(&dio->inode->i_mutex); inode 1119 fs/direct-io.c unsigned blkbits = inode->i_blkbits; inode 1178 fs/direct-io.c mutex_lock(&inode->i_mutex); inode 1190 fs/direct-io.c mutex_unlock(&inode->i_mutex); inode 1197 fs/direct-io.c down_read_non_owner(&inode->i_alloc_sem); inode 1207 fs/direct-io.c (end > i_size_read(inode))); inode 1209 fs/direct-io.c retval = direct_io_worker(rw, iocb, inode, iov, offset, inode 1217 fs/direct-io.c mutex_unlock(&inode->i_mutex); inode 1219 fs/direct-io.c mutex_lock(&inode->i_mutex); inode 360 fs/dlm/debug_fs.c seq->private = inode->i_private; inode 437 fs/dlm/debug_fs.c seq->private = inode->i_private; inode 456 fs/dlm/debug_fs.c file->private_data = inode->i_private; inode 639 fs/dlm/user.c ls = dlm_find_lockspace_device(iminor(inode)); inode 35 fs/dnotify.c for (dn = inode->i_dnotify; dn != NULL; dn = dn->dn_next) inode 37 fs/dnotify.c inode->i_dnotify_mask = new_mask; inode 44 fs/dnotify.c struct inode *inode; inode 46 fs/dnotify.c inode = filp->f_path.dentry->d_inode; inode 47 fs/dnotify.c if (!S_ISDIR(inode->i_mode)) inode 49 fs/dnotify.c spin_lock(&inode->i_lock); inode 50 fs/dnotify.c prev = &inode->i_dnotify; inode 54 fs/dnotify.c redo_inode_mask(inode); inode 60 fs/dnotify.c spin_unlock(&inode->i_lock); inode 68 fs/dnotify.c struct inode *inode; inode 79 fs/dnotify.c inode = filp->f_path.dentry->d_inode; inode 80 fs/dnotify.c if (!S_ISDIR(inode->i_mode)) inode 85 fs/dnotify.c spin_lock(&inode->i_lock); inode 86 fs/dnotify.c prev = &inode->i_dnotify; inode 91 fs/dnotify.c inode->i_dnotify_mask |= arg & ~DN_MULTISHOT; inode 114 fs/dnotify.c inode->i_dnotify_mask |= arg & ~DN_MULTISHOT; inode 115 fs/dnotify.c dn->dn_next = inode->i_dnotify; inode 116 fs/dnotify.c inode->i_dnotify = dn; inode 117 fs/dnotify.c spin_unlock(&inode->i_lock); inode 124 fs/dnotify.c spin_unlock(&inode->i_lock); inode 136 fs/dnotify.c spin_lock(&inode->i_lock); inode 137 fs/dnotify.c prev = &inode->i_dnotify; inode 154 fs/dnotify.c redo_inode_mask(inode); inode 155 fs/dnotify.c spin_unlock(&inode->i_lock); inode 708 fs/dquot.c if (IS_NOQUOTA(inode)) inode 711 fs/dquot.c return inode->i_dquot[type] == NODQUOT; inode 713 fs/dquot.c if (inode->i_dquot[cnt] == NODQUOT) inode 721 fs/dquot.c struct inode *inode, *old_inode = NULL; inode 724 fs/dquot.c list_for_each_entry(inode, &sb->s_inodes, i_sb_list) { inode 725 fs/dquot.c if (!atomic_read(&inode->i_writecount)) inode 727 fs/dquot.c if (!dqinit_needed(inode, type)) inode 729 fs/dquot.c if (inode->i_state & (I_FREEING|I_WILL_FREE)) inode 732 fs/dquot.c __iget(inode); inode 736 fs/dquot.c sb->dq_op->initialize(inode, type); inode 742 fs/dquot.c old_inode = inode; inode 762 fs/dquot.c struct dquot *dquot = inode->i_dquot[type]; inode 764 fs/dquot.c inode->i_dquot[type] = NODQUOT; inode 802 fs/dquot.c struct inode *inode; inode 805 fs/dquot.c list_for_each_entry(inode, &sb->s_inodes, i_sb_list) { inode 806 fs/dquot.c if (!IS_NOQUOTA(inode)) inode 807 fs/dquot.c remove_inode_dquot_ref(inode, type, tofree_head); inode 1141 fs/dquot.c if (IS_NOQUOTA(inode)) inode 1143 fs/dquot.c down_write(&sb_dqopt(inode->i_sb)->dqptr_sem); inode 1145 fs/dquot.c if (IS_NOQUOTA(inode)) inode 1150 fs/dquot.c if (inode->i_dquot[cnt] == NODQUOT) { inode 1153 fs/dquot.c id = inode->i_uid; inode 1156 fs/dquot.c id = inode->i_gid; inode 1159 fs/dquot.c inode->i_dquot[cnt] = dqget(inode->i_sb, id, cnt); inode 1163 fs/dquot.c up_write(&sb_dqopt(inode->i_sb)->dqptr_sem); inode 1175 fs/dquot.c down_write(&sb_dqopt(inode->i_sb)->dqptr_sem); inode 1177 fs/dquot.c if (inode->i_dquot[cnt] != NODQUOT) { inode 1178 fs/dquot.c dqput(inode->i_dquot[cnt]); inode 1179 fs/dquot.c inode->i_dquot[cnt] = NODQUOT; inode 1182 fs/dquot.c up_write(&sb_dqopt(inode->i_sb)->dqptr_sem); inode 1192 fs/dquot.c if (!IS_NOQUOTA(inode) && inode->i_sb && inode->i_sb->dq_op inode 1193 fs/dquot.c && inode->i_sb->dq_op->drop) { inode 1201 fs/dquot.c if (inode->i_dquot[cnt] != NODQUOT) inode 1204 fs/dquot.c inode->i_sb->dq_op->drop(inode); inode 1227 fs/dquot.c if (IS_NOQUOTA(inode)) { inode 1229 fs/dquot.c inode_add_bytes(inode, number); inode 1235 fs/dquot.c down_read(&sb_dqopt(inode->i_sb)->dqptr_sem); inode 1236 fs/dquot.c if (IS_NOQUOTA(inode)) { /* Now we can do reliable test... */ inode 1237 fs/dquot.c up_read(&sb_dqopt(inode->i_sb)->dqptr_sem); inode 1242 fs/dquot.c if (inode->i_dquot[cnt] == NODQUOT) inode 1244 fs/dquot.c if (check_bdq(inode->i_dquot[cnt], number, warn, warntype+cnt) == NO_QUOTA) inode 1248 fs/dquot.c if (inode->i_dquot[cnt] == NODQUOT) inode 1250 fs/dquot.c dquot_incr_space(inode->i_dquot[cnt], number); inode 1252 fs/dquot.c inode_add_bytes(inode, number); inode 1259 fs/dquot.c if (inode->i_dquot[cnt]) inode 1260 fs/dquot.c mark_dquot_dirty(inode->i_dquot[cnt]); inode 1261 fs/dquot.c flush_warnings(inode->i_dquot, warntype); inode 1262 fs/dquot.c up_read(&sb_dqopt(inode->i_sb)->dqptr_sem); inode 1276 fs/dquot.c if (IS_NOQUOTA(inode)) inode 1280 fs/dquot.c down_read(&sb_dqopt(inode->i_sb)->dqptr_sem); inode 1281 fs/dquot.c if (IS_NOQUOTA(inode)) { inode 1282 fs/dquot.c up_read(&sb_dqopt(inode->i_sb)->dqptr_sem); inode 1287 fs/dquot.c if (inode->i_dquot[cnt] == NODQUOT) inode 1289 fs/dquot.c if (check_idq(inode->i_dquot[cnt], number, warntype+cnt) == NO_QUOTA) inode 1294 fs/dquot.c if (inode->i_dquot[cnt] == NODQUOT) inode 1296 fs/dquot.c dquot_incr_inodes(inode->i_dquot[cnt], number); inode 1304 fs/dquot.c if (inode->i_dquot[cnt]) inode 1305 fs/dquot.c mark_dquot_dirty(inode->i_dquot[cnt]); inode 1306 fs/dquot.c flush_warnings(inode->i_dquot, warntype); inode 1307 fs/dquot.c up_read(&sb_dqopt(inode->i_sb)->dqptr_sem); inode 1321 fs/dquot.c if (IS_NOQUOTA(inode)) { inode 1323 fs/dquot.c inode_sub_bytes(inode, number); inode 1327 fs/dquot.c down_read(&sb_dqopt(inode->i_sb)->dqptr_sem); inode 1329 fs/dquot.c if (IS_NOQUOTA(inode)) { inode 1330 fs/dquot.c up_read(&sb_dqopt(inode->i_sb)->dqptr_sem); inode 1335 fs/dquot.c if (inode->i_dquot[cnt] == NODQUOT) inode 1337 fs/dquot.c warntype[cnt] = info_bdq_free(inode->i_dquot[cnt], number); inode 1338 fs/dquot.c dquot_decr_space(inode->i_dquot[cnt], number); inode 1340 fs/dquot.c inode_sub_bytes(inode, number); inode 1344 fs/dquot.c if (inode->i_dquot[cnt]) inode 1345 fs/dquot.c mark_dquot_dirty(inode->i_dquot[cnt]); inode 1346 fs/dquot.c flush_warnings(inode->i_dquot, warntype); inode 1347 fs/dquot.c up_read(&sb_dqopt(inode->i_sb)->dqptr_sem); inode 1361 fs/dquot.c if (IS_NOQUOTA(inode)) inode 1364 fs/dquot.c down_read(&sb_dqopt(inode->i_sb)->dqptr_sem); inode 1366 fs/dquot.c if (IS_NOQUOTA(inode)) { inode 1367 fs/dquot.c up_read(&sb_dqopt(inode->i_sb)->dqptr_sem); inode 1372 fs/dquot.c if (inode->i_dquot[cnt] == NODQUOT) inode 1374 fs/dquot.c warntype[cnt] = info_idq_free(inode->i_dquot[cnt], number); inode 1375 fs/dquot.c dquot_decr_inodes(inode->i_dquot[cnt], number); inode 1380 fs/dquot.c if (inode->i_dquot[cnt]) inode 1381 fs/dquot.c mark_dquot_dirty(inode->i_dquot[cnt]); inode 1382 fs/dquot.c flush_warnings(inode->i_dquot, warntype); inode 1383 fs/dquot.c up_read(&sb_dqopt(inode->i_sb)->dqptr_sem); inode 1398 fs/dquot.c int cnt, ret = NO_QUOTA, chuid = (iattr->ia_valid & ATTR_UID) && inode->i_uid != iattr->ia_uid, inode 1399 fs/dquot.c chgid = (iattr->ia_valid & ATTR_GID) && inode->i_gid != iattr->ia_gid; inode 1405 fs/dquot.c if (IS_NOQUOTA(inode)) inode 1412 fs/dquot.c down_write(&sb_dqopt(inode->i_sb)->dqptr_sem); inode 1414 fs/dquot.c if (IS_NOQUOTA(inode)) { /* File without quota accounting? */ inode 1415 fs/dquot.c up_write(&sb_dqopt(inode->i_sb)->dqptr_sem); inode 1426 fs/dquot.c transfer_to[cnt] = dqget(inode->i_sb, iattr->ia_uid, cnt); inode 1431 fs/dquot.c transfer_to[cnt] = dqget(inode->i_sb, iattr->ia_gid, cnt); inode 1436 fs/dquot.c space = inode_get_bytes(inode); inode 1441 fs/dquot.c transfer_from[cnt] = inode->i_dquot[cnt]; inode 1471 fs/dquot.c inode->i_dquot[cnt] = transfer_to[cnt]; inode 1493 fs/dquot.c up_write(&sb_dqopt(inode->i_sb)->dqptr_sem); inode 1500 fs/dquot.c if (sb_any_quota_enabled(inode->i_sb) && !IS_NOQUOTA(inode)) { inode 1501 fs/dquot.c vfs_dq_init(inode); inode 1502 fs/dquot.c if (inode->i_sb->dq_op->transfer(inode, iattr) == NO_QUOTA) inode 1584 fs/dquot.c struct inode *toputinode[MAXQUOTAS]; inode 1682 fs/dquot.c struct super_block *sb = inode->i_sb; inode 1689 fs/dquot.c if (!S_ISREG(inode->i_mode)) { inode 1693 fs/dquot.c if (IS_RDONLY(inode)) { inode 1704 fs/dquot.c write_inode_now(inode, 1); inode 1707 fs/dquot.c mutex_lock(&inode->i_mutex); inode 1718 fs/dquot.c oldflags = inode->i_flags & (S_NOATIME | S_IMMUTABLE | S_NOQUOTA); inode 1719 fs/dquot.c inode->i_flags |= S_NOQUOTA | S_NOATIME | S_IMMUTABLE; inode 1721 fs/dquot.c sb->dq_op->drop(inode); inode 1724 fs/dquot.c dqopt->files[type] = igrab(inode); inode 1741 fs/dquot.c mutex_unlock(&inode->i_mutex); inode 1751 fs/dquot.c iput(inode); inode 1758 fs/dquot.c inode->i_flags &= ~(S_NOATIME | S_NOQUOTA | S_IMMUTABLE); inode 1759 fs/dquot.c inode->i_flags |= oldflags; inode 1762 fs/dquot.c mutex_unlock(&inode->i_mutex); inode 1773 fs/dquot.c struct inode *inode; inode 1783 fs/dquot.c inode = dqopt->files[type]; inode 1788 fs/dquot.c ret = vfs_quota_on_inode(inode, type, dqopt->info[type].dqi_fmt_id); inode 1789 fs/dquot.c iput(inode); inode 17 fs/drop_caches.c struct inode *inode, *toput_inode = NULL; inode 20 fs/drop_caches.c list_for_each_entry(inode, &sb->s_inodes, i_sb_list) { inode 21 fs/drop_caches.c if (inode->i_state & (I_FREEING|I_WILL_FREE)) inode 23 fs/drop_caches.c if (inode->i_mapping->nrpages == 0) inode 25 fs/drop_caches.c __iget(inode); inode 27 fs/drop_caches.c __invalidate_mapping_pages(inode->i_mapping, 0, -1, true); inode 29 fs/drop_caches.c toput_inode = inode; inode 476 fs/ecryptfs/crypto.c struct inode *ecryptfs_inode; inode 613 fs/ecryptfs/crypto.c struct inode *ecryptfs_inode; inode 1570 fs/ecryptfs/crypto.c struct inode *ecryptfs_inode = ecryptfs_dentry->d_inode; inode 62 fs/ecryptfs/dentry.c struct inode *lower_inode = inode 262 fs/ecryptfs/ecryptfs_kernel.h struct inode vfs_inode; inode 263 fs/ecryptfs/ecryptfs_kernel.h struct inode *wii_inode; inode 454 fs/ecryptfs/ecryptfs_kernel.h return container_of(inode, struct ecryptfs_inode_info, vfs_inode); inode 457 fs/ecryptfs/ecryptfs_kernel.h static inline struct inode *ecryptfs_inode_to_lower(struct inode *inode) inode 459 fs/ecryptfs/ecryptfs_kernel.h return ecryptfs_inode_to_private(inode)->wii_inode; inode 465 fs/ecryptfs/ecryptfs_kernel.h ecryptfs_inode_to_private(inode)->wii_inode = lower_inode; inode 118 fs/ecryptfs/file.c struct inode *inode; inode 123 fs/ecryptfs/file.c inode = file->f_path.dentry->d_inode; inode 139 fs/ecryptfs/file.c fsstack_copy_attr_atime(inode, lower_file->f_path.dentry->d_inode); inode 186 fs/ecryptfs/file.c crypt_stat = &ecryptfs_inode_to_private(inode)->crypt_stat; inode 195 fs/ecryptfs/file.c if ((ecryptfs_inode_to_private(inode)->lower_file->f_flags & O_RDONLY) inode 202 fs/ecryptfs/file.c if (!ecryptfs_inode_to_private(inode)->lower_file) { inode 213 fs/ecryptfs/file.c file, ecryptfs_inode_to_private(inode)->lower_file); inode 248 fs/ecryptfs/file.c "size: [0x%.16x]\n", inode, inode->i_ino, inode 249 fs/ecryptfs/file.c i_size_read(inode)); inode 281 fs/ecryptfs/file.c struct inode *lower_inode = lower_dentry->d_inode; inode 348 fs/ecryptfs/file.c rc = lower_file->f_op->ioctl(ecryptfs_inode_to_lower(inode), inode 144 fs/ecryptfs/inode.c struct inode *ecryptfs_inode = ecryptfs_dentry->d_inode; inode 267 fs/ecryptfs/inode.c struct inode *lower_inode; inode 443 fs/ecryptfs/inode.c struct inode *lower_dir_inode = ecryptfs_inode_to_lower(dir); inode 740 fs/ecryptfs/inode.c struct inode *inode = dentry->d_inode; inode 744 fs/ecryptfs/inode.c loff_t i_size = i_size_read(inode); inode 804 fs/ecryptfs/inode.c vmtruncate(inode, new_length); inode 805 fs/ecryptfs/inode.c rc = ecryptfs_write_inode_size_to_metadata(inode); inode 833 fs/ecryptfs/inode.c return inode_permission(ecryptfs_inode_to_lower(inode), mask); inode 852 fs/ecryptfs/inode.c struct inode *inode; inode 853 fs/ecryptfs/inode.c struct inode *lower_inode; inode 859 fs/ecryptfs/inode.c inode = dentry->d_inode; inode 860 fs/ecryptfs/inode.c lower_inode = ecryptfs_inode_to_lower(inode); inode 916 fs/ecryptfs/inode.c fsstack_copy_attr_all(inode, lower_inode, NULL); inode 1003 fs/ecryptfs/inode.c if ((ecryptfs_inode_to_lower(inode) inode 1004 fs/ecryptfs/inode.c == (struct inode *)candidate_lower_inode)) inode 1012 fs/ecryptfs/inode.c ecryptfs_init_inode(inode, (struct inode *)lower_inode); inode 161 fs/ecryptfs/main.c struct inode *lower_inode; inode 162 fs/ecryptfs/main.c struct inode *inode; inode 174 fs/ecryptfs/main.c inode = iget5_locked(sb, (unsigned long)lower_inode, inode 177 fs/ecryptfs/main.c if (!inode) { inode 182 fs/ecryptfs/main.c if (inode->i_state & I_NEW) inode 183 fs/ecryptfs/main.c unlock_new_inode(inode); inode 187 fs/ecryptfs/main.c inode->i_op = &ecryptfs_symlink_iops; inode 189 fs/ecryptfs/main.c inode->i_op = &ecryptfs_dir_iops; inode 191 fs/ecryptfs/main.c inode->i_fop = &ecryptfs_dir_fops; inode 193 fs/ecryptfs/main.c init_special_inode(inode, lower_inode->i_mode, inode 197 fs/ecryptfs/main.c d_add(dentry, inode); inode 199 fs/ecryptfs/main.c d_instantiate(dentry, inode); inode 200 fs/ecryptfs/main.c fsstack_copy_attr_all(inode, lower_inode, NULL); inode 203 fs/ecryptfs/main.c fsstack_copy_inode_size(inode, lower_inode); inode 49 fs/ecryptfs/mmap.c struct inode *inode; inode 54 fs/ecryptfs/mmap.c inode = dentry->d_inode; inode 55 fs/ecryptfs/mmap.c mapping = inode->i_mapping; inode 254 fs/ecryptfs/mmap.c struct inode *inode = page->mapping->host; inode 257 fs/ecryptfs/mmap.c if ((i_size_read(inode) / PAGE_CACHE_SIZE) != page->index) inode 259 fs/ecryptfs/mmap.c end_byte_in_page = i_size_read(inode) % PAGE_CACHE_SIZE; inode 403 fs/ecryptfs/mmap.c struct inode *lower_inode = lower_dentry->d_inode; inode 462 fs/ecryptfs/mmap.c struct inode *ecryptfs_inode = page->mapping->host; inode 507 fs/ecryptfs/mmap.c struct inode *inode; inode 508 fs/ecryptfs/mmap.c struct inode *lower_inode; inode 510 fs/ecryptfs/mmap.c inode = (struct inode *)mapping->host; inode 511 fs/ecryptfs/mmap.c lower_inode = ecryptfs_inode_to_lower(inode); inode 48 fs/ecryptfs/super.c static struct inode *ecryptfs_alloc_inode(struct super_block *sb) inode 51 fs/ecryptfs/super.c struct inode *inode = NULL; inode 59 fs/ecryptfs/super.c inode = &inode_info->vfs_inode; inode 61 fs/ecryptfs/super.c return inode; inode 78 fs/ecryptfs/super.c inode_info = ecryptfs_inode_to_private(inode); inode 104 fs/ecryptfs/super.c ecryptfs_set_inode_lower(inode, lower_inode); inode 105 fs/ecryptfs/super.c inode->i_ino = lower_inode->i_ino; inode 106 fs/ecryptfs/super.c inode->i_version++; inode 107 fs/ecryptfs/super.c inode->i_op = &ecryptfs_main_iops; inode 108 fs/ecryptfs/super.c inode->i_fop = &ecryptfs_main_fops; inode 109 fs/ecryptfs/super.c inode->i_mapping->a_ops = &ecryptfs_aops; inode 153 fs/ecryptfs/super.c iput(ecryptfs_inode_to_lower(inode)); inode 23 fs/efs/dir.c struct inode *inode = filp->f_path.dentry->d_inode; inode 33 fs/efs/dir.c if (inode->i_size & (EFS_DIRBSIZE-1)) inode 45 fs/efs/dir.c while (block < inode->i_blocks) { inode 47 fs/efs/dir.c bh = sb_bread(inode->i_sb, efs_bmap(inode, block)); inode 70 fs/efs/dir.c inodenum = be32_to_cpu(dirslot->inode); inode 74 fs/efs/efs.h struct inode vfs_inode; inode 83 fs/efs/efs.h __be32 inode; inode 113 fs/efs/efs.h return container_of(inode, struct efs_inode_info, vfs_inode); inode 128 fs/efs/efs.h extern struct inode *efs_iget(struct super_block *, unsigned long); inode 20 fs/efs/file.c if (iblock >= inode->i_blocks) { inode 27 fs/efs/file.c inode->i_blocks, inode 28 fs/efs/file.c inode->i_size); inode 32 fs/efs/file.c phys = efs_map_block(inode, iblock); inode 34 fs/efs/file.c map_bh(bh_result, inode->i_sb, phys); inode 46 fs/efs/file.c if (!(block < inode->i_blocks)) { inode 53 fs/efs/file.c inode->i_blocks, inode 54 fs/efs/file.c inode->i_size); inode 59 fs/efs/file.c return efs_map_block(inode, block); inode 48 fs/efs/inode.c struct inode *efs_iget(struct super_block *super, unsigned long ino) inode 58 fs/efs/inode.c struct inode *inode; inode 60 fs/efs/inode.c inode = iget_locked(super, ino); inode 61 fs/efs/inode.c if (IS_ERR(inode)) inode 63 fs/efs/inode.c if (!(inode->i_state & I_NEW)) inode 64 fs/efs/inode.c return inode; inode 66 fs/efs/inode.c in = INODE_INFO(inode); inode 80 fs/efs/inode.c inode_index = inode->i_ino / inode 87 fs/efs/inode.c offset = (inode->i_ino % inode 91 fs/efs/inode.c bh = sb_bread(inode->i_sb, block); inode 99 fs/efs/inode.c inode->i_mode = be16_to_cpu(efs_inode->di_mode); inode 100 fs/efs/inode.c inode->i_nlink = be16_to_cpu(efs_inode->di_nlink); inode 101 fs/efs/inode.c inode->i_uid = (uid_t)be16_to_cpu(efs_inode->di_uid); inode 102 fs/efs/inode.c inode->i_gid = (gid_t)be16_to_cpu(efs_inode->di_gid); inode 103 fs/efs/inode.c inode->i_size = be32_to_cpu(efs_inode->di_size); inode 104 fs/efs/inode.c inode->i_atime.tv_sec = be32_to_cpu(efs_inode->di_atime); inode 105 fs/efs/inode.c inode->i_mtime.tv_sec = be32_to_cpu(efs_inode->di_mtime); inode 106 fs/efs/inode.c inode->i_ctime.tv_sec = be32_to_cpu(efs_inode->di_ctime); inode 107 fs/efs/inode.c inode->i_atime.tv_nsec = inode->i_mtime.tv_nsec = inode->i_ctime.tv_nsec = 0; inode 110 fs/efs/inode.c if (inode->i_size == 0) { inode 111 fs/efs/inode.c inode->i_blocks = 0; inode 113 fs/efs/inode.c inode->i_blocks = ((inode->i_size - 1) >> EFS_BLOCKSIZE_BITS) + 1; inode 134 fs/efs/inode.c printk(KERN_WARNING "EFS: extent %d has bad magic number in inode %lu\n", i, inode->i_ino); inode 144 fs/efs/inode.c inode->i_ino, in->numextents, inode->i_mode); inode 147 fs/efs/inode.c switch (inode->i_mode & S_IFMT) { inode 149 fs/efs/inode.c inode->i_op = &efs_dir_inode_operations; inode 150 fs/efs/inode.c inode->i_fop = &efs_dir_operations; inode 153 fs/efs/inode.c inode->i_fop = &generic_ro_fops; inode 154 fs/efs/inode.c inode->i_data.a_ops = &efs_aops; inode 157 fs/efs/inode.c inode->i_op = &page_symlink_inode_operations; inode 158 fs/efs/inode.c inode->i_data.a_ops = &efs_symlink_aops; inode 163 fs/efs/inode.c init_special_inode(inode, inode->i_mode, device); inode 166 fs/efs/inode.c printk(KERN_WARNING "EFS: unsupported inode mode %o\n", inode->i_mode); inode 171 fs/efs/inode.c unlock_new_inode(inode); inode 172 fs/efs/inode.c return inode; inode 175 fs/efs/inode.c printk(KERN_WARNING "EFS: failed to read inode %lu\n", inode->i_ino); inode 176 fs/efs/inode.c iget_failed(inode); inode 202 fs/efs/inode.c struct efs_sb_info *sb = SUPER_INFO(inode->i_sb); inode 203 fs/efs/inode.c struct efs_inode_info *in = INODE_INFO(inode); inode 281 fs/efs/inode.c bh = sb_bread(inode->i_sb, iblock); inode 26 fs/efs/namei.c if (inode->i_size & (EFS_DIRBSIZE-1)) inode 29 fs/efs/namei.c for(block = 0; block < inode->i_blocks; block++) { inode 31 fs/efs/namei.c bh = sb_bread(inode->i_sb, efs_bmap(inode, block)); inode 52 fs/efs/namei.c inodenum = be32_to_cpu(dirslot->inode); inode 64 fs/efs/namei.c struct inode * inode = NULL; inode 69 fs/efs/namei.c inode = efs_iget(dir->i_sb, inodenum); inode 70 fs/efs/namei.c if (IS_ERR(inode)) { inode 72 fs/efs/namei.c return ERR_CAST(inode); inode 77 fs/efs/namei.c return d_splice_alias(inode, dentry); inode 80 fs/efs/namei.c static struct inode *efs_nfs_get_inode(struct super_block *sb, u64 ino, inode 83 fs/efs/namei.c struct inode *inode; inode 87 fs/efs/namei.c inode = efs_iget(sb, ino); inode 88 fs/efs/namei.c if (IS_ERR(inode)) inode 89 fs/efs/namei.c return ERR_CAST(inode); inode 91 fs/efs/namei.c if (generation && inode->i_generation != generation) { inode 92 fs/efs/namei.c iput(inode); inode 96 fs/efs/namei.c return inode; inode 116 fs/efs/namei.c struct inode *inode; inode 127 fs/efs/namei.c inode = efs_iget(child->d_inode->i_sb, ino); inode 128 fs/efs/namei.c if (IS_ERR(inode)) { inode 129 fs/efs/namei.c error = PTR_ERR(inode); inode 134 fs/efs/namei.c parent = d_alloc_anon(inode); inode 142 fs/efs/namei.c iput(inode); inode 59 fs/efs/super.c static struct inode *efs_alloc_inode(struct super_block *sb) inode 70 fs/efs/super.c kmem_cache_free(efs_inode_cachep, INODE_INFO(inode)); inode 249 fs/efs/super.c struct inode *root; inode 19 fs/efs/symlink.c struct inode * inode = page->mapping->host; inode 20 fs/efs/symlink.c efs_block_t size = inode->i_size; inode 30 fs/efs/symlink.c bh = sb_bread(inode->i_sb, efs_bmap(inode, 0)); inode 36 fs/efs/symlink.c bh = sb_bread(inode->i_sb, efs_bmap(inode, 1)); inode 1048 fs/exec.c struct inode * inode = bprm->file->f_path.dentry->d_inode; inode 1051 fs/exec.c mode = inode->i_mode; inode 1062 fs/exec.c bprm->e_uid = inode->i_uid; inode 1073 fs/exec.c bprm->e_gid = inode->i_gid; inode 1715 fs/exec.c struct inode * inode; inode 1810 fs/exec.c inode = file->f_path.dentry->d_inode; inode 1811 fs/exec.c if (inode->i_nlink > 1) inode 1818 fs/exec.c if (!ispipe && !S_ISREG(inode->i_mode)) inode 1824 fs/exec.c if (inode->i_uid != current->fsuid) inode 253 fs/exportfs/expfs.c struct inode *dir = dentry->d_inode; inode 317 fs/exportfs/expfs.c struct inode * inode = dentry->d_inode; inode 325 fs/exportfs/expfs.c fid->i32.ino = inode->i_ino; inode 326 fs/exportfs/expfs.c fid->i32.gen = inode->i_generation; inode 327 fs/exportfs/expfs.c if (connectable && !S_ISDIR(inode->i_mode)) { inode 328 fs/exportfs/expfs.c struct inode *parent; inode 133 fs/ext2/acl.c spin_lock(&inode->i_lock); inode 136 fs/ext2/acl.c spin_unlock(&inode->i_lock); inode 145 fs/ext2/acl.c spin_lock(&inode->i_lock); inode 149 fs/ext2/acl.c spin_unlock(&inode->i_lock); inode 158 fs/ext2/acl.c struct ext2_inode_info *ei = EXT2_I(inode); inode 164 fs/ext2/acl.c if (!test_opt(inode->i_sb, POSIX_ACL)) inode 169 fs/ext2/acl.c acl = ext2_iget_acl(inode, &ei->i_acl); inode 176 fs/ext2/acl.c acl = ext2_iget_acl(inode, &ei->i_default_acl); inode 185 fs/ext2/acl.c retval = ext2_xattr_get(inode, name_index, "", NULL, 0); inode 190 fs/ext2/acl.c retval = ext2_xattr_get(inode, name_index, "", value, retval); inode 203 fs/ext2/acl.c ext2_iset_acl(inode, &ei->i_acl, acl); inode 207 fs/ext2/acl.c ext2_iset_acl(inode, &ei->i_default_acl, acl); inode 220 fs/ext2/acl.c struct ext2_inode_info *ei = EXT2_I(inode); inode 226 fs/ext2/acl.c if (S_ISLNK(inode->i_mode)) inode 228 fs/ext2/acl.c if (!test_opt(inode->i_sb, POSIX_ACL)) inode 235 fs/ext2/acl.c mode_t mode = inode->i_mode; inode 240 fs/ext2/acl.c inode->i_mode = mode; inode 241 fs/ext2/acl.c mark_inode_dirty(inode); inode 250 fs/ext2/acl.c if (!S_ISDIR(inode->i_mode)) inode 263 fs/ext2/acl.c error = ext2_xattr_set(inode, name_index, "", value, size, 0); inode 269 fs/ext2/acl.c ext2_iset_acl(inode, &ei->i_acl, acl); inode 273 fs/ext2/acl.c ext2_iset_acl(inode, &ei->i_default_acl, acl); inode 283 fs/ext2/acl.c struct posix_acl *acl = ext2_get_acl(inode, ACL_TYPE_ACCESS); inode 288 fs/ext2/acl.c int error = posix_acl_permission(inode, acl, mask); inode 299 fs/ext2/acl.c return generic_permission(inode, mask, ext2_check_acl); inode 314 fs/ext2/acl.c if (!S_ISLNK(inode->i_mode)) { inode 321 fs/ext2/acl.c inode->i_mode &= ~current->fs->umask; inode 323 fs/ext2/acl.c if (test_opt(inode->i_sb, POSIX_ACL) && acl) { inode 327 fs/ext2/acl.c if (S_ISDIR(inode->i_mode)) { inode 328 fs/ext2/acl.c error = ext2_set_acl(inode, ACL_TYPE_DEFAULT, acl); inode 336 fs/ext2/acl.c mode = inode->i_mode; inode 339 fs/ext2/acl.c inode->i_mode = mode; inode 342 fs/ext2/acl.c error = ext2_set_acl(inode, inode 373 fs/ext2/acl.c if (!test_opt(inode->i_sb, POSIX_ACL)) inode 375 fs/ext2/acl.c if (S_ISLNK(inode->i_mode)) inode 377 fs/ext2/acl.c acl = ext2_get_acl(inode, ACL_TYPE_ACCESS); inode 384 fs/ext2/acl.c error = posix_acl_chmod_masq(clone, inode->i_mode); inode 386 fs/ext2/acl.c error = ext2_set_acl(inode, ACL_TYPE_ACCESS, clone); inode 400 fs/ext2/acl.c if (!test_opt(inode->i_sb, POSIX_ACL)) inode 413 fs/ext2/acl.c if (!test_opt(inode->i_sb, POSIX_ACL)) inode 426 fs/ext2/acl.c if (!test_opt(inode->i_sb, POSIX_ACL)) inode 429 fs/ext2/acl.c acl = ext2_get_acl(inode, type); inode 446 fs/ext2/acl.c return ext2_xattr_get_acl(inode, ACL_TYPE_ACCESS, buffer, size); inode 455 fs/ext2/acl.c return ext2_xattr_get_acl(inode, ACL_TYPE_DEFAULT, buffer, size); inode 465 fs/ext2/acl.c if (!test_opt(inode->i_sb, POSIX_ACL)) inode 467 fs/ext2/acl.c if (!is_owner_or_cap(inode)) inode 482 fs/ext2/acl.c error = ext2_set_acl(inode, type, acl); inode 495 fs/ext2/acl.c return ext2_xattr_set_acl(inode, ACL_TYPE_ACCESS, value, size); inode 504 fs/ext2/acl.c return ext2_xattr_set_acl(inode, ACL_TYPE_DEFAULT, value, size); inode 422 fs/ext2/balloc.c struct ext2_inode_info *ei = EXT2_I(inode); inode 424 fs/ext2/balloc.c struct super_block *sb = inode->i_sb; inode 463 fs/ext2/balloc.c struct ext2_inode_info *ei = EXT2_I(inode); inode 466 fs/ext2/balloc.c spinlock_t *rsv_lock = &EXT2_SB(inode->i_sb)->s_rsv_window_lock; inode 475 fs/ext2/balloc.c rsv_window_remove(inode->i_sb, rsv); inode 495 fs/ext2/balloc.c struct super_block * sb = inode->i_sb; inode 573 fs/ext2/balloc.c DQUOT_FREE_BLOCK(inode, freed); inode 1241 fs/ext2/balloc.c sb = inode->i_sb; inode 1250 fs/ext2/balloc.c if (DQUOT_ALLOC_BLOCK(inode, num)) { inode 1266 fs/ext2/balloc.c block_i = EXT2_I(inode)->i_block_alloc_info; inode 1411 fs/ext2/balloc.c DQUOT_FREE_BLOCK(inode, *count-num); inode 1422 fs/ext2/balloc.c DQUOT_FREE_BLOCK(inode, *count); inode 1431 fs/ext2/balloc.c return ext2_new_blocks(inode, goal, &count, errp); inode 55 fs/ext2/dir.c return inode->i_sb->s_blocksize; inode 66 fs/ext2/dir.c return (inode->i_size+PAGE_CACHE_SIZE-1)>>PAGE_CACHE_SHIFT; inode 76 fs/ext2/dir.c unsigned last_byte = inode->i_size; inode 87 fs/ext2/dir.c struct inode *dir = mapping->host; inode 108 fs/ext2/dir.c struct inode *dir = page->mapping->host; inode 137 fs/ext2/dir.c if (le32_to_cpu(p->inode) > max_inumber) inode 172 fs/ext2/dir.c (unsigned long) le32_to_cpu(p->inode), inode 181 fs/ext2/dir.c (unsigned long) le32_to_cpu(p->inode)); inode 215 fs/ext2/dir.c if (!de->inode) inode 266 fs/ext2/dir.c mode_t mode = inode->i_mode; inode 267 fs/ext2/dir.c if (EXT2_HAS_INCOMPAT_FEATURE(inode->i_sb, EXT2_FEATURE_INCOMPAT_FILETYPE)) inode 277 fs/ext2/dir.c struct inode *inode = filp->f_path.dentry->d_inode; inode 278 fs/ext2/dir.c struct super_block *sb = inode->i_sb; inode 281 fs/ext2/dir.c unsigned long npages = dir_pages(inode); inode 282 fs/ext2/dir.c unsigned chunk_mask = ~(ext2_chunk_size(inode)-1); inode 284 fs/ext2/dir.c int need_revalidate = filp->f_version != inode->i_version; inode 286 fs/ext2/dir.c if (pos > inode->i_size - EXT2_DIR_REC_LEN(1)) inode 295 fs/ext2/dir.c struct page *page = ext2_get_page(inode, n); inode 300 fs/ext2/dir.c inode->i_ino); inode 310 fs/ext2/dir.c filp->f_version = inode->i_version; inode 314 fs/ext2/dir.c limit = kaddr + ext2_last_byte(inode, n) - EXT2_DIR_REC_LEN(1); inode 322 fs/ext2/dir.c if (de->inode) { inode 332 fs/ext2/dir.c le32_to_cpu(de->inode), d_type); inode 435 fs/ext2/dir.c res = le32_to_cpu(de->inode); inode 454 fs/ext2/dir.c de->inode = cpu_to_le32(inode->i_ino); inode 455 fs/ext2/dir.c ext2_set_de_type(de, inode); inode 468 fs/ext2/dir.c struct inode *dir = dentry->d_parent->d_inode; inode 505 fs/ext2/dir.c de->inode = 0; inode 519 fs/ext2/dir.c if (!de->inode && rec_len >= reclen) inode 538 fs/ext2/dir.c if (de->inode) { inode 546 fs/ext2/dir.c de->inode = cpu_to_le32(inode->i_ino); inode 547 fs/ext2/dir.c ext2_set_de_type (de, inode); inode 569 fs/ext2/dir.c struct inode *inode = mapping->host; inode 571 fs/ext2/dir.c unsigned from = ((char*)dir - kaddr) & ~(ext2_chunk_size(inode)-1); inode 581 fs/ext2/dir.c ext2_error(inode->i_sb, __func__, inode 598 fs/ext2/dir.c dir->inode = 0; inode 600 fs/ext2/dir.c inode->i_ctime = inode->i_mtime = CURRENT_TIME_SEC; inode 601 fs/ext2/dir.c EXT2_I(inode)->i_flags &= ~EXT2_BTREE_FL; inode 602 fs/ext2/dir.c mark_inode_dirty(inode); inode 613 fs/ext2/dir.c struct address_space *mapping = inode->i_mapping; inode 615 fs/ext2/dir.c unsigned chunk_size = ext2_chunk_size(inode); inode 635 fs/ext2/dir.c de->inode = cpu_to_le32(inode->i_ino); inode 636 fs/ext2/dir.c ext2_set_de_type (de, inode); inode 641 fs/ext2/dir.c de->inode = cpu_to_le32(parent->i_ino); inode 643 fs/ext2/dir.c ext2_set_de_type (de, inode); inode 657 fs/ext2/dir.c unsigned long i, npages = dir_pages(inode); inode 662 fs/ext2/dir.c page = ext2_get_page(inode, i); inode 669 fs/ext2/dir.c kaddr += ext2_last_byte(inode, i) - EXT2_DIR_REC_LEN(1); inode 673 fs/ext2/dir.c ext2_error(inode->i_sb, __func__, inode 678 fs/ext2/dir.c if (de->inode != 0) { inode 685 fs/ext2/dir.c if (de->inode != inode 686 fs/ext2/dir.c cpu_to_le32(inode->i_ino)) inode 63 fs/ext2/ext2.h struct inode vfs_inode; inode 84 fs/ext2/ext2.h return container_of(inode, struct ext2_inode_info, vfs_inode); inode 120 fs/ext2/ext2.h extern struct inode * ext2_new_inode (struct inode *, int); inode 127 fs/ext2/ext2.h extern struct inode *ext2_iget (struct super_block *, unsigned long); inode 34 fs/ext2/file.c mutex_lock(&EXT2_I(inode)->truncate_mutex); inode 35 fs/ext2/file.c ext2_discard_reservation(inode); inode 36 fs/ext2/file.c mutex_unlock(&EXT2_I(inode)->truncate_mutex); inode 36 fs/ext2/fsync.c struct inode *inode = dentry->d_inode; inode 40 fs/ext2/fsync.c ret = sync_mapping_buffers(inode->i_mapping); inode 41 fs/ext2/fsync.c if (!(inode->i_state & I_DIRTY)) inode 43 fs/ext2/fsync.c if (datasync && !(inode->i_state & I_DIRTY_DATASYNC)) inode 46 fs/ext2/fsync.c err = ext2_sync_inode(inode); inode 106 fs/ext2/ialloc.c struct super_block * sb = inode->i_sb; inode 114 fs/ext2/ialloc.c ino = inode->i_ino; inode 121 fs/ext2/ialloc.c if (!is_bad_inode(inode)) { inode 123 fs/ext2/ialloc.c ext2_xattr_delete_inode(inode); inode 124 fs/ext2/ialloc.c DQUOT_FREE_INODE(inode); inode 125 fs/ext2/ialloc.c DQUOT_DROP(inode); inode 129 fs/ext2/ialloc.c is_directory = S_ISDIR(inode->i_mode); inode 132 fs/ext2/ialloc.c clear_inode (inode); inode 181 fs/ext2/ialloc.c bdi = inode->i_mapping->backing_dev_info; inode 187 fs/ext2/ialloc.c block_group = (inode->i_ino - 1) / EXT2_INODES_PER_GROUP(inode->i_sb); inode 188 fs/ext2/ialloc.c gdp = ext2_get_group_desc(inode->i_sb, block_group, NULL); inode 195 fs/ext2/ialloc.c offset = ((inode->i_ino - 1) % EXT2_INODES_PER_GROUP(inode->i_sb)) * inode 196 fs/ext2/ialloc.c EXT2_INODE_SIZE(inode->i_sb); inode 198 fs/ext2/ialloc.c (offset >> EXT2_BLOCK_SIZE_BITS(inode->i_sb)); inode 199 fs/ext2/ialloc.c sb_breadahead(inode->i_sb, block); inode 438 fs/ext2/ialloc.c struct inode *ext2_new_inode(struct inode *dir, int mode) inode 445 fs/ext2/ialloc.c struct inode * inode; inode 453 fs/ext2/ialloc.c inode = new_inode(sb); inode 454 fs/ext2/ialloc.c if (!inode) inode 457 fs/ext2/ialloc.c ei = EXT2_I(inode); inode 553 fs/ext2/ialloc.c inode->i_uid = current->fsuid; inode 555 fs/ext2/ialloc.c inode->i_gid = dir->i_gid; inode 557 fs/ext2/ialloc.c inode->i_gid = dir->i_gid; inode 561 fs/ext2/ialloc.c inode->i_gid = current->fsgid; inode 562 fs/ext2/ialloc.c inode->i_mode = mode; inode 564 fs/ext2/ialloc.c inode->i_ino = ino; inode 565 fs/ext2/ialloc.c inode->i_blocks = 0; inode 566 fs/ext2/ialloc.c inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; inode 584 fs/ext2/ialloc.c ext2_set_inode_flags(inode); inode 586 fs/ext2/ialloc.c inode->i_generation = sbi->s_next_generation++; inode 588 fs/ext2/ialloc.c insert_inode_hash(inode); inode 590 fs/ext2/ialloc.c if (DQUOT_ALLOC_INODE(inode)) { inode 595 fs/ext2/ialloc.c err = ext2_init_acl(inode, dir); inode 599 fs/ext2/ialloc.c err = ext2_init_security(inode,dir); inode 603 fs/ext2/ialloc.c mark_inode_dirty(inode); inode 604 fs/ext2/ialloc.c ext2_debug("allocating inode %lu\n", inode->i_ino); inode 605 fs/ext2/ialloc.c ext2_preread_inode(inode); inode 606 fs/ext2/ialloc.c return inode; inode 609 fs/ext2/ialloc.c DQUOT_FREE_INODE(inode); inode 612 fs/ext2/ialloc.c DQUOT_DROP(inode); inode 613 fs/ext2/ialloc.c inode->i_flags |= S_NOQUOTA; inode 614 fs/ext2/ialloc.c inode->i_nlink = 0; inode 615 fs/ext2/ialloc.c iput(inode); inode 619 fs/ext2/ialloc.c make_bad_inode(inode); inode 620 fs/ext2/ialloc.c iput(inode); inode 50 fs/ext2/inode.c int ea_blocks = EXT2_I(inode)->i_file_acl ? inode 51 fs/ext2/inode.c (inode->i_sb->s_blocksize >> 9) : 0; inode 53 fs/ext2/inode.c return (S_ISLNK(inode->i_mode) && inode 54 fs/ext2/inode.c inode->i_blocks - ea_blocks == 0); inode 62 fs/ext2/inode.c truncate_inode_pages(&inode->i_data, 0); inode 64 fs/ext2/inode.c if (is_bad_inode(inode)) inode 66 fs/ext2/inode.c EXT2_I(inode)->i_dtime = get_seconds(); inode 67 fs/ext2/inode.c mark_inode_dirty(inode); inode 68 fs/ext2/inode.c ext2_update_inode(inode, inode_needs_sync(inode)); inode 70 fs/ext2/inode.c inode->i_size = 0; inode 71 fs/ext2/inode.c if (inode->i_blocks) inode 72 fs/ext2/inode.c ext2_truncate (inode); inode 73 fs/ext2/inode.c ext2_free_inode (inode); inode 77 fs/ext2/inode.c clear_inode(inode); /* We must guarantee clearing of inode... */ inode 132 fs/ext2/inode.c int ptrs = EXT2_ADDR_PER_BLOCK(inode->i_sb); inode 133 fs/ext2/inode.c int ptrs_bits = EXT2_ADDR_PER_BLOCK_BITS(inode->i_sb); inode 141 fs/ext2/inode.c ext2_warning (inode->i_sb, "ext2_block_to_path", "block < 0"); inode 161 fs/ext2/inode.c ext2_warning (inode->i_sb, "ext2_block_to_path", "block > big"); inode 204 fs/ext2/inode.c struct super_block *sb = inode->i_sb; inode 210 fs/ext2/inode.c add_chain (chain, NULL, EXT2_I(inode)->i_data + *offsets); inode 217 fs/ext2/inode.c read_lock(&EXT2_I(inode)->i_meta_lock); inode 221 fs/ext2/inode.c read_unlock(&EXT2_I(inode)->i_meta_lock); inode 228 fs/ext2/inode.c read_unlock(&EXT2_I(inode)->i_meta_lock); inode 260 fs/ext2/inode.c struct ext2_inode_info *ei = EXT2_I(inode); inode 279 fs/ext2/inode.c bg_start = ext2_group_first_block_no(inode->i_sb, ei->i_block_group); inode 281 fs/ext2/inode.c (EXT2_BLOCKS_PER_GROUP(inode->i_sb) / 16); inode 299 fs/ext2/inode.c block_i = EXT2_I(inode)->i_block_alloc_info; inode 310 fs/ext2/inode.c return ext2_find_near(inode, partial); inode 385 fs/ext2/inode.c current_block = ext2_new_blocks(inode,goal,&count,err); inode 409 fs/ext2/inode.c ext2_free_blocks(inode, new_blocks[i], 1); inode 442 fs/ext2/inode.c int blocksize = inode->i_sb->s_blocksize; inode 450 fs/ext2/inode.c num = ext2_alloc_blocks(inode, goal, indirect_blks, inode 465 fs/ext2/inode.c bh = sb_getblk(inode->i_sb, new_blocks[n-1]); inode 484 fs/ext2/inode.c mark_buffer_dirty_inode(bh, inode); inode 489 fs/ext2/inode.c if (S_ISDIR(inode->i_mode) && IS_DIRSYNC(inode)) inode 517 fs/ext2/inode.c block_i = EXT2_I(inode)->i_block_alloc_info; inode 549 fs/ext2/inode.c mark_buffer_dirty_inode(where->bh, inode); inode 551 fs/ext2/inode.c inode->i_ctime = CURRENT_TIME_SEC; inode 552 fs/ext2/inode.c mark_inode_dirty(inode); inode 586 fs/ext2/inode.c struct ext2_inode_info *ei = EXT2_I(inode); inode 590 fs/ext2/inode.c depth = ext2_block_to_path(inode,iblock,offsets,&blocks_to_boundary); inode 595 fs/ext2/inode.c partial = ext2_get_branch(inode, depth, offsets, chain, &err); inode 635 fs/ext2/inode.c if (S_ISREG(inode->i_mode) && (!ei->i_block_alloc_info)) inode 636 fs/ext2/inode.c ext2_init_block_alloc_info(inode); inode 638 fs/ext2/inode.c goal = ext2_find_goal(inode, iblock, partial); inode 651 fs/ext2/inode.c err = ext2_alloc_branch(inode, indirect_blks, &count, goal, inode 659 fs/ext2/inode.c if (ext2_use_xip(inode->i_sb)) { inode 663 fs/ext2/inode.c err = ext2_clear_xip_target (inode, inode 671 fs/ext2/inode.c ext2_splice_branch(inode, iblock, partial, indirect_blks, count); inode 675 fs/ext2/inode.c map_bh(bh_result, inode->i_sb, le32_to_cpu(chain[depth-1].key)); inode 697 fs/ext2/inode.c unsigned max_blocks = bh_result->b_size >> inode->i_blkbits; inode 698 fs/ext2/inode.c int ret = ext2_get_blocks(inode, iblock, max_blocks, inode 701 fs/ext2/inode.c bh_result->b_size = (ret << inode->i_blkbits); inode 711 fs/ext2/inode.c return generic_block_fiemap(inode, fieinfo, start, len, inode 779 fs/ext2/inode.c struct inode *inode = file->f_mapping->host; inode 781 fs/ext2/inode.c return blockdev_direct_IO(rw, iocb, inode, inode->i_sb->s_bdev, iov, inode 882 fs/ext2/inode.c partial = ext2_get_branch(inode, k, offsets, chain, &err); inode 889 fs/ext2/inode.c write_lock(&EXT2_I(inode)->i_meta_lock); inode 891 fs/ext2/inode.c write_unlock(&EXT2_I(inode)->i_meta_lock); inode 908 fs/ext2/inode.c write_unlock(&EXT2_I(inode)->i_meta_lock); inode 944 fs/ext2/inode.c mark_inode_dirty(inode); inode 945 fs/ext2/inode.c ext2_free_blocks (inode, block_to_free, count); inode 953 fs/ext2/inode.c mark_inode_dirty(inode); inode 954 fs/ext2/inode.c ext2_free_blocks (inode, block_to_free, count); inode 975 fs/ext2/inode.c int addr_per_block = EXT2_ADDR_PER_BLOCK(inode->i_sb); inode 981 fs/ext2/inode.c bh = sb_bread(inode->i_sb, nr); inode 987 fs/ext2/inode.c ext2_error(inode->i_sb, "ext2_free_branches", inode 989 fs/ext2/inode.c inode->i_ino, nr); inode 992 fs/ext2/inode.c ext2_free_branches(inode, inode 997 fs/ext2/inode.c ext2_free_blocks(inode, nr, 1); inode 998 fs/ext2/inode.c mark_inode_dirty(inode); inode 1001 fs/ext2/inode.c ext2_free_data(inode, p, q); inode 1006 fs/ext2/inode.c __le32 *i_data = EXT2_I(inode)->i_data; inode 1007 fs/ext2/inode.c struct ext2_inode_info *ei = EXT2_I(inode); inode 1008 fs/ext2/inode.c int addr_per_block = EXT2_ADDR_PER_BLOCK(inode->i_sb); inode 1017 fs/ext2/inode.c if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || inode 1018 fs/ext2/inode.c S_ISLNK(inode->i_mode))) inode 1020 fs/ext2/inode.c if (ext2_inode_is_fast_symlink(inode)) inode 1022 fs/ext2/inode.c if (IS_APPEND(inode) || IS_IMMUTABLE(inode)) inode 1025 fs/ext2/inode.c blocksize = inode->i_sb->s_blocksize; inode 1026 fs/ext2/inode.c iblock = (inode->i_size + blocksize-1) inode 1027 fs/ext2/inode.c >> EXT2_BLOCK_SIZE_BITS(inode->i_sb); inode 1029 fs/ext2/inode.c if (mapping_is_xip(inode->i_mapping)) inode 1030 fs/ext2/inode.c xip_truncate_page(inode->i_mapping, inode->i_size); inode 1031 fs/ext2/inode.c else if (test_opt(inode->i_sb, NOBH)) inode 1032 fs/ext2/inode.c nobh_truncate_page(inode->i_mapping, inode 1033 fs/ext2/inode.c inode->i_size, ext2_get_block); inode 1035 fs/ext2/inode.c block_truncate_page(inode->i_mapping, inode 1036 fs/ext2/inode.c inode->i_size, ext2_get_block); inode 1038 fs/ext2/inode.c n = ext2_block_to_path(inode, iblock, offsets, NULL); inode 1049 fs/ext2/inode.c ext2_free_data(inode, i_data+offsets[0], inode 1054 fs/ext2/inode.c partial = ext2_find_shared(inode, n, offsets, chain, &nr); inode 1058 fs/ext2/inode.c mark_inode_dirty(inode); inode 1060 fs/ext2/inode.c mark_buffer_dirty_inode(partial->bh, inode); inode 1061 fs/ext2/inode.c ext2_free_branches(inode, &nr, &nr+1, (chain+n-1) - partial); inode 1065 fs/ext2/inode.c ext2_free_branches(inode, inode 1069 fs/ext2/inode.c mark_buffer_dirty_inode(partial->bh, inode); inode 1080 fs/ext2/inode.c mark_inode_dirty(inode); inode 1081 fs/ext2/inode.c ext2_free_branches(inode, &nr, &nr+1, 1); inode 1087 fs/ext2/inode.c mark_inode_dirty(inode); inode 1088 fs/ext2/inode.c ext2_free_branches(inode, &nr, &nr+1, 2); inode 1094 fs/ext2/inode.c mark_inode_dirty(inode); inode 1095 fs/ext2/inode.c ext2_free_branches(inode, &nr, &nr+1, 3); inode 1101 fs/ext2/inode.c ext2_discard_reservation(inode); inode 1104 fs/ext2/inode.c inode->i_mtime = inode->i_ctime = CURRENT_TIME_SEC; inode 1105 fs/ext2/inode.c if (inode_needs_sync(inode)) { inode 1106 fs/ext2/inode.c sync_mapping_buffers(inode->i_mapping); inode 1107 fs/ext2/inode.c ext2_sync_inode (inode); inode 1109 fs/ext2/inode.c mark_inode_dirty(inode); inode 1158 fs/ext2/inode.c unsigned int flags = EXT2_I(inode)->i_flags; inode 1160 fs/ext2/inode.c inode->i_flags &= ~(S_SYNC|S_APPEND|S_IMMUTABLE|S_NOATIME|S_DIRSYNC); inode 1162 fs/ext2/inode.c inode->i_flags |= S_SYNC; inode 1164 fs/ext2/inode.c inode->i_flags |= S_APPEND; inode 1166 fs/ext2/inode.c inode->i_flags |= S_IMMUTABLE; inode 1168 fs/ext2/inode.c inode->i_flags |= S_NOATIME; inode 1170 fs/ext2/inode.c inode->i_flags |= S_DIRSYNC; inode 1192 fs/ext2/inode.c struct inode *ext2_iget (struct super_block *sb, unsigned long ino) inode 1197 fs/ext2/inode.c struct inode *inode; inode 1201 fs/ext2/inode.c inode = iget_locked(sb, ino); inode 1202 fs/ext2/inode.c if (!inode) inode 1204 fs/ext2/inode.c if (!(inode->i_state & I_NEW)) inode 1205 fs/ext2/inode.c return inode; inode 1207 fs/ext2/inode.c ei = EXT2_I(inode); inode 1214 fs/ext2/inode.c raw_inode = ext2_get_inode(inode->i_sb, ino, &bh); inode 1220 fs/ext2/inode.c inode->i_mode = le16_to_cpu(raw_inode->i_mode); inode 1221 fs/ext2/inode.c inode->i_uid = (uid_t)le16_to_cpu(raw_inode->i_uid_low); inode 1222 fs/ext2/inode.c inode->i_gid = (gid_t)le16_to_cpu(raw_inode->i_gid_low); inode 1223 fs/ext2/inode.c if (!(test_opt (inode->i_sb, NO_UID32))) { inode 1224 fs/ext2/inode.c inode->i_uid |= le16_to_cpu(raw_inode->i_uid_high) << 16; inode 1225 fs/ext2/inode.c inode->i_gid |= le16_to_cpu(raw_inode->i_gid_high) << 16; inode 1227 fs/ext2/inode.c inode->i_nlink = le16_to_cpu(raw_inode->i_links_count); inode 1228 fs/ext2/inode.c inode->i_size = le32_to_cpu(raw_inode->i_size); inode 1229 fs/ext2/inode.c inode->i_atime.tv_sec = (signed)le32_to_cpu(raw_inode->i_atime); inode 1230 fs/ext2/inode.c inode->i_ctime.tv_sec = (signed)le32_to_cpu(raw_inode->i_ctime); inode 1231 fs/ext2/inode.c inode->i_mtime.tv_sec = (signed)le32_to_cpu(raw_inode->i_mtime); inode 1232 fs/ext2/inode.c inode->i_atime.tv_nsec = inode->i_mtime.tv_nsec = inode->i_ctime.tv_nsec = 0; inode 1239 fs/ext2/inode.c if (inode->i_nlink == 0 && (inode->i_mode == 0 || ei->i_dtime)) { inode 1245 fs/ext2/inode.c inode->i_blocks = le32_to_cpu(raw_inode->i_blocks); inode 1252 fs/ext2/inode.c if (S_ISREG(inode->i_mode)) inode 1253 fs/ext2/inode.c inode->i_size |= ((__u64)le32_to_cpu(raw_inode->i_size_high)) << 32; inode 1257 fs/ext2/inode.c inode->i_generation = le32_to_cpu(raw_inode->i_generation); inode 1259 fs/ext2/inode.c ei->i_block_group = (ino - 1) / EXT2_INODES_PER_GROUP(inode->i_sb); inode 1269 fs/ext2/inode.c if (S_ISREG(inode->i_mode)) { inode 1270 fs/ext2/inode.c inode->i_op = &ext2_file_inode_operations; inode 1271 fs/ext2/inode.c if (ext2_use_xip(inode->i_sb)) { inode 1272 fs/ext2/inode.c inode->i_mapping->a_ops = &ext2_aops_xip; inode 1273 fs/ext2/inode.c inode->i_fop = &ext2_xip_file_operations; inode 1274 fs/ext2/inode.c } else if (test_opt(inode->i_sb, NOBH)) { inode 1275 fs/ext2/inode.c inode->i_mapping->a_ops = &ext2_nobh_aops; inode 1276 fs/ext2/inode.c inode->i_fop = &ext2_file_operations; inode 1278 fs/ext2/inode.c inode->i_mapping->a_ops = &ext2_aops; inode 1279 fs/ext2/inode.c inode->i_fop = &ext2_file_operations; inode 1281 fs/ext2/inode.c } else if (S_ISDIR(inode->i_mode)) { inode 1282 fs/ext2/inode.c inode->i_op = &ext2_dir_inode_operations; inode 1283 fs/ext2/inode.c inode->i_fop = &ext2_dir_operations; inode 1284 fs/ext2/inode.c if (test_opt(inode->i_sb, NOBH)) inode 1285 fs/ext2/inode.c inode->i_mapping->a_ops = &ext2_nobh_aops; inode 1287 fs/ext2/inode.c inode->i_mapping->a_ops = &ext2_aops; inode 1288 fs/ext2/inode.c } else if (S_ISLNK(inode->i_mode)) { inode 1289 fs/ext2/inode.c if (ext2_inode_is_fast_symlink(inode)) inode 1290 fs/ext2/inode.c inode->i_op = &ext2_fast_symlink_inode_operations; inode 1292 fs/ext2/inode.c inode->i_op = &ext2_symlink_inode_operations; inode 1293 fs/ext2/inode.c if (test_opt(inode->i_sb, NOBH)) inode 1294 fs/ext2/inode.c inode->i_mapping->a_ops = &ext2_nobh_aops; inode 1296 fs/ext2/inode.c inode->i_mapping->a_ops = &ext2_aops; inode 1299 fs/ext2/inode.c inode->i_op = &ext2_special_inode_operations; inode 1301 fs/ext2/inode.c init_special_inode(inode, inode->i_mode, inode 1304 fs/ext2/inode.c init_special_inode(inode, inode->i_mode, inode 1308 fs/ext2/inode.c ext2_set_inode_flags(inode); inode 1309 fs/ext2/inode.c unlock_new_inode(inode); inode 1310 fs/ext2/inode.c return inode; inode 1313 fs/ext2/inode.c iget_failed(inode); inode 1319 fs/ext2/inode.c struct ext2_inode_info *ei = EXT2_I(inode); inode 1320 fs/ext2/inode.c struct super_block *sb = inode->i_sb; inode 1321 fs/ext2/inode.c ino_t ino = inode->i_ino; inode 1322 fs/ext2/inode.c uid_t uid = inode->i_uid; inode 1323 fs/ext2/inode.c gid_t gid = inode->i_gid; inode 1338 fs/ext2/inode.c raw_inode->i_mode = cpu_to_le16(inode->i_mode); inode 1359 fs/ext2/inode.c raw_inode->i_links_count = cpu_to_le16(inode->i_nlink); inode 1360 fs/ext2/inode.c raw_inode->i_size = cpu_to_le32(inode->i_size); inode 1361 fs/ext2/inode.c raw_inode->i_atime = cpu_to_le32(inode->i_atime.tv_sec); inode 1362 fs/ext2/inode.c raw_inode->i_ctime = cpu_to_le32(inode->i_ctime.tv_sec); inode 1363 fs/ext2/inode.c raw_inode->i_mtime = cpu_to_le32(inode->i_mtime.tv_sec); inode 1365 fs/ext2/inode.c raw_inode->i_blocks = cpu_to_le32(inode->i_blocks); inode 1372 fs/ext2/inode.c if (!S_ISREG(inode->i_mode)) inode 1375 fs/ext2/inode.c raw_inode->i_size_high = cpu_to_le32(inode->i_size >> 32); inode 1376 fs/ext2/inode.c if (inode->i_size > 0x7fffffffULL) { inode 1394 fs/ext2/inode.c raw_inode->i_generation = cpu_to_le32(inode->i_generation); inode 1395 fs/ext2/inode.c if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) { inode 1396 fs/ext2/inode.c if (old_valid_dev(inode->i_rdev)) { inode 1398 fs/ext2/inode.c cpu_to_le32(old_encode_dev(inode->i_rdev)); inode 1403 fs/ext2/inode.c cpu_to_le32(new_encode_dev(inode->i_rdev)); inode 1424 fs/ext2/inode.c return ext2_update_inode(inode, wait); inode 1433 fs/ext2/inode.c return sync_inode(inode, &wbc); inode 1438 fs/ext2/inode.c struct inode *inode = dentry->d_inode; inode 1441 fs/ext2/inode.c error = inode_change_ok(inode, iattr); inode 1444 fs/ext2/inode.c if ((iattr->ia_valid & ATTR_UID && iattr->ia_uid != inode->i_uid) || inode 1445 fs/ext2/inode.c (iattr->ia_valid & ATTR_GID && iattr->ia_gid != inode->i_gid)) { inode 1446 fs/ext2/inode.c error = DQUOT_TRANSFER(inode, iattr) ? -EDQUOT : 0; inode 1450 fs/ext2/inode.c error = inode_setattr(inode, iattr); inode 1452 fs/ext2/inode.c error = ext2_acl_chmod(inode); inode 23 fs/ext2/ioctl.c struct inode *inode = filp->f_dentry->d_inode; inode 24 fs/ext2/ioctl.c struct ext2_inode_info *ei = EXT2_I(inode); inode 43 fs/ext2/ioctl.c if (!is_owner_or_cap(inode)) { inode 53 fs/ext2/ioctl.c if (!S_ISDIR(inode->i_mode)) inode 56 fs/ext2/ioctl.c mutex_lock(&inode->i_mutex); inode 58 fs/ext2/ioctl.c if (IS_NOQUOTA(inode)) { inode 59 fs/ext2/ioctl.c mutex_unlock(&inode->i_mutex); inode 73 fs/ext2/ioctl.c mutex_unlock(&inode->i_mutex); inode 82 fs/ext2/ioctl.c mutex_unlock(&inode->i_mutex); inode 84 fs/ext2/ioctl.c ext2_set_inode_flags(inode); inode 85 fs/ext2/ioctl.c inode->i_ctime = CURRENT_TIME_SEC; inode 86 fs/ext2/ioctl.c mark_inode_dirty(inode); inode 92 fs/ext2/ioctl.c return put_user(inode->i_generation, (int __user *) arg); inode 94 fs/ext2/ioctl.c if (!is_owner_or_cap(inode)) inode 99 fs/ext2/ioctl.c if (get_user(inode->i_generation, (int __user *) arg)) { inode 102 fs/ext2/ioctl.c inode->i_ctime = CURRENT_TIME_SEC; inode 103 fs/ext2/ioctl.c mark_inode_dirty(inode); inode 108 fs/ext2/ioctl.c if (test_opt(inode->i_sb, RESERVATION) inode 109 fs/ext2/ioctl.c && S_ISREG(inode->i_mode) inode 117 fs/ext2/ioctl.c if (!test_opt(inode->i_sb, RESERVATION) ||!S_ISREG(inode->i_mode)) inode 120 fs/ext2/ioctl.c if (!is_owner_or_cap(inode)) inode 143 fs/ext2/ioctl.c ext2_init_block_alloc_info(inode); inode 41 fs/ext2/namei.c int err = ext2_add_link(dentry, inode); inode 43 fs/ext2/namei.c d_instantiate(dentry, inode); inode 46 fs/ext2/namei.c inode_dec_link_count(inode); inode 47 fs/ext2/namei.c iput(inode); inode 57 fs/ext2/namei.c struct inode * inode; inode 64 fs/ext2/namei.c inode = NULL; inode 66 fs/ext2/namei.c inode = ext2_iget(dir->i_sb, ino); inode 67 fs/ext2/namei.c if (IS_ERR(inode)) inode 68 fs/ext2/namei.c return ERR_CAST(inode); inode 70 fs/ext2/namei.c return d_splice_alias(inode, dentry); inode 77 fs/ext2/namei.c struct inode *inode; inode 86 fs/ext2/namei.c inode = ext2_iget(child->d_inode->i_sb, ino); inode 88 fs/ext2/namei.c if (IS_ERR(inode)) inode 89 fs/ext2/namei.c return ERR_CAST(inode); inode 90 fs/ext2/namei.c parent = d_alloc_anon(inode); inode 92 fs/ext2/namei.c iput(inode); inode 108 fs/ext2/namei.c struct inode * inode = ext2_new_inode (dir, mode); inode 109 fs/ext2/namei.c int err = PTR_ERR(inode); inode 110 fs/ext2/namei.c if (!IS_ERR(inode)) { inode 111 fs/ext2/namei.c inode->i_op = &ext2_file_inode_operations; inode 112 fs/ext2/namei.c if (ext2_use_xip(inode->i_sb)) { inode 113 fs/ext2/namei.c inode->i_mapping->a_ops = &ext2_aops_xip; inode 114 fs/ext2/namei.c inode->i_fop = &ext2_xip_file_operations; inode 115 fs/ext2/namei.c } else if (test_opt(inode->i_sb, NOBH)) { inode 116 fs/ext2/namei.c inode->i_mapping->a_ops = &ext2_nobh_aops; inode 117 fs/ext2/namei.c inode->i_fop = &ext2_file_operations; inode 119 fs/ext2/namei.c inode->i_mapping->a_ops = &ext2_aops; inode 120 fs/ext2/namei.c inode->i_fop = &ext2_file_operations; inode 122 fs/ext2/namei.c mark_inode_dirty(inode); inode 123 fs/ext2/namei.c err = ext2_add_nondir(dentry, inode); inode 130 fs/ext2/namei.c struct inode * inode; inode 136 fs/ext2/namei.c inode = ext2_new_inode (dir, mode); inode 137 fs/ext2/namei.c err = PTR_ERR(inode); inode 138 fs/ext2/namei.c if (!IS_ERR(inode)) { inode 139 fs/ext2/namei.c init_special_inode(inode, inode->i_mode, rdev); inode 141 fs/ext2/namei.c inode->i_op = &ext2_special_inode_operations; inode 143 fs/ext2/namei.c mark_inode_dirty(inode); inode 144 fs/ext2/namei.c err = ext2_add_nondir(dentry, inode); inode 155 fs/ext2/namei.c struct inode * inode; inode 160 fs/ext2/namei.c inode = ext2_new_inode (dir, S_IFLNK | S_IRWXUGO); inode 161 fs/ext2/namei.c err = PTR_ERR(inode); inode 162 fs/ext2/namei.c if (IS_ERR(inode)) inode 165 fs/ext2/namei.c if (l > sizeof (EXT2_I(inode)->i_data)) { inode 167 fs/ext2/namei.c inode->i_op = &ext2_symlink_inode_operations; inode 168 fs/ext2/namei.c if (test_opt(inode->i_sb, NOBH)) inode 169 fs/ext2/namei.c inode->i_mapping->a_ops = &ext2_nobh_aops; inode 171 fs/ext2/namei.c inode->i_mapping->a_ops = &ext2_aops; inode 172 fs/ext2/namei.c err = page_symlink(inode, symname, l); inode 177 fs/ext2/namei.c inode->i_op = &ext2_fast_symlink_inode_operations; inode 178 fs/ext2/namei.c memcpy((char*)(EXT2_I(inode)->i_data),symname,l); inode 179 fs/ext2/namei.c inode->i_size = l-1; inode 181 fs/ext2/namei.c mark_inode_dirty(inode); inode 183 fs/ext2/namei.c err = ext2_add_nondir(dentry, inode); inode 188 fs/ext2/namei.c inode_dec_link_count(inode); inode 189 fs/ext2/namei.c iput (inode); inode 196 fs/ext2/namei.c struct inode *inode = old_dentry->d_inode; inode 198 fs/ext2/namei.c if (inode->i_nlink >= EXT2_LINK_MAX) inode 201 fs/ext2/namei.c inode->i_ctime = CURRENT_TIME_SEC; inode 202 fs/ext2/namei.c inode_inc_link_count(inode); inode 203 fs/ext2/namei.c atomic_inc(&inode->i_count); inode 205 fs/ext2/namei.c return ext2_add_nondir(dentry, inode); inode 210 fs/ext2/namei.c struct inode * inode; inode 218 fs/ext2/namei.c inode = ext2_new_inode (dir, S_IFDIR | mode); inode 219 fs/ext2/namei.c err = PTR_ERR(inode); inode 220 fs/ext2/namei.c if (IS_ERR(inode)) inode 223 fs/ext2/namei.c inode->i_op = &ext2_dir_inode_operations; inode 224 fs/ext2/namei.c inode->i_fop = &ext2_dir_operations; inode 225 fs/ext2/namei.c if (test_opt(inode->i_sb, NOBH)) inode 226 fs/ext2/namei.c inode->i_mapping->a_ops = &ext2_nobh_aops; inode 228 fs/ext2/namei.c inode->i_mapping->a_ops = &ext2_aops; inode 230 fs/ext2/namei.c inode_inc_link_count(inode); inode 232 fs/ext2/namei.c err = ext2_make_empty(inode, dir); inode 236 fs/ext2/namei.c err = ext2_add_link(dentry, inode); inode 240 fs/ext2/namei.c d_instantiate(dentry, inode); inode 245 fs/ext2/namei.c inode_dec_link_count(inode); inode 246 fs/ext2/namei.c inode_dec_link_count(inode); inode 247 fs/ext2/namei.c iput(inode); inode 255 fs/ext2/namei.c struct inode * inode = dentry->d_inode; inode 268 fs/ext2/namei.c inode->i_ctime = dir->i_ctime; inode 269 fs/ext2/namei.c inode_dec_link_count(inode); inode 277 fs/ext2/namei.c struct inode * inode = dentry->d_inode; inode 280 fs/ext2/namei.c if (ext2_empty_dir(inode)) { inode 283 fs/ext2/namei.c inode->i_size = 0; inode 284 fs/ext2/namei.c inode_dec_link_count(inode); inode 294 fs/ext2/namei.c struct inode * old_inode = old_dentry->d_inode; inode 295 fs/ext2/namei.c struct inode * new_inode = new_dentry->d_inode; inode 142 fs/ext2/super.c static struct inode *ext2_alloc_inode(struct super_block *sb) inode 159 fs/ext2/super.c kmem_cache_free(ext2_inode_cachep, EXT2_I(inode)); inode 193 fs/ext2/super.c struct ext2_block_alloc_info *rsv = EXT2_I(inode)->i_block_alloc_info; inode 195 fs/ext2/super.c struct ext2_inode_info *ei = EXT2_I(inode); inode 206 fs/ext2/super.c ext2_discard_reservation(inode); inode 207 fs/ext2/super.c EXT2_I(inode)->i_block_alloc_info = NULL; inode 316 fs/ext2/super.c static struct inode *ext2_nfs_get_inode(struct super_block *sb, inode 319 fs/ext2/super.c struct inode *inode; inode 331 fs/ext2/super.c inode = ext2_iget(sb, ino); inode 332 fs/ext2/super.c if (IS_ERR(inode)) inode 333 fs/ext2/super.c return ERR_CAST(inode); inode 334 fs/ext2/super.c if (generation && inode->i_generation != generation) { inode 336 fs/ext2/super.c iput(inode); inode 339 fs/ext2/super.c return inode; inode 743 fs/ext2/super.c struct inode *root; inode 1303 fs/ext2/super.c struct inode *inode = sb_dqopt(sb)->files[type]; inode 1311 fs/ext2/super.c loff_t i_size = i_size_read(inode); inode 1323 fs/ext2/super.c err = ext2_get_block(inode, blk, &tmp_bh, 0); inode 1347 fs/ext2/super.c struct inode *inode = sb_dqopt(sb)->files[type]; inode 1356 fs/ext2/super.c mutex_lock_nested(&inode->i_mutex, I_MUTEX_QUOTA); inode 1362 fs/ext2/super.c err = ext2_get_block(inode, blk, &tmp_bh, 1); inode 1388 fs/ext2/super.c if (inode->i_size < off+len-towrite) inode 1389 fs/ext2/super.c i_size_write(inode, off+len-towrite); inode 1390 fs/ext2/super.c inode->i_version++; inode 1391 fs/ext2/super.c inode->i_mtime = inode->i_ctime = CURRENT_TIME; inode 1392 fs/ext2/super.c mark_inode_dirty(inode); inode 1393 fs/ext2/super.c mutex_unlock(&inode->i_mutex); inode 75 fs/ext2/xattr.c inode->i_sb->s_id, inode->i_ino); \ inode 158 fs/ext2/xattr.c ea_idebug(inode, "name=%d.%s, buffer=%p, buffer_size=%ld", inode 163 fs/ext2/xattr.c down_read(&EXT2_I(inode)->xattr_sem); inode 165 fs/ext2/xattr.c if (!EXT2_I(inode)->i_file_acl) inode 167 fs/ext2/xattr.c ea_idebug(inode, "reading block %d", EXT2_I(inode)->i_file_acl); inode 168 fs/ext2/xattr.c bh = sb_bread(inode->i_sb, EXT2_I(inode)->i_file_acl); inode 177 fs/ext2/xattr.c bad_block: ext2_error(inode->i_sb, "ext2_xattr_get", inode 178 fs/ext2/xattr.c "inode %ld: bad block %d", inode->i_ino, inode 179 fs/ext2/xattr.c EXT2_I(inode)->i_file_acl); inode 210 fs/ext2/xattr.c ea_idebug(inode, "cache insert failed"); inode 218 fs/ext2/xattr.c if (size > inode->i_sb->s_blocksize || inode 219 fs/ext2/xattr.c le16_to_cpu(entry->e_value_offs) + size > inode->i_sb->s_blocksize) inode 223 fs/ext2/xattr.c ea_idebug(inode, "cache insert failed"); inode 236 fs/ext2/xattr.c up_read(&EXT2_I(inode)->xattr_sem); inode 260 fs/ext2/xattr.c ea_idebug(inode, "buffer=%p, buffer_size=%ld", inode 263 fs/ext2/xattr.c down_read(&EXT2_I(inode)->xattr_sem); inode 265 fs/ext2/xattr.c if (!EXT2_I(inode)->i_file_acl) inode 267 fs/ext2/xattr.c ea_idebug(inode, "reading block %d", EXT2_I(inode)->i_file_acl); inode 268 fs/ext2/xattr.c bh = sb_bread(inode->i_sb, EXT2_I(inode)->i_file_acl); inode 277 fs/ext2/xattr.c bad_block: ext2_error(inode->i_sb, "ext2_xattr_list", inode 278 fs/ext2/xattr.c "inode %ld: bad block %d", inode->i_ino, inode 279 fs/ext2/xattr.c EXT2_I(inode)->i_file_acl); inode 294 fs/ext2/xattr.c ea_idebug(inode, "cache insert failed"); inode 303 fs/ext2/xattr.c size_t size = handler->list(inode, buffer, rest, inode 320 fs/ext2/xattr.c up_read(&EXT2_I(inode)->xattr_sem); inode 366 fs/ext2/xattr.c struct super_block *sb = inode->i_sb; inode 386 fs/ext2/xattr.c ea_idebug(inode, "name=%d.%s, value=%p, value_len=%ld", inode 396 fs/ext2/xattr.c down_write(&EXT2_I(inode)->xattr_sem); inode 397 fs/ext2/xattr.c if (EXT2_I(inode)->i_file_acl) { inode 399 fs/ext2/xattr.c bh = sb_bread(sb, EXT2_I(inode)->i_file_acl); inode 411 fs/ext2/xattr.c "inode %ld: bad block %d", inode->i_ino, inode 412 fs/ext2/xattr.c EXT2_I(inode)->i_file_acl); inode 605 fs/ext2/xattr.c error = ext2_xattr_set2(inode, bh, NULL); inode 610 fs/ext2/xattr.c error = ext2_xattr_set2(inode, bh, header); inode 617 fs/ext2/xattr.c up_write(&EXT2_I(inode)->xattr_sem); inode 629 fs/ext2/xattr.c struct super_block *sb = inode->i_sb; inode 634 fs/ext2/xattr.c new_bh = ext2_xattr_cache_find(inode, header); inode 645 fs/ext2/xattr.c if (DQUOT_ALLOC_BLOCK(inode, 1)) { inode 663 fs/ext2/xattr.c EXT2_I(inode)->i_block_group); inode 664 fs/ext2/xattr.c int block = ext2_new_block(inode, goal, &error); inode 667 fs/ext2/xattr.c ea_idebug(inode, "creating block %d", block); inode 671 fs/ext2/xattr.c ext2_free_blocks(inode, block, 1); inode 684 fs/ext2/xattr.c if (IS_SYNC(inode)) { inode 693 fs/ext2/xattr.c EXT2_I(inode)->i_file_acl = new_bh ? new_bh->b_blocknr : 0; inode 694 fs/ext2/xattr.c inode->i_ctime = CURRENT_TIME_SEC; inode 695 fs/ext2/xattr.c if (IS_SYNC(inode)) { inode 696 fs/ext2/xattr.c error = ext2_sync_inode (inode); inode 702 fs/ext2/xattr.c DQUOT_FREE_BLOCK(inode, 1); inode 706 fs/ext2/xattr.c mark_inode_dirty(inode); inode 724 fs/ext2/xattr.c ext2_free_blocks(inode, old_bh->b_blocknr, 1); inode 734 fs/ext2/xattr.c DQUOT_FREE_BLOCK(inode, 1); inode 760 fs/ext2/xattr.c down_write(&EXT2_I(inode)->xattr_sem); inode 761 fs/ext2/xattr.c if (!EXT2_I(inode)->i_file_acl) inode 763 fs/ext2/xattr.c bh = sb_bread(inode->i_sb, EXT2_I(inode)->i_file_acl); inode 765 fs/ext2/xattr.c ext2_error(inode->i_sb, "ext2_xattr_delete_inode", inode 766 fs/ext2/xattr.c "inode %ld: block %d read error", inode->i_ino, inode 767 fs/ext2/xattr.c EXT2_I(inode)->i_file_acl); inode 773 fs/ext2/xattr.c ext2_error(inode->i_sb, "ext2_xattr_delete_inode", inode 774 fs/ext2/xattr.c "inode %ld: bad block %d", inode->i_ino, inode 775 fs/ext2/xattr.c EXT2_I(inode)->i_file_acl); inode 783 fs/ext2/xattr.c ext2_free_blocks(inode, EXT2_I(inode)->i_file_acl, 1); inode 795 fs/ext2/xattr.c if (IS_SYNC(inode)) inode 797 fs/ext2/xattr.c DQUOT_FREE_BLOCK(inode, 1); inode 799 fs/ext2/xattr.c EXT2_I(inode)->i_file_acl = 0; inode 803 fs/ext2/xattr.c up_write(&EXT2_I(inode)->xattr_sem); inode 908 fs/ext2/xattr.c ea_idebug(inode, "looking for cached blocks [%x]", (int)hash); inode 911 fs/ext2/xattr.c inode->i_sb->s_bdev, hash); inode 921 fs/ext2/xattr.c bh = sb_bread(inode->i_sb, ce->e_block); inode 923 fs/ext2/xattr.c ext2_error(inode->i_sb, "ext2_xattr_cache_find", inode 925 fs/ext2/xattr.c inode->i_ino, (unsigned long) ce->e_block); inode 930 fs/ext2/xattr.c ea_idebug(inode, "block %ld refcount %d>%d", inode 943 fs/ext2/xattr.c ce = mb_cache_entry_find_next(ce, 0, inode->i_sb->s_bdev, hash); inode 34 fs/ext2/xattr_security.c return ext2_xattr_get(inode, EXT2_XATTR_INDEX_SECURITY, name, inode 44 fs/ext2/xattr_security.c return ext2_xattr_set(inode, EXT2_XATTR_INDEX_SECURITY, name, inode 56 fs/ext2/xattr_security.c err = security_inode_init_security(inode, dir, &name, &value, &len); inode 62 fs/ext2/xattr_security.c err = ext2_xattr_set(inode, EXT2_XATTR_INDEX_SECURITY, inode 39 fs/ext2/xattr_trusted.c return ext2_xattr_get(inode, EXT2_XATTR_INDEX_TRUSTED, name, inode 49 fs/ext2/xattr_trusted.c return ext2_xattr_set(inode, EXT2_XATTR_INDEX_TRUSTED, name, inode 21 fs/ext2/xattr_user.c if (!test_opt(inode->i_sb, XATTR_USER)) inode 38 fs/ext2/xattr_user.c if (!test_opt(inode->i_sb, XATTR_USER)) inode 40 fs/ext2/xattr_user.c return ext2_xattr_get(inode, EXT2_XATTR_INDEX_USER, name, buffer, size); inode 49 fs/ext2/xattr_user.c if (!test_opt(inode->i_sb, XATTR_USER)) inode 52 fs/ext2/xattr_user.c return ext2_xattr_set(inode, EXT2_XATTR_INDEX_USER, name, inode 21 fs/ext2/xip.c struct block_device *bdev = inode->i_sb->s_bdev; inode 39 fs/ext2/xip.c rc = ext2_get_block(inode, pgoff, &tmp, create); inode 58 fs/ext2/xip.c rc = __inode_direct_access(inode, block, &kaddr, &pfn); inode 134 fs/ext3/acl.c spin_lock(&inode->i_lock); inode 137 fs/ext3/acl.c spin_unlock(&inode->i_lock); inode 146 fs/ext3/acl.c spin_lock(&inode->i_lock); inode 150 fs/ext3/acl.c spin_unlock(&inode->i_lock); inode 161 fs/ext3/acl.c struct ext3_inode_info *ei = EXT3_I(inode); inode 167 fs/ext3/acl.c if (!test_opt(inode->i_sb, POSIX_ACL)) inode 172 fs/ext3/acl.c acl = ext3_iget_acl(inode, &ei->i_acl); inode 179 fs/ext3/acl.c acl = ext3_iget_acl(inode, &ei->i_default_acl); inode 188 fs/ext3/acl.c retval = ext3_xattr_get(inode, name_index, "", NULL, 0); inode 193 fs/ext3/acl.c retval = ext3_xattr_get(inode, name_index, "", value, retval); inode 206 fs/ext3/acl.c ext3_iset_acl(inode, &ei->i_acl, acl); inode 210 fs/ext3/acl.c ext3_iset_acl(inode, &ei->i_default_acl, acl); inode 226 fs/ext3/acl.c struct ext3_inode_info *ei = EXT3_I(inode); inode 232 fs/ext3/acl.c if (S_ISLNK(inode->i_mode)) inode 239 fs/ext3/acl.c mode_t mode = inode->i_mode; inode 244 fs/ext3/acl.c inode->i_mode = mode; inode 245 fs/ext3/acl.c ext3_mark_inode_dirty(handle, inode); inode 254 fs/ext3/acl.c if (!S_ISDIR(inode->i_mode)) inode 267 fs/ext3/acl.c error = ext3_xattr_set_handle(handle, inode, name_index, "", inode 274 fs/ext3/acl.c ext3_iset_acl(inode, &ei->i_acl, acl); inode 278 fs/ext3/acl.c ext3_iset_acl(inode, &ei->i_default_acl, acl); inode 288 fs/ext3/acl.c struct posix_acl *acl = ext3_get_acl(inode, ACL_TYPE_ACCESS); inode 293 fs/ext3/acl.c int error = posix_acl_permission(inode, acl, mask); inode 304 fs/ext3/acl.c return generic_permission(inode, mask, ext3_check_acl); inode 319 fs/ext3/acl.c if (!S_ISLNK(inode->i_mode)) { inode 326 fs/ext3/acl.c inode->i_mode &= ~current->fs->umask; inode 328 fs/ext3/acl.c if (test_opt(inode->i_sb, POSIX_ACL) && acl) { inode 332 fs/ext3/acl.c if (S_ISDIR(inode->i_mode)) { inode 333 fs/ext3/acl.c error = ext3_set_acl(handle, inode, inode 343 fs/ext3/acl.c mode = inode->i_mode; inode 346 fs/ext3/acl.c inode->i_mode = mode; inode 349 fs/ext3/acl.c error = ext3_set_acl(handle, inode, inode 380 fs/ext3/acl.c if (S_ISLNK(inode->i_mode)) inode 382 fs/ext3/acl.c if (!test_opt(inode->i_sb, POSIX_ACL)) inode 384 fs/ext3/acl.c acl = ext3_get_acl(inode, ACL_TYPE_ACCESS); inode 391 fs/ext3/acl.c error = posix_acl_chmod_masq(clone, inode->i_mode); inode 397 fs/ext3/acl.c handle = ext3_journal_start(inode, inode 398 fs/ext3/acl.c EXT3_DATA_TRANS_BLOCKS(inode->i_sb)); inode 401 fs/ext3/acl.c ext3_std_error(inode->i_sb, error); inode 404 fs/ext3/acl.c error = ext3_set_acl(handle, inode, ACL_TYPE_ACCESS, clone); inode 407 fs/ext3/acl.c ext3_should_retry_alloc(inode->i_sb, &retries)) inode 424 fs/ext3/acl.c if (!test_opt(inode->i_sb, POSIX_ACL)) inode 437 fs/ext3/acl.c if (!test_opt(inode->i_sb, POSIX_ACL)) inode 450 fs/ext3/acl.c if (!test_opt(inode->i_sb, POSIX_ACL)) inode 453 fs/ext3/acl.c acl = ext3_get_acl(inode, type); inode 470 fs/ext3/acl.c return ext3_xattr_get_acl(inode, ACL_TYPE_ACCESS, buffer, size); inode 479 fs/ext3/acl.c return ext3_xattr_get_acl(inode, ACL_TYPE_DEFAULT, buffer, size); inode 490 fs/ext3/acl.c if (!test_opt(inode->i_sb, POSIX_ACL)) inode 492 fs/ext3/acl.c if (!is_owner_or_cap(inode)) inode 508 fs/ext3/acl.c handle = ext3_journal_start(inode, EXT3_DATA_TRANS_BLOCKS(inode->i_sb)); inode 511 fs/ext3/acl.c error = ext3_set_acl(handle, inode, type, acl); inode 513 fs/ext3/acl.c if (error == -ENOSPC && ext3_should_retry_alloc(inode->i_sb, &retries)) inode 527 fs/ext3/acl.c return ext3_xattr_set_acl(inode, ACL_TYPE_ACCESS, value, size); inode 536 fs/ext3/acl.c return ext3_xattr_set_acl(inode, ACL_TYPE_DEFAULT, value, size); inode 409 fs/ext3/balloc.c struct ext3_inode_info *ei = EXT3_I(inode); inode 411 fs/ext3/balloc.c struct super_block *sb = inode->i_sb; inode 451 fs/ext3/balloc.c struct ext3_inode_info *ei = EXT3_I(inode); inode 454 fs/ext3/balloc.c spinlock_t *rsv_lock = &EXT3_SB(inode->i_sb)->s_rsv_window_lock; inode 463 fs/ext3/balloc.c rsv_window_remove(inode->i_sb, rsv); inode 672 fs/ext3/balloc.c sb = inode->i_sb; inode 679 fs/ext3/balloc.c DQUOT_FREE_BLOCK(inode, dquot_freed_blocks); inode 1496 fs/ext3/balloc.c sb = inode->i_sb; inode 1505 fs/ext3/balloc.c if (DQUOT_ALLOC_BLOCK(inode, num)) { inode 1521 fs/ext3/balloc.c block_i = EXT3_I(inode)->i_block_alloc_info; inode 1716 fs/ext3/balloc.c DQUOT_FREE_BLOCK(inode, *count-num); inode 1731 fs/ext3/balloc.c DQUOT_FREE_BLOCK(inode, *count); inode 1741 fs/ext3/balloc.c return ext3_new_blocks(handle, inode, goal, &count, errp); inode 80 fs/ext3/dir.c else if (le32_to_cpu(de->inode) > inode 89 fs/ext3/dir.c (unsigned long) le32_to_cpu(de->inode), inode 103 fs/ext3/dir.c struct inode *inode = filp->f_path.dentry->d_inode; inode 106 fs/ext3/dir.c sb = inode->i_sb; inode 108 fs/ext3/dir.c if (EXT3_HAS_COMPAT_FEATURE(inode->i_sb, inode 110 fs/ext3/dir.c ((EXT3_I(inode)->i_flags & EXT3_INDEX_FL) || inode 111 fs/ext3/dir.c ((inode->i_size >> sb->s_blocksize_bits) == 1))) { inode 126 fs/ext3/dir.c while (!error && !stored && filp->f_pos < inode->i_size) { inode 132 fs/ext3/dir.c err = ext3_get_blocks_handle(NULL, inode, blk, 1, inode 136 fs/ext3/dir.c (PAGE_CACHE_SHIFT - inode->i_blkbits); inode 143 fs/ext3/dir.c bh = ext3_bread(NULL, inode, blk, 0, &err); inode 153 fs/ext3/dir.c inode->i_ino, (unsigned long)filp->f_pos); inode 155 fs/ext3/dir.c if (filp->f_pos > inode->i_blocks << 9) inode 166 fs/ext3/dir.c if (filp->f_version != inode->i_version) { inode 184 fs/ext3/dir.c filp->f_version = inode->i_version; inode 187 fs/ext3/dir.c while (!error && filp->f_pos < inode->i_size inode 190 fs/ext3/dir.c if (!ext3_check_dir_entry ("ext3_readdir", inode, de, inode 201 fs/ext3/dir.c if (le32_to_cpu(de->inode)) { inode 214 fs/ext3/dir.c le32_to_cpu(de->inode), inode 257 fs/ext3/dir.c __u32 inode; inode 347 fs/ext3/dir.c new_fn->inode = le32_to_cpu(dirent->inode); inode 395 fs/ext3/dir.c struct inode *inode = filp->f_path.dentry->d_inode; inode 399 fs/ext3/dir.c sb = inode->i_sb; inode 409 fs/ext3/dir.c fname->inode, inode 425 fs/ext3/dir.c struct inode *inode = filp->f_path.dentry->d_inode; inode 466 fs/ext3/dir.c (filp->f_version != inode->i_version)) { inode 469 fs/ext3/dir.c filp->f_version = inode->i_version; inode 38 fs/ext3/file.c (atomic_read(&inode->i_writecount) == 1)) inode 40 fs/ext3/file.c mutex_lock(&EXT3_I(inode)->truncate_mutex); inode 41 fs/ext3/file.c ext3_discard_reservation(inode); inode 42 fs/ext3/file.c mutex_unlock(&EXT3_I(inode)->truncate_mutex); inode 44 fs/ext3/file.c if (is_dx(inode) && filp->private_data) inode 55 fs/ext3/file.c struct inode *inode = file->f_path.dentry->d_inode; inode 82 fs/ext3/file.c if (!ext3_should_journal_data(inode)) inode 92 fs/ext3/file.c if (!IS_SYNC(inode)) inode 103 fs/ext3/file.c err = ext3_force_commit(inode->i_sb); inode 47 fs/ext3/fsync.c struct inode *inode = dentry->d_inode; inode 70 fs/ext3/fsync.c if (ext3_should_journal_data(inode)) { inode 71 fs/ext3/fsync.c ret = ext3_force_commit(inode->i_sb); inode 75 fs/ext3/fsync.c if (datasync && !(inode->i_state & I_DIRTY_DATASYNC)) inode 82 fs/ext3/fsync.c if (inode->i_state & (I_DIRTY_SYNC|I_DIRTY_DATASYNC)) { inode 87 fs/ext3/fsync.c ret = sync_inode(inode, &wbc); inode 91 fs/ext3/ialloc.c struct super_block * sb = inode->i_sb; inode 103 fs/ext3/ialloc.c if (atomic_read(&inode->i_count) > 1) { inode 105 fs/ext3/ialloc.c atomic_read(&inode->i_count)); inode 108 fs/ext3/ialloc.c if (inode->i_nlink) { inode 110 fs/ext3/ialloc.c inode->i_nlink); inode 119 fs/ext3/ialloc.c ino = inode->i_ino; inode 126 fs/ext3/ialloc.c DQUOT_INIT(inode); inode 127 fs/ext3/ialloc.c ext3_xattr_delete_inode(handle, inode); inode 128 fs/ext3/ialloc.c DQUOT_FREE_INODE(inode); inode 129 fs/ext3/ialloc.c DQUOT_DROP(inode); inode 131 fs/ext3/ialloc.c is_directory = S_ISDIR(inode->i_mode); inode 134 fs/ext3/ialloc.c clear_inode (inode); inode 419 fs/ext3/ialloc.c struct inode *ext3_new_inode(handle_t *handle, struct inode * dir, int mode) inode 426 fs/ext3/ialloc.c struct inode * inode; inode 432 fs/ext3/ialloc.c struct inode *ret; inode 440 fs/ext3/ialloc.c inode = new_inode(sb); inode 441 fs/ext3/ialloc.c if (!inode) inode 443 fs/ext3/ialloc.c ei = EXT3_I(inode); inode 542 fs/ext3/ialloc.c inode->i_uid = current->fsuid; inode 544 fs/ext3/ialloc.c inode->i_gid = dir->i_gid; inode 546 fs/ext3/ialloc.c inode->i_gid = dir->i_gid; inode 550 fs/ext3/ialloc.c inode->i_gid = current->fsgid; inode 551 fs/ext3/ialloc.c inode->i_mode = mode; inode 553 fs/ext3/ialloc.c inode->i_ino = ino; inode 555 fs/ext3/ialloc.c inode->i_blocks = 0; inode 556 fs/ext3/ialloc.c inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; inode 579 fs/ext3/ialloc.c ext3_set_inode_flags(inode); inode 580 fs/ext3/ialloc.c if (IS_DIRSYNC(inode)) inode 582 fs/ext3/ialloc.c insert_inode_hash(inode); inode 584 fs/ext3/ialloc.c inode->i_generation = sbi->s_next_generation++; inode 589 fs/ext3/ialloc.c (EXT3_INODE_SIZE(inode->i_sb) > EXT3_GOOD_OLD_INODE_SIZE) ? inode 592 fs/ext3/ialloc.c ret = inode; inode 593 fs/ext3/ialloc.c if(DQUOT_ALLOC_INODE(inode)) { inode 598 fs/ext3/ialloc.c err = ext3_init_acl(handle, inode, dir); inode 602 fs/ext3/ialloc.c err = ext3_init_security(handle,inode, dir); inode 606 fs/ext3/ialloc.c err = ext3_mark_inode_dirty(handle, inode); inode 612 fs/ext3/ialloc.c ext3_debug("allocating inode %lu\n", inode->i_ino); inode 617 fs/ext3/ialloc.c iput(inode); inode 624 fs/ext3/ialloc.c DQUOT_FREE_INODE(inode); inode 627 fs/ext3/ialloc.c DQUOT_DROP(inode); inode 628 fs/ext3/ialloc.c inode->i_flags |= S_NOQUOTA; inode 629 fs/ext3/ialloc.c inode->i_nlink = 0; inode 630 fs/ext3/ialloc.c iput(inode); inode 636 fs/ext3/ialloc.c struct inode *ext3_orphan_get(struct super_block *sb, unsigned long ino) inode 642 fs/ext3/ialloc.c struct inode *inode = NULL; inode 668 fs/ext3/ialloc.c inode = ext3_iget(sb, ino); inode 669 fs/ext3/ialloc.c if (IS_ERR(inode)) inode 677 fs/ext3/ialloc.c if (inode->i_nlink && !ext3_can_truncate(inode)) inode 680 fs/ext3/ialloc.c if (NEXT_ORPHAN(inode) > max_ino) inode 683 fs/ext3/ialloc.c return inode; inode 686 fs/ext3/ialloc.c err = PTR_ERR(inode); inode 687 fs/ext3/ialloc.c inode = NULL; inode 694 fs/ext3/ialloc.c printk(KERN_NOTICE "inode=%p\n", inode); inode 695 fs/ext3/ialloc.c if (inode) { inode 697 fs/ext3/ialloc.c is_bad_inode(inode)); inode 699 fs/ext3/ialloc.c NEXT_ORPHAN(inode)); inode 701 fs/ext3/ialloc.c printk(KERN_NOTICE "i_nlink=%u\n", inode->i_nlink); inode 703 fs/ext3/ialloc.c if (inode->i_nlink == 0) inode 704 fs/ext3/ialloc.c inode->i_blocks = 0; inode 705 fs/ext3/ialloc.c iput(inode); inode 50 fs/ext3/inode.c int ea_blocks = EXT3_I(inode)->i_file_acl ? inode 51 fs/ext3/inode.c (inode->i_sb->s_blocksize >> 9) : 0; inode 53 fs/ext3/inode.c return (S_ISLNK(inode->i_mode) && inode->i_blocks - ea_blocks == 0); inode 76 fs/ext3/inode.c bh, is_metadata, inode->i_mode, inode 77 fs/ext3/inode.c test_opt(inode->i_sb, DATA_FLAGS)); inode 84 fs/ext3/inode.c if (test_opt(inode->i_sb, DATA_FLAGS) == EXT3_MOUNT_JOURNAL_DATA || inode 85 fs/ext3/inode.c (!is_metadata && !ext3_should_journal_data(inode))) { inode 99 fs/ext3/inode.c ext3_abort(inode->i_sb, __func__, inode 113 fs/ext3/inode.c needed = inode->i_blocks >> (inode->i_sb->s_blocksize_bits - 9); inode 129 fs/ext3/inode.c return EXT3_DATA_TRANS_BLOCKS(inode->i_sb) + needed; inode 146 fs/ext3/inode.c result = ext3_journal_start(inode, blocks_for_truncate(inode)); inode 150 fs/ext3/inode.c ext3_std_error(inode->i_sb, PTR_ERR(result)); inode 164 fs/ext3/inode.c if (!ext3_journal_extend(handle, blocks_for_truncate(inode))) inode 177 fs/ext3/inode.c return ext3_journal_restart(handle, blocks_for_truncate(inode)); inode 187 fs/ext3/inode.c truncate_inode_pages(&inode->i_data, 0); inode 189 fs/ext3/inode.c if (is_bad_inode(inode)) inode 192 fs/ext3/inode.c handle = start_transaction(inode); inode 199 fs/ext3/inode.c ext3_orphan_del(NULL, inode); inode 203 fs/ext3/inode.c if (IS_SYNC(inode)) inode 205 fs/ext3/inode.c inode->i_size = 0; inode 206 fs/ext3/inode.c if (inode->i_blocks) inode 207 fs/ext3/inode.c ext3_truncate(inode); inode 216 fs/ext3/inode.c ext3_orphan_del(handle, inode); inode 217 fs/ext3/inode.c EXT3_I(inode)->i_dtime = get_seconds(); inode 226 fs/ext3/inode.c if (ext3_mark_inode_dirty(handle, inode)) inode 228 fs/ext3/inode.c clear_inode(inode); inode 230 fs/ext3/inode.c ext3_free_inode(handle, inode); inode 234 fs/ext3/inode.c clear_inode(inode); /* We must guarantee clearing of inode... */ inode 290 fs/ext3/inode.c int ptrs = EXT3_ADDR_PER_BLOCK(inode->i_sb); inode 291 fs/ext3/inode.c int ptrs_bits = EXT3_ADDR_PER_BLOCK_BITS(inode->i_sb); inode 299 fs/ext3/inode.c ext3_warning (inode->i_sb, "ext3_block_to_path", "block < 0"); inode 319 fs/ext3/inode.c ext3_warning(inode->i_sb, "ext3_block_to_path", "block > big"); inode 358 fs/ext3/inode.c struct super_block *sb = inode->i_sb; inode 364 fs/ext3/inode.c add_chain (chain, NULL, EXT3_I(inode)->i_data + *offsets); inode 413 fs/ext3/inode.c struct ext3_inode_info *ei = EXT3_I(inode); inode 433 fs/ext3/inode.c bg_start = ext3_group_first_block_no(inode->i_sb, ei->i_block_group); inode 435 fs/ext3/inode.c (EXT3_BLOCKS_PER_GROUP(inode->i_sb) / 16); inode 454 fs/ext3/inode.c block_i = EXT3_I(inode)->i_block_alloc_info; inode 465 fs/ext3/inode.c return ext3_find_near(inode, partial); inode 539 fs/ext3/inode.c current_block = ext3_new_blocks(handle,inode,goal,&count,err); inode 563 fs/ext3/inode.c ext3_free_blocks(handle, inode, new_blocks[i], 1); inode 596 fs/ext3/inode.c int blocksize = inode->i_sb->s_blocksize; inode 604 fs/ext3/inode.c num = ext3_alloc_blocks(handle, inode, goal, indirect_blks, inode 619 fs/ext3/inode.c bh = sb_getblk(inode->i_sb, new_blocks[n-1]); inode 662 fs/ext3/inode.c ext3_free_blocks(handle, inode, new_blocks[i], 1); inode 664 fs/ext3/inode.c ext3_free_blocks(handle, inode, new_blocks[i], num); inode 691 fs/ext3/inode.c block_i = EXT3_I(inode)->i_block_alloc_info; inode 730 fs/ext3/inode.c inode->i_ctime = CURRENT_TIME_SEC; inode 731 fs/ext3/inode.c ext3_mark_inode_dirty(handle, inode); inode 761 fs/ext3/inode.c ext3_free_blocks(handle,inode,le32_to_cpu(where[i-1].key),1); inode 763 fs/ext3/inode.c ext3_free_blocks(handle, inode, le32_to_cpu(where[num].key), blks); inode 800 fs/ext3/inode.c struct ext3_inode_info *ei = EXT3_I(inode); inode 806 fs/ext3/inode.c depth = ext3_block_to_path(inode,iblock,offsets,&blocks_to_boundary); inode 811 fs/ext3/inode.c partial = ext3_get_branch(inode, depth, offsets, chain, &err); inode 868 fs/ext3/inode.c partial = ext3_get_branch(inode, depth, offsets, chain, &err); inode 883 fs/ext3/inode.c if (S_ISREG(inode->i_mode) && (!ei->i_block_alloc_info)) inode 884 fs/ext3/inode.c ext3_init_block_alloc_info(inode); inode 886 fs/ext3/inode.c goal = ext3_find_goal(inode, iblock, partial); inode 900 fs/ext3/inode.c err = ext3_alloc_branch(handle, inode, indirect_blks, &count, goal, inode 911 fs/ext3/inode.c err = ext3_splice_branch(handle, inode, iblock, inode 918 fs/ext3/inode.c if (!err && extend_disksize && inode->i_size > ei->i_disksize) inode 919 fs/ext3/inode.c ei->i_disksize = inode->i_size; inode 926 fs/ext3/inode.c map_bh(bh_result, inode->i_sb, le32_to_cpu(chain[depth-1].key)); inode 959 fs/ext3/inode.c unsigned max_blocks = bh_result->b_size >> inode->i_blkbits; inode 964 fs/ext3/inode.c handle = ext3_journal_start(inode, DIO_CREDITS + inode 965 fs/ext3/inode.c 2 * EXT3_QUOTA_TRANS_BLOCKS(inode->i_sb)); inode 973 fs/ext3/inode.c ret = ext3_get_blocks_handle(handle, inode, iblock, inode 976 fs/ext3/inode.c bh_result->b_size = (ret << inode->i_blkbits); inode 988 fs/ext3/inode.c return generic_block_fiemap(inode, fieinfo, start, len, inode 1006 fs/ext3/inode.c err = ext3_get_blocks_handle(handle, inode, block, 1, inode 1020 fs/ext3/inode.c bh = sb_getblk(inode->i_sb, dummy.b_blocknr); inode 1040 fs/ext3/inode.c memset(bh->b_data,0,inode->i_sb->s_blocksize); inode 1067 fs/ext3/inode.c bh = ext3_getblk(handle, inode, block, create, err); inode 1150 fs/ext3/inode.c struct inode *inode = mapping->host; inode 1151 fs/ext3/inode.c int ret, needed_blocks = ext3_writepage_trans_blocks(inode); inode 1168 fs/ext3/inode.c handle = ext3_journal_start(inode, needed_blocks); inode 1180 fs/ext3/inode.c if (ext3_should_journal_data(inode)) { inode 1190 fs/ext3/inode.c if (ret == -ENOSPC && ext3_should_retry_alloc(inode->i_sb, &retries)) inode 1226 fs/ext3/inode.c struct inode *inode = file->f_mapping->host; inode 1230 fs/ext3/inode.c if (pos+copied > inode->i_size) { inode 1231 fs/ext3/inode.c i_size_write(inode, pos+copied); inode 1232 fs/ext3/inode.c mark_inode_dirty(inode); inode 1251 fs/ext3/inode.c struct inode *inode = file->f_mapping->host; inode 1270 fs/ext3/inode.c if (new_i_size > EXT3_I(inode)->i_disksize) inode 1271 fs/ext3/inode.c EXT3_I(inode)->i_disksize = new_i_size; inode 1293 fs/ext3/inode.c struct inode *inode = file->f_mapping->host; inode 1298 fs/ext3/inode.c if (new_i_size > EXT3_I(inode)->i_disksize) inode 1299 fs/ext3/inode.c EXT3_I(inode)->i_disksize = new_i_size; inode 1322 fs/ext3/inode.c struct inode *inode = mapping->host; inode 1340 fs/ext3/inode.c if (pos+copied > inode->i_size) inode 1341 fs/ext3/inode.c i_size_write(inode, pos+copied); inode 1342 fs/ext3/inode.c EXT3_I(inode)->i_state |= EXT3_STATE_JDATA; inode 1343 fs/ext3/inode.c if (inode->i_size > EXT3_I(inode)->i_disksize) { inode 1344 fs/ext3/inode.c EXT3_I(inode)->i_disksize = inode->i_size; inode 1345 fs/ext3/inode.c ret2 = ext3_mark_inode_dirty(handle, inode); inode 1375 fs/ext3/inode.c struct inode *inode = mapping->host; inode 1379 fs/ext3/inode.c if (EXT3_I(inode)->i_state & EXT3_STATE_JDATA) { inode 1398 fs/ext3/inode.c EXT3_I(inode)->i_state &= ~EXT3_STATE_JDATA; inode 1399 fs/ext3/inode.c journal = EXT3_JOURNAL(inode); inode 1485 fs/ext3/inode.c struct inode *inode = page->mapping->host; inode 1500 fs/ext3/inode.c handle = ext3_journal_start(inode, ext3_writepage_trans_blocks(inode)); inode 1508 fs/ext3/inode.c create_empty_buffers(page, inode->i_sb->s_blocksize, inode 1551 fs/ext3/inode.c struct inode *inode = page->mapping->host; inode 1559 fs/ext3/inode.c handle = ext3_journal_start(inode, ext3_writepage_trans_blocks(inode)); inode 1565 fs/ext3/inode.c if (test_opt(inode->i_sb, NOBH) && ext3_should_writeback_data(inode)) inode 1584 fs/ext3/inode.c struct inode *inode = page->mapping->host; inode 1592 fs/ext3/inode.c handle = ext3_journal_start(inode, ext3_writepage_trans_blocks(inode)); inode 1617 fs/ext3/inode.c EXT3_I(inode)->i_state |= EXT3_STATE_JDATA; inode 1689 fs/ext3/inode.c struct inode *inode = file->f_mapping->host; inode 1690 fs/ext3/inode.c struct ext3_inode_info *ei = EXT3_I(inode); inode 1699 fs/ext3/inode.c if (final_size > inode->i_size) { inode 1701 fs/ext3/inode.c handle = ext3_journal_start(inode, 2); inode 1706 fs/ext3/inode.c ret = ext3_orphan_add(handle, inode); inode 1712 fs/ext3/inode.c ei->i_disksize = inode->i_size; inode 1717 fs/ext3/inode.c ret = blockdev_direct_IO(rw, iocb, inode, inode->i_sb->s_bdev, iov, inode 1725 fs/ext3/inode.c handle = ext3_journal_start(inode, 2); inode 1733 fs/ext3/inode.c if (inode->i_nlink) inode 1734 fs/ext3/inode.c ext3_orphan_del(handle, inode); inode 1737 fs/ext3/inode.c if (end > inode->i_size) { inode 1739 fs/ext3/inode.c i_size_write(inode, end); inode 1747 fs/ext3/inode.c ext3_mark_inode_dirty(handle, inode); inode 1823 fs/ext3/inode.c if (ext3_should_order_data(inode)) inode 1824 fs/ext3/inode.c inode->i_mapping->a_ops = &ext3_ordered_aops; inode 1825 fs/ext3/inode.c else if (ext3_should_writeback_data(inode)) inode 1826 fs/ext3/inode.c inode->i_mapping->a_ops = &ext3_writeback_aops; inode 1828 fs/ext3/inode.c inode->i_mapping->a_ops = &ext3_journalled_aops; inode 1843 fs/ext3/inode.c struct inode *inode = mapping->host; inode 1847 fs/ext3/inode.c blocksize = inode->i_sb->s_blocksize; inode 1849 fs/ext3/inode.c iblock = index << (PAGE_CACHE_SHIFT - inode->i_sb->s_blocksize_bits); inode 1855 fs/ext3/inode.c if (!page_has_buffers(page) && test_opt(inode->i_sb, NOBH) && inode 1856 fs/ext3/inode.c ext3_should_writeback_data(inode) && PageUptodate(page)) { inode 1882 fs/ext3/inode.c ext3_get_block(inode, iblock, bh, 0); inode 1903 fs/ext3/inode.c if (ext3_should_journal_data(inode)) { inode 1914 fs/ext3/inode.c if (ext3_should_journal_data(inode)) { inode 1917 fs/ext3/inode.c if (ext3_should_order_data(inode)) inode 1986 fs/ext3/inode.c partial = ext3_get_branch(inode, k, offsets, chain, &err); inode 2037 fs/ext3/inode.c if (try_to_extend_transaction(handle, inode)) { inode 2042 fs/ext3/inode.c ext3_mark_inode_dirty(handle, inode); inode 2043 fs/ext3/inode.c ext3_journal_test_restart(handle, inode); inode 2064 fs/ext3/inode.c bh = sb_find_get_block(inode->i_sb, nr); inode 2065 fs/ext3/inode.c ext3_forget(handle, 0, inode, bh, nr); inode 2069 fs/ext3/inode.c ext3_free_blocks(handle, inode, block_to_free, count); inode 2125 fs/ext3/inode.c ext3_clear_blocks(handle, inode, this_bh, inode 2136 fs/ext3/inode.c ext3_clear_blocks(handle, inode, this_bh, block_to_free, inode 2151 fs/ext3/inode.c ext3_error(inode->i_sb, "ext3_free_data", inode 2154 fs/ext3/inode.c inode->i_ino, inode 2184 fs/ext3/inode.c int addr_per_block = EXT3_ADDR_PER_BLOCK(inode->i_sb); inode 2192 fs/ext3/inode.c bh = sb_bread(inode->i_sb, nr); inode 2199 fs/ext3/inode.c ext3_error(inode->i_sb, "ext3_free_branches", inode 2201 fs/ext3/inode.c inode->i_ino, nr); inode 2207 fs/ext3/inode.c ext3_free_branches(handle, inode, bh, inode 2231 fs/ext3/inode.c ext3_forget(handle, 1, inode, bh, bh->b_blocknr); inode 2251 fs/ext3/inode.c if (try_to_extend_transaction(handle, inode)) { inode 2252 fs/ext3/inode.c ext3_mark_inode_dirty(handle, inode); inode 2253 fs/ext3/inode.c ext3_journal_test_restart(handle, inode); inode 2256 fs/ext3/inode.c ext3_free_blocks(handle, inode, nr, 1); inode 2277 fs/ext3/inode.c ext3_free_data(handle, inode, parent_bh, first, last); inode 2283 fs/ext3/inode.c if (IS_APPEND(inode) || IS_IMMUTABLE(inode)) inode 2285 fs/ext3/inode.c if (S_ISREG(inode->i_mode)) inode 2287 fs/ext3/inode.c if (S_ISDIR(inode->i_mode)) inode 2289 fs/ext3/inode.c if (S_ISLNK(inode->i_mode)) inode 2290 fs/ext3/inode.c return !ext3_inode_is_fast_symlink(inode); inode 2325 fs/ext3/inode.c struct ext3_inode_info *ei = EXT3_I(inode); inode 2327 fs/ext3/inode.c int addr_per_block = EXT3_ADDR_PER_BLOCK(inode->i_sb); inode 2328 fs/ext3/inode.c struct address_space *mapping = inode->i_mapping; inode 2335 fs/ext3/inode.c unsigned blocksize = inode->i_sb->s_blocksize; inode 2338 fs/ext3/inode.c if (!ext3_can_truncate(inode)) inode 2345 fs/ext3/inode.c if ((inode->i_size & (blocksize - 1)) == 0) { inode 2350 fs/ext3/inode.c inode->i_size >> PAGE_CACHE_SHIFT); inode 2355 fs/ext3/inode.c handle = start_transaction(inode); inode 2366 fs/ext3/inode.c last_block = (inode->i_size + blocksize-1) inode 2367 fs/ext3/inode.c >> EXT3_BLOCK_SIZE_BITS(inode->i_sb); inode 2370 fs/ext3/inode.c ext3_block_truncate_page(handle, page, mapping, inode->i_size); inode 2372 fs/ext3/inode.c n = ext3_block_to_path(inode, last_block, offsets, NULL); inode 2385 fs/ext3/inode.c if (ext3_orphan_add(handle, inode)) inode 2395 fs/ext3/inode.c ei->i_disksize = inode->i_size; inode 2404 fs/ext3/inode.c ext3_free_data(handle, inode, NULL, i_data+offsets[0], inode 2409 fs/ext3/inode.c partial = ext3_find_shared(inode, n, offsets, chain, &nr); inode 2414 fs/ext3/inode.c ext3_free_branches(handle, inode, NULL, inode 2424 fs/ext3/inode.c ext3_free_branches(handle, inode, partial->bh, inode 2431 fs/ext3/inode.c ext3_free_branches(handle, inode, partial->bh, partial->p + 1, inode 2444 fs/ext3/inode.c ext3_free_branches(handle, inode, NULL, &nr, &nr+1, 1); inode 2450 fs/ext3/inode.c ext3_free_branches(handle, inode, NULL, &nr, &nr+1, 2); inode 2456 fs/ext3/inode.c ext3_free_branches(handle, inode, NULL, &nr, &nr+1, 3); inode 2463 fs/ext3/inode.c ext3_discard_reservation(inode); inode 2466 fs/ext3/inode.c inode->i_mtime = inode->i_ctime = CURRENT_TIME_SEC; inode 2467 fs/ext3/inode.c ext3_mark_inode_dirty(handle, inode); inode 2473 fs/ext3/inode.c if (IS_SYNC(inode)) inode 2483 fs/ext3/inode.c if (inode->i_nlink) inode 2484 fs/ext3/inode.c ext3_orphan_del(handle, inode); inode 2535 fs/ext3/inode.c block = ext3_get_inode_block(inode->i_sb, inode->i_ino, iloc); inode 2539 fs/ext3/inode.c bh = sb_getblk(inode->i_sb, block); inode 2541 fs/ext3/inode.c ext3_error (inode->i_sb, "ext3_get_inode_loc", inode 2544 fs/ext3/inode.c inode->i_ino, block); inode 2578 fs/ext3/inode.c block_group = (inode->i_ino - 1) / inode 2579 fs/ext3/inode.c EXT3_INODES_PER_GROUP(inode->i_sb); inode 2581 fs/ext3/inode.c EXT3_INODE_SIZE(inode->i_sb); inode 2582 fs/ext3/inode.c inode_offset = ((inode->i_ino - 1) % inode 2583 fs/ext3/inode.c EXT3_INODES_PER_GROUP(inode->i_sb)); inode 2587 fs/ext3/inode.c desc = ext3_get_group_desc(inode->i_sb, inode 2592 fs/ext3/inode.c bitmap_bh = sb_getblk(inode->i_sb, inode 2633 fs/ext3/inode.c ext3_error(inode->i_sb, "ext3_get_inode_loc", inode 2636 fs/ext3/inode.c inode->i_ino, block); inode 2649 fs/ext3/inode.c return __ext3_get_inode_loc(inode, iloc, inode 2650 fs/ext3/inode.c !(EXT3_I(inode)->i_state & EXT3_STATE_XATTR)); inode 2655 fs/ext3/inode.c unsigned int flags = EXT3_I(inode)->i_flags; inode 2657 fs/ext3/inode.c inode->i_flags &= ~(S_SYNC|S_APPEND|S_IMMUTABLE|S_NOATIME|S_DIRSYNC); inode 2659 fs/ext3/inode.c inode->i_flags |= S_SYNC; inode 2661 fs/ext3/inode.c inode->i_flags |= S_APPEND; inode 2663 fs/ext3/inode.c inode->i_flags |= S_IMMUTABLE; inode 2665 fs/ext3/inode.c inode->i_flags |= S_NOATIME; inode 2667 fs/ext3/inode.c inode->i_flags |= S_DIRSYNC; inode 2689 fs/ext3/inode.c struct inode *ext3_iget(struct super_block *sb, unsigned long ino) inode 2695 fs/ext3/inode.c struct inode *inode; inode 2699 fs/ext3/inode.c inode = iget_locked(sb, ino); inode 2700 fs/ext3/inode.c if (!inode) inode 2702 fs/ext3/inode.c if (!(inode->i_state & I_NEW)) inode 2703 fs/ext3/inode.c return inode; inode 2705 fs/ext3/inode.c ei = EXT3_I(inode); inode 2712 fs/ext3/inode.c ret = __ext3_get_inode_loc(inode, &iloc, 0); inode 2717 fs/ext3/inode.c inode->i_mode = le16_to_cpu(raw_inode->i_mode); inode 2718 fs/ext3/inode.c inode->i_uid = (uid_t)le16_to_cpu(raw_inode->i_uid_low); inode 2719 fs/ext3/inode.c inode->i_gid = (gid_t)le16_to_cpu(raw_inode->i_gid_low); inode 2720 fs/ext3/inode.c if(!(test_opt (inode->i_sb, NO_UID32))) { inode 2721 fs/ext3/inode.c inode->i_uid |= le16_to_cpu(raw_inode->i_uid_high) << 16; inode 2722 fs/ext3/inode.c inode->i_gid |= le16_to_cpu(raw_inode->i_gid_high) << 16; inode 2724 fs/ext3/inode.c inode->i_nlink = le16_to_cpu(raw_inode->i_links_count); inode 2725 fs/ext3/inode.c inode->i_size = le32_to_cpu(raw_inode->i_size); inode 2726 fs/ext3/inode.c inode->i_atime.tv_sec = (signed)le32_to_cpu(raw_inode->i_atime); inode 2727 fs/ext3/inode.c inode->i_ctime.tv_sec = (signed)le32_to_cpu(raw_inode->i_ctime); inode 2728 fs/ext3/inode.c inode->i_mtime.tv_sec = (signed)le32_to_cpu(raw_inode->i_mtime); inode 2729 fs/ext3/inode.c inode->i_atime.tv_nsec = inode->i_ctime.tv_nsec = inode->i_mtime.tv_nsec = 0; inode 2739 fs/ext3/inode.c if (inode->i_nlink == 0) { inode 2740 fs/ext3/inode.c if (inode->i_mode == 0 || inode 2741 fs/ext3/inode.c !(EXT3_SB(inode->i_sb)->s_mount_state & EXT3_ORPHAN_FS)) { inode 2752 fs/ext3/inode.c inode->i_blocks = le32_to_cpu(raw_inode->i_blocks); inode 2760 fs/ext3/inode.c if (!S_ISREG(inode->i_mode)) { inode 2763 fs/ext3/inode.c inode->i_size |= inode 2766 fs/ext3/inode.c ei->i_disksize = inode->i_size; inode 2767 fs/ext3/inode.c inode->i_generation = le32_to_cpu(raw_inode->i_generation); inode 2777 fs/ext3/inode.c if (inode->i_ino >= EXT3_FIRST_INO(inode->i_sb) + 1 && inode 2778 fs/ext3/inode.c EXT3_INODE_SIZE(inode->i_sb) > EXT3_GOOD_OLD_INODE_SIZE) { inode 2786 fs/ext3/inode.c EXT3_INODE_SIZE(inode->i_sb)) { inode 2805 fs/ext3/inode.c if (S_ISREG(inode->i_mode)) { inode 2806 fs/ext3/inode.c inode->i_op = &ext3_file_inode_operations; inode 2807 fs/ext3/inode.c inode->i_fop = &ext3_file_operations; inode 2808 fs/ext3/inode.c ext3_set_aops(inode); inode 2809 fs/ext3/inode.c } else if (S_ISDIR(inode->i_mode)) { inode 2810 fs/ext3/inode.c inode->i_op = &ext3_dir_inode_operations; inode 2811 fs/ext3/inode.c inode->i_fop = &ext3_dir_operations; inode 2812 fs/ext3/inode.c } else if (S_ISLNK(inode->i_mode)) { inode 2813 fs/ext3/inode.c if (ext3_inode_is_fast_symlink(inode)) inode 2814 fs/ext3/inode.c inode->i_op = &ext3_fast_symlink_inode_operations; inode 2816 fs/ext3/inode.c inode->i_op = &ext3_symlink_inode_operations; inode 2817 fs/ext3/inode.c ext3_set_aops(inode); inode 2820 fs/ext3/inode.c inode->i_op = &ext3_special_inode_operations; inode 2822 fs/ext3/inode.c init_special_inode(inode, inode->i_mode, inode 2825 fs/ext3/inode.c init_special_inode(inode, inode->i_mode, inode 2829 fs/ext3/inode.c ext3_set_inode_flags(inode); inode 2830 fs/ext3/inode.c unlock_new_inode(inode); inode 2831 fs/ext3/inode.c return inode; inode 2834 fs/ext3/inode.c iget_failed(inode); inode 2850 fs/ext3/inode.c struct ext3_inode_info *ei = EXT3_I(inode); inode 2857 fs/ext3/inode.c memset(raw_inode, 0, EXT3_SB(inode->i_sb)->s_inode_size); inode 2860 fs/ext3/inode.c raw_inode->i_mode = cpu_to_le16(inode->i_mode); inode 2861 fs/ext3/inode.c if(!(test_opt(inode->i_sb, NO_UID32))) { inode 2862 fs/ext3/inode.c raw_inode->i_uid_low = cpu_to_le16(low_16_bits(inode->i_uid)); inode 2863 fs/ext3/inode.c raw_inode->i_gid_low = cpu_to_le16(low_16_bits(inode->i_gid)); inode 2870 fs/ext3/inode.c cpu_to_le16(high_16_bits(inode->i_uid)); inode 2872 fs/ext3/inode.c cpu_to_le16(high_16_bits(inode->i_gid)); inode 2879 fs/ext3/inode.c cpu_to_le16(fs_high2lowuid(inode->i_uid)); inode 2881 fs/ext3/inode.c cpu_to_le16(fs_high2lowgid(inode->i_gid)); inode 2885 fs/ext3/inode.c raw_inode->i_links_count = cpu_to_le16(inode->i_nlink); inode 2887 fs/ext3/inode.c raw_inode->i_atime = cpu_to_le32(inode->i_atime.tv_sec); inode 2888 fs/ext3/inode.c raw_inode->i_ctime = cpu_to_le32(inode->i_ctime.tv_sec); inode 2889 fs/ext3/inode.c raw_inode->i_mtime = cpu_to_le32(inode->i_mtime.tv_sec); inode 2890 fs/ext3/inode.c raw_inode->i_blocks = cpu_to_le32(inode->i_blocks); inode 2899 fs/ext3/inode.c if (!S_ISREG(inode->i_mode)) { inode 2905 fs/ext3/inode.c struct super_block *sb = inode->i_sb; inode 2927 fs/ext3/inode.c raw_inode->i_generation = cpu_to_le32(inode->i_generation); inode 2928 fs/ext3/inode.c if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) { inode 2929 fs/ext3/inode.c if (old_valid_dev(inode->i_rdev)) { inode 2931 fs/ext3/inode.c cpu_to_le32(old_encode_dev(inode->i_rdev)); inode 2936 fs/ext3/inode.c cpu_to_le32(new_encode_dev(inode->i_rdev)); inode 2953 fs/ext3/inode.c ext3_std_error(inode->i_sb, err); inode 3006 fs/ext3/inode.c return ext3_force_commit(inode->i_sb); inode 3028 fs/ext3/inode.c struct inode *inode = dentry->d_inode; inode 3032 fs/ext3/inode.c error = inode_change_ok(inode, attr); inode 3036 fs/ext3/inode.c if ((ia_valid & ATTR_UID && attr->ia_uid != inode->i_uid) || inode 3037 fs/ext3/inode.c (ia_valid & ATTR_GID && attr->ia_gid != inode->i_gid)) { inode 3042 fs/ext3/inode.c handle = ext3_journal_start(inode, 2*(EXT3_QUOTA_INIT_BLOCKS(inode->i_sb)+ inode 3043 fs/ext3/inode.c EXT3_QUOTA_DEL_BLOCKS(inode->i_sb))+3); inode 3048 fs/ext3/inode.c error = DQUOT_TRANSFER(inode, attr) ? -EDQUOT : 0; inode 3056 fs/ext3/inode.c inode->i_uid = attr->ia_uid; inode 3058 fs/ext3/inode.c inode->i_gid = attr->ia_gid; inode 3059 fs/ext3/inode.c error = ext3_mark_inode_dirty(handle, inode); inode 3063 fs/ext3/inode.c if (S_ISREG(inode->i_mode) && inode 3064 fs/ext3/inode.c attr->ia_valid & ATTR_SIZE && attr->ia_size < inode->i_size) { inode 3067 fs/ext3/inode.c handle = ext3_journal_start(inode, 3); inode 3073 fs/ext3/inode.c error = ext3_orphan_add(handle, inode); inode 3074 fs/ext3/inode.c EXT3_I(inode)->i_disksize = attr->ia_size; inode 3075 fs/ext3/inode.c rc = ext3_mark_inode_dirty(handle, inode); inode 3081 fs/ext3/inode.c rc = inode_setattr(inode, attr); inode 3086 fs/ext3/inode.c if (inode->i_nlink) inode 3087 fs/ext3/inode.c ext3_orphan_del(NULL, inode); inode 3090 fs/ext3/inode.c rc = ext3_acl_chmod(inode); inode 3093 fs/ext3/inode.c ext3_std_error(inode->i_sb, error); inode 3129 fs/ext3/inode.c int bpp = ext3_journal_blocks_per_page(inode); inode 3133 fs/ext3/inode.c if (ext3_should_journal_data(inode)) inode 3141 fs/ext3/inode.c ret += 2*EXT3_QUOTA_TRANS_BLOCKS(inode->i_sb); inode 3160 fs/ext3/inode.c err = ext3_do_update_inode(handle, inode, iloc); inode 3176 fs/ext3/inode.c err = ext3_get_inode_loc(inode, iloc); inode 3186 fs/ext3/inode.c ext3_std_error(inode->i_sb, err); inode 3217 fs/ext3/inode.c err = ext3_reserve_inode_write(handle, inode, &iloc); inode 3219 fs/ext3/inode.c err = ext3_mark_iloc_dirty(handle, inode, &iloc); inode 3242 fs/ext3/inode.c handle = ext3_journal_start(inode, 2); inode 3253 fs/ext3/inode.c ext3_mark_inode_dirty(handle, inode); inode 3274 fs/ext3/inode.c err = ext3_get_inode_loc(inode, &iloc); inode 3284 fs/ext3/inode.c ext3_std_error(inode->i_sb, err); inode 3305 fs/ext3/inode.c journal = EXT3_JOURNAL(inode); inode 3321 fs/ext3/inode.c EXT3_I(inode)->i_flags |= EXT3_JOURNAL_DATA_FL; inode 3323 fs/ext3/inode.c EXT3_I(inode)->i_flags &= ~EXT3_JOURNAL_DATA_FL; inode 3324 fs/ext3/inode.c ext3_set_aops(inode); inode 3330 fs/ext3/inode.c handle = ext3_journal_start(inode, 1); inode 3334 fs/ext3/inode.c err = ext3_mark_inode_dirty(handle, inode); inode 3337 fs/ext3/inode.c ext3_std_error(inode->i_sb, err); inode 24 fs/ext3/ioctl.c struct ext3_inode_info *ei = EXT3_I(inode); inode 46 fs/ext3/ioctl.c if (!is_owner_or_cap(inode)) { inode 56 fs/ext3/ioctl.c if (!S_ISDIR(inode->i_mode)) inode 59 fs/ext3/ioctl.c mutex_lock(&inode->i_mutex); inode 61 fs/ext3/ioctl.c if (IS_NOQUOTA(inode)) { inode 62 fs/ext3/ioctl.c mutex_unlock(&inode->i_mutex); inode 79 fs/ext3/ioctl.c mutex_unlock(&inode->i_mutex); inode 91 fs/ext3/ioctl.c mutex_unlock(&inode->i_mutex); inode 98 fs/ext3/ioctl.c handle = ext3_journal_start(inode, 1); inode 100 fs/ext3/ioctl.c mutex_unlock(&inode->i_mutex); inode 104 fs/ext3/ioctl.c if (IS_SYNC(inode)) inode 106 fs/ext3/ioctl.c err = ext3_reserve_inode_write(handle, inode, &iloc); inode 114 fs/ext3/ioctl.c ext3_set_inode_flags(inode); inode 115 fs/ext3/ioctl.c inode->i_ctime = CURRENT_TIME_SEC; inode 117 fs/ext3/ioctl.c err = ext3_mark_iloc_dirty(handle, inode, &iloc); inode 121 fs/ext3/ioctl.c mutex_unlock(&inode->i_mutex); inode 126 fs/ext3/ioctl.c err = ext3_change_inode_journal_flag(inode, jflag); inode 127 fs/ext3/ioctl.c mutex_unlock(&inode->i_mutex); inode 134 fs/ext3/ioctl.c return put_user(inode->i_generation, (int __user *) arg); inode 142 fs/ext3/ioctl.c if (!is_owner_or_cap(inode)) inode 151 fs/ext3/ioctl.c handle = ext3_journal_start(inode, 1); inode 156 fs/ext3/ioctl.c err = ext3_reserve_inode_write(handle, inode, &iloc); inode 158 fs/ext3/ioctl.c inode->i_ctime = CURRENT_TIME_SEC; inode 159 fs/ext3/ioctl.c inode->i_generation = generation; inode 160 fs/ext3/ioctl.c err = ext3_mark_iloc_dirty(handle, inode, &iloc); inode 177 fs/ext3/ioctl.c struct super_block *sb = inode->i_sb; inode 192 fs/ext3/ioctl.c if (test_opt(inode->i_sb, RESERVATION) inode 193 fs/ext3/ioctl.c && S_ISREG(inode->i_mode) inode 202 fs/ext3/ioctl.c if (!test_opt(inode->i_sb, RESERVATION) ||!S_ISREG(inode->i_mode)) inode 209 fs/ext3/ioctl.c if (!is_owner_or_cap(inode)) { inode 228 fs/ext3/ioctl.c ext3_init_block_alloc_info(inode); inode 241 fs/ext3/ioctl.c struct super_block *sb = inode->i_sb; inode 265 fs/ext3/ioctl.c struct super_block *sb = inode->i_sb; inode 299 fs/ext3/ioctl.c struct inode *inode = file->f_path.dentry->d_inode; inode 342 fs/ext3/ioctl.c ret = ext3_ioctl(inode, file, cmd, (unsigned long) compat_ptr(arg)); inode 58 fs/ext3/namei.c *block = inode->i_size >> inode->i_sb->s_blocksize_bits; inode 60 fs/ext3/namei.c bh = ext3_bread(handle, inode, *block, 1, err); inode 62 fs/ext3/namei.c inode->i_size += inode->i_sb->s_blocksize; inode 63 fs/ext3/namei.c EXT3_I(inode)->i_disksize = inode->i_size; inode 89 fs/ext3/namei.c __le32 inode; inode 284 fs/ext3/namei.c if (de->inode) inode 601 fs/ext3/namei.c if (de->inode == 0) inode 629 fs/ext3/namei.c struct inode *dir; inode 720 fs/ext3/namei.c if (de->name_len && de->inode) { inode 780 fs/ext3/namei.c if (!EXT3_HAS_COMPAT_FEATURE(inode->i_sb, inode 782 fs/ext3/namei.c EXT3_I(inode)->i_flags &= ~EXT3_INDEX_FL; inode 796 fs/ext3/namei.c if (!de->inode) inode 866 fs/ext3/namei.c struct inode *dir = dentry->d_parent->d_inode; inode 973 fs/ext3/namei.c struct inode *dir = dentry->d_parent->d_inode; inode 1032 fs/ext3/namei.c struct inode * inode; inode 1040 fs/ext3/namei.c inode = NULL; inode 1042 fs/ext3/namei.c unsigned long ino = le32_to_cpu(de->inode); inode 1049 fs/ext3/namei.c inode = ext3_iget(dir->i_sb, ino); inode 1050 fs/ext3/namei.c if (IS_ERR(inode)) inode 1051 fs/ext3/namei.c return ERR_CAST(inode); inode 1053 fs/ext3/namei.c return d_splice_alias(inode, dentry); inode 1061 fs/ext3/namei.c struct inode *inode; inode 1071 fs/ext3/namei.c inode = NULL; inode 1074 fs/ext3/namei.c ino = le32_to_cpu(de->inode); inode 1083 fs/ext3/namei.c inode = ext3_iget(child->d_inode->i_sb, ino); inode 1084 fs/ext3/namei.c if (IS_ERR(inode)) inode 1085 fs/ext3/namei.c return ERR_CAST(inode); inode 1087 fs/ext3/namei.c parent = d_alloc_anon(inode); inode 1089 fs/ext3/namei.c iput(inode); inode 1128 fs/ext3/namei.c de->inode = 0; inode 1147 fs/ext3/namei.c if (de->inode && de->name_len) { inode 1273 fs/ext3/namei.c struct inode *dir = dentry->d_parent->d_inode; inode 1297 fs/ext3/namei.c if ((de->inode? rlen - nlen: rlen) >= reclen) inode 1316 fs/ext3/namei.c if (de->inode) { inode 1323 fs/ext3/namei.c if (inode) { inode 1324 fs/ext3/namei.c de->inode = cpu_to_le32(inode->i_ino); inode 1325 fs/ext3/namei.c ext3_set_de_type(dir->i_sb, de, inode->i_mode); inode 1327 fs/ext3/namei.c de->inode = 0; inode 1360 fs/ext3/namei.c struct inode *dir = dentry->d_parent->d_inode; inode 1430 fs/ext3/namei.c return add_dirent_to_buf(handle, dentry, inode, de, bh); inode 1446 fs/ext3/namei.c struct inode *dir = dentry->d_parent->d_inode; inode 1461 fs/ext3/namei.c retval = ext3_dx_add_entry(handle, dentry, inode); inode 1473 fs/ext3/namei.c retval = add_dirent_to_buf(handle, dentry, inode, NULL, bh); inode 1479 fs/ext3/namei.c return make_indexed_dir(handle, dentry, inode, bh); inode 1486 fs/ext3/namei.c de->inode = 0; inode 1488 fs/ext3/namei.c return add_dirent_to_buf(handle, dentry, inode, de, bh); inode 1501 fs/ext3/namei.c struct inode *dir = dentry->d_parent->d_inode; inode 1520 fs/ext3/namei.c err = add_dirent_to_buf(handle, dentry, inode, NULL, bh); inode 1551 fs/ext3/namei.c node2->fake.inode = 0; inode 1613 fs/ext3/namei.c err = add_dirent_to_buf(handle, dentry, inode, de, bh); inode 1652 fs/ext3/namei.c de->inode = 0; inode 1668 fs/ext3/namei.c int err = ext3_add_entry(handle, dentry, inode); inode 1670 fs/ext3/namei.c ext3_mark_inode_dirty(handle, inode); inode 1671 fs/ext3/namei.c d_instantiate(dentry, inode); inode 1674 fs/ext3/namei.c drop_nlink(inode); inode 1675 fs/ext3/namei.c iput(inode); inode 1691 fs/ext3/namei.c struct inode * inode; inode 1704 fs/ext3/namei.c inode = ext3_new_inode (handle, dir, mode); inode 1705 fs/ext3/namei.c err = PTR_ERR(inode); inode 1706 fs/ext3/namei.c if (!IS_ERR(inode)) { inode 1707 fs/ext3/namei.c inode->i_op = &ext3_file_inode_operations; inode 1708 fs/ext3/namei.c inode->i_fop = &ext3_file_operations; inode 1709 fs/ext3/namei.c ext3_set_aops(inode); inode 1710 fs/ext3/namei.c err = ext3_add_nondir(handle, dentry, inode); inode 1722 fs/ext3/namei.c struct inode *inode; inode 1738 fs/ext3/namei.c inode = ext3_new_inode (handle, dir, mode); inode 1739 fs/ext3/namei.c err = PTR_ERR(inode); inode 1740 fs/ext3/namei.c if (!IS_ERR(inode)) { inode 1741 fs/ext3/namei.c init_special_inode(inode, inode->i_mode, rdev); inode 1743 fs/ext3/namei.c inode->i_op = &ext3_special_inode_operations; inode 1745 fs/ext3/namei.c err = ext3_add_nondir(handle, dentry, inode); inode 1756 fs/ext3/namei.c struct inode * inode; inode 1774 fs/ext3/namei.c inode = ext3_new_inode (handle, dir, S_IFDIR | mode); inode 1775 fs/ext3/namei.c err = PTR_ERR(inode); inode 1776 fs/ext3/namei.c if (IS_ERR(inode)) inode 1779 fs/ext3/namei.c inode->i_op = &ext3_dir_inode_operations; inode 1780 fs/ext3/namei.c inode->i_fop = &ext3_dir_operations; inode 1781 fs/ext3/namei.c inode->i_size = EXT3_I(inode)->i_disksize = inode->i_sb->s_blocksize; inode 1782 fs/ext3/namei.c dir_block = ext3_bread (handle, inode, 0, 1, &err); inode 1784 fs/ext3/namei.c drop_nlink(inode); /* is this nlink == 0? */ inode 1785 fs/ext3/namei.c ext3_mark_inode_dirty(handle, inode); inode 1786 fs/ext3/namei.c iput (inode); inode 1792 fs/ext3/namei.c de->inode = cpu_to_le32(inode->i_ino); inode 1798 fs/ext3/namei.c de->inode = cpu_to_le32(dir->i_ino); inode 1799 fs/ext3/namei.c de->rec_len = ext3_rec_len_to_disk(inode->i_sb->s_blocksize - inode 1804 fs/ext3/namei.c inode->i_nlink = 2; inode 1808 fs/ext3/namei.c ext3_mark_inode_dirty(handle, inode); inode 1809 fs/ext3/namei.c err = ext3_add_entry (handle, dentry, inode); inode 1811 fs/ext3/namei.c inode->i_nlink = 0; inode 1812 fs/ext3/namei.c ext3_mark_inode_dirty(handle, inode); inode 1813 fs/ext3/namei.c iput (inode); inode 1819 fs/ext3/namei.c d_instantiate(dentry, inode); inode 1838 fs/ext3/namei.c sb = inode->i_sb; inode 1839 fs/ext3/namei.c if (inode->i_size < EXT3_DIR_REC_LEN(1) + EXT3_DIR_REC_LEN(2) || inode 1840 fs/ext3/namei.c !(bh = ext3_bread (NULL, inode, 0, 0, &err))) { inode 1842 fs/ext3/namei.c ext3_error(inode->i_sb, __func__, inode 1844 fs/ext3/namei.c err, inode->i_ino); inode 1846 fs/ext3/namei.c ext3_warning(inode->i_sb, __func__, inode 1848 fs/ext3/namei.c inode->i_ino); inode 1853 fs/ext3/namei.c if (le32_to_cpu(de->inode) != inode->i_ino || inode 1854 fs/ext3/namei.c !le32_to_cpu(de1->inode) || inode 1857 fs/ext3/namei.c ext3_warning (inode->i_sb, "empty_dir", inode 1859 fs/ext3/namei.c inode->i_ino); inode 1866 fs/ext3/namei.c while (offset < inode->i_size ) { inode 1871 fs/ext3/namei.c bh = ext3_bread (NULL, inode, inode 1878 fs/ext3/namei.c err, inode->i_ino, offset); inode 1884 fs/ext3/namei.c if (!ext3_check_dir_entry("empty_dir", inode, de, bh, offset)) { inode 1890 fs/ext3/namei.c if (le32_to_cpu(de->inode)) { inode 1911 fs/ext3/namei.c struct super_block *sb = inode->i_sb; inode 1916 fs/ext3/namei.c if (!list_empty(&EXT3_I(inode)->i_orphan)) inode 1928 fs/ext3/namei.c J_ASSERT ((S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || inode 1929 fs/ext3/namei.c S_ISLNK(inode->i_mode)) || inode->i_nlink == 0); inode 1936 fs/ext3/namei.c err = ext3_reserve_inode_write(handle, inode, &iloc); inode 1941 fs/ext3/namei.c NEXT_ORPHAN(inode) = le32_to_cpu(EXT3_SB(sb)->s_es->s_last_orphan); inode 1942 fs/ext3/namei.c EXT3_SB(sb)->s_es->s_last_orphan = cpu_to_le32(inode->i_ino); inode 1944 fs/ext3/namei.c rc = ext3_mark_iloc_dirty(handle, inode, &iloc); inode 1957 fs/ext3/namei.c list_add(&EXT3_I(inode)->i_orphan, &EXT3_SB(sb)->s_orphan); inode 1959 fs/ext3/namei.c jbd_debug(4, "superblock will point to %lu\n", inode->i_ino); inode 1961 fs/ext3/namei.c inode->i_ino, NEXT_ORPHAN(inode)); inode 1964 fs/ext3/namei.c ext3_std_error(inode->i_sb, err); inode 1975 fs/ext3/namei.c struct ext3_inode_info *ei = EXT3_I(inode); inode 1981 fs/ext3/namei.c lock_super(inode->i_sb); inode 1983 fs/ext3/namei.c unlock_super(inode->i_sb); inode 1987 fs/ext3/namei.c ino_next = NEXT_ORPHAN(inode); inode 1989 fs/ext3/namei.c sbi = EXT3_SB(inode->i_sb); inode 1991 fs/ext3/namei.c jbd_debug(4, "remove inode %lu from orphan list\n", inode->i_ino); inode 2002 fs/ext3/namei.c err = ext3_reserve_inode_write(handle, inode, &iloc); inode 2016 fs/ext3/namei.c struct inode *i_prev = inode 2029 fs/ext3/namei.c NEXT_ORPHAN(inode) = 0; inode 2030 fs/ext3/namei.c err = ext3_mark_iloc_dirty(handle, inode, &iloc); inode 2033 fs/ext3/namei.c ext3_std_error(inode->i_sb, err); inode 2035 fs/ext3/namei.c unlock_super(inode->i_sb); inode 2046 fs/ext3/namei.c struct inode * inode; inode 2066 fs/ext3/namei.c inode = dentry->d_inode; inode 2069 fs/ext3/namei.c if (le32_to_cpu(de->inode) != inode->i_ino) inode 2073 fs/ext3/namei.c if (!empty_dir (inode)) inode 2079 fs/ext3/namei.c if (inode->i_nlink != 2) inode 2080 fs/ext3/namei.c ext3_warning (inode->i_sb, "ext3_rmdir", inode 2082 fs/ext3/namei.c inode->i_nlink); inode 2083 fs/ext3/namei.c inode->i_version++; inode 2084 fs/ext3/namei.c clear_nlink(inode); inode 2088 fs/ext3/namei.c inode->i_size = 0; inode 2089 fs/ext3/namei.c ext3_orphan_add(handle, inode); inode 2090 fs/ext3/namei.c inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME_SEC; inode 2091 fs/ext3/namei.c ext3_mark_inode_dirty(handle, inode); inode 2105 fs/ext3/namei.c struct inode * inode; inode 2125 fs/ext3/namei.c inode = dentry->d_inode; inode 2128 fs/ext3/namei.c if (le32_to_cpu(de->inode) != inode->i_ino) inode 2131 fs/ext3/namei.c if (!inode->i_nlink) { inode 2132 fs/ext3/namei.c ext3_warning (inode->i_sb, "ext3_unlink", inode 2134 fs/ext3/namei.c inode->i_ino, inode->i_nlink); inode 2135 fs/ext3/namei.c inode->i_nlink = 1; inode 2143 fs/ext3/namei.c drop_nlink(inode); inode 2144 fs/ext3/namei.c if (!inode->i_nlink) inode 2145 fs/ext3/namei.c ext3_orphan_add(handle, inode); inode 2146 fs/ext3/namei.c inode->i_ctime = dir->i_ctime; inode 2147 fs/ext3/namei.c ext3_mark_inode_dirty(handle, inode); inode 2160 fs/ext3/namei.c struct inode * inode; inode 2177 fs/ext3/namei.c inode = ext3_new_inode (handle, dir, S_IFLNK|S_IRWXUGO); inode 2178 fs/ext3/namei.c err = PTR_ERR(inode); inode 2179 fs/ext3/namei.c if (IS_ERR(inode)) inode 2182 fs/ext3/namei.c if (l > sizeof (EXT3_I(inode)->i_data)) { inode 2183 fs/ext3/namei.c inode->i_op = &ext3_symlink_inode_operations; inode 2184 fs/ext3/namei.c ext3_set_aops(inode); inode 2190 fs/ext3/namei.c err = __page_symlink(inode, symname, l, inode 2191 fs/ext3/namei.c mapping_gfp_mask(inode->i_mapping) & ~__GFP_FS); inode 2193 fs/ext3/namei.c drop_nlink(inode); inode 2194 fs/ext3/namei.c ext3_mark_inode_dirty(handle, inode); inode 2195 fs/ext3/namei.c iput (inode); inode 2199 fs/ext3/namei.c inode->i_op = &ext3_fast_symlink_inode_operations; inode 2200 fs/ext3/namei.c memcpy((char*)&EXT3_I(inode)->i_data,symname,l); inode 2201 fs/ext3/namei.c inode->i_size = l-1; inode 2203 fs/ext3/namei.c EXT3_I(inode)->i_disksize = inode->i_size; inode 2204 fs/ext3/namei.c err = ext3_add_nondir(handle, dentry, inode); inode 2216 fs/ext3/namei.c struct inode *inode = old_dentry->d_inode; inode 2219 fs/ext3/namei.c if (inode->i_nlink >= EXT3_LINK_MAX) inode 2225 fs/ext3/namei.c if (inode->i_nlink == 0) inode 2237 fs/ext3/namei.c inode->i_ctime = CURRENT_TIME_SEC; inode 2238 fs/ext3/namei.c inc_nlink(inode); inode 2239 fs/ext3/namei.c atomic_inc(&inode->i_count); inode 2241 fs/ext3/namei.c err = ext3_add_nondir(handle, dentry, inode); inode 2249 fs/ext3/namei.c (ext3_next_entry((struct ext3_dir_entry_2 *)(buffer))->inode) inode 2259 fs/ext3/namei.c struct inode * old_inode, * new_inode; inode 2288 fs/ext3/namei.c if (!old_bh || le32_to_cpu(old_de->inode) != old_inode->i_ino) inode 2323 fs/ext3/namei.c new_de->inode = cpu_to_le32(old_inode->i_ino); inode 2346 fs/ext3/namei.c if (le32_to_cpu(old_de->inode) != old_inode->i_ino || inode 420 fs/ext3/resize.c struct super_block *sb = inode->i_sb; inode 458 fs/ext3/resize.c data = EXT3_I(inode)->i_data + EXT3_DIND_BLOCK; inode 484 fs/ext3/resize.c if ((err = ext3_reserve_inode_write(handle, inode, &iloc))) inode 508 fs/ext3/resize.c inode->i_blocks -= (gdbackups + 1) * sb->s_blocksize >> 9; inode 509 fs/ext3/resize.c ext3_mark_iloc_dirty(handle, inode, &iloc); inode 560 fs/ext3/resize.c struct super_block *sb = inode->i_sb; inode 575 fs/ext3/resize.c data = EXT3_I(inode)->i_data + EXT3_DIND_BLOCK; inode 623 fs/ext3/resize.c if ((err = ext3_reserve_inode_write(handle, inode, &iloc))) inode 642 fs/ext3/resize.c inode->i_blocks += reserved_gdb * sb->s_blocksize >> 9; inode 643 fs/ext3/resize.c ext3_mark_iloc_dirty(handle, inode, &iloc); inode 764 fs/ext3/resize.c struct inode *inode = NULL; inode 798 fs/ext3/resize.c inode = ext3_iget(sb, EXT3_RESIZE_INO); inode 799 fs/ext3/resize.c if (IS_ERR(inode)) { inode 802 fs/ext3/resize.c return PTR_ERR(inode); inode 850 fs/ext3/resize.c (err = reserve_backup_gdb(handle, inode, input))) inode 852 fs/ext3/resize.c } else if ((err = add_new_gdb(handle, inode, input, &primary))) inode 949 fs/ext3/resize.c iput(inode); inode 366 fs/ext3/super.c static inline struct inode *orphan_list_entry(struct list_head *l) inode 380 fs/ext3/super.c struct inode *inode = orphan_list_entry(l); inode 383 fs/ext3/super.c inode->i_sb->s_id, inode->i_ino, inode, inode 384 fs/ext3/super.c inode->i_mode, inode->i_nlink, inode 385 fs/ext3/super.c NEXT_ORPHAN(inode)); inode 446 fs/ext3/super.c static struct inode *ext3_alloc_inode(struct super_block *sb) inode 464 fs/ext3/super.c if (!list_empty(&(EXT3_I(inode)->i_orphan))) { inode 466 fs/ext3/super.c EXT3_I(inode)); inode 468 fs/ext3/super.c EXT3_I(inode), sizeof(struct ext3_inode_info), inode 472 fs/ext3/super.c kmem_cache_free(ext3_inode_cachep, EXT3_I(inode)); inode 506 fs/ext3/super.c struct ext3_block_alloc_info *rsv = EXT3_I(inode)->i_block_alloc_info; inode 508 fs/ext3/super.c if (EXT3_I(inode)->i_acl && inode 509 fs/ext3/super.c EXT3_I(inode)->i_acl != EXT3_ACL_NOT_CACHED) { inode 510 fs/ext3/super.c posix_acl_release(EXT3_I(inode)->i_acl); inode 511 fs/ext3/super.c EXT3_I(inode)->i_acl = EXT3_ACL_NOT_CACHED; inode 513 fs/ext3/super.c if (EXT3_I(inode)->i_default_acl && inode 514 fs/ext3/super.c EXT3_I(inode)->i_default_acl != EXT3_ACL_NOT_CACHED) { inode 515 fs/ext3/super.c posix_acl_release(EXT3_I(inode)->i_default_acl); inode 516 fs/ext3/super.c EXT3_I(inode)->i_default_acl = EXT3_ACL_NOT_CACHED; inode 519 fs/ext3/super.c ext3_discard_reservation(inode); inode 520 fs/ext3/super.c EXT3_I(inode)->i_block_alloc_info = NULL; inode 634 fs/ext3/super.c static struct inode *ext3_nfs_get_inode(struct super_block *sb, inode 637 fs/ext3/super.c struct inode *inode; inode 652 fs/ext3/super.c inode = ext3_iget(sb, ino); inode 653 fs/ext3/super.c if (IS_ERR(inode)) inode 654 fs/ext3/super.c return ERR_CAST(inode); inode 655 fs/ext3/super.c if (generation && inode->i_generation != generation) { inode 656 fs/ext3/super.c iput(inode); inode 660 fs/ext3/super.c return inode; inode 1395 fs/ext3/super.c struct inode *inode; inode 1397 fs/ext3/super.c inode = ext3_orphan_get(sb, le32_to_cpu(es->s_last_orphan)); inode 1398 fs/ext3/super.c if (IS_ERR(inode)) { inode 1403 fs/ext3/super.c list_add(&EXT3_I(inode)->i_orphan, &EXT3_SB(sb)->s_orphan); inode 1404 fs/ext3/super.c DQUOT_INIT(inode); inode 1405 fs/ext3/super.c if (inode->i_nlink) { inode 1408 fs/ext3/super.c __func__, inode->i_ino, inode->i_size); inode 1410 fs/ext3/super.c inode->i_ino, inode->i_size); inode 1411 fs/ext3/super.c ext3_truncate(inode); inode 1416 fs/ext3/super.c __func__, inode->i_ino); inode 1418 fs/ext3/super.c inode->i_ino); inode 1421 fs/ext3/super.c iput(inode); /* The delete magic happens here! */ inode 1521 fs/ext3/super.c struct inode *root; inode 1995 fs/ext3/super.c struct inode *journal_inode; inode 2632 fs/ext3/super.c static inline struct inode *dquot_to_inode(struct dquot *dquot) inode 2643 fs/ext3/super.c handle = ext3_journal_start(inode, 2*EXT3_QUOTA_INIT_BLOCKS(inode->i_sb)); inode 2646 fs/ext3/super.c ret = dquot_initialize(inode, type); inode 2659 fs/ext3/super.c handle = ext3_journal_start(inode, 2*EXT3_QUOTA_DEL_BLOCKS(inode->i_sb)); inode 2665 fs/ext3/super.c dquot_drop(inode); inode 2668 fs/ext3/super.c ret = dquot_drop(inode); inode 2679 fs/ext3/super.c struct inode *inode; inode 2681 fs/ext3/super.c inode = dquot_to_inode(dquot); inode 2682 fs/ext3/super.c handle = ext3_journal_start(inode, inode 2825 fs/ext3/super.c struct inode *inode = sb_dqopt(sb)->files[type]; inode 2832 fs/ext3/super.c loff_t i_size = i_size_read(inode); inode 2842 fs/ext3/super.c bh = ext3_bread(NULL, inode, blk, 0, &err); inode 2863 fs/ext3/super.c struct inode *inode = sb_dqopt(sb)->files[type]; inode 2879 fs/ext3/super.c mutex_lock_nested(&inode->i_mutex, I_MUTEX_QUOTA); inode 2883 fs/ext3/super.c bh = ext3_bread(handle, inode, blk, 1, &err); inode 2914 fs/ext3/super.c mutex_unlock(&inode->i_mutex); inode 2917 fs/ext3/super.c if (inode->i_size < off+len-towrite) { inode 2918 fs/ext3/super.c i_size_write(inode, off+len-towrite); inode 2919 fs/ext3/super.c EXT3_I(inode)->i_disksize = inode->i_size; inode 2921 fs/ext3/super.c inode->i_version++; inode 2922 fs/ext3/super.c inode->i_mtime = inode->i_ctime = CURRENT_TIME; inode 2923 fs/ext3/super.c ext3_mark_inode_dirty(handle, inode); inode 2924 fs/ext3/super.c mutex_unlock(&inode->i_mutex); inode 73 fs/ext3/xattr.c EXT3_I(inode)->i_extra_isize)) inode 79 fs/ext3/xattr.c inode->i_sb->s_id, inode->i_ino); \ inode 224 fs/ext3/xattr.c ea_idebug(inode, "name=%d.%s, buffer=%p, buffer_size=%ld", inode 228 fs/ext3/xattr.c if (!EXT3_I(inode)->i_file_acl) inode 230 fs/ext3/xattr.c ea_idebug(inode, "reading block %u", EXT3_I(inode)->i_file_acl); inode 231 fs/ext3/xattr.c bh = sb_bread(inode->i_sb, EXT3_I(inode)->i_file_acl); inode 237 fs/ext3/xattr.c bad_block: ext3_error(inode->i_sb, __func__, inode 238 fs/ext3/xattr.c "inode %lu: bad block "E3FSBLK, inode->i_ino, inode 239 fs/ext3/xattr.c EXT3_I(inode)->i_file_acl); inode 277 fs/ext3/xattr.c if (!(EXT3_I(inode)->i_state & EXT3_STATE_XATTR)) inode 279 fs/ext3/xattr.c error = ext3_get_inode_loc(inode, &iloc); inode 283 fs/ext3/xattr.c header = IHDR(inode, raw_inode); inode 285 fs/ext3/xattr.c end = (void *)raw_inode + EXT3_SB(inode->i_sb)->s_inode_size; inode 324 fs/ext3/xattr.c down_read(&EXT3_I(inode)->xattr_sem); inode 325 fs/ext3/xattr.c error = ext3_xattr_ibody_get(inode, name_index, name, buffer, inode 328 fs/ext3/xattr.c error = ext3_xattr_block_get(inode, name_index, name, buffer, inode 330 fs/ext3/xattr.c up_read(&EXT3_I(inode)->xattr_sem); inode 345 fs/ext3/xattr.c size_t size = handler->list(inode, buffer, rest, inode 365 fs/ext3/xattr.c ea_idebug(inode, "buffer=%p, buffer_size=%ld", inode 369 fs/ext3/xattr.c if (!EXT3_I(inode)->i_file_acl) inode 371 fs/ext3/xattr.c ea_idebug(inode, "reading block %u", EXT3_I(inode)->i_file_acl); inode 372 fs/ext3/xattr.c bh = sb_bread(inode->i_sb, EXT3_I(inode)->i_file_acl); inode 379 fs/ext3/xattr.c ext3_error(inode->i_sb, __func__, inode 380 fs/ext3/xattr.c "inode %lu: bad block "E3FSBLK, inode->i_ino, inode 381 fs/ext3/xattr.c EXT3_I(inode)->i_file_acl); inode 386 fs/ext3/xattr.c error = ext3_xattr_list_entries(inode, BFIRST(bh), buffer, buffer_size); inode 403 fs/ext3/xattr.c if (!(EXT3_I(inode)->i_state & EXT3_STATE_XATTR)) inode 405 fs/ext3/xattr.c error = ext3_get_inode_loc(inode, &iloc); inode 409 fs/ext3/xattr.c header = IHDR(inode, raw_inode); inode 410 fs/ext3/xattr.c end = (void *)raw_inode + EXT3_SB(inode->i_sb)->s_inode_size; inode 414 fs/ext3/xattr.c error = ext3_xattr_list_entries(inode, IFIRST(header), inode 437 fs/ext3/xattr.c down_read(&EXT3_I(inode)->xattr_sem); inode 438 fs/ext3/xattr.c i_error = ext3_xattr_ibody_list(inode, buffer, buffer_size); inode 446 fs/ext3/xattr.c b_error = ext3_xattr_block_list(inode, buffer, buffer_size); inode 450 fs/ext3/xattr.c up_read(&EXT3_I(inode)->xattr_sem); inode 493 fs/ext3/xattr.c ext3_free_blocks(handle, inode, bh->b_blocknr, 1); inode 495 fs/ext3/xattr.c ext3_forget(handle, 1, inode, bh, bh->b_blocknr); inode 499 fs/ext3/xattr.c if (IS_SYNC(inode)) inode 501 fs/ext3/xattr.c DQUOT_FREE_BLOCK(inode, 1); inode 509 fs/ext3/xattr.c ext3_std_error(inode->i_sb, error); inode 638 fs/ext3/xattr.c struct super_block *sb = inode->i_sb; inode 641 fs/ext3/xattr.c ea_idebug(inode, "name=%d.%s, value=%p, value_len=%ld", inode 644 fs/ext3/xattr.c if (EXT3_I(inode)->i_file_acl) { inode 646 fs/ext3/xattr.c bs->bh = sb_bread(sb, EXT3_I(inode)->i_file_acl); inode 655 fs/ext3/xattr.c "inode %lu: bad block "E3FSBLK, inode->i_ino, inode 656 fs/ext3/xattr.c EXT3_I(inode)->i_file_acl); inode 682 fs/ext3/xattr.c struct super_block *sb = inode->i_sb; inode 768 fs/ext3/xattr.c new_bh = ext3_xattr_cache_find(inode, header(s->base), &ce); inode 777 fs/ext3/xattr.c if (DQUOT_ALLOC_BLOCK(inode, 1)) inode 803 fs/ext3/xattr.c EXT3_I(inode)->i_block_group); inode 804 fs/ext3/xattr.c ext3_fsblk_t block = ext3_new_block(handle, inode, inode 808 fs/ext3/xattr.c ea_idebug(inode, "creating block %d", block); inode 813 fs/ext3/xattr.c ext3_free_blocks(handle, inode, block, 1); inode 834 fs/ext3/xattr.c EXT3_I(inode)->i_file_acl = new_bh ? new_bh->b_blocknr : 0; inode 838 fs/ext3/xattr.c ext3_xattr_release_block(handle, inode, bs->bh); inode 851 fs/ext3/xattr.c DQUOT_FREE_BLOCK(inode, 1); inode 855 fs/ext3/xattr.c ext3_error(inode->i_sb, __func__, inode 856 fs/ext3/xattr.c "inode %lu: bad block "E3FSBLK, inode->i_ino, inode 857 fs/ext3/xattr.c EXT3_I(inode)->i_file_acl); inode 876 fs/ext3/xattr.c if (EXT3_I(inode)->i_extra_isize == 0) inode 879 fs/ext3/xattr.c header = IHDR(inode, raw_inode); inode 882 fs/ext3/xattr.c is->s.end = (void *)raw_inode + EXT3_SB(inode->i_sb)->s_inode_size; inode 883 fs/ext3/xattr.c if (EXT3_I(inode)->i_state & EXT3_STATE_XATTR) { inode 907 fs/ext3/xattr.c if (EXT3_I(inode)->i_extra_isize == 0) inode 912 fs/ext3/xattr.c header = IHDR(inode, ext3_raw_inode(&is->iloc)); inode 915 fs/ext3/xattr.c EXT3_I(inode)->i_state |= EXT3_STATE_XATTR; inode 918 fs/ext3/xattr.c EXT3_I(inode)->i_state &= ~EXT3_STATE_XATTR; inode 959 fs/ext3/xattr.c down_write(&EXT3_I(inode)->xattr_sem); inode 960 fs/ext3/xattr.c error = ext3_get_inode_loc(inode, &is.iloc); inode 964 fs/ext3/xattr.c if (EXT3_I(inode)->i_state & EXT3_STATE_NEW) { inode 966 fs/ext3/xattr.c memset(raw_inode, 0, EXT3_SB(inode->i_sb)->s_inode_size); inode 967 fs/ext3/xattr.c EXT3_I(inode)->i_state &= ~EXT3_STATE_NEW; inode 970 fs/ext3/xattr.c error = ext3_xattr_ibody_find(inode, &i, &is); inode 974 fs/ext3/xattr.c error = ext3_xattr_block_find(inode, &i, &bs); inode 994 fs/ext3/xattr.c error = ext3_xattr_ibody_set(handle, inode, &i, &is); inode 996 fs/ext3/xattr.c error = ext3_xattr_block_set(handle, inode, &i, &bs); inode 998 fs/ext3/xattr.c error = ext3_xattr_ibody_set(handle, inode, &i, &is); inode 1001 fs/ext3/xattr.c error = ext3_xattr_block_set(handle, inode, &i, &bs); inode 1003 fs/ext3/xattr.c if (EXT3_I(inode)->i_file_acl && !bs.s.base) { inode 1004 fs/ext3/xattr.c error = ext3_xattr_block_find(inode, &i, &bs); inode 1008 fs/ext3/xattr.c error = ext3_xattr_block_set(handle, inode, &i, &bs); inode 1013 fs/ext3/xattr.c error = ext3_xattr_ibody_set(handle, inode, &i, inode 1019 fs/ext3/xattr.c ext3_xattr_update_super_block(handle, inode->i_sb); inode 1020 fs/ext3/xattr.c inode->i_ctime = CURRENT_TIME_SEC; inode 1021 fs/ext3/xattr.c error = ext3_mark_iloc_dirty(handle, inode, &is.iloc); inode 1027 fs/ext3/xattr.c if (IS_SYNC(inode)) inode 1034 fs/ext3/xattr.c up_write(&EXT3_I(inode)->xattr_sem); inode 1054 fs/ext3/xattr.c handle = ext3_journal_start(inode, EXT3_DATA_TRANS_BLOCKS(inode->i_sb)); inode 1060 fs/ext3/xattr.c error = ext3_xattr_set_handle(handle, inode, name_index, name, inode 1064 fs/ext3/xattr.c ext3_should_retry_alloc(inode->i_sb, &retries)) inode 1085 fs/ext3/xattr.c if (!EXT3_I(inode)->i_file_acl) inode 1087 fs/ext3/xattr.c bh = sb_bread(inode->i_sb, EXT3_I(inode)->i_file_acl); inode 1089 fs/ext3/xattr.c ext3_error(inode->i_sb, __func__, inode 1090 fs/ext3/xattr.c "inode %lu: block "E3FSBLK" read error", inode->i_ino, inode 1091 fs/ext3/xattr.c EXT3_I(inode)->i_file_acl); inode 1096 fs/ext3/xattr.c ext3_error(inode->i_sb, __func__, inode 1097 fs/ext3/xattr.c "inode %lu: bad block "E3FSBLK, inode->i_ino, inode 1098 fs/ext3/xattr.c EXT3_I(inode)->i_file_acl); inode 1101 fs/ext3/xattr.c ext3_xattr_release_block(handle, inode, bh); inode 1102 fs/ext3/xattr.c EXT3_I(inode)->i_file_acl = 0; inode 1209 fs/ext3/xattr.c ea_idebug(inode, "looking for cached blocks [%x]", (int)hash); inode 1212 fs/ext3/xattr.c inode->i_sb->s_bdev, hash); inode 1221 fs/ext3/xattr.c bh = sb_bread(inode->i_sb, ce->e_block); inode 1223 fs/ext3/xattr.c ext3_error(inode->i_sb, __func__, inode 1225 fs/ext3/xattr.c inode->i_ino, (unsigned long) ce->e_block); inode 1228 fs/ext3/xattr.c ea_idebug(inode, "block %lu refcount %d>=%d", inode 1237 fs/ext3/xattr.c ce = mb_cache_entry_find_next(ce, 0, inode->i_sb->s_bdev, hash); inode 36 fs/ext3/xattr_security.c return ext3_xattr_get(inode, EXT3_XATTR_INDEX_SECURITY, name, inode 46 fs/ext3/xattr_security.c return ext3_xattr_set(inode, EXT3_XATTR_INDEX_SECURITY, name, inode 58 fs/ext3/xattr_security.c err = security_inode_init_security(inode, dir, &name, &value, &len); inode 64 fs/ext3/xattr_security.c err = ext3_xattr_set_handle(handle, inode, EXT3_XATTR_INDEX_SECURITY, inode 40 fs/ext3/xattr_trusted.c return ext3_xattr_get(inode, EXT3_XATTR_INDEX_TRUSTED, name, inode 50 fs/ext3/xattr_trusted.c return ext3_xattr_set(inode, EXT3_XATTR_INDEX_TRUSTED, name, inode 22 fs/ext3/xattr_user.c if (!test_opt(inode->i_sb, XATTR_USER)) inode 39 fs/ext3/xattr_user.c if (!test_opt(inode->i_sb, XATTR_USER)) inode 41 fs/ext3/xattr_user.c return ext3_xattr_get(inode, EXT3_XATTR_INDEX_USER, name, buffer, size); inode 50 fs/ext3/xattr_user.c if (!test_opt(inode->i_sb, XATTR_USER)) inode 52 fs/ext3/xattr_user.c return ext3_xattr_set(inode, EXT3_XATTR_INDEX_USER, name, inode 134 fs/ext4/acl.c spin_lock(&inode->i_lock); inode 137 fs/ext4/acl.c spin_unlock(&inode->i_lock); inode 146 fs/ext4/acl.c spin_lock(&inode->i_lock); inode 150 fs/ext4/acl.c spin_unlock(&inode->i_lock); inode 161 fs/ext4/acl.c struct ext4_inode_info *ei = EXT4_I(inode); inode 167 fs/ext4/acl.c if (!test_opt(inode->i_sb, POSIX_ACL)) inode 172 fs/ext4/acl.c acl = ext4_iget_acl(inode, &ei->i_acl); inode 179 fs/ext4/acl.c acl = ext4_iget_acl(inode, &ei->i_default_acl); inode 188 fs/ext4/acl.c retval = ext4_xattr_get(inode, name_index, "", NULL, 0); inode 193 fs/ext4/acl.c retval = ext4_xattr_get(inode, name_index, "", value, retval); inode 206 fs/ext4/acl.c ext4_iset_acl(inode, &ei->i_acl, acl); inode 210 fs/ext4/acl.c ext4_iset_acl(inode, &ei->i_default_acl, acl); inode 226 fs/ext4/acl.c struct ext4_inode_info *ei = EXT4_I(inode); inode 232 fs/ext4/acl.c if (S_ISLNK(inode->i_mode)) inode 239 fs/ext4/acl.c mode_t mode = inode->i_mode; inode 244 fs/ext4/acl.c inode->i_mode = mode; inode 245 fs/ext4/acl.c ext4_mark_inode_dirty(handle, inode); inode 254 fs/ext4/acl.c if (!S_ISDIR(inode->i_mode)) inode 267 fs/ext4/acl.c error = ext4_xattr_set_handle(handle, inode, name_index, "", inode 274 fs/ext4/acl.c ext4_iset_acl(inode, &ei->i_acl, acl); inode 278 fs/ext4/acl.c ext4_iset_acl(inode, &ei->i_default_acl, acl); inode 288 fs/ext4/acl.c struct posix_acl *acl = ext4_get_acl(inode, ACL_TYPE_ACCESS); inode 293 fs/ext4/acl.c int error = posix_acl_permission(inode, acl, mask); inode 304 fs/ext4/acl.c return generic_permission(inode, mask, ext4_check_acl); inode 319 fs/ext4/acl.c if (!S_ISLNK(inode->i_mode)) { inode 326 fs/ext4/acl.c inode->i_mode &= ~current->fs->umask; inode 328 fs/ext4/acl.c if (test_opt(inode->i_sb, POSIX_ACL) && acl) { inode 332 fs/ext4/acl.c if (S_ISDIR(inode->i_mode)) { inode 333 fs/ext4/acl.c error = ext4_set_acl(handle, inode, inode 343 fs/ext4/acl.c mode = inode->i_mode; inode 346 fs/ext4/acl.c inode->i_mode = mode; inode 349 fs/ext4/acl.c error = ext4_set_acl(handle, inode, inode 380 fs/ext4/acl.c if (S_ISLNK(inode->i_mode)) inode 382 fs/ext4/acl.c if (!test_opt(inode->i_sb, POSIX_ACL)) inode 384 fs/ext4/acl.c acl = ext4_get_acl(inode, ACL_TYPE_ACCESS); inode 391 fs/ext4/acl.c error = posix_acl_chmod_masq(clone, inode->i_mode); inode 397 fs/ext4/acl.c handle = ext4_journal_start(inode, inode 398 fs/ext4/acl.c EXT4_DATA_TRANS_BLOCKS(inode->i_sb)); inode 401 fs/ext4/acl.c ext4_std_error(inode->i_sb, error); inode 404 fs/ext4/acl.c error = ext4_set_acl(handle, inode, ACL_TYPE_ACCESS, clone); inode 407 fs/ext4/acl.c ext4_should_retry_alloc(inode->i_sb, &retries)) inode 424 fs/ext4/acl.c if (!test_opt(inode->i_sb, POSIX_ACL)) inode 437 fs/ext4/acl.c if (!test_opt(inode->i_sb, POSIX_ACL)) inode 450 fs/ext4/acl.c if (!test_opt(inode->i_sb, POSIX_ACL)) inode 453 fs/ext4/acl.c acl = ext4_get_acl(inode, type); inode 470 fs/ext4/acl.c return ext4_xattr_get_acl(inode, ACL_TYPE_ACCESS, buffer, size); inode 479 fs/ext4/acl.c return ext4_xattr_get_acl(inode, ACL_TYPE_DEFAULT, buffer, size); inode 490 fs/ext4/acl.c if (!test_opt(inode->i_sb, POSIX_ACL)) inode 492 fs/ext4/acl.c if (!is_owner_or_cap(inode)) inode 508 fs/ext4/acl.c handle = ext4_journal_start(inode, EXT4_DATA_TRANS_BLOCKS(inode->i_sb)); inode 511 fs/ext4/acl.c error = ext4_set_acl(handle, inode, type, acl); inode 513 fs/ext4/acl.c if (error == -ENOSPC && ext4_should_retry_alloc(inode->i_sb, &retries)) inode 527 fs/ext4/acl.c return ext4_xattr_set_acl(inode, ACL_TYPE_ACCESS, value, size); inode 536 fs/ext4/acl.c return ext4_xattr_set_acl(inode, ACL_TYPE_DEFAULT, value, size); inode 571 fs/ext4/balloc.c if (S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode) || inode 572 fs/ext4/balloc.c ext4_should_journal_data(inode)) inode 575 fs/ext4/balloc.c sb = inode->i_sb; inode 577 fs/ext4/balloc.c ext4_mb_free_blocks(handle, inode, block, count, inode 580 fs/ext4/balloc.c DQUOT_FREE_BLOCK(inode, dquot_freed_blocks); inode 696 fs/ext4/balloc.c ar.inode = inode; inode 701 fs/ext4/balloc.c if (S_ISREG(inode->i_mode) && !(flags & EXT4_META_BLOCK)) inode 729 fs/ext4/balloc.c ret = do_blk_alloc(handle, inode, 0, goal, inode 734 fs/ext4/balloc.c if (!(*errp) && EXT4_I(inode)->i_delalloc_reserved_flag) { inode 735 fs/ext4/balloc.c spin_lock(&EXT4_I(inode)->i_block_reservation_lock); inode 736 fs/ext4/balloc.c EXT4_I(inode)->i_allocated_meta_blocks += *count; inode 737 fs/ext4/balloc.c spin_unlock(&EXT4_I(inode)->i_block_reservation_lock); inode 756 fs/ext4/balloc.c return ext4_new_meta_blocks(handle, inode, goal, &count, errp); inode 776 fs/ext4/balloc.c return do_blk_alloc(handle, inode, iblock, goal, count, errp, 0); inode 80 fs/ext4/dir.c else if (le32_to_cpu(de->inode) > inode 89 fs/ext4/dir.c (unsigned long) le32_to_cpu(de->inode), inode 103 fs/ext4/dir.c struct inode *inode = filp->f_path.dentry->d_inode; inode 107 fs/ext4/dir.c sb = inode->i_sb; inode 109 fs/ext4/dir.c if (EXT4_HAS_COMPAT_FEATURE(inode->i_sb, inode 111 fs/ext4/dir.c ((EXT4_I(inode)->i_flags & EXT4_INDEX_FL) || inode 112 fs/ext4/dir.c ((inode->i_size >> sb->s_blocksize_bits) == 1))) { inode 127 fs/ext4/dir.c while (!error && !stored && filp->f_pos < inode->i_size) { inode 133 fs/ext4/dir.c err = ext4_get_blocks_wrap(NULL, inode, blk, 1, &map_bh, inode 137 fs/ext4/dir.c (PAGE_CACHE_SHIFT - inode->i_blkbits); inode 144 fs/ext4/dir.c bh = ext4_bread(NULL, inode, blk, 0, &err); inode 155 fs/ext4/dir.c inode->i_ino, inode 160 fs/ext4/dir.c if (filp->f_pos > inode->i_blocks << 9) inode 171 fs/ext4/dir.c if (filp->f_version != inode->i_version) { inode 189 fs/ext4/dir.c filp->f_version = inode->i_version; inode 192 fs/ext4/dir.c while (!error && filp->f_pos < inode->i_size inode 195 fs/ext4/dir.c if (!ext4_check_dir_entry("ext4_readdir", inode, de, inode 207 fs/ext4/dir.c if (le32_to_cpu(de->inode)) { inode 220 fs/ext4/dir.c le32_to_cpu(de->inode), inode 263 fs/ext4/dir.c __u32 inode; inode 353 fs/ext4/dir.c new_fn->inode = le32_to_cpu(dirent->inode); inode 401 fs/ext4/dir.c struct inode *inode = filp->f_path.dentry->d_inode; inode 405 fs/ext4/dir.c sb = inode->i_sb; inode 416 fs/ext4/dir.c fname->inode, inode 432 fs/ext4/dir.c struct inode *inode = filp->f_path.dentry->d_inode; inode 483 fs/ext4/dir.c (filp->f_version != inode->i_version)) { inode 486 fs/ext4/dir.c filp->f_version = inode->i_version; inode 83 fs/ext4/ext4.h struct inode *inode; inode 437 fs/ext4/ext4.h (raw_inode)->xtime = cpu_to_le32((inode)->xtime.tv_sec); \ inode 438 fs/ext4/ext4.h if (EXT4_FITS_IN_INODE(raw_inode, EXT4_I(inode), xtime ## _extra)) \ inode 440 fs/ext4/ext4.h ext4_encode_extra_time(&(inode)->xtime); \ inode 454 fs/ext4/ext4.h (inode)->xtime.tv_sec = (signed)le32_to_cpu((raw_inode)->xtime); \ inode 455 fs/ext4/ext4.h if (EXT4_FITS_IN_INODE(raw_inode, EXT4_I(inode), xtime ## _extra)) \ inode 456 fs/ext4/ext4.h ext4_decode_extra_time(&(inode)->xtime, \ inode 678 fs/ext4/ext4.h return container_of(inode, struct ext4_inode_info, vfs_inode); inode 683 fs/ext4/ext4.h return (inode->i_sb->s_time_gran < NSEC_PER_SEC) ? inode 684 fs/ext4/ext4.h current_fs_time(inode->i_sb) : CURRENT_TIME_SEC; inode 703 fs/ext4/ext4.h #define NEXT_ORPHAN(inode) EXT4_I(inode)->i_dtime inode 815 fs/ext4/ext4.h __le32 inode; /* Inode number */ inode 828 fs/ext4/ext4.h __le32 inode; /* Inode number */ inode 1038 fs/ext4/ext4.h extern struct inode * ext4_new_inode(handle_t *, struct inode *, int); inode 1040 fs/ext4/ext4.h extern struct inode * ext4_orphan_get(struct super_block *, unsigned long); inode 1079 fs/ext4/ext4.h extern struct inode *ext4_iget(struct super_block *, unsigned long); inode 1244 fs/ext4/ext4.h down_write(&EXT4_I(inode)->i_data_sem); inode 1245 fs/ext4/ext4.h if (newsize > EXT4_I(inode)->i_disksize) inode 1246 fs/ext4/ext4.h EXT4_I(inode)->i_disksize = newsize; inode 1247 fs/ext4/ext4.h up_write(&EXT4_I(inode)->i_data_sem); inode 184 fs/ext4/ext4_extents.h return (struct ext4_extent_header *) EXT4_I(inode)->i_data; inode 194 fs/ext4/ext4_extents.h return le16_to_cpu(ext_inode_hdr(inode)->eh_depth); inode 199 fs/ext4/ext4_extents.h EXT4_I(inode)->i_ext_generation++; inode 205 fs/ext4/ext4_extents.h EXT4_I(inode)->i_cached_extent.ec_type = EXT4_EXT_CACHE_NO; inode 117 fs/ext4/ext4_i.h struct inode vfs_inode; inode 22 fs/ext4/ext4_jbd2.h #define EXT4_JOURNAL(inode) (EXT4_SB((inode)->i_sb)->s_journal) inode 170 fs/ext4/ext4_jbd2.h return ext4_journal_start_sb(inode->i_sb, nblocks); inode 193 fs/ext4/ext4_jbd2.h return jbd2_journal_blocks_per_page(inode); inode 203 fs/ext4/ext4_jbd2.h return jbd2_journal_file_inode(handle, &EXT4_I(inode)->jinode); inode 211 fs/ext4/ext4_jbd2.h if (!S_ISREG(inode->i_mode)) inode 213 fs/ext4/ext4_jbd2.h if (test_opt(inode->i_sb, DATA_FLAGS) == EXT4_MOUNT_JOURNAL_DATA) inode 215 fs/ext4/ext4_jbd2.h if (EXT4_I(inode)->i_flags & EXT4_JOURNAL_DATA_FL) inode 222 fs/ext4/ext4_jbd2.h if (!S_ISREG(inode->i_mode)) inode 224 fs/ext4/ext4_jbd2.h if (EXT4_I(inode)->i_flags & EXT4_JOURNAL_DATA_FL) inode 226 fs/ext4/ext4_jbd2.h if (test_opt(inode->i_sb, DATA_FLAGS) == EXT4_MOUNT_ORDERED_DATA) inode 233 fs/ext4/ext4_jbd2.h if (!S_ISREG(inode->i_mode)) inode 235 fs/ext4/ext4_jbd2.h if (EXT4_I(inode)->i_flags & EXT4_JOURNAL_DATA_FL) inode 237 fs/ext4/ext4_jbd2.h if (test_opt(inode->i_sb, DATA_FLAGS) == EXT4_MOUNT_WRITEBACK_DATA) inode 72 fs/ext4/ext4_sb.h struct inode *s_journal_inode; inode 99 fs/ext4/ext4_sb.h struct inode *s_buddy_cache; inode 140 fs/ext4/extents.c err = ext4_mark_inode_dirty(handle, inode); inode 149 fs/ext4/extents.c struct ext4_inode_info *ei = EXT4_I(inode); inode 171 fs/ext4/extents.c bg_start = (ei->i_block_group * EXT4_BLOCKS_PER_GROUP(inode->i_sb)) + inode 172 fs/ext4/extents.c le32_to_cpu(EXT4_SB(inode->i_sb)->s_es->s_first_data_block); inode 173 fs/ext4/extents.c last_block = ext4_blocks_count(EXT4_SB(inode->i_sb)->s_es) - 1; inode 175 fs/ext4/extents.c if (bg_start + EXT4_BLOCKS_PER_GROUP(inode->i_sb) <= last_block) inode 177 fs/ext4/extents.c (EXT4_BLOCKS_PER_GROUP(inode->i_sb) / 16); inode 193 fs/ext4/extents.c goal = ext4_ext_find_goal(inode, path, le32_to_cpu(ex->ee_block)); inode 194 fs/ext4/extents.c newblock = ext4_new_meta_block(handle, inode, goal, err); inode 202 fs/ext4/extents.c size = (inode->i_sb->s_blocksize - sizeof(struct ext4_extent_header)) inode 215 fs/ext4/extents.c size = (inode->i_sb->s_blocksize - sizeof(struct ext4_extent_header)) inode 228 fs/ext4/extents.c size = sizeof(EXT4_I(inode)->i_data); inode 242 fs/ext4/extents.c size = sizeof(EXT4_I(inode)->i_data); inode 262 fs/ext4/extents.c rcap = ext4_ext_space_root_idx(inode); inode 263 fs/ext4/extents.c lcap = ext4_ext_space_block(inode); inode 264 fs/ext4/extents.c icap = ext4_ext_space_block_idx(inode); inode 287 fs/ext4/extents.c if (depth == ext_depth(inode)) { inode 289 fs/ext4/extents.c max = ext4_ext_space_root(inode); inode 291 fs/ext4/extents.c max = ext4_ext_space_root_idx(inode); inode 294 fs/ext4/extents.c max = ext4_ext_space_block(inode); inode 296 fs/ext4/extents.c max = ext4_ext_space_block_idx(inode); inode 321 fs/ext4/extents.c max = ext4_ext_max_entries(inode, depth); inode 333 fs/ext4/extents.c ext4_error(inode->i_sb, function, inode 336 fs/ext4/extents.c inode->i_ino, error_msg, le16_to_cpu(eh->eh_magic), inode 344 fs/ext4/extents.c __ext4_ext_check_header(__func__, inode, eh, depth) inode 369 fs/ext4/extents.c int depth = ext_depth(inode); inode 528 fs/ext4/extents.c eh = ext_inode_hdr(inode); inode 532 fs/ext4/extents.c eh->eh_max = cpu_to_le16(ext4_ext_space_root(inode)); inode 533 fs/ext4/extents.c ext4_mark_inode_dirty(handle, inode); inode 534 fs/ext4/extents.c ext4_ext_invalidate_cache(inode); inode 546 fs/ext4/extents.c eh = ext_inode_hdr(inode); inode 547 fs/ext4/extents.c depth = ext_depth(inode); inode 548 fs/ext4/extents.c if (ext4_ext_check_header(inode, eh, depth)) inode 569 fs/ext4/extents.c ext4_ext_binsearch_idx(inode, path + ppos, block); inode 574 fs/ext4/extents.c bh = sb_bread(inode->i_sb, path[ppos].p_block); inode 585 fs/ext4/extents.c if (ext4_ext_check_header(inode, eh, i)) inode 594 fs/ext4/extents.c ext4_ext_binsearch(inode, path + ppos, block); inode 599 fs/ext4/extents.c ext4_ext_show_path(inode, path); inode 622 fs/ext4/extents.c err = ext4_ext_get_access(handle, inode, curp); inode 660 fs/ext4/extents.c err = ext4_ext_dirty(handle, inode, curp); inode 661 fs/ext4/extents.c ext4_std_error(inode->i_sb, err); inode 681 fs/ext4/extents.c int depth = ext_depth(inode); inode 728 fs/ext4/extents.c newblock = ext4_ext_new_meta_block(handle, inode, path, inode 738 fs/ext4/extents.c bh = sb_getblk(inode->i_sb, newblock); inode 751 fs/ext4/extents.c neh->eh_max = cpu_to_le16(ext4_ext_space_block(inode)); inode 791 fs/ext4/extents.c err = ext4_ext_get_access(handle, inode, path + depth); inode 795 fs/ext4/extents.c err = ext4_ext_dirty(handle, inode, path + depth); inode 812 fs/ext4/extents.c bh = sb_getblk(inode->i_sb, newblock); inode 826 fs/ext4/extents.c neh->eh_max = cpu_to_le16(ext4_ext_space_block_idx(inode)); inode 870 fs/ext4/extents.c err = ext4_ext_get_access(handle, inode, path + i); inode 874 fs/ext4/extents.c err = ext4_ext_dirty(handle, inode, path + i); inode 883 fs/ext4/extents.c err = ext4_ext_insert_index(handle, inode, path + at, inode 898 fs/ext4/extents.c ext4_free_blocks(handle, inode, ablocks[i], 1, 1); inode 925 fs/ext4/extents.c newblock = ext4_ext_new_meta_block(handle, inode, path, newext, &err); inode 929 fs/ext4/extents.c bh = sb_getblk(inode->i_sb, newblock); inode 932 fs/ext4/extents.c ext4_std_error(inode->i_sb, err); inode 944 fs/ext4/extents.c memmove(bh->b_data, curp->p_hdr, sizeof(EXT4_I(inode)->i_data)); inode 950 fs/ext4/extents.c if (ext_depth(inode)) inode 951 fs/ext4/extents.c neh->eh_max = cpu_to_le16(ext4_ext_space_block_idx(inode)); inode 953 fs/ext4/extents.c neh->eh_max = cpu_to_le16(ext4_ext_space_block(inode)); inode 963 fs/ext4/extents.c err = ext4_ext_get_access(handle, inode, curp); inode 968 fs/ext4/extents.c curp->p_hdr->eh_max = cpu_to_le16(ext4_ext_space_root_idx(inode)); inode 980 fs/ext4/extents.c neh = ext_inode_hdr(inode); inode 987 fs/ext4/extents.c err = ext4_ext_dirty(handle, inode, curp); inode 1007 fs/ext4/extents.c i = depth = ext_depth(inode); inode 1021 fs/ext4/extents.c err = ext4_ext_split(handle, inode, path, newext, i); inode 1027 fs/ext4/extents.c path = ext4_ext_find_extent(inode, inode 1034 fs/ext4/extents.c err = ext4_ext_grow_indepth(handle, inode, path, newext); inode 1040 fs/ext4/extents.c path = ext4_ext_find_extent(inode, inode 1052 fs/ext4/extents.c depth = ext_depth(inode); inode 1178 fs/ext4/extents.c bh = sb_bread(inode->i_sb, block); inode 1182 fs/ext4/extents.c if (ext4_ext_check_header(inode, eh, depth)) { inode 1191 fs/ext4/extents.c bh = sb_bread(inode->i_sb, block); inode 1195 fs/ext4/extents.c if (ext4_ext_check_header(inode, eh, path->p_depth - depth)) { inode 1283 fs/ext4/extents.c int depth = ext_depth(inode); inode 1308 fs/ext4/extents.c err = ext4_ext_get_access(handle, inode, path + k); inode 1312 fs/ext4/extents.c err = ext4_ext_dirty(handle, inode, path + k); inode 1320 fs/ext4/extents.c err = ext4_ext_get_access(handle, inode, path + k); inode 1324 fs/ext4/extents.c err = ext4_ext_dirty(handle, inode, path + k); inode 1390 fs/ext4/extents.c depth = ext_depth(inode); inode 1395 fs/ext4/extents.c if (!ext4_can_extents_be_merged(inode, ex, ex + 1)) inode 1414 fs/ext4/extents.c ext4_error(inode->i_sb, "ext4_ext_try_to_merge", inode 1415 fs/ext4/extents.c "inode#%lu, eh->eh_entries = 0!", inode->i_ino); inode 1439 fs/ext4/extents.c depth = ext_depth(inode); inode 1489 fs/ext4/extents.c depth = ext_depth(inode); inode 1494 fs/ext4/extents.c if (ex && ext4_can_extents_be_merged(inode, ex, newext)) { inode 1499 fs/ext4/extents.c err = ext4_ext_get_access(handle, inode, path + depth); inode 1520 fs/ext4/extents.c depth = ext_depth(inode); inode 1527 fs/ext4/extents.c next = ext4_ext_next_leaf_block(inode, path); inode 1532 fs/ext4/extents.c npath = ext4_ext_find_extent(inode, next, NULL); inode 1551 fs/ext4/extents.c err = ext4_ext_create_new_leaf(handle, inode, path, newext); inode 1554 fs/ext4/extents.c depth = ext_depth(inode); inode 1560 fs/ext4/extents.c err = ext4_ext_get_access(handle, inode, path + depth); inode 1609 fs/ext4/extents.c ext4_ext_try_to_merge(inode, path, nearex); inode 1614 fs/ext4/extents.c err = ext4_ext_correct_indexes(handle, inode, path); inode 1618 fs/ext4/extents.c err = ext4_ext_dirty(handle, inode, path + depth); inode 1625 fs/ext4/extents.c ext4_ext_tree_changed(inode); inode 1626 fs/ext4/extents.c ext4_ext_invalidate_cache(inode); inode 1642 fs/ext4/extents.c BUG_ON(inode == NULL); inode 1647 fs/ext4/extents.c path = ext4_ext_find_extent(inode, block, path); inode 1654 fs/ext4/extents.c depth = ext_depth(inode); inode 1707 fs/ext4/extents.c err = func(inode, path, &cbex, ex, cbdata); inode 1720 fs/ext4/extents.c if (ext_depth(inode) != depth) { inode 1743 fs/ext4/extents.c cex = &EXT4_I(inode)->i_cached_extent; inode 1759 fs/ext4/extents.c int depth = ext_depth(inode); inode 1796 fs/ext4/extents.c ext4_ext_put_in_cache(inode, lblock, len, 0, EXT4_EXT_CACHE_GAP); inode 1805 fs/ext4/extents.c cex = &EXT4_I(inode)->i_cached_extent; inode 1844 fs/ext4/extents.c err = ext4_ext_get_access(handle, inode, path); inode 1848 fs/ext4/extents.c err = ext4_ext_dirty(handle, inode, path); inode 1852 fs/ext4/extents.c bh = sb_find_get_block(inode->i_sb, leaf); inode 1853 fs/ext4/extents.c ext4_forget(handle, 1, inode, bh, leaf); inode 1854 fs/ext4/extents.c ext4_free_blocks(handle, inode, leaf, 1, 1); inode 1869 fs/ext4/extents.c int depth = ext_depth(inode); inode 1885 fs/ext4/extents.c ret = 2 + EXT4_META_TRANS_BLOCKS(inode->i_sb); inode 1889 fs/ext4/extents.c return ext4_chunk_trans_blocks(inode, nrblocks); inode 1906 fs/ext4/extents.c int depth = ext_depth(inode); inode 1924 fs/ext4/extents.c if (S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode)) inode 1928 fs/ext4/extents.c struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); inode 1936 fs/ext4/extents.c if (ext_depth(inode) > sbi->s_depth_max) inode 1937 fs/ext4/extents.c sbi->s_depth_max = ext_depth(inode); inode 1951 fs/ext4/extents.c bh = sb_find_get_block(inode->i_sb, start + i); inode 1952 fs/ext4/extents.c ext4_forget(handle, 0, inode, bh, start + i); inode 1954 fs/ext4/extents.c ext4_free_blocks(handle, inode, start, num, metadata); inode 1972 fs/ext4/extents.c int depth = ext_depth(inode), credits; inode 2035 fs/ext4/extents.c credits = 7 + 2*(ex_ee_len/EXT4_BLOCKS_PER_GROUP(inode->i_sb)); inode 2038 fs/ext4/extents.c credits += (ext_depth(inode)) + 1; inode 2040 fs/ext4/extents.c credits += 2 * EXT4_QUOTA_TRANS_BLOCKS(inode->i_sb); inode 2046 fs/ext4/extents.c err = ext4_ext_get_access(handle, inode, path + depth); inode 2050 fs/ext4/extents.c err = ext4_remove_blocks(handle, inode, ex, a, b); inode 2069 fs/ext4/extents.c err = ext4_ext_dirty(handle, inode, path + depth); inode 2081 fs/ext4/extents.c err = ext4_ext_correct_indexes(handle, inode, path); inode 2086 fs/ext4/extents.c err = ext4_ext_rm_idx(handle, inode, path + depth); inode 2115 fs/ext4/extents.c struct super_block *sb = inode->i_sb; inode 2116 fs/ext4/extents.c int depth = ext_depth(inode); inode 2124 fs/ext4/extents.c handle = ext4_journal_start(inode, depth + 1); inode 2128 fs/ext4/extents.c ext4_ext_invalidate_cache(inode); inode 2139 fs/ext4/extents.c path[0].p_hdr = ext_inode_hdr(inode); inode 2140 fs/ext4/extents.c if (ext4_ext_check_header(inode, path[0].p_hdr, depth)) { inode 2149 fs/ext4/extents.c err = ext4_ext_rm_leaf(handle, inode, path, start); inode 2194 fs/ext4/extents.c if (ext4_ext_check_header(inode, ext_block_hdr(bh), inode 2211 fs/ext4/extents.c err = ext4_ext_rm_idx(handle, inode, path + i); inode 2227 fs/ext4/extents.c err = ext4_ext_get_access(handle, inode, path); inode 2229 fs/ext4/extents.c ext_inode_hdr(inode)->eh_depth = 0; inode 2230 fs/ext4/extents.c ext_inode_hdr(inode)->eh_max = inode 2231 fs/ext4/extents.c cpu_to_le16(ext4_ext_space_root(inode)); inode 2232 fs/ext4/extents.c err = ext4_ext_dirty(handle, inode, path); inode 2236 fs/ext4/extents.c ext4_ext_tree_changed(inode); inode 2309 fs/ext4/extents.c blkbits = inode->i_blkbits; inode 2310 fs/ext4/extents.c blocksize = inode->i_sb->s_blocksize; inode 2328 fs/ext4/extents.c bio->bi_bdev = inode->i_sb->s_bdev; inode 2396 fs/ext4/extents.c depth = ext_depth(inode); inode 2408 fs/ext4/extents.c err = ext4_ext_get_access(handle, inode, path + depth); inode 2413 fs/ext4/extents.c err = ext4_ext_zeroout(inode, &orig_ex); inode 2420 fs/ext4/extents.c ext4_ext_dirty(handle, inode, path + depth); inode 2455 fs/ext4/extents.c ext4_ext_dirty(handle, inode, path + depth); inode 2461 fs/ext4/extents.c err = ext4_ext_insert_extent(handle, inode, path, ex3); inode 2463 fs/ext4/extents.c err = ext4_ext_zeroout(inode, &orig_ex); inode 2469 fs/ext4/extents.c ext4_ext_dirty(handle, inode, path + depth); inode 2483 fs/ext4/extents.c err = ext4_ext_zeroout(inode, ex3); inode 2490 fs/ext4/extents.c depth = ext_depth(inode); inode 2492 fs/ext4/extents.c path = ext4_ext_find_extent(inode, inode 2500 fs/ext4/extents.c err = ext4_ext_get_access(handle, inode, inode 2505 fs/ext4/extents.c ext4_ext_dirty(handle, inode, path + depth); inode 2517 fs/ext4/extents.c err = ext4_ext_insert_extent(handle, inode, path, ex3); inode 2519 fs/ext4/extents.c err = ext4_ext_zeroout(inode, &orig_ex); inode 2526 fs/ext4/extents.c ext4_ext_dirty(handle, inode, path + depth); inode 2537 fs/ext4/extents.c newdepth = ext_depth(inode); inode 2546 fs/ext4/extents.c path = ext4_ext_find_extent(inode, iblock, path); inode 2556 fs/ext4/extents.c err = ext4_ext_get_access(handle, inode, path + depth); inode 2568 fs/ext4/extents.c err = ext4_ext_zeroout(inode, &orig_ex); inode 2575 fs/ext4/extents.c ext4_ext_dirty(handle, inode, path + depth); inode 2609 fs/ext4/extents.c ret = ext4_ext_try_to_merge(inode, path, ex2 - 1); inode 2611 fs/ext4/extents.c err = ext4_ext_correct_indexes(handle, inode, path); inode 2614 fs/ext4/extents.c depth = ext_depth(inode); inode 2624 fs/ext4/extents.c ret = ext4_ext_try_to_merge(inode, path, ex2); inode 2626 fs/ext4/extents.c err = ext4_ext_correct_indexes(handle, inode, path); inode 2632 fs/ext4/extents.c err = ext4_ext_dirty(handle, inode, path + depth); inode 2635 fs/ext4/extents.c err = ext4_ext_insert_extent(handle, inode, path, &newex); inode 2637 fs/ext4/extents.c err = ext4_ext_zeroout(inode, &orig_ex); inode 2644 fs/ext4/extents.c ext4_ext_dirty(handle, inode, path + depth); inode 2657 fs/ext4/extents.c ext4_ext_dirty(handle, inode, path + depth); inode 2695 fs/ext4/extents.c iblock, max_blocks, inode->i_ino); inode 2698 fs/ext4/extents.c goal = ext4_ext_in_cache(inode, iblock, &newex); inode 2724 fs/ext4/extents.c path = ext4_ext_find_extent(inode, iblock, NULL); inode 2731 fs/ext4/extents.c depth = ext_depth(inode); inode 2762 fs/ext4/extents.c ext4_ext_put_in_cache(inode, ee_block, inode 2783 fs/ext4/extents.c ret = ext4_ext_convert_to_initialized(handle, inode, inode 2804 fs/ext4/extents.c ext4_ext_put_gap_in_cache(inode, path, iblock); inode 2813 fs/ext4/extents.c err = ext4_ext_search_left(inode, path, &ar.lleft, &ar.pleft); inode 2817 fs/ext4/extents.c err = ext4_ext_search_right(inode, path, &ar.lright, &ar.pright); inode 2837 fs/ext4/extents.c err = ext4_ext_check_overlap(inode, &newex, path); inode 2844 fs/ext4/extents.c ar.inode = inode; inode 2845 fs/ext4/extents.c ar.goal = ext4_ext_find_goal(inode, path, iblock); inode 2848 fs/ext4/extents.c if (S_ISREG(inode->i_mode)) inode 2864 fs/ext4/extents.c err = ext4_ext_insert_extent(handle, inode, path, &newex); inode 2869 fs/ext4/extents.c ext4_discard_preallocations(inode); inode 2870 fs/ext4/extents.c ext4_free_blocks(handle, inode, ext_pblock(&newex), inode 2880 fs/ext4/extents.c disksize = ((loff_t) iblock + ar.len) << inode->i_blkbits; inode 2881 fs/ext4/extents.c if (disksize > i_size_read(inode)) inode 2882 fs/ext4/extents.c disksize = i_size_read(inode); inode 2883 fs/ext4/extents.c if (disksize > EXT4_I(inode)->i_disksize) inode 2884 fs/ext4/extents.c EXT4_I(inode)->i_disksize = disksize; inode 2891 fs/ext4/extents.c ext4_ext_put_in_cache(inode, iblock, allocated, newblock, inode 2896 fs/ext4/extents.c ext4_ext_show_leaf(inode, path); inode 2898 fs/ext4/extents.c bh_result->b_bdev = inode->i_sb->s_bdev; inode 2910 fs/ext4/extents.c struct address_space *mapping = inode->i_mapping; inode 2911 fs/ext4/extents.c struct super_block *sb = inode->i_sb; inode 2919 fs/ext4/extents.c err = ext4_writepage_trans_blocks(inode); inode 2920 fs/ext4/extents.c handle = ext4_journal_start(inode, err); inode 2924 fs/ext4/extents.c if (inode->i_size & (sb->s_blocksize - 1)) inode 2925 fs/ext4/extents.c ext4_block_truncate_page(handle, mapping, inode->i_size); inode 2927 fs/ext4/extents.c if (ext4_orphan_add(handle, inode)) inode 2930 fs/ext4/extents.c down_write(&EXT4_I(inode)->i_data_sem); inode 2931 fs/ext4/extents.c ext4_ext_invalidate_cache(inode); inode 2933 fs/ext4/extents.c ext4_discard_preallocations(inode); inode 2942 fs/ext4/extents.c EXT4_I(inode)->i_disksize = inode->i_size; inode 2943 fs/ext4/extents.c ext4_mark_inode_dirty(handle, inode); inode 2945 fs/ext4/extents.c last_block = (inode->i_size + sb->s_blocksize - 1) inode 2947 fs/ext4/extents.c err = ext4_ext_remove_space(inode, last_block); inode 2952 fs/ext4/extents.c if (IS_SYNC(inode)) inode 2956 fs/ext4/extents.c up_write(&EXT4_I(inode)->i_data_sem); inode 2964 fs/ext4/extents.c if (inode->i_nlink) inode 2965 fs/ext4/extents.c ext4_orphan_del(handle, inode); inode 2967 fs/ext4/extents.c inode->i_mtime = inode->i_ctime = ext4_current_time(inode); inode 2968 fs/ext4/extents.c ext4_mark_inode_dirty(handle, inode); inode 2978 fs/ext4/extents.c now = current_fs_time(inode->i_sb); inode 2979 fs/ext4/extents.c if (!timespec_equal(&inode->i_ctime, &now)) inode 2980 fs/ext4/extents.c inode->i_ctime = now; inode 2987 fs/ext4/extents.c if (new_size > i_size_read(inode)) inode 2988 fs/ext4/extents.c i_size_write(inode, new_size); inode 2989 fs/ext4/extents.c if (new_size > EXT4_I(inode)->i_disksize) inode 2990 fs/ext4/extents.c ext4_update_i_disksize(inode, new_size); inode 3012 fs/ext4/extents.c unsigned int credits, blkbits = inode->i_blkbits; inode 3018 fs/ext4/extents.c if (!(EXT4_I(inode)->i_flags & EXT4_EXTENTS_FL)) inode 3022 fs/ext4/extents.c if (S_ISDIR(inode->i_mode)) inode 3035 fs/ext4/extents.c credits = ext4_chunk_trans_blocks(inode, max_blocks); inode 3036 fs/ext4/extents.c mutex_lock(&inode->i_mutex); inode 3041 fs/ext4/extents.c handle = ext4_journal_start(inode, credits); inode 3046 fs/ext4/extents.c ret = ext4_get_blocks_wrap(handle, inode, block, inode 3055 fs/ext4/extents.c inode->i_ino, block, max_blocks); inode 3057 fs/ext4/extents.c ext4_mark_inode_dirty(handle, inode); inode 3067 fs/ext4/extents.c ext4_falloc_update_inode(inode, mode, new_size, inode 3069 fs/ext4/extents.c ext4_mark_inode_dirty(handle, inode); inode 3075 fs/ext4/extents.c ext4_should_retry_alloc(inode->i_sb, &retries)) { inode 3079 fs/ext4/extents.c mutex_unlock(&inode->i_mutex); inode 3091 fs/ext4/extents.c unsigned long blksize_bits = inode->i_sb->s_blocksize_bits; inode 3106 fs/ext4/extents.c page = find_get_page(inode->i_mapping, offset); inode 3160 fs/ext4/extents.c int blockbits = inode->i_sb->s_blocksize_bits; inode 3164 fs/ext4/extents.c if (EXT4_I(inode)->i_state & EXT4_STATE_XATTR) { inode 3168 fs/ext4/extents.c error = ext4_get_inode_loc(inode, &iloc); inode 3173 fs/ext4/extents.c EXT4_I(inode)->i_extra_isize; inode 3175 fs/ext4/extents.c length = EXT4_SB(inode->i_sb)->s_inode_size - offset; inode 3178 fs/ext4/extents.c physical = EXT4_I(inode)->i_file_acl << blockbits; inode 3179 fs/ext4/extents.c length = inode->i_sb->s_blocksize; inode 3196 fs/ext4/extents.c if (!(EXT4_I(inode)->i_flags & EXT4_EXTENTS_FL)) inode 3197 fs/ext4/extents.c return generic_block_fiemap(inode, fieinfo, start, len, inode 3204 fs/ext4/extents.c error = ext4_xattr_fiemap(inode, fieinfo); inode 3206 fs/ext4/extents.c start_blk = start >> inode->i_sb->s_blocksize_bits; inode 3207 fs/ext4/extents.c len_blks = len >> inode->i_sb->s_blocksize_bits; inode 3213 fs/ext4/extents.c down_write(&EXT4_I(inode)->i_data_sem); inode 3214 fs/ext4/extents.c error = ext4_ext_walk_space(inode, start_blk, len_blks, inode 3216 fs/ext4/extents.c up_write(&EXT4_I(inode)->i_data_sem); inode 38 fs/ext4/file.c (atomic_read(&inode->i_writecount) == 1)) inode 40 fs/ext4/file.c down_write(&EXT4_I(inode)->i_data_sem); inode 41 fs/ext4/file.c ext4_discard_preallocations(inode); inode 42 fs/ext4/file.c up_write(&EXT4_I(inode)->i_data_sem); inode 44 fs/ext4/file.c if (is_dx(inode) && filp->private_data) inode 55 fs/ext4/file.c struct inode *inode = file->f_path.dentry->d_inode; inode 64 fs/ext4/file.c if (!(EXT4_I(inode)->i_flags & EXT4_EXTENTS_FL)) { inode 65 fs/ext4/file.c struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); inode 99 fs/ext4/file.c if (!ext4_should_journal_data(inode)) inode 109 fs/ext4/file.c if (!IS_SYNC(inode)) inode 120 fs/ext4/file.c err = ext4_force_commit(inode->i_sb); inode 49 fs/ext4/fsync.c struct inode *inode = dentry->d_inode; inode 50 fs/ext4/fsync.c journal_t *journal = EXT4_SB(inode->i_sb)->s_journal; inode 56 fs/ext4/fsync.c inode->i_sb->s_id, datasync, inode->i_ino, inode 77 fs/ext4/fsync.c if (ext4_should_journal_data(inode)) { inode 78 fs/ext4/fsync.c ret = ext4_force_commit(inode->i_sb); inode 82 fs/ext4/fsync.c if (datasync && !(inode->i_state & I_DIRTY_DATASYNC)) inode 89 fs/ext4/fsync.c if (inode->i_state & (I_DIRTY_SYNC|I_DIRTY_DATASYNC)) { inode 94 fs/ext4/fsync.c ret = sync_inode(inode, &wbc); inode 96 fs/ext4/fsync.c blkdev_issue_flush(inode->i_sb->s_bdev, NULL); inode 161 fs/ext4/ialloc.c struct super_block *sb = inode->i_sb; inode 174 fs/ext4/ialloc.c if (atomic_read(&inode->i_count) > 1) { inode 176 fs/ext4/ialloc.c atomic_read(&inode->i_count)); inode 179 fs/ext4/ialloc.c if (inode->i_nlink) { inode 181 fs/ext4/ialloc.c inode->i_nlink); inode 191 fs/ext4/ialloc.c ino = inode->i_ino; inode 198 fs/ext4/ialloc.c DQUOT_INIT(inode); inode 199 fs/ext4/ialloc.c ext4_xattr_delete_inode(handle, inode); inode 200 fs/ext4/ialloc.c DQUOT_FREE_INODE(inode); inode 201 fs/ext4/ialloc.c DQUOT_DROP(inode); inode 203 fs/ext4/ialloc.c is_directory = S_ISDIR(inode->i_mode); inode 206 fs/ext4/ialloc.c clear_inode(inode); inode 582 fs/ext4/ialloc.c struct inode *ext4_new_inode(handle_t *handle, struct inode *dir, int mode) inode 589 fs/ext4/ialloc.c struct inode *inode; inode 595 fs/ext4/ialloc.c struct inode *ret; inode 605 fs/ext4/ialloc.c inode = new_inode(sb); inode 606 fs/ext4/ialloc.c if (!inode) inode 608 fs/ext4/ialloc.c ei = EXT4_I(inode); inode 788 fs/ext4/ialloc.c inode->i_uid = current->fsuid; inode 790 fs/ext4/ialloc.c inode->i_gid = dir->i_gid; inode 792 fs/ext4/ialloc.c inode->i_gid = dir->i_gid; inode 796 fs/ext4/ialloc.c inode->i_gid = current->fsgid; inode 797 fs/ext4/ialloc.c inode->i_mode = mode; inode 799 fs/ext4/ialloc.c inode->i_ino = ino + group * EXT4_INODES_PER_GROUP(sb); inode 801 fs/ext4/ialloc.c inode->i_blocks = 0; inode 802 fs/ext4/ialloc.c inode->i_mtime = inode->i_atime = inode->i_ctime = ei->i_crtime = inode 803 fs/ext4/ialloc.c ext4_current_time(inode); inode 824 fs/ext4/ialloc.c ext4_set_inode_flags(inode); inode 825 fs/ext4/ialloc.c if (IS_DIRSYNC(inode)) inode 827 fs/ext4/ialloc.c insert_inode_hash(inode); inode 829 fs/ext4/ialloc.c inode->i_generation = sbi->s_next_generation++; inode 836 fs/ext4/ialloc.c ret = inode; inode 837 fs/ext4/ialloc.c if (DQUOT_ALLOC_INODE(inode)) { inode 842 fs/ext4/ialloc.c err = ext4_init_acl(handle, inode, dir); inode 846 fs/ext4/ialloc.c err = ext4_init_security(handle, inode, dir); inode 853 fs/ext4/ialloc.c EXT4_I(inode)->i_flags |= EXT4_EXTENTS_FL; inode 854 fs/ext4/ialloc.c ext4_ext_tree_init(handle, inode); inode 858 fs/ext4/ialloc.c err = ext4_mark_inode_dirty(handle, inode); inode 864 fs/ext4/ialloc.c ext4_debug("allocating inode %lu\n", inode->i_ino); inode 869 fs/ext4/ialloc.c iput(inode); inode 876 fs/ext4/ialloc.c DQUOT_FREE_INODE(inode); inode 879 fs/ext4/ialloc.c DQUOT_DROP(inode); inode 880 fs/ext4/ialloc.c inode->i_flags |= S_NOQUOTA; inode 881 fs/ext4/ialloc.c inode->i_nlink = 0; inode 882 fs/ext4/ialloc.c iput(inode); inode 888 fs/ext4/ialloc.c struct inode *ext4_orphan_get(struct super_block *sb, unsigned long ino) inode 894 fs/ext4/ialloc.c struct inode *inode = NULL; inode 920 fs/ext4/ialloc.c inode = ext4_iget(sb, ino); inode 921 fs/ext4/ialloc.c if (IS_ERR(inode)) inode 929 fs/ext4/ialloc.c if (inode->i_nlink && !ext4_can_truncate(inode)) inode 932 fs/ext4/ialloc.c if (NEXT_ORPHAN(inode) > max_ino) inode 935 fs/ext4/ialloc.c return inode; inode 938 fs/ext4/ialloc.c err = PTR_ERR(inode); inode 939 fs/ext4/ialloc.c inode = NULL; inode 946 fs/ext4/ialloc.c printk(KERN_NOTICE "inode=%p\n", inode); inode 947 fs/ext4/ialloc.c if (inode) { inode 949 fs/ext4/ialloc.c is_bad_inode(inode)); inode 951 fs/ext4/ialloc.c NEXT_ORPHAN(inode)); inode 953 fs/ext4/ialloc.c printk(KERN_NOTICE "i_nlink=%u\n", inode->i_nlink); inode 955 fs/ext4/ialloc.c if (inode->i_nlink == 0) inode 956 fs/ext4/ialloc.c inode->i_blocks = 0; inode 957 fs/ext4/ialloc.c iput(inode); inode 49 fs/ext4/inode.c return jbd2_journal_begin_ordered_truncate(&EXT4_I(inode)->jinode, inode 60 fs/ext4/inode.c int ea_blocks = EXT4_I(inode)->i_file_acl ? inode 61 fs/ext4/inode.c (inode->i_sb->s_blocksize >> 9) : 0; inode 63 fs/ext4/inode.c return (S_ISLNK(inode->i_mode) && inode->i_blocks - ea_blocks == 0); inode 86 fs/ext4/inode.c bh, is_metadata, inode->i_mode, inode 87 fs/ext4/inode.c test_opt(inode->i_sb, DATA_FLAGS)); inode 94 fs/ext4/inode.c if (test_opt(inode->i_sb, DATA_FLAGS) == EXT4_MOUNT_JOURNAL_DATA || inode 95 fs/ext4/inode.c (!is_metadata && !ext4_should_journal_data(inode))) { inode 109 fs/ext4/inode.c ext4_abort(inode->i_sb, __func__, inode 123 fs/ext4/inode.c needed = inode->i_blocks >> (inode->i_sb->s_blocksize_bits - 9); inode 139 fs/ext4/inode.c return EXT4_DATA_TRANS_BLOCKS(inode->i_sb) + needed; inode 156 fs/ext4/inode.c result = ext4_journal_start(inode, blocks_for_truncate(inode)); inode 160 fs/ext4/inode.c ext4_std_error(inode->i_sb, PTR_ERR(result)); inode 174 fs/ext4/inode.c if (!ext4_journal_extend(handle, blocks_for_truncate(inode))) inode 187 fs/ext4/inode.c return ext4_journal_restart(handle, blocks_for_truncate(inode)); inode 198 fs/ext4/inode.c if (ext4_should_order_data(inode)) inode 199 fs/ext4/inode.c ext4_begin_ordered_truncate(inode, 0); inode 200 fs/ext4/inode.c truncate_inode_pages(&inode->i_data, 0); inode 202 fs/ext4/inode.c if (is_bad_inode(inode)) inode 205 fs/ext4/inode.c handle = ext4_journal_start(inode, blocks_for_truncate(inode)+3); inode 207 fs/ext4/inode.c ext4_std_error(inode->i_sb, PTR_ERR(handle)); inode 213 fs/ext4/inode.c ext4_orphan_del(NULL, inode); inode 217 fs/ext4/inode.c if (IS_SYNC(inode)) inode 219 fs/ext4/inode.c inode->i_size = 0; inode 220 fs/ext4/inode.c err = ext4_mark_inode_dirty(handle, inode); inode 222 fs/ext4/inode.c ext4_warning(inode->i_sb, __func__, inode 226 fs/ext4/inode.c if (inode->i_blocks) inode 227 fs/ext4/inode.c ext4_truncate(inode); inode 240 fs/ext4/inode.c ext4_warning(inode->i_sb, __func__, inode 256 fs/ext4/inode.c ext4_orphan_del(handle, inode); inode 257 fs/ext4/inode.c EXT4_I(inode)->i_dtime = get_seconds(); inode 266 fs/ext4/inode.c if (ext4_mark_inode_dirty(handle, inode)) inode 268 fs/ext4/inode.c clear_inode(inode); inode 270 fs/ext4/inode.c ext4_free_inode(handle, inode); inode 274 fs/ext4/inode.c clear_inode(inode); /* We must guarantee clearing of inode... */ inode 324 fs/ext4/inode.c int ptrs = EXT4_ADDR_PER_BLOCK(inode->i_sb); inode 325 fs/ext4/inode.c int ptrs_bits = EXT4_ADDR_PER_BLOCK_BITS(inode->i_sb); inode 333 fs/ext4/inode.c ext4_warning(inode->i_sb, "ext4_block_to_path", "block < 0"); inode 353 fs/ext4/inode.c ext4_warning(inode->i_sb, "ext4_block_to_path", inode 397 fs/ext4/inode.c struct super_block *sb = inode->i_sb; inode 403 fs/ext4/inode.c add_chain(chain, NULL, EXT4_I(inode)->i_data + *offsets); inode 445 fs/ext4/inode.c struct ext4_inode_info *ei = EXT4_I(inode); inode 466 fs/ext4/inode.c bg_start = ext4_group_first_block_no(inode->i_sb, ei->i_block_group); inode 467 fs/ext4/inode.c last_block = ext4_blocks_count(EXT4_SB(inode->i_sb)->s_es) - 1; inode 469 fs/ext4/inode.c if (bg_start + EXT4_BLOCKS_PER_GROUP(inode->i_sb) <= last_block) inode 471 fs/ext4/inode.c (EXT4_BLOCKS_PER_GROUP(inode->i_sb) / 16); inode 493 fs/ext4/inode.c return ext4_find_near(inode, partial); inode 568 fs/ext4/inode.c current_block = ext4_new_meta_blocks(handle, inode, inode 599 fs/ext4/inode.c current_block = ext4_new_blocks(handle, inode, iblock, inode 625 fs/ext4/inode.c ext4_free_blocks(handle, inode, new_blocks[i], 1, 0); inode 659 fs/ext4/inode.c int blocksize = inode->i_sb->s_blocksize; inode 667 fs/ext4/inode.c num = ext4_alloc_blocks(handle, inode, iblock, goal, indirect_blks, inode 682 fs/ext4/inode.c bh = sb_getblk(inode->i_sb, new_blocks[n-1]); inode 725 fs/ext4/inode.c ext4_free_blocks(handle, inode, new_blocks[i], 1, 0); inode 727 fs/ext4/inode.c ext4_free_blocks(handle, inode, new_blocks[i], num, 0); inode 780 fs/ext4/inode.c inode->i_ctime = ext4_current_time(inode); inode 781 fs/ext4/inode.c ext4_mark_inode_dirty(handle, inode); inode 811 fs/ext4/inode.c ext4_free_blocks(handle, inode, inode 814 fs/ext4/inode.c ext4_free_blocks(handle, inode, le32_to_cpu(where[num].key), blks, 0); inode 855 fs/ext4/inode.c struct ext4_inode_info *ei = EXT4_I(inode); inode 861 fs/ext4/inode.c J_ASSERT(!(EXT4_I(inode)->i_flags & EXT4_EXTENTS_FL)); inode 863 fs/ext4/inode.c depth = ext4_block_to_path(inode, iblock, offsets, inode 869 fs/ext4/inode.c partial = ext4_get_branch(inode, depth, offsets, chain, &err); inode 897 fs/ext4/inode.c goal = ext4_find_goal(inode, iblock, partial); inode 911 fs/ext4/inode.c err = ext4_alloc_branch(handle, inode, iblock, indirect_blks, inode 923 fs/ext4/inode.c err = ext4_splice_branch(handle, inode, iblock, inode 931 fs/ext4/inode.c disksize = ((loff_t) iblock + count) << inode->i_blkbits; inode 932 fs/ext4/inode.c if (disksize > i_size_read(inode)) inode 933 fs/ext4/inode.c disksize = i_size_read(inode); inode 942 fs/ext4/inode.c map_bh(bh_result, inode->i_sb, le32_to_cpu(chain[depth-1].key)); inode 965 fs/ext4/inode.c int icap = EXT4_ADDR_PER_BLOCK(inode->i_sb); inode 987 fs/ext4/inode.c if (EXT4_I(inode)->i_flags & EXT4_EXTENTS_FL) inode 988 fs/ext4/inode.c return ext4_ext_calc_metadata_amount(inode, blocks); inode 990 fs/ext4/inode.c return ext4_indirect_calc_metadata_amount(inode, blocks); inode 995 fs/ext4/inode.c struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); inode 998 fs/ext4/inode.c spin_lock(&EXT4_I(inode)->i_block_reservation_lock); inode 1000 fs/ext4/inode.c total = EXT4_I(inode)->i_reserved_data_blocks - used; inode 1001 fs/ext4/inode.c mdb = ext4_calc_metadata_amount(inode, total); inode 1004 fs/ext4/inode.c BUG_ON(mdb > EXT4_I(inode)->i_reserved_meta_blocks); inode 1005 fs/ext4/inode.c mdb_free = EXT4_I(inode)->i_reserved_meta_blocks - mdb; inode 1009 fs/ext4/inode.c mdb_free -= EXT4_I(inode)->i_allocated_meta_blocks; inode 1013 fs/ext4/inode.c EXT4_I(inode)->i_allocated_meta_blocks = 0; inode 1014 fs/ext4/inode.c EXT4_I(inode)->i_reserved_meta_blocks = mdb; inode 1018 fs/ext4/inode.c BUG_ON(used > EXT4_I(inode)->i_reserved_data_blocks); inode 1019 fs/ext4/inode.c EXT4_I(inode)->i_reserved_data_blocks -= used; inode 1021 fs/ext4/inode.c spin_unlock(&EXT4_I(inode)->i_block_reservation_lock); inode 1058 fs/ext4/inode.c down_read((&EXT4_I(inode)->i_data_sem)); inode 1059 fs/ext4/inode.c if (EXT4_I(inode)->i_flags & EXT4_EXTENTS_FL) { inode 1060 fs/ext4/inode.c retval = ext4_ext_get_blocks(handle, inode, block, max_blocks, inode 1064 fs/ext4/inode.c inode, block, max_blocks, bh, 0, 0); inode 1066 fs/ext4/inode.c up_read((&EXT4_I(inode)->i_data_sem)); inode 1088 fs/ext4/inode.c down_write((&EXT4_I(inode)->i_data_sem)); inode 1097 fs/ext4/inode.c EXT4_I(inode)->i_delalloc_reserved_flag = 1; inode 1102 fs/ext4/inode.c if (EXT4_I(inode)->i_flags & EXT4_EXTENTS_FL) { inode 1103 fs/ext4/inode.c retval = ext4_ext_get_blocks(handle, inode, block, max_blocks, inode 1106 fs/ext4/inode.c retval = ext4_get_blocks_handle(handle, inode, block, inode 1115 fs/ext4/inode.c EXT4_I(inode)->i_flags = EXT4_I(inode)->i_flags & inode 1121 fs/ext4/inode.c EXT4_I(inode)->i_delalloc_reserved_flag = 0; inode 1128 fs/ext4/inode.c ext4_da_update_reserve_space(inode, retval); inode 1131 fs/ext4/inode.c up_write((&EXT4_I(inode)->i_data_sem)); inode 1143 fs/ext4/inode.c unsigned max_blocks = bh_result->b_size >> inode->i_blkbits; inode 1150 fs/ext4/inode.c dio_credits = ext4_chunk_trans_blocks(inode, max_blocks); inode 1151 fs/ext4/inode.c handle = ext4_journal_start(inode, dio_credits); inode 1159 fs/ext4/inode.c ret = ext4_get_blocks_wrap(handle, inode, iblock, inode 1162 fs/ext4/inode.c bh_result->b_size = (ret << inode->i_blkbits); inode 1185 fs/ext4/inode.c err = ext4_get_blocks_wrap(handle, inode, block, 1, inode 1199 fs/ext4/inode.c bh = sb_getblk(inode->i_sb, dummy.b_blocknr); inode 1219 fs/ext4/inode.c memset(bh->b_data, 0, inode->i_sb->s_blocksize); inode 1246 fs/ext4/inode.c bh = ext4_getblk(handle, inode, block, create, err); inode 1329 fs/ext4/inode.c struct inode *inode = mapping->host; inode 1330 fs/ext4/inode.c int ret, needed_blocks = ext4_writepage_trans_blocks(inode); inode 1342 fs/ext4/inode.c handle = ext4_journal_start(inode, needed_blocks); inode 1359 fs/ext4/inode.c if (!ret && ext4_should_journal_data(inode)) { inode 1373 fs/ext4/inode.c if (pos + len > inode->i_size) inode 1374 fs/ext4/inode.c vmtruncate(inode, inode->i_size); inode 1377 fs/ext4/inode.c if (ret == -ENOSPC && ext4_should_retry_alloc(inode->i_sb, &retries)) inode 1405 fs/ext4/inode.c struct inode *inode = mapping->host; inode 1408 fs/ext4/inode.c ret = ext4_jbd2_file_inode(handle, inode); inode 1414 fs/ext4/inode.c if (new_i_size > EXT4_I(inode)->i_disksize) { inode 1415 fs/ext4/inode.c ext4_update_i_disksize(inode, new_i_size); inode 1420 fs/ext4/inode.c ext4_mark_inode_dirty(handle, inode); inode 1442 fs/ext4/inode.c struct inode *inode = mapping->host; inode 1447 fs/ext4/inode.c if (new_i_size > EXT4_I(inode)->i_disksize) { inode 1448 fs/ext4/inode.c ext4_update_i_disksize(inode, new_i_size); inode 1453 fs/ext4/inode.c ext4_mark_inode_dirty(handle, inode); inode 1475 fs/ext4/inode.c struct inode *inode = mapping->host; inode 1495 fs/ext4/inode.c if (new_i_size > inode->i_size) inode 1496 fs/ext4/inode.c i_size_write(inode, pos+copied); inode 1497 fs/ext4/inode.c EXT4_I(inode)->i_state |= EXT4_STATE_JDATA; inode 1498 fs/ext4/inode.c if (new_i_size > EXT4_I(inode)->i_disksize) { inode 1499 fs/ext4/inode.c ext4_update_i_disksize(inode, new_i_size); inode 1500 fs/ext4/inode.c ret2 = ext4_mark_inode_dirty(handle, inode); inode 1517 fs/ext4/inode.c struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); inode 1526 fs/ext4/inode.c spin_lock(&EXT4_I(inode)->i_block_reservation_lock); inode 1527 fs/ext4/inode.c total = EXT4_I(inode)->i_reserved_data_blocks + nrblocks; inode 1528 fs/ext4/inode.c mdblocks = ext4_calc_metadata_amount(inode, total); inode 1529 fs/ext4/inode.c BUG_ON(mdblocks < EXT4_I(inode)->i_reserved_meta_blocks); inode 1531 fs/ext4/inode.c md_needed = mdblocks - EXT4_I(inode)->i_reserved_meta_blocks; inode 1535 fs/ext4/inode.c spin_unlock(&EXT4_I(inode)->i_block_reservation_lock); inode 1536 fs/ext4/inode.c if (ext4_should_retry_alloc(inode->i_sb, &retries)) { inode 1542 fs/ext4/inode.c EXT4_I(inode)->i_reserved_data_blocks += nrblocks; inode 1543 fs/ext4/inode.c EXT4_I(inode)->i_reserved_meta_blocks = mdblocks; inode 1545 fs/ext4/inode.c spin_unlock(&EXT4_I(inode)->i_block_reservation_lock); inode 1551 fs/ext4/inode.c struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); inode 1557 fs/ext4/inode.c spin_lock(&EXT4_I(inode)->i_block_reservation_lock); inode 1559 fs/ext4/inode.c if (!EXT4_I(inode)->i_reserved_data_blocks) { inode 1568 fs/ext4/inode.c "data blocks\n", to_free, inode->i_ino); inode 1569 fs/ext4/inode.c spin_unlock(&EXT4_I(inode)->i_block_reservation_lock); inode 1574 fs/ext4/inode.c total = EXT4_I(inode)->i_reserved_data_blocks - to_free; inode 1575 fs/ext4/inode.c mdb = ext4_calc_metadata_amount(inode, total); inode 1578 fs/ext4/inode.c BUG_ON(mdb > EXT4_I(inode)->i_reserved_meta_blocks); inode 1579 fs/ext4/inode.c mdb_free = EXT4_I(inode)->i_reserved_meta_blocks - mdb; inode 1587 fs/ext4/inode.c BUG_ON(to_free > EXT4_I(inode)->i_reserved_data_blocks); inode 1588 fs/ext4/inode.c EXT4_I(inode)->i_reserved_data_blocks -= to_free; inode 1590 fs/ext4/inode.c BUG_ON(mdb > EXT4_I(inode)->i_reserved_meta_blocks); inode 1591 fs/ext4/inode.c EXT4_I(inode)->i_reserved_meta_blocks = mdb; inode 1592 fs/ext4/inode.c spin_unlock(&EXT4_I(inode)->i_block_reservation_lock); inode 1621 fs/ext4/inode.c struct inode *inode; inode 1647 fs/ext4/inode.c struct address_space *mapping = mpd->inode->i_mapping; inode 1700 fs/ext4/inode.c struct inode *inode = mpd->inode; inode 1701 fs/ext4/inode.c struct address_space *mapping = inode->i_mapping; inode 1702 fs/ext4/inode.c int blocks = exbh->b_size >> inode->i_blkbits; inode 1709 fs/ext4/inode.c index = logical >> (PAGE_CACHE_SHIFT - inode->i_blkbits); inode 1710 fs/ext4/inode.c end = (logical + blocks - 1) >> (PAGE_CACHE_SHIFT - inode->i_blkbits); inode 1711 fs/ext4/inode.c cur_logical = index << (PAGE_CACHE_SHIFT - inode->i_blkbits); inode 1748 fs/ext4/inode.c bh->b_bdev = inode->i_sb->s_bdev; inode 1754 fs/ext4/inode.c bh->b_bdev = inode->i_sb->s_bdev; inode 1774 fs/ext4/inode.c struct block_device *bdev = inode->i_sb->s_bdev; inode 1777 fs/ext4/inode.c blocks = bh->b_size >> inode->i_blkbits; inode 1788 fs/ext4/inode.c struct inode *inode = mpd->inode; inode 1789 fs/ext4/inode.c struct address_space *mapping = inode->i_mapping; inode 1791 fs/ext4/inode.c index = logical >> (PAGE_CACHE_SHIFT - inode->i_blkbits); inode 1793 fs/ext4/inode.c (PAGE_CACHE_SHIFT - inode->i_blkbits); inode 1817 fs/ext4/inode.c struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); inode 1819 fs/ext4/inode.c ext4_count_free_blocks(inode->i_sb)); inode 1827 fs/ext4/inode.c EXT4_I(inode)->i_reserved_data_blocks); inode 1829 fs/ext4/inode.c EXT4_I(inode)->i_reserved_meta_blocks); inode 1864 fs/ext4/inode.c err = mpd->get_block(mpd->inode, next, &new, 1); inode 1876 fs/ext4/inode.c ext4_count_free_blocks(mpd->inode->i_sb)) { inode 1892 fs/ext4/inode.c __func__, mpd->inode->i_ino, inode 1894 fs/ext4/inode.c lbh->b_size >> mpd->inode->i_blkbits, err); inode 1898 fs/ext4/inode.c ext4_print_free_blocks(mpd->inode); inode 1902 fs/ext4/inode.c lbh->b_size >> mpd->inode->i_blkbits); inode 1908 fs/ext4/inode.c __unmap_underlying_blocks(mpd->inode, &new); inode 1938 fs/ext4/inode.c int nrblocks = lbh->b_size >> mpd->inode->i_blkbits; inode 1941 fs/ext4/inode.c if (!(EXT4_I(mpd->inode)->i_flags & EXT4_EXTENTS_FL)) { inode 1950 fs/ext4/inode.c } else if ((nrblocks + (b_size >> mpd->inode->i_blkbits)) > inode 1958 fs/ext4/inode.c mpd->inode->i_blkbits; inode 2005 fs/ext4/inode.c struct inode *inode = mpd->inode; inode 2055 fs/ext4/inode.c (PAGE_CACHE_SHIFT - inode->i_blkbits); inode 2148 fs/ext4/inode.c BUG_ON(bh_result->b_size != inode->i_sb->s_blocksize); inode 2155 fs/ext4/inode.c ret = ext4_get_blocks_wrap(NULL, inode, iblock, 1, bh_result, 0, 0, 0); inode 2162 fs/ext4/inode.c ret = ext4_da_reserve_space(inode, 1); inode 2167 fs/ext4/inode.c map_bh(bh_result, inode->i_sb, 0); inode 2171 fs/ext4/inode.c bh_result->b_size = (ret << inode->i_blkbits); inode 2182 fs/ext4/inode.c unsigned max_blocks = bh_result->b_size >> inode->i_blkbits; inode 2183 fs/ext4/inode.c loff_t disksize = EXT4_I(inode)->i_disksize; inode 2188 fs/ext4/inode.c ret = ext4_get_blocks_wrap(handle, inode, iblock, max_blocks, inode 2192 fs/ext4/inode.c bh_result->b_size = (ret << inode->i_blkbits); inode 2194 fs/ext4/inode.c if (ext4_should_order_data(inode)) { inode 2196 fs/ext4/inode.c retval = ext4_jbd2_file_inode(handle, inode); inode 2210 fs/ext4/inode.c disksize = ((loff_t) iblock + ret) << inode->i_blkbits; inode 2211 fs/ext4/inode.c if (disksize > i_size_read(inode)) inode 2212 fs/ext4/inode.c disksize = i_size_read(inode); inode 2213 fs/ext4/inode.c if (disksize > EXT4_I(inode)->i_disksize) { inode 2214 fs/ext4/inode.c ext4_update_i_disksize(inode, disksize); inode 2215 fs/ext4/inode.c ret = ext4_mark_inode_dirty(handle, inode); inode 2236 fs/ext4/inode.c unsigned max_blocks = bh_result->b_size >> inode->i_blkbits; inode 2242 fs/ext4/inode.c ret = ext4_get_blocks_wrap(NULL, inode, iblock, max_blocks, inode 2245 fs/ext4/inode.c bh_result->b_size = (ret << inode->i_blkbits); inode 2264 fs/ext4/inode.c struct inode *inode = page->mapping->host; inode 2266 fs/ext4/inode.c size = i_size_read(inode); inode 2325 fs/ext4/inode.c if (test_opt(inode->i_sb, NOBH) && ext4_should_writeback_data(inode)) inode 2345 fs/ext4/inode.c int max_blocks = EXT4_I(inode)->i_reserved_data_blocks; inode 2353 fs/ext4/inode.c if (!(inode->i_flags & EXT4_EXTENTS_FL) && inode 2357 fs/ext4/inode.c return ext4_chunk_trans_blocks(inode, max_blocks); inode 2366 fs/ext4/inode.c struct inode *inode = mapping->host; inode 2400 fs/ext4/inode.c mpd.inode = mapping->host; inode 2412 fs/ext4/inode.c BUG_ON(ext4_should_journal_data(inode)); inode 2413 fs/ext4/inode.c needed_blocks = ext4_da_writepages_trans_blocks(inode); inode 2416 fs/ext4/inode.c handle = ext4_journal_start(inode, needed_blocks); inode 2421 fs/ext4/inode.c wbc->nr_to_write, inode->i_ino, ret); inode 2505 fs/ext4/inode.c struct inode *inode = mapping->host; inode 2512 fs/ext4/inode.c if (ext4_nonda_switch(inode->i_sb)) { inode 2525 fs/ext4/inode.c handle = ext4_journal_start(inode, 1); inode 2550 fs/ext4/inode.c if (pos + len > inode->i_size) inode 2551 fs/ext4/inode.c vmtruncate(inode, inode->i_size); inode 2554 fs/ext4/inode.c if (ret == -ENOSPC && ext4_should_retry_alloc(inode->i_sb, &retries)) inode 2568 fs/ext4/inode.c struct inode *inode = page->mapping->host; inode 2573 fs/ext4/inode.c idx = offset >> inode->i_blkbits; inode 2588 fs/ext4/inode.c struct inode *inode = mapping->host; inode 2596 fs/ext4/inode.c if (ext4_should_order_data(inode)) { inode 2599 fs/ext4/inode.c } else if (ext4_should_writeback_data(inode)) { inode 2617 fs/ext4/inode.c if (new_i_size > EXT4_I(inode)->i_disksize) { inode 2619 fs/ext4/inode.c down_write(&EXT4_I(inode)->i_data_sem); inode 2620 fs/ext4/inode.c if (new_i_size > EXT4_I(inode)->i_disksize) { inode 2625 fs/ext4/inode.c if (ext4_should_order_data(inode)) inode 2627 fs/ext4/inode.c inode); inode 2629 fs/ext4/inode.c EXT4_I(inode)->i_disksize = new_i_size; inode 2631 fs/ext4/inode.c up_write(&EXT4_I(inode)->i_data_sem); inode 2636 fs/ext4/inode.c ext4_mark_inode_dirty(handle, inode); inode 2685 fs/ext4/inode.c struct inode *inode = mapping->host; inode 2690 fs/ext4/inode.c test_opt(inode->i_sb, DELALLOC)) { inode 2699 fs/ext4/inode.c if (EXT4_I(inode)->i_state & EXT4_STATE_JDATA) { inode 2718 fs/ext4/inode.c EXT4_I(inode)->i_state &= ~EXT4_STATE_JDATA; inode 2719 fs/ext4/inode.c journal = EXT4_JOURNAL(inode); inode 2799 fs/ext4/inode.c struct inode *inode = page->mapping->host; inode 2801 fs/ext4/inode.c if (test_opt(inode->i_sb, NOBH)) inode 2813 fs/ext4/inode.c struct inode *inode = page->mapping->host; inode 2814 fs/ext4/inode.c loff_t size = i_size_read(inode); inode 2849 fs/ext4/inode.c struct inode *inode = mapping->host; inode 2867 fs/ext4/inode.c handle = ext4_journal_start(inode, ext4_writepage_trans_blocks(inode)); inode 2886 fs/ext4/inode.c EXT4_I(inode)->i_state |= EXT4_STATE_JDATA; inode 2898 fs/ext4/inode.c struct inode *inode = page->mapping->host; inode 2899 fs/ext4/inode.c loff_t size = i_size_read(inode); inode 2997 fs/ext4/inode.c struct inode *inode = file->f_mapping->host; inode 2998 fs/ext4/inode.c struct ext4_inode_info *ei = EXT4_I(inode); inode 3007 fs/ext4/inode.c if (final_size > inode->i_size) { inode 3009 fs/ext4/inode.c handle = ext4_journal_start(inode, 2); inode 3014 fs/ext4/inode.c ret = ext4_orphan_add(handle, inode); inode 3020 fs/ext4/inode.c ei->i_disksize = inode->i_size; inode 3025 fs/ext4/inode.c ret = blockdev_direct_IO(rw, iocb, inode, inode->i_sb->s_bdev, iov, inode 3033 fs/ext4/inode.c handle = ext4_journal_start(inode, 2); inode 3041 fs/ext4/inode.c if (inode->i_nlink) inode 3042 fs/ext4/inode.c ext4_orphan_del(handle, inode); inode 3045 fs/ext4/inode.c if (end > inode->i_size) { inode 3047 fs/ext4/inode.c i_size_write(inode, end); inode 3055 fs/ext4/inode.c ext4_mark_inode_dirty(handle, inode); inode 3147 fs/ext4/inode.c if (ext4_should_order_data(inode) && inode 3148 fs/ext4/inode.c test_opt(inode->i_sb, DELALLOC)) inode 3149 fs/ext4/inode.c inode->i_mapping->a_ops = &ext4_da_aops; inode 3150 fs/ext4/inode.c else if (ext4_should_order_data(inode)) inode 3151 fs/ext4/inode.c inode->i_mapping->a_ops = &ext4_ordered_aops; inode 3152 fs/ext4/inode.c else if (ext4_should_writeback_data(inode) && inode 3153 fs/ext4/inode.c test_opt(inode->i_sb, DELALLOC)) inode 3154 fs/ext4/inode.c inode->i_mapping->a_ops = &ext4_da_aops; inode 3155 fs/ext4/inode.c else if (ext4_should_writeback_data(inode)) inode 3156 fs/ext4/inode.c inode->i_mapping->a_ops = &ext4_writeback_aops; inode 3158 fs/ext4/inode.c inode->i_mapping->a_ops = &ext4_journalled_aops; inode 3174 fs/ext4/inode.c struct inode *inode = mapping->host; inode 3183 fs/ext4/inode.c blocksize = inode->i_sb->s_blocksize; inode 3185 fs/ext4/inode.c iblock = index << (PAGE_CACHE_SHIFT - inode->i_sb->s_blocksize_bits); inode 3191 fs/ext4/inode.c if (!page_has_buffers(page) && test_opt(inode->i_sb, NOBH) && inode 3192 fs/ext4/inode.c ext4_should_writeback_data(inode) && PageUptodate(page)) { inode 3218 fs/ext4/inode.c ext4_get_block(inode, iblock, bh, 0); inode 3239 fs/ext4/inode.c if (ext4_should_journal_data(inode)) { inode 3251 fs/ext4/inode.c if (ext4_should_journal_data(inode)) { inode 3254 fs/ext4/inode.c if (ext4_should_order_data(inode)) inode 3255 fs/ext4/inode.c err = ext4_jbd2_file_inode(handle, inode); inode 3323 fs/ext4/inode.c partial = ext4_get_branch(inode, k, offsets, chain, &err); inode 3374 fs/ext4/inode.c if (try_to_extend_transaction(handle, inode)) { inode 3379 fs/ext4/inode.c ext4_mark_inode_dirty(handle, inode); inode 3380 fs/ext4/inode.c ext4_journal_test_restart(handle, inode); inode 3401 fs/ext4/inode.c tbh = sb_find_get_block(inode->i_sb, nr); inode 3402 fs/ext4/inode.c ext4_forget(handle, 0, inode, tbh, nr); inode 3406 fs/ext4/inode.c ext4_free_blocks(handle, inode, block_to_free, count, 0); inode 3462 fs/ext4/inode.c ext4_clear_blocks(handle, inode, this_bh, inode 3473 fs/ext4/inode.c ext4_clear_blocks(handle, inode, this_bh, block_to_free, inode 3488 fs/ext4/inode.c ext4_error(inode->i_sb, __func__, inode 3491 fs/ext4/inode.c inode->i_ino, inode 3521 fs/ext4/inode.c int addr_per_block = EXT4_ADDR_PER_BLOCK(inode->i_sb); inode 3529 fs/ext4/inode.c bh = sb_bread(inode->i_sb, nr); inode 3536 fs/ext4/inode.c ext4_error(inode->i_sb, "ext4_free_branches", inode 3538 fs/ext4/inode.c inode->i_ino, nr); inode 3544 fs/ext4/inode.c ext4_free_branches(handle, inode, bh, inode 3568 fs/ext4/inode.c ext4_forget(handle, 1, inode, bh, bh->b_blocknr); inode 3588 fs/ext4/inode.c if (try_to_extend_transaction(handle, inode)) { inode 3589 fs/ext4/inode.c ext4_mark_inode_dirty(handle, inode); inode 3590 fs/ext4/inode.c ext4_journal_test_restart(handle, inode); inode 3593 fs/ext4/inode.c ext4_free_blocks(handle, inode, nr, 1, 1); inode 3614 fs/ext4/inode.c ext4_free_data(handle, inode, parent_bh, first, last); inode 3620 fs/ext4/inode.c if (IS_APPEND(inode) || IS_IMMUTABLE(inode)) inode 3622 fs/ext4/inode.c if (S_ISREG(inode->i_mode)) inode 3624 fs/ext4/inode.c if (S_ISDIR(inode->i_mode)) inode 3626 fs/ext4/inode.c if (S_ISLNK(inode->i_mode)) inode 3627 fs/ext4/inode.c return !ext4_inode_is_fast_symlink(inode); inode 3662 fs/ext4/inode.c struct ext4_inode_info *ei = EXT4_I(inode); inode 3664 fs/ext4/inode.c int addr_per_block = EXT4_ADDR_PER_BLOCK(inode->i_sb); inode 3665 fs/ext4/inode.c struct address_space *mapping = inode->i_mapping; inode 3672 fs/ext4/inode.c unsigned blocksize = inode->i_sb->s_blocksize; inode 3674 fs/ext4/inode.c if (!ext4_can_truncate(inode)) inode 3677 fs/ext4/inode.c if (EXT4_I(inode)->i_flags & EXT4_EXTENTS_FL) { inode 3678 fs/ext4/inode.c ext4_ext_truncate(inode); inode 3682 fs/ext4/inode.c handle = start_transaction(inode); inode 3686 fs/ext4/inode.c last_block = (inode->i_size + blocksize-1) inode 3687 fs/ext4/inode.c >> EXT4_BLOCK_SIZE_BITS(inode->i_sb); inode 3689 fs/ext4/inode.c if (inode->i_size & (blocksize - 1)) inode 3690 fs/ext4/inode.c if (ext4_block_truncate_page(handle, mapping, inode->i_size)) inode 3693 fs/ext4/inode.c n = ext4_block_to_path(inode, last_block, offsets, NULL); inode 3706 fs/ext4/inode.c if (ext4_orphan_add(handle, inode)) inode 3715 fs/ext4/inode.c ext4_discard_preallocations(inode); inode 3724 fs/ext4/inode.c ei->i_disksize = inode->i_size; inode 3727 fs/ext4/inode.c ext4_free_data(handle, inode, NULL, i_data+offsets[0], inode 3732 fs/ext4/inode.c partial = ext4_find_shared(inode, n, offsets, chain, &nr); inode 3737 fs/ext4/inode.c ext4_free_branches(handle, inode, NULL, inode 3747 fs/ext4/inode.c ext4_free_branches(handle, inode, partial->bh, inode 3754 fs/ext4/inode.c ext4_free_branches(handle, inode, partial->bh, partial->p + 1, inode 3767 fs/ext4/inode.c ext4_free_branches(handle, inode, NULL, &nr, &nr+1, 1); inode 3773 fs/ext4/inode.c ext4_free_branches(handle, inode, NULL, &nr, &nr+1, 2); inode 3779 fs/ext4/inode.c ext4_free_branches(handle, inode, NULL, &nr, &nr+1, 3); inode 3787 fs/ext4/inode.c inode->i_mtime = inode->i_ctime = ext4_current_time(inode); inode 3788 fs/ext4/inode.c ext4_mark_inode_dirty(handle, inode); inode 3794 fs/ext4/inode.c if (IS_SYNC(inode)) inode 3804 fs/ext4/inode.c if (inode->i_nlink) inode 3805 fs/ext4/inode.c ext4_orphan_del(handle, inode); inode 3821 fs/ext4/inode.c struct super_block *sb = inode->i_sb; inode 3826 fs/ext4/inode.c if (!ext4_valid_inum(sb, inode->i_ino)) inode 3829 fs/ext4/inode.c iloc->block_group = (inode->i_ino - 1) / EXT4_INODES_PER_GROUP(sb); inode 3838 fs/ext4/inode.c inode_offset = ((inode->i_ino - 1) % inode 3847 fs/ext4/inode.c inode->i_ino, block); inode 3952 fs/ext4/inode.c "block=%llu", inode->i_ino, block); inode 3965 fs/ext4/inode.c return __ext4_get_inode_loc(inode, iloc, inode 3966 fs/ext4/inode.c !(EXT4_I(inode)->i_state & EXT4_STATE_XATTR)); inode 3971 fs/ext4/inode.c unsigned int flags = EXT4_I(inode)->i_flags; inode 3973 fs/ext4/inode.c inode->i_flags &= ~(S_SYNC|S_APPEND|S_IMMUTABLE|S_NOATIME|S_DIRSYNC); inode 3975 fs/ext4/inode.c inode->i_flags |= S_SYNC; inode 3977 fs/ext4/inode.c inode->i_flags |= S_APPEND; inode 3979 fs/ext4/inode.c inode->i_flags |= S_IMMUTABLE; inode 3981 fs/ext4/inode.c inode->i_flags |= S_NOATIME; inode 3983 fs/ext4/inode.c inode->i_flags |= S_DIRSYNC; inode 4008 fs/ext4/inode.c struct inode *inode = &(ei->vfs_inode); inode 4009 fs/ext4/inode.c struct super_block *sb = inode->i_sb; inode 4018 fs/ext4/inode.c return i_blocks << (inode->i_blkbits - 9); inode 4027 fs/ext4/inode.c struct inode *ext4_iget(struct super_block *sb, unsigned long ino) inode 4033 fs/ext4/inode.c struct inode *inode; inode 4037 fs/ext4/inode.c inode = iget_locked(sb, ino); inode 4038 fs/ext4/inode.c if (!inode) inode 4040 fs/ext4/inode.c if (!(inode->i_state & I_NEW)) inode 4041 fs/ext4/inode.c return inode; inode 4043 fs/ext4/inode.c ei = EXT4_I(inode); inode 4049 fs/ext4/inode.c ret = __ext4_get_inode_loc(inode, &iloc, 0); inode 4054 fs/ext4/inode.c inode->i_mode = le16_to_cpu(raw_inode->i_mode); inode 4055 fs/ext4/inode.c inode->i_uid = (uid_t)le16_to_cpu(raw_inode->i_uid_low); inode 4056 fs/ext4/inode.c inode->i_gid = (gid_t)le16_to_cpu(raw_inode->i_gid_low); inode 4057 fs/ext4/inode.c if (!(test_opt(inode->i_sb, NO_UID32))) { inode 4058 fs/ext4/inode.c inode->i_uid |= le16_to_cpu(raw_inode->i_uid_high) << 16; inode 4059 fs/ext4/inode.c inode->i_gid |= le16_to_cpu(raw_inode->i_gid_high) << 16; inode 4061 fs/ext4/inode.c inode->i_nlink = le16_to_cpu(raw_inode->i_links_count); inode 4071 fs/ext4/inode.c if (inode->i_nlink == 0) { inode 4072 fs/ext4/inode.c if (inode->i_mode == 0 || inode 4073 fs/ext4/inode.c !(EXT4_SB(inode->i_sb)->s_mount_state & EXT4_ORPHAN_FS)) { inode 4085 fs/ext4/inode.c inode->i_blocks = ext4_inode_blocks(raw_inode, ei); inode 4087 fs/ext4/inode.c if (EXT4_SB(inode->i_sb)->s_es->s_creator_os != inode 4092 fs/ext4/inode.c inode->i_size = ext4_isize(raw_inode); inode 4093 fs/ext4/inode.c ei->i_disksize = inode->i_size; inode 4094 fs/ext4/inode.c inode->i_generation = le32_to_cpu(raw_inode->i_generation); inode 4104 fs/ext4/inode.c if (EXT4_INODE_SIZE(inode->i_sb) > EXT4_GOOD_OLD_INODE_SIZE) { inode 4107 fs/ext4/inode.c EXT4_INODE_SIZE(inode->i_sb)) { inode 4126 fs/ext4/inode.c EXT4_INODE_GET_XTIME(i_ctime, inode, raw_inode); inode 4127 fs/ext4/inode.c EXT4_INODE_GET_XTIME(i_mtime, inode, raw_inode); inode 4128 fs/ext4/inode.c EXT4_INODE_GET_XTIME(i_atime, inode, raw_inode); inode 4131 fs/ext4/inode.c inode->i_version = le32_to_cpu(raw_inode->i_disk_version); inode 4132 fs/ext4/inode.c if (EXT4_INODE_SIZE(inode->i_sb) > EXT4_GOOD_OLD_INODE_SIZE) { inode 4134 fs/ext4/inode.c inode->i_version |= inode 4138 fs/ext4/inode.c if (S_ISREG(inode->i_mode)) { inode 4139 fs/ext4/inode.c inode->i_op = &ext4_file_inode_operations; inode 4140 fs/ext4/inode.c inode->i_fop = &ext4_file_operations; inode 4141 fs/ext4/inode.c ext4_set_aops(inode); inode 4142 fs/ext4/inode.c } else if (S_ISDIR(inode->i_mode)) { inode 4143 fs/ext4/inode.c inode->i_op = &ext4_dir_inode_operations; inode 4144 fs/ext4/inode.c inode->i_fop = &ext4_dir_operations; inode 4145 fs/ext4/inode.c } else if (S_ISLNK(inode->i_mode)) { inode 4146 fs/ext4/inode.c if (ext4_inode_is_fast_symlink(inode)) inode 4147 fs/ext4/inode.c inode->i_op = &ext4_fast_symlink_inode_operations; inode 4149 fs/ext4/inode.c inode->i_op = &ext4_symlink_inode_operations; inode 4150 fs/ext4/inode.c ext4_set_aops(inode); inode 4153 fs/ext4/inode.c inode->i_op = &ext4_special_inode_operations; inode 4155 fs/ext4/inode.c init_special_inode(inode, inode->i_mode, inode 4158 fs/ext4/inode.c init_special_inode(inode, inode->i_mode, inode 4162 fs/ext4/inode.c ext4_set_inode_flags(inode); inode 4163 fs/ext4/inode.c unlock_new_inode(inode); inode 4164 fs/ext4/inode.c return inode; inode 4167 fs/ext4/inode.c iget_failed(inode); inode 4175 fs/ext4/inode.c struct inode *inode = &(ei->vfs_inode); inode 4176 fs/ext4/inode.c u64 i_blocks = inode->i_blocks; inode 4177 fs/ext4/inode.c struct super_block *sb = inode->i_sb; inode 4212 fs/ext4/inode.c i_blocks = i_blocks >> (inode->i_blkbits - 9); inode 4232 fs/ext4/inode.c struct ext4_inode_info *ei = EXT4_I(inode); inode 4239 fs/ext4/inode.c memset(raw_inode, 0, EXT4_SB(inode->i_sb)->s_inode_size); inode 4242 fs/ext4/inode.c raw_inode->i_mode = cpu_to_le16(inode->i_mode); inode 4243 fs/ext4/inode.c if (!(test_opt(inode->i_sb, NO_UID32))) { inode 4244 fs/ext4/inode.c raw_inode->i_uid_low = cpu_to_le16(low_16_bits(inode->i_uid)); inode 4245 fs/ext4/inode.c raw_inode->i_gid_low = cpu_to_le16(low_16_bits(inode->i_gid)); inode 4252 fs/ext4/inode.c cpu_to_le16(high_16_bits(inode->i_uid)); inode 4254 fs/ext4/inode.c cpu_to_le16(high_16_bits(inode->i_gid)); inode 4261 fs/ext4/inode.c cpu_to_le16(fs_high2lowuid(inode->i_uid)); inode 4263 fs/ext4/inode.c cpu_to_le16(fs_high2lowgid(inode->i_gid)); inode 4267 fs/ext4/inode.c raw_inode->i_links_count = cpu_to_le16(inode->i_nlink); inode 4269 fs/ext4/inode.c EXT4_INODE_SET_XTIME(i_ctime, inode, raw_inode); inode 4270 fs/ext4/inode.c EXT4_INODE_SET_XTIME(i_mtime, inode, raw_inode); inode 4271 fs/ext4/inode.c EXT4_INODE_SET_XTIME(i_atime, inode, raw_inode); inode 4279 fs/ext4/inode.c if (EXT4_SB(inode->i_sb)->s_es->s_creator_os != inode 4286 fs/ext4/inode.c struct super_block *sb = inode->i_sb; inode 4307 fs/ext4/inode.c raw_inode->i_generation = cpu_to_le32(inode->i_generation); inode 4308 fs/ext4/inode.c if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) { inode 4309 fs/ext4/inode.c if (old_valid_dev(inode->i_rdev)) { inode 4311 fs/ext4/inode.c cpu_to_le32(old_encode_dev(inode->i_rdev)); inode 4316 fs/ext4/inode.c cpu_to_le32(new_encode_dev(inode->i_rdev)); inode 4322 fs/ext4/inode.c raw_inode->i_disk_version = cpu_to_le32(inode->i_version); inode 4326 fs/ext4/inode.c cpu_to_le32(inode->i_version >> 32); inode 4339 fs/ext4/inode.c ext4_std_error(inode->i_sb, err); inode 4392 fs/ext4/inode.c return ext4_force_commit(inode->i_sb); inode 4421 fs/ext4/inode.c struct inode *inode = dentry->d_inode; inode 4425 fs/ext4/inode.c error = inode_change_ok(inode, attr); inode 4429 fs/ext4/inode.c if ((ia_valid & ATTR_UID && attr->ia_uid != inode->i_uid) || inode 4430 fs/ext4/inode.c (ia_valid & ATTR_GID && attr->ia_gid != inode->i_gid)) { inode 4435 fs/ext4/inode.c handle = ext4_journal_start(inode, 2*(EXT4_QUOTA_INIT_BLOCKS(inode->i_sb)+ inode 4436 fs/ext4/inode.c EXT4_QUOTA_DEL_BLOCKS(inode->i_sb))+3); inode 4441 fs/ext4/inode.c error = DQUOT_TRANSFER(inode, attr) ? -EDQUOT : 0; inode 4449 fs/ext4/inode.c inode->i_uid = attr->ia_uid; inode 4451 fs/ext4/inode.c inode->i_gid = attr->ia_gid; inode 4452 fs/ext4/inode.c error = ext4_mark_inode_dirty(handle, inode); inode 4457 fs/ext4/inode.c if (!(EXT4_I(inode)->i_flags & EXT4_EXTENTS_FL)) { inode 4458 fs/ext4/inode.c struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); inode 4467 fs/ext4/inode.c if (S_ISREG(inode->i_mode) && inode 4468 fs/ext4/inode.c attr->ia_valid & ATTR_SIZE && attr->ia_size < inode->i_size) { inode 4471 fs/ext4/inode.c handle = ext4_journal_start(inode, 3); inode 4477 fs/ext4/inode.c error = ext4_orphan_add(handle, inode); inode 4478 fs/ext4/inode.c EXT4_I(inode)->i_disksize = attr->ia_size; inode 4479 fs/ext4/inode.c rc = ext4_mark_inode_dirty(handle, inode); inode 4484 fs/ext4/inode.c if (ext4_should_order_data(inode)) { inode 4485 fs/ext4/inode.c error = ext4_begin_ordered_truncate(inode, inode 4489 fs/ext4/inode.c handle = ext4_journal_start(inode, 3); inode 4491 fs/ext4/inode.c ext4_orphan_del(NULL, inode); inode 4494 fs/ext4/inode.c ext4_orphan_del(handle, inode); inode 4501 fs/ext4/inode.c rc = inode_setattr(inode, attr); inode 4506 fs/ext4/inode.c if (inode->i_nlink) inode 4507 fs/ext4/inode.c ext4_orphan_del(NULL, inode); inode 4510 fs/ext4/inode.c rc = ext4_acl_chmod(inode); inode 4513 fs/ext4/inode.c ext4_std_error(inode->i_sb, error); inode 4522 fs/ext4/inode.c struct inode *inode; inode 4525 fs/ext4/inode.c inode = dentry->d_inode; inode 4526 fs/ext4/inode.c generic_fillattr(inode, stat); inode 4538 fs/ext4/inode.c spin_lock(&EXT4_I(inode)->i_block_reservation_lock); inode 4539 fs/ext4/inode.c delalloc_blocks = EXT4_I(inode)->i_reserved_data_blocks; inode 4540 fs/ext4/inode.c spin_unlock(&EXT4_I(inode)->i_block_reservation_lock); inode 4542 fs/ext4/inode.c stat->blocks += (delalloc_blocks << inode->i_sb->s_blocksize_bits)>>9; inode 4559 fs/ext4/inode.c indirects = nrblocks / EXT4_ADDR_PER_BLOCK(inode->i_sb); inode 4573 fs/ext4/inode.c if (!(EXT4_I(inode)->i_flags & EXT4_EXTENTS_FL)) inode 4574 fs/ext4/inode.c return ext4_indirect_trans_blocks(inode, nrblocks, 0); inode 4575 fs/ext4/inode.c return ext4_ext_index_trans_blocks(inode, nrblocks, 0); inode 4602 fs/ext4/inode.c idxblocks = ext4_index_trans_blocks(inode, nrblocks, chunk); inode 4617 fs/ext4/inode.c if (groups > EXT4_SB(inode->i_sb)->s_groups_count) inode 4618 fs/ext4/inode.c groups = EXT4_SB(inode->i_sb)->s_groups_count; inode 4619 fs/ext4/inode.c if (groups > EXT4_SB(inode->i_sb)->s_gdb_count) inode 4620 fs/ext4/inode.c gdpblocks = EXT4_SB(inode->i_sb)->s_gdb_count; inode 4626 fs/ext4/inode.c ret += EXT4_META_TRANS_BLOCKS(inode->i_sb); inode 4643 fs/ext4/inode.c int bpp = ext4_journal_blocks_per_page(inode); inode 4646 fs/ext4/inode.c ret = ext4_meta_trans_blocks(inode, bpp, 0); inode 4649 fs/ext4/inode.c if (ext4_should_journal_data(inode)) inode 4665 fs/ext4/inode.c return ext4_meta_trans_blocks(inode, nrblocks, 1); inode 4677 fs/ext4/inode.c if (test_opt(inode->i_sb, I_VERSION)) inode 4678 fs/ext4/inode.c inode_inc_iversion(inode); inode 4684 fs/ext4/inode.c err = ext4_do_update_inode(handle, inode, iloc); inode 4700 fs/ext4/inode.c err = ext4_get_inode_loc(inode, iloc); inode 4710 fs/ext4/inode.c ext4_std_error(inode->i_sb, err); inode 4727 fs/ext4/inode.c if (EXT4_I(inode)->i_extra_isize >= new_extra_isize) inode 4732 fs/ext4/inode.c header = IHDR(inode, raw_inode); inode 4736 fs/ext4/inode.c if (!(EXT4_I(inode)->i_state & EXT4_STATE_XATTR) || inode 4740 fs/ext4/inode.c EXT4_I(inode)->i_extra_isize = new_extra_isize; inode 4745 fs/ext4/inode.c return ext4_expand_extra_isize_ea(inode, new_extra_isize, inode 4773 fs/ext4/inode.c struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); inode 4778 fs/ext4/inode.c err = ext4_reserve_inode_write(handle, inode, &iloc); inode 4779 fs/ext4/inode.c if (EXT4_I(inode)->i_extra_isize < sbi->s_want_extra_isize && inode 4780 fs/ext4/inode.c !(EXT4_I(inode)->i_state & EXT4_STATE_NO_EXPAND)) { inode 4789 fs/ext4/inode.c EXT4_DATA_TRANS_BLOCKS(inode->i_sb))) == 0) { inode 4790 fs/ext4/inode.c ret = ext4_expand_extra_isize(inode, inode 4794 fs/ext4/inode.c EXT4_I(inode)->i_state |= EXT4_STATE_NO_EXPAND; inode 4797 fs/ext4/inode.c ext4_warning(inode->i_sb, __func__, inode 4800 fs/ext4/inode.c inode->i_ino); inode 4808 fs/ext4/inode.c err = ext4_mark_iloc_dirty(handle, inode, &iloc); inode 4831 fs/ext4/inode.c handle = ext4_journal_start(inode, 2); inode 4842 fs/ext4/inode.c ext4_mark_inode_dirty(handle, inode); inode 4863 fs/ext4/inode.c err = ext4_get_inode_loc(inode, &iloc); inode 4873 fs/ext4/inode.c ext4_std_error(inode->i_sb, err); inode 4894 fs/ext4/inode.c journal = EXT4_JOURNAL(inode); inode 4910 fs/ext4/inode.c EXT4_I(inode)->i_flags |= EXT4_JOURNAL_DATA_FL; inode 4912 fs/ext4/inode.c EXT4_I(inode)->i_flags &= ~EXT4_JOURNAL_DATA_FL; inode 4913 fs/ext4/inode.c ext4_set_aops(inode); inode 4919 fs/ext4/inode.c handle = ext4_journal_start(inode, 1); inode 4923 fs/ext4/inode.c err = ext4_mark_inode_dirty(handle, inode); inode 4926 fs/ext4/inode.c ext4_std_error(inode->i_sb, err); inode 4943 fs/ext4/inode.c struct inode *inode = file->f_path.dentry->d_inode; inode 4944 fs/ext4/inode.c struct address_space *mapping = inode->i_mapping; inode 4950 fs/ext4/inode.c down_read(&inode->i_alloc_sem); inode 4951 fs/ext4/inode.c size = i_size_read(inode); inode 4989 fs/ext4/inode.c up_read(&inode->i_alloc_sem); inode 23 fs/ext4/ioctl.c struct inode *inode = filp->f_dentry->d_inode; inode 24 fs/ext4/ioctl.c struct ext4_inode_info *ei = EXT4_I(inode); inode 41 fs/ext4/ioctl.c if (!is_owner_or_cap(inode)) inode 51 fs/ext4/ioctl.c if (!S_ISDIR(inode->i_mode)) inode 55 fs/ext4/ioctl.c mutex_lock(&inode->i_mutex); inode 57 fs/ext4/ioctl.c if (IS_NOQUOTA(inode)) inode 96 fs/ext4/ioctl.c handle = ext4_journal_start(inode, 1); inode 101 fs/ext4/ioctl.c if (IS_SYNC(inode)) inode 103 fs/ext4/ioctl.c err = ext4_reserve_inode_write(handle, inode, &iloc); inode 111 fs/ext4/ioctl.c ext4_set_inode_flags(inode); inode 112 fs/ext4/ioctl.c inode->i_ctime = ext4_current_time(inode); inode 114 fs/ext4/ioctl.c err = ext4_mark_iloc_dirty(handle, inode, &iloc); inode 121 fs/ext4/ioctl.c err = ext4_change_inode_journal_flag(inode, jflag); inode 125 fs/ext4/ioctl.c err = ext4_ext_migrate(inode); inode 127 fs/ext4/ioctl.c mutex_unlock(&inode->i_mutex); inode 133 fs/ext4/ioctl.c return put_user(inode->i_generation, (int __user *) arg); inode 141 fs/ext4/ioctl.c if (!is_owner_or_cap(inode)) inode 152 fs/ext4/ioctl.c handle = ext4_journal_start(inode, 1); inode 157 fs/ext4/ioctl.c err = ext4_reserve_inode_write(handle, inode, &iloc); inode 159 fs/ext4/ioctl.c inode->i_ctime = ext4_current_time(inode); inode 160 fs/ext4/ioctl.c inode->i_generation = generation; inode 161 fs/ext4/ioctl.c err = ext4_mark_iloc_dirty(handle, inode, &iloc); inode 178 fs/ext4/ioctl.c struct super_block *sb = inode->i_sb; inode 194 fs/ext4/ioctl.c struct super_block *sb = inode->i_sb; inode 219 fs/ext4/ioctl.c struct super_block *sb = inode->i_sb; inode 247 fs/ext4/ioctl.c if (!is_owner_or_cap(inode)) inode 259 fs/ext4/ioctl.c mutex_lock(&(inode->i_mutex)); inode 260 fs/ext4/ioctl.c err = ext4_ext_migrate(inode); inode 261 fs/ext4/ioctl.c mutex_unlock(&(inode->i_mutex)); inode 451 fs/ext4/mballoc.c inode ? inode->i_ino : 0, blocknr, inode 741 fs/ext4/mballoc.c struct inode *inode; inode 747 fs/ext4/mballoc.c inode = page->mapping->host; inode 748 fs/ext4/mballoc.c sb = inode->i_sb; inode 749 fs/ext4/mballoc.c blocksize = 1 << inode->i_blkbits; inode 890 fs/ext4/mballoc.c struct inode *inode = sbi->s_buddy_cache; inode 920 fs/ext4/mballoc.c page = find_get_page(inode->i_mapping, pnum); inode 924 fs/ext4/mballoc.c page = find_or_create_page(inode->i_mapping, pnum, GFP_NOFS); inode 926 fs/ext4/mballoc.c BUG_ON(page->mapping != inode->i_mapping); inode 951 fs/ext4/mballoc.c page = find_get_page(inode->i_mapping, pnum); inode 955 fs/ext4/mballoc.c page = find_or_create_page(inode->i_mapping, pnum, GFP_NOFS); inode 957 fs/ext4/mballoc.c BUG_ON(page->mapping != inode->i_mapping); inode 1070 fs/ext4/mballoc.c mb_free_blocks_double(inode, e4b, first, count); inode 1100 fs/ext4/mballoc.c inode ? inode->i_ino : 0, blocknr, block, inode 1984 fs/ext4/mballoc.c struct super_block *sb = PDE(inode)->data; inode 2027 fs/ext4/mballoc.c return seq_release(inode, file); inode 2148 fs/ext4/mballoc.c struct super_block *sb = PDE(inode)->data; inode 2336 fs/ext4/mballoc.c struct inode *inode = sbi->s_buddy_cache; inode 2358 fs/ext4/mballoc.c page = find_get_page(inode->i_mapping, pnum); inode 2367 fs/ext4/mballoc.c page = find_get_page(inode->i_mapping, pnum); inode 3799 fs/ext4/mballoc.c struct ext4_inode_info *ei = EXT4_I(inode); inode 3800 fs/ext4/mballoc.c struct super_block *sb = inode->i_sb; inode 3809 fs/ext4/mballoc.c if (!S_ISREG(inode->i_mode)) { inode 3814 fs/ext4/mballoc.c mb_debug("discard preallocation for inode %lu\n", inode->i_ino); inode 3912 fs/ext4/mballoc.c BUG_ON(!list_empty(&EXT4_I(inode)->i_prealloc_list)); inode 4020 fs/ext4/mballoc.c struct super_block *sb = ar->inode->i_sb; inode 4052 fs/ext4/mballoc.c ac->ac_inode = ar->inode; inode 4080 fs/ext4/mballoc.c atomic_read(&ar->inode->i_writecount) ? "" : "non-"); inode 4289 fs/ext4/mballoc.c sb = ar->inode->i_sb; inode 4292 fs/ext4/mballoc.c if (!EXT4_I(ar->inode)->i_delalloc_reserved_flag) { inode 4307 fs/ext4/mballoc.c while (ar->len && DQUOT_ALLOC_BLOCK(ar->inode, ar->len)) { inode 4317 fs/ext4/mballoc.c if (EXT4_I(ar->inode)->i_delalloc_reserved_flag) inode 4383 fs/ext4/mballoc.c DQUOT_FREE_BLOCK(ar->inode, inquota - ar->len); inode 4488 fs/ext4/mballoc.c struct super_block *sb = inode->i_sb; inode 4521 fs/ext4/mballoc.c ac->ac_inode = inode; inode 4608 fs/ext4/mballoc.c mb_free_blocks(inode, &e4b, bit, count); inode 4609 fs/ext4/mballoc.c ext4_mb_return_to_preallocation(inode, &e4b, block, count); inode 152 fs/ext4/mballoc.h struct inode *pa_inode; /* hack, for history only */ inode 182 fs/ext4/mballoc.h struct inode *ac_inode; inode 42 fs/ext4/migrate.c path = ext4_ext_find_extent(inode, lb->first_block, NULL); inode 56 fs/ext4/migrate.c needed = ext4_ext_calc_credits_for_single_extent(inode, inode 77 fs/ext4/migrate.c retval = ext4_ext_insert_extent(handle, inode, path, &newext); inode 105 fs/ext4/migrate.c retval = finish_range(handle, inode, lb); inode 120 fs/ext4/migrate.c unsigned long max_entries = inode->i_sb->s_blocksize >> 2; inode 128 fs/ext4/migrate.c bh = sb_bread(inode->i_sb, pblock); inode 135 fs/ext4/migrate.c retval = update_extent_range(handle, inode, inode 158 fs/ext4/migrate.c unsigned long max_entries = inode->i_sb->s_blocksize >> 2; inode 165 fs/ext4/migrate.c bh = sb_bread(inode->i_sb, pblock); inode 172 fs/ext4/migrate.c retval = update_ind_extent_range(handle, inode, inode 198 fs/ext4/migrate.c unsigned long max_entries = inode->i_sb->s_blocksize >> 2; inode 205 fs/ext4/migrate.c bh = sb_bread(inode->i_sb, pblock); inode 212 fs/ext4/migrate.c retval = update_dind_extent_range(handle, inode, inode 240 fs/ext4/migrate.c needed = 3 + 2*EXT4_QUOTA_TRANS_BLOCKS(inode->i_sb); inode 254 fs/ext4/migrate.c unsigned long max_entries = inode->i_sb->s_blocksize >> 2; inode 256 fs/ext4/migrate.c bh = sb_bread(inode->i_sb, le32_to_cpu(i_data)); inode 263 fs/ext4/migrate.c extend_credit_for_blkdel(handle, inode); inode 264 fs/ext4/migrate.c ext4_free_blocks(handle, inode, inode 269 fs/ext4/migrate.c extend_credit_for_blkdel(handle, inode); inode 270 fs/ext4/migrate.c ext4_free_blocks(handle, inode, le32_to_cpu(i_data), 1, 1); inode 280 fs/ext4/migrate.c unsigned long max_entries = inode->i_sb->s_blocksize >> 2; inode 282 fs/ext4/migrate.c bh = sb_bread(inode->i_sb, le32_to_cpu(i_data)); inode 290 fs/ext4/migrate.c inode, tmp_idata[i]); inode 298 fs/ext4/migrate.c extend_credit_for_blkdel(handle, inode); inode 299 fs/ext4/migrate.c ext4_free_blocks(handle, inode, le32_to_cpu(i_data), 1, 1); inode 309 fs/ext4/migrate.c extend_credit_for_blkdel(handle, inode); inode 310 fs/ext4/migrate.c ext4_free_blocks(handle, inode, inode 316 fs/ext4/migrate.c retval = free_dind_blocks(handle, inode, i_data[1]); inode 323 fs/ext4/migrate.c retval = free_tind_blocks(handle, inode, i_data[2]); inode 335 fs/ext4/migrate.c struct ext4_inode_info *ei = EXT4_I(inode); inode 353 fs/ext4/migrate.c down_write(&EXT4_I(inode)->i_data_sem); inode 359 fs/ext4/migrate.c if (!(EXT4_I(inode)->i_flags & EXT4_EXT_MIGRATE)) { inode 361 fs/ext4/migrate.c up_write(&EXT4_I(inode)->i_data_sem); inode 364 fs/ext4/migrate.c EXT4_I(inode)->i_flags = EXT4_I(inode)->i_flags & inode 382 fs/ext4/migrate.c spin_lock(&inode->i_lock); inode 383 fs/ext4/migrate.c inode->i_blocks += tmp_inode->i_blocks; inode 384 fs/ext4/migrate.c spin_unlock(&inode->i_lock); inode 385 fs/ext4/migrate.c up_write(&EXT4_I(inode)->i_data_sem); inode 391 fs/ext4/migrate.c retval = free_ind_block(handle, inode, i_data); inode 392 fs/ext4/migrate.c ext4_mark_inode_dirty(handle, inode); inode 407 fs/ext4/migrate.c bh = sb_bread(inode->i_sb, block); inode 415 fs/ext4/migrate.c retval = free_ext_idx(handle, inode, ix); inode 421 fs/ext4/migrate.c extend_credit_for_blkdel(handle, inode); inode 422 fs/ext4/migrate.c ext4_free_blocks(handle, inode, block, 1, 1); inode 432 fs/ext4/migrate.c struct ext4_inode_info *ei = EXT4_I(inode); inode 442 fs/ext4/migrate.c retval = free_ext_idx(handle, inode, ix); inode 457 fs/ext4/migrate.c struct inode *tmp_inode = NULL; inode 461 fs/ext4/migrate.c if (!test_opt(inode->i_sb, EXTENTS)) inode 467 fs/ext4/migrate.c if ((EXT4_I(inode)->i_flags & EXT4_EXTENTS_FL)) inode 470 fs/ext4/migrate.c if (S_ISLNK(inode->i_mode) && inode->i_blocks == 0) inode 476 fs/ext4/migrate.c handle = ext4_journal_start(inode, inode 477 fs/ext4/migrate.c EXT4_DATA_TRANS_BLOCKS(inode->i_sb) + inode 479 fs/ext4/migrate.c 2 * EXT4_QUOTA_INIT_BLOCKS(inode->i_sb) inode 486 fs/ext4/migrate.c inode->i_sb->s_root->d_inode, inode 494 fs/ext4/migrate.c i_size_write(tmp_inode, i_size_read(inode)); inode 524 fs/ext4/migrate.c down_read((&EXT4_I(inode)->i_data_sem)); inode 525 fs/ext4/migrate.c EXT4_I(inode)->i_flags = EXT4_I(inode)->i_flags | EXT4_EXT_MIGRATE; inode 526 fs/ext4/migrate.c up_read((&EXT4_I(inode)->i_data_sem)); inode 528 fs/ext4/migrate.c handle = ext4_journal_start(inode, 1); inode 530 fs/ext4/migrate.c ei = EXT4_I(inode); inode 535 fs/ext4/migrate.c max_entries = inode->i_sb->s_blocksize >> 2; inode 580 fs/ext4/migrate.c retval = ext4_ext_swap_inode_data(handle, inode, tmp_inode); inode 58 fs/ext4/namei.c *block = inode->i_size >> inode->i_sb->s_blocksize_bits; inode 60 fs/ext4/namei.c bh = ext4_bread(handle, inode, *block, 1, err); inode 62 fs/ext4/namei.c inode->i_size += inode->i_sb->s_blocksize; inode 63 fs/ext4/namei.c EXT4_I(inode)->i_disksize = inode->i_size; inode 89 fs/ext4/namei.c __le32 inode; inode 287 fs/ext4/namei.c if (de->inode) inode 605 fs/ext4/namei.c if (de->inode == 0) inode 633 fs/ext4/namei.c struct inode *dir; inode 724 fs/ext4/namei.c if (de->name_len && de->inode) { inode 782 fs/ext4/namei.c if (!EXT4_HAS_COMPAT_FEATURE(inode->i_sb, inode 784 fs/ext4/namei.c EXT4_I(inode)->i_flags &= ~EXT4_INDEX_FL; inode 798 fs/ext4/namei.c if (!de->inode) inode 1036 fs/ext4/namei.c struct inode *inode; inode 1044 fs/ext4/namei.c inode = NULL; inode 1046 fs/ext4/namei.c unsigned long ino = le32_to_cpu(de->inode); inode 1053 fs/ext4/namei.c inode = ext4_iget(dir->i_sb, ino); inode 1054 fs/ext4/namei.c if (IS_ERR(inode)) inode 1055 fs/ext4/namei.c return ERR_CAST(inode); inode 1057 fs/ext4/namei.c return d_splice_alias(inode, dentry); inode 1065 fs/ext4/namei.c struct inode *inode; inode 1074 fs/ext4/namei.c inode = NULL; inode 1077 fs/ext4/namei.c ino = le32_to_cpu(de->inode); inode 1086 fs/ext4/namei.c inode = ext4_iget(child->d_inode->i_sb, ino); inode 1087 fs/ext4/namei.c if (IS_ERR(inode)) inode 1088 fs/ext4/namei.c return ERR_CAST(inode); inode 1090 fs/ext4/namei.c parent = d_alloc_anon(inode); inode 1092 fs/ext4/namei.c iput(inode); inode 1131 fs/ext4/namei.c de->inode = 0; inode 1150 fs/ext4/namei.c if (de->inode && de->name_len) { inode 1276 fs/ext4/namei.c struct inode *dir = dentry->d_parent->d_inode; inode 1300 fs/ext4/namei.c if ((de->inode? rlen - nlen: rlen) >= reclen) inode 1319 fs/ext4/namei.c if (de->inode) { inode 1326 fs/ext4/namei.c if (inode) { inode 1327 fs/ext4/namei.c de->inode = cpu_to_le32(inode->i_ino); inode 1328 fs/ext4/namei.c ext4_set_de_type(dir->i_sb, de, inode->i_mode); inode 1330 fs/ext4/namei.c de->inode = 0; inode 1363 fs/ext4/namei.c struct inode *dir = dentry->d_parent->d_inode; inode 1433 fs/ext4/namei.c return add_dirent_to_buf(handle, dentry, inode, de, bh); inode 1449 fs/ext4/namei.c struct inode *dir = dentry->d_parent->d_inode; inode 1464 fs/ext4/namei.c retval = ext4_dx_add_entry(handle, dentry, inode); inode 1476 fs/ext4/namei.c retval = add_dirent_to_buf(handle, dentry, inode, NULL, bh); inode 1482 fs/ext4/namei.c return make_indexed_dir(handle, dentry, inode, bh); inode 1489 fs/ext4/namei.c de->inode = 0; inode 1491 fs/ext4/namei.c return add_dirent_to_buf(handle, dentry, inode, de, bh); inode 1504 fs/ext4/namei.c struct inode *dir = dentry->d_parent->d_inode; inode 1523 fs/ext4/namei.c err = add_dirent_to_buf(handle, dentry, inode, NULL, bh); inode 1554 fs/ext4/namei.c node2->fake.inode = 0; inode 1618 fs/ext4/namei.c err = add_dirent_to_buf(handle, dentry, inode, de, bh); inode 1657 fs/ext4/namei.c de->inode = 0; inode 1676 fs/ext4/namei.c inc_nlink(inode); inode 1677 fs/ext4/namei.c if (is_dx(inode) && inode->i_nlink > 1) { inode 1679 fs/ext4/namei.c if (inode->i_nlink >= EXT4_LINK_MAX || inode->i_nlink == 2) { inode 1680 fs/ext4/namei.c inode->i_nlink = 1; inode 1681 fs/ext4/namei.c EXT4_SET_RO_COMPAT_FEATURE(inode->i_sb, inode 1693 fs/ext4/namei.c drop_nlink(inode); inode 1694 fs/ext4/namei.c if (S_ISDIR(inode->i_mode) && inode->i_nlink == 0) inode 1695 fs/ext4/namei.c inc_nlink(inode); inode 1702 fs/ext4/namei.c int err = ext4_add_entry(handle, dentry, inode); inode 1704 fs/ext4/namei.c ext4_mark_inode_dirty(handle, inode); inode 1705 fs/ext4/namei.c d_instantiate(dentry, inode); inode 1708 fs/ext4/namei.c drop_nlink(inode); inode 1709 fs/ext4/namei.c iput(inode); inode 1725 fs/ext4/namei.c struct inode *inode; inode 1738 fs/ext4/namei.c inode = ext4_new_inode (handle, dir, mode); inode 1739 fs/ext4/namei.c err = PTR_ERR(inode); inode 1740 fs/ext4/namei.c if (!IS_ERR(inode)) { inode 1741 fs/ext4/namei.c inode->i_op = &ext4_file_inode_operations; inode 1742 fs/ext4/namei.c inode->i_fop = &ext4_file_operations; inode 1743 fs/ext4/namei.c ext4_set_aops(inode); inode 1744 fs/ext4/namei.c err = ext4_add_nondir(handle, dentry, inode); inode 1756 fs/ext4/namei.c struct inode *inode; inode 1772 fs/ext4/namei.c inode = ext4_new_inode(handle, dir, mode); inode 1773 fs/ext4/namei.c err = PTR_ERR(inode); inode 1774 fs/ext4/namei.c if (!IS_ERR(inode)) { inode 1775 fs/ext4/namei.c init_special_inode(inode, inode->i_mode, rdev); inode 1777 fs/ext4/namei.c inode->i_op = &ext4_special_inode_operations; inode 1779 fs/ext4/namei.c err = ext4_add_nondir(handle, dentry, inode); inode 1790 fs/ext4/namei.c struct inode *inode; inode 1808 fs/ext4/namei.c inode = ext4_new_inode(handle, dir, S_IFDIR | mode); inode 1809 fs/ext4/namei.c err = PTR_ERR(inode); inode 1810 fs/ext4/namei.c if (IS_ERR(inode)) inode 1813 fs/ext4/namei.c inode->i_op = &ext4_dir_inode_operations; inode 1814 fs/ext4/namei.c inode->i_fop = &ext4_dir_operations; inode 1815 fs/ext4/namei.c inode->i_size = EXT4_I(inode)->i_disksize = inode->i_sb->s_blocksize; inode 1816 fs/ext4/namei.c dir_block = ext4_bread(handle, inode, 0, 1, &err); inode 1822 fs/ext4/namei.c de->inode = cpu_to_le32(inode->i_ino); inode 1828 fs/ext4/namei.c de->inode = cpu_to_le32(dir->i_ino); inode 1829 fs/ext4/namei.c de->rec_len = ext4_rec_len_to_disk(inode->i_sb->s_blocksize - inode 1834 fs/ext4/namei.c inode->i_nlink = 2; inode 1838 fs/ext4/namei.c ext4_mark_inode_dirty(handle, inode); inode 1839 fs/ext4/namei.c err = ext4_add_entry(handle, dentry, inode); inode 1842 fs/ext4/namei.c clear_nlink(inode); inode 1843 fs/ext4/namei.c ext4_mark_inode_dirty(handle, inode); inode 1844 fs/ext4/namei.c iput(inode); inode 1850 fs/ext4/namei.c d_instantiate(dentry, inode); inode 1869 fs/ext4/namei.c sb = inode->i_sb; inode 1870 fs/ext4/namei.c if (inode->i_size < EXT4_DIR_REC_LEN(1) + EXT4_DIR_REC_LEN(2) || inode 1871 fs/ext4/namei.c !(bh = ext4_bread(NULL, inode, 0, 0, &err))) { inode 1873 fs/ext4/namei.c ext4_error(inode->i_sb, __func__, inode 1875 fs/ext4/namei.c err, inode->i_ino); inode 1877 fs/ext4/namei.c ext4_warning(inode->i_sb, __func__, inode 1879 fs/ext4/namei.c inode->i_ino); inode 1884 fs/ext4/namei.c if (le32_to_cpu(de->inode) != inode->i_ino || inode 1885 fs/ext4/namei.c !le32_to_cpu(de1->inode) || inode 1888 fs/ext4/namei.c ext4_warning(inode->i_sb, "empty_dir", inode 1890 fs/ext4/namei.c inode->i_ino); inode 1897 fs/ext4/namei.c while (offset < inode->i_size) { inode 1902 fs/ext4/namei.c bh = ext4_bread(NULL, inode, inode 1909 fs/ext4/namei.c err, inode->i_ino, offset); inode 1915 fs/ext4/namei.c if (!ext4_check_dir_entry("empty_dir", inode, de, bh, offset)) { inode 1921 fs/ext4/namei.c if (le32_to_cpu(de->inode)) { inode 1942 fs/ext4/namei.c struct super_block *sb = inode->i_sb; inode 1947 fs/ext4/namei.c if (!list_empty(&EXT4_I(inode)->i_orphan)) inode 1959 fs/ext4/namei.c J_ASSERT((S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || inode 1960 fs/ext4/namei.c S_ISLNK(inode->i_mode)) || inode->i_nlink == 0); inode 1967 fs/ext4/namei.c err = ext4_reserve_inode_write(handle, inode, &iloc); inode 1972 fs/ext4/namei.c NEXT_ORPHAN(inode) = le32_to_cpu(EXT4_SB(sb)->s_es->s_last_orphan); inode 1973 fs/ext4/namei.c EXT4_SB(sb)->s_es->s_last_orphan = cpu_to_le32(inode->i_ino); inode 1975 fs/ext4/namei.c rc = ext4_mark_iloc_dirty(handle, inode, &iloc); inode 1988 fs/ext4/namei.c list_add(&EXT4_I(inode)->i_orphan, &EXT4_SB(sb)->s_orphan); inode 1990 fs/ext4/namei.c jbd_debug(4, "superblock will point to %lu\n", inode->i_ino); inode 1992 fs/ext4/namei.c inode->i_ino, NEXT_ORPHAN(inode)); inode 1995 fs/ext4/namei.c ext4_std_error(inode->i_sb, err); inode 2006 fs/ext4/namei.c struct ext4_inode_info *ei = EXT4_I(inode); inode 2012 fs/ext4/namei.c lock_super(inode->i_sb); inode 2014 fs/ext4/namei.c unlock_super(inode->i_sb); inode 2018 fs/ext4/namei.c ino_next = NEXT_ORPHAN(inode); inode 2020 fs/ext4/namei.c sbi = EXT4_SB(inode->i_sb); inode 2022 fs/ext4/namei.c jbd_debug(4, "remove inode %lu from orphan list\n", inode->i_ino); inode 2033 fs/ext4/namei.c err = ext4_reserve_inode_write(handle, inode, &iloc); inode 2047 fs/ext4/namei.c struct inode *i_prev = inode 2060 fs/ext4/namei.c NEXT_ORPHAN(inode) = 0; inode 2061 fs/ext4/namei.c err = ext4_mark_iloc_dirty(handle, inode, &iloc); inode 2064 fs/ext4/namei.c ext4_std_error(inode->i_sb, err); inode 2066 fs/ext4/namei.c unlock_super(inode->i_sb); inode 2077 fs/ext4/namei.c struct inode *inode; inode 2097 fs/ext4/namei.c inode = dentry->d_inode; inode 2100 fs/ext4/namei.c if (le32_to_cpu(de->inode) != inode->i_ino) inode 2104 fs/ext4/namei.c if (!empty_dir(inode)) inode 2110 fs/ext4/namei.c if (!EXT4_DIR_LINK_EMPTY(inode)) inode 2111 fs/ext4/namei.c ext4_warning(inode->i_sb, "ext4_rmdir", inode 2113 fs/ext4/namei.c inode->i_nlink); inode 2114 fs/ext4/namei.c inode->i_version++; inode 2115 fs/ext4/namei.c clear_nlink(inode); inode 2119 fs/ext4/namei.c inode->i_size = 0; inode 2120 fs/ext4/namei.c ext4_orphan_add(handle, inode); inode 2121 fs/ext4/namei.c inode->i_ctime = dir->i_ctime = dir->i_mtime = ext4_current_time(inode); inode 2122 fs/ext4/namei.c ext4_mark_inode_dirty(handle, inode); inode 2136 fs/ext4/namei.c struct inode *inode; inode 2156 fs/ext4/namei.c inode = dentry->d_inode; inode 2159 fs/ext4/namei.c if (le32_to_cpu(de->inode) != inode->i_ino) inode 2162 fs/ext4/namei.c if (!inode->i_nlink) { inode 2163 fs/ext4/namei.c ext4_warning(inode->i_sb, "ext4_unlink", inode 2165 fs/ext4/namei.c inode->i_ino, inode->i_nlink); inode 2166 fs/ext4/namei.c inode->i_nlink = 1; inode 2174 fs/ext4/namei.c drop_nlink(inode); inode 2175 fs/ext4/namei.c if (!inode->i_nlink) inode 2176 fs/ext4/namei.c ext4_orphan_add(handle, inode); inode 2177 fs/ext4/namei.c inode->i_ctime = ext4_current_time(inode); inode 2178 fs/ext4/namei.c ext4_mark_inode_dirty(handle, inode); inode 2191 fs/ext4/namei.c struct inode *inode; inode 2208 fs/ext4/namei.c inode = ext4_new_inode(handle, dir, S_IFLNK|S_IRWXUGO); inode 2209 fs/ext4/namei.c err = PTR_ERR(inode); inode 2210 fs/ext4/namei.c if (IS_ERR(inode)) inode 2213 fs/ext4/namei.c if (l > sizeof(EXT4_I(inode)->i_data)) { inode 2214 fs/ext4/namei.c inode->i_op = &ext4_symlink_inode_operations; inode 2215 fs/ext4/namei.c ext4_set_aops(inode); inode 2221 fs/ext4/namei.c err = __page_symlink(inode, symname, l, inode 2222 fs/ext4/namei.c mapping_gfp_mask(inode->i_mapping) & ~__GFP_FS); inode 2224 fs/ext4/namei.c clear_nlink(inode); inode 2225 fs/ext4/namei.c ext4_mark_inode_dirty(handle, inode); inode 2226 fs/ext4/namei.c iput(inode); inode 2231 fs/ext4/namei.c EXT4_I(inode)->i_flags &= ~EXT4_EXTENTS_FL; inode 2232 fs/ext4/namei.c inode->i_op = &ext4_fast_symlink_inode_operations; inode 2233 fs/ext4/namei.c memcpy((char *)&EXT4_I(inode)->i_data, symname, l); inode 2234 fs/ext4/namei.c inode->i_size = l-1; inode 2236 fs/ext4/namei.c EXT4_I(inode)->i_disksize = inode->i_size; inode 2237 fs/ext4/namei.c err = ext4_add_nondir(handle, dentry, inode); inode 2249 fs/ext4/namei.c struct inode *inode = old_dentry->d_inode; inode 2252 fs/ext4/namei.c if (EXT4_DIR_LINK_MAX(inode)) inode 2259 fs/ext4/namei.c if (inode->i_nlink == 0) inode 2271 fs/ext4/namei.c inode->i_ctime = ext4_current_time(inode); inode 2272 fs/ext4/namei.c ext4_inc_count(handle, inode); inode 2273 fs/ext4/namei.c atomic_inc(&inode->i_count); inode 2275 fs/ext4/namei.c err = ext4_add_nondir(handle, dentry, inode); inode 2283 fs/ext4/namei.c (ext4_next_entry((struct ext4_dir_entry_2 *)(buffer))->inode) inode 2293 fs/ext4/namei.c struct inode *old_inode, *new_inode; inode 2322 fs/ext4/namei.c if (!old_bh || le32_to_cpu(old_de->inode) != old_inode->i_ino) inode 2357 fs/ext4/namei.c new_de->inode = cpu_to_le32(old_inode->i_ino); inode 2381 fs/ext4/namei.c if (le32_to_cpu(old_de->inode) != old_inode->i_ino || inode 403 fs/ext4/resize.c struct super_block *sb = inode->i_sb; inode 441 fs/ext4/resize.c data = EXT4_I(inode)->i_data + EXT4_DIND_BLOCK; inode 467 fs/ext4/resize.c if ((err = ext4_reserve_inode_write(handle, inode, &iloc))) inode 491 fs/ext4/resize.c inode->i_blocks -= (gdbackups + 1) * sb->s_blocksize >> 9; inode 492 fs/ext4/resize.c ext4_mark_iloc_dirty(handle, inode, &iloc); inode 543 fs/ext4/resize.c struct super_block *sb = inode->i_sb; inode 558 fs/ext4/resize.c data = EXT4_I(inode)->i_data + EXT4_DIND_BLOCK; inode 606 fs/ext4/resize.c if ((err = ext4_reserve_inode_write(handle, inode, &iloc))) inode 625 fs/ext4/resize.c inode->i_blocks += reserved_gdb * sb->s_blocksize >> 9; inode 626 fs/ext4/resize.c ext4_mark_iloc_dirty(handle, inode, &iloc); inode 747 fs/ext4/resize.c struct inode *inode = NULL; inode 782 fs/ext4/resize.c inode = ext4_iget(sb, EXT4_RESIZE_INO); inode 783 fs/ext4/resize.c if (IS_ERR(inode)) { inode 786 fs/ext4/resize.c return PTR_ERR(inode); inode 834 fs/ext4/resize.c (err = reserve_backup_gdb(handle, inode, input))) inode 836 fs/ext4/resize.c } else if ((err = add_new_gdb(handle, inode, input, &primary))) inode 954 fs/ext4/resize.c iput(inode); inode 1098 fs/ext4/resize.c struct inode *inode = sbi->s_buddy_cache; inode 1108 fs/ext4/resize.c page = find_get_page(inode->i_mapping, pnum); inode 1117 fs/ext4/resize.c page = find_get_page(inode->i_mapping, pnum); inode 478 fs/ext4/super.c static inline struct inode *orphan_list_entry(struct list_head *l) inode 492 fs/ext4/super.c struct inode *inode = orphan_list_entry(l); inode 495 fs/ext4/super.c inode->i_sb->s_id, inode->i_ino, inode, inode 496 fs/ext4/super.c inode->i_mode, inode->i_nlink, inode 497 fs/ext4/super.c NEXT_ORPHAN(inode)); inode 566 fs/ext4/super.c static struct inode *ext4_alloc_inode(struct super_block *sb) inode 593 fs/ext4/super.c if (!list_empty(&(EXT4_I(inode)->i_orphan))) { inode 595 fs/ext4/super.c EXT4_I(inode)); inode 597 fs/ext4/super.c EXT4_I(inode), sizeof(struct ext4_inode_info), inode 601 fs/ext4/super.c kmem_cache_free(ext4_inode_cachep, EXT4_I(inode)); inode 636 fs/ext4/super.c if (EXT4_I(inode)->i_acl && inode 637 fs/ext4/super.c EXT4_I(inode)->i_acl != EXT4_ACL_NOT_CACHED) { inode 638 fs/ext4/super.c posix_acl_release(EXT4_I(inode)->i_acl); inode 639 fs/ext4/super.c EXT4_I(inode)->i_acl = EXT4_ACL_NOT_CACHED; inode 641 fs/ext4/super.c if (EXT4_I(inode)->i_default_acl && inode 642 fs/ext4/super.c EXT4_I(inode)->i_default_acl != EXT4_ACL_NOT_CACHED) { inode 643 fs/ext4/super.c posix_acl_release(EXT4_I(inode)->i_default_acl); inode 644 fs/ext4/super.c EXT4_I(inode)->i_default_acl = EXT4_ACL_NOT_CACHED; inode 647 fs/ext4/super.c ext4_discard_preallocations(inode); inode 648 fs/ext4/super.c jbd2_journal_release_jbd_inode(EXT4_SB(inode->i_sb)->s_journal, inode 649 fs/ext4/super.c &EXT4_I(inode)->jinode); inode 789 fs/ext4/super.c static struct inode *ext4_nfs_get_inode(struct super_block *sb, inode 792 fs/ext4/super.c struct inode *inode; inode 807 fs/ext4/super.c inode = ext4_iget(sb, ino); inode 808 fs/ext4/super.c if (IS_ERR(inode)) inode 809 fs/ext4/super.c return ERR_CAST(inode); inode 810 fs/ext4/super.c if (generation && inode->i_generation != generation) { inode 811 fs/ext4/super.c iput(inode); inode 815 fs/ext4/super.c return inode; inode 1726 fs/ext4/super.c struct inode *inode; inode 1728 fs/ext4/super.c inode = ext4_orphan_get(sb, le32_to_cpu(es->s_last_orphan)); inode 1729 fs/ext4/super.c if (IS_ERR(inode)) { inode 1734 fs/ext4/super.c list_add(&EXT4_I(inode)->i_orphan, &EXT4_SB(sb)->s_orphan); inode 1735 fs/ext4/super.c DQUOT_INIT(inode); inode 1736 fs/ext4/super.c if (inode->i_nlink) { inode 1739 fs/ext4/super.c __func__, inode->i_ino, inode->i_size); inode 1741 fs/ext4/super.c inode->i_ino, inode->i_size); inode 1742 fs/ext4/super.c ext4_truncate(inode); inode 1747 fs/ext4/super.c __func__, inode->i_ino); inode 1749 fs/ext4/super.c inode->i_ino); inode 1752 fs/ext4/super.c iput(inode); /* The delete magic happens here! */ inode 1937 fs/ext4/super.c struct inode *root; inode 2562 fs/ext4/super.c struct inode *journal_inode; inode 3257 fs/ext4/super.c static inline struct inode *dquot_to_inode(struct dquot *dquot) inode 3268 fs/ext4/super.c handle = ext4_journal_start(inode, 2*EXT4_QUOTA_INIT_BLOCKS(inode->i_sb)); inode 3271 fs/ext4/super.c ret = dquot_initialize(inode, type); inode 3284 fs/ext4/super.c handle = ext4_journal_start(inode, 2*EXT4_QUOTA_DEL_BLOCKS(inode->i_sb)); inode 3290 fs/ext4/super.c dquot_drop(inode); inode 3293 fs/ext4/super.c ret = dquot_drop(inode); inode 3304 fs/ext4/super.c struct inode *inode; inode 3306 fs/ext4/super.c inode = dquot_to_inode(dquot); inode 3307 fs/ext4/super.c handle = ext4_journal_start(inode, inode 3454 fs/ext4/super.c struct inode *inode = sb_dqopt(sb)->files[type]; inode 3461 fs/ext4/super.c loff_t i_size = i_size_read(inode); inode 3471 fs/ext4/super.c bh = ext4_bread(NULL, inode, blk, 0, &err); inode 3492 fs/ext4/super.c struct inode *inode = sb_dqopt(sb)->files[type]; inode 3508 fs/ext4/super.c mutex_lock_nested(&inode->i_mutex, I_MUTEX_QUOTA); inode 3512 fs/ext4/super.c bh = ext4_bread(handle, inode, blk, 1, &err); inode 3530 fs/ext4/super.c err = ext4_jbd2_file_inode(handle, inode); inode 3543 fs/ext4/super.c mutex_unlock(&inode->i_mutex); inode 3546 fs/ext4/super.c if (inode->i_size < off+len-towrite) { inode 3547 fs/ext4/super.c i_size_write(inode, off+len-towrite); inode 3548 fs/ext4/super.c EXT4_I(inode)->i_disksize = inode->i_size; inode 3550 fs/ext4/super.c inode->i_mtime = inode->i_ctime = CURRENT_TIME; inode 3551 fs/ext4/super.c ext4_mark_inode_dirty(handle, inode); inode 3552 fs/ext4/super.c mutex_unlock(&inode->i_mutex); inode 3575 fs/ext4/super.c return single_open(file, ext4_ui_proc_show, PDE(inode)->data); inode 72 fs/ext4/xattr.c inode->i_sb->s_id, inode->i_ino); \ inode 217 fs/ext4/xattr.c ea_idebug(inode, "name=%d.%s, buffer=%p, buffer_size=%ld", inode 221 fs/ext4/xattr.c if (!EXT4_I(inode)->i_file_acl) inode 223 fs/ext4/xattr.c ea_idebug(inode, "reading block %u", EXT4_I(inode)->i_file_acl); inode 224 fs/ext4/xattr.c bh = sb_bread(inode->i_sb, EXT4_I(inode)->i_file_acl); inode 230 fs/ext4/xattr.c bad_block: ext4_error(inode->i_sb, __func__, inode 231 fs/ext4/xattr.c "inode %lu: bad block %llu", inode->i_ino, inode 232 fs/ext4/xattr.c EXT4_I(inode)->i_file_acl); inode 270 fs/ext4/xattr.c if (!(EXT4_I(inode)->i_state & EXT4_STATE_XATTR)) inode 272 fs/ext4/xattr.c error = ext4_get_inode_loc(inode, &iloc); inode 276 fs/ext4/xattr.c header = IHDR(inode, raw_inode); inode 278 fs/ext4/xattr.c end = (void *)raw_inode + EXT4_SB(inode->i_sb)->s_inode_size; inode 317 fs/ext4/xattr.c down_read(&EXT4_I(inode)->xattr_sem); inode 318 fs/ext4/xattr.c error = ext4_xattr_ibody_get(inode, name_index, name, buffer, inode 321 fs/ext4/xattr.c error = ext4_xattr_block_get(inode, name_index, name, buffer, inode 323 fs/ext4/xattr.c up_read(&EXT4_I(inode)->xattr_sem); inode 338 fs/ext4/xattr.c size_t size = handler->list(inode, buffer, rest, inode 358 fs/ext4/xattr.c ea_idebug(inode, "buffer=%p, buffer_size=%ld", inode 362 fs/ext4/xattr.c if (!EXT4_I(inode)->i_file_acl) inode 364 fs/ext4/xattr.c ea_idebug(inode, "reading block %u", EXT4_I(inode)->i_file_acl); inode 365 fs/ext4/xattr.c bh = sb_bread(inode->i_sb, EXT4_I(inode)->i_file_acl); inode 372 fs/ext4/xattr.c ext4_error(inode->i_sb, __func__, inode 373 fs/ext4/xattr.c "inode %lu: bad block %llu", inode->i_ino, inode 374 fs/ext4/xattr.c EXT4_I(inode)->i_file_acl); inode 379 fs/ext4/xattr.c error = ext4_xattr_list_entries(inode, BFIRST(bh), buffer, buffer_size); inode 396 fs/ext4/xattr.c if (!(EXT4_I(inode)->i_state & EXT4_STATE_XATTR)) inode 398 fs/ext4/xattr.c error = ext4_get_inode_loc(inode, &iloc); inode 402 fs/ext4/xattr.c header = IHDR(inode, raw_inode); inode 403 fs/ext4/xattr.c end = (void *)raw_inode + EXT4_SB(inode->i_sb)->s_inode_size; inode 407 fs/ext4/xattr.c error = ext4_xattr_list_entries(inode, IFIRST(header), inode 430 fs/ext4/xattr.c down_read(&EXT4_I(inode)->xattr_sem); inode 431 fs/ext4/xattr.c i_error = ext4_xattr_ibody_list(inode, buffer, buffer_size); inode 439 fs/ext4/xattr.c b_error = ext4_xattr_block_list(inode, buffer, buffer_size); inode 443 fs/ext4/xattr.c up_read(&EXT4_I(inode)->xattr_sem); inode 485 fs/ext4/xattr.c ext4_free_blocks(handle, inode, bh->b_blocknr, 1, 1); inode 487 fs/ext4/xattr.c ext4_forget(handle, 1, inode, bh, bh->b_blocknr); inode 491 fs/ext4/xattr.c if (IS_SYNC(inode)) inode 493 fs/ext4/xattr.c DQUOT_FREE_BLOCK(inode, 1); inode 501 fs/ext4/xattr.c ext4_std_error(inode->i_sb, error); inode 648 fs/ext4/xattr.c struct super_block *sb = inode->i_sb; inode 651 fs/ext4/xattr.c ea_idebug(inode, "name=%d.%s, value=%p, value_len=%ld", inode 654 fs/ext4/xattr.c if (EXT4_I(inode)->i_file_acl) { inode 656 fs/ext4/xattr.c bs->bh = sb_bread(sb, EXT4_I(inode)->i_file_acl); inode 665 fs/ext4/xattr.c "inode %lu: bad block %llu", inode->i_ino, inode 666 fs/ext4/xattr.c EXT4_I(inode)->i_file_acl); inode 692 fs/ext4/xattr.c struct super_block *sb = inode->i_sb; inode 777 fs/ext4/xattr.c new_bh = ext4_xattr_cache_find(inode, header(s->base), &ce); inode 786 fs/ext4/xattr.c if (DQUOT_ALLOC_BLOCK(inode, 1)) inode 812 fs/ext4/xattr.c EXT4_I(inode)->i_block_group); inode 813 fs/ext4/xattr.c ext4_fsblk_t block = ext4_new_meta_block(handle, inode, inode 817 fs/ext4/xattr.c ea_idebug(inode, "creating block %d", block); inode 822 fs/ext4/xattr.c ext4_free_blocks(handle, inode, block, 1, 1); inode 843 fs/ext4/xattr.c EXT4_I(inode)->i_file_acl = new_bh ? new_bh->b_blocknr : 0; inode 847 fs/ext4/xattr.c ext4_xattr_release_block(handle, inode, bs->bh); inode 860 fs/ext4/xattr.c DQUOT_FREE_BLOCK(inode, 1); inode 864 fs/ext4/xattr.c ext4_error(inode->i_sb, __func__, inode 865 fs/ext4/xattr.c "inode %lu: bad block %llu", inode->i_ino, inode 866 fs/ext4/xattr.c EXT4_I(inode)->i_file_acl); inode 885 fs/ext4/xattr.c if (EXT4_I(inode)->i_extra_isize == 0) inode 888 fs/ext4/xattr.c header = IHDR(inode, raw_inode); inode 891 fs/ext4/xattr.c is->s.end = (void *)raw_inode + EXT4_SB(inode->i_sb)->s_inode_size; inode 892 fs/ext4/xattr.c if (EXT4_I(inode)->i_state & EXT4_STATE_XATTR) { inode 916 fs/ext4/xattr.c if (EXT4_I(inode)->i_extra_isize == 0) inode 921 fs/ext4/xattr.c header = IHDR(inode, ext4_raw_inode(&is->iloc)); inode 924 fs/ext4/xattr.c EXT4_I(inode)->i_state |= EXT4_STATE_XATTR; inode 927 fs/ext4/xattr.c EXT4_I(inode)->i_state &= ~EXT4_STATE_XATTR; inode 969 fs/ext4/xattr.c down_write(&EXT4_I(inode)->xattr_sem); inode 970 fs/ext4/xattr.c no_expand = EXT4_I(inode)->i_state & EXT4_STATE_NO_EXPAND; inode 971 fs/ext4/xattr.c EXT4_I(inode)->i_state |= EXT4_STATE_NO_EXPAND; inode 973 fs/ext4/xattr.c error = ext4_get_inode_loc(inode, &is.iloc); inode 977 fs/ext4/xattr.c if (EXT4_I(inode)->i_state & EXT4_STATE_NEW) { inode 979 fs/ext4/xattr.c memset(raw_inode, 0, EXT4_SB(inode->i_sb)->s_inode_size); inode 980 fs/ext4/xattr.c EXT4_I(inode)->i_state &= ~EXT4_STATE_NEW; inode 983 fs/ext4/xattr.c error = ext4_xattr_ibody_find(inode, &i, &is); inode 987 fs/ext4/xattr.c error = ext4_xattr_block_find(inode, &i, &bs); inode 1007 fs/ext4/xattr.c error = ext4_xattr_ibody_set(handle, inode, &i, &is); inode 1009 fs/ext4/xattr.c error = ext4_xattr_block_set(handle, inode, &i, &bs); inode 1011 fs/ext4/xattr.c error = ext4_xattr_ibody_set(handle, inode, &i, &is); inode 1014 fs/ext4/xattr.c error = ext4_xattr_block_set(handle, inode, &i, &bs); inode 1016 fs/ext4/xattr.c if (EXT4_I(inode)->i_file_acl && !bs.s.base) { inode 1017 fs/ext4/xattr.c error = ext4_xattr_block_find(inode, &i, &bs); inode 1021 fs/ext4/xattr.c error = ext4_xattr_block_set(handle, inode, &i, &bs); inode 1026 fs/ext4/xattr.c error = ext4_xattr_ibody_set(handle, inode, &i, inode 1032 fs/ext4/xattr.c ext4_xattr_update_super_block(handle, inode->i_sb); inode 1033 fs/ext4/xattr.c inode->i_ctime = ext4_current_time(inode); inode 1035 fs/ext4/xattr.c EXT4_I(inode)->i_state &= ~EXT4_STATE_NO_EXPAND; inode 1036 fs/ext4/xattr.c error = ext4_mark_iloc_dirty(handle, inode, &is.iloc); inode 1042 fs/ext4/xattr.c if (IS_SYNC(inode)) inode 1050 fs/ext4/xattr.c EXT4_I(inode)->i_state &= ~EXT4_STATE_NO_EXPAND; inode 1051 fs/ext4/xattr.c up_write(&EXT4_I(inode)->xattr_sem); inode 1071 fs/ext4/xattr.c handle = ext4_journal_start(inode, EXT4_DATA_TRANS_BLOCKS(inode->i_sb)); inode 1077 fs/ext4/xattr.c error = ext4_xattr_set_handle(handle, inode, name_index, name, inode 1081 fs/ext4/xattr.c ext4_should_retry_alloc(inode->i_sb, &retries)) inode 1132 fs/ext4/xattr.c int s_min_extra_isize = le16_to_cpu(EXT4_SB(inode->i_sb)->s_es->s_min_extra_isize); inode 1134 fs/ext4/xattr.c down_write(&EXT4_I(inode)->xattr_sem); inode 1136 fs/ext4/xattr.c if (EXT4_I(inode)->i_extra_isize >= new_extra_isize) { inode 1137 fs/ext4/xattr.c up_write(&EXT4_I(inode)->xattr_sem); inode 1141 fs/ext4/xattr.c header = IHDR(inode, raw_inode); inode 1150 fs/ext4/xattr.c end = (void *)raw_inode + EXT4_SB(inode->i_sb)->s_inode_size; inode 1158 fs/ext4/xattr.c ext4_xattr_shift_entries(entry, EXT4_I(inode)->i_extra_isize inode 1162 fs/ext4/xattr.c inode->i_sb->s_blocksize); inode 1163 fs/ext4/xattr.c EXT4_I(inode)->i_extra_isize = new_extra_isize; inode 1172 fs/ext4/xattr.c if (EXT4_I(inode)->i_file_acl) { inode 1173 fs/ext4/xattr.c bh = sb_bread(inode->i_sb, EXT4_I(inode)->i_file_acl); inode 1178 fs/ext4/xattr.c ext4_error(inode->i_sb, __func__, inode 1179 fs/ext4/xattr.c "inode %lu: bad block %llu", inode->i_ino, inode 1180 fs/ext4/xattr.c EXT4_I(inode)->i_file_acl); inode 1201 fs/ext4/xattr.c free = inode->i_sb->s_blocksize; inode 1275 fs/ext4/xattr.c error = ext4_get_inode_loc(inode, &is->iloc); inode 1279 fs/ext4/xattr.c error = ext4_xattr_ibody_find(inode, &i, is); inode 1284 fs/ext4/xattr.c error = ext4_xattr_ibody_set(handle, inode, &i, is); inode 1292 fs/ext4/xattr.c ext4_xattr_shift_entries(entry, EXT4_I(inode)->i_extra_isize - inode 1296 fs/ext4/xattr.c inode->i_sb->s_blocksize); inode 1300 fs/ext4/xattr.c EXT4_I(inode)->i_extra_isize = extra_isize; inode 1305 fs/ext4/xattr.c error = ext4_xattr_block_find(inode, &i, bs); inode 1310 fs/ext4/xattr.c error = ext4_xattr_block_set(handle, inode, &i, bs); inode 1320 fs/ext4/xattr.c up_write(&EXT4_I(inode)->xattr_sem); inode 1331 fs/ext4/xattr.c up_write(&EXT4_I(inode)->xattr_sem); inode 1349 fs/ext4/xattr.c if (!EXT4_I(inode)->i_file_acl) inode 1351 fs/ext4/xattr.c bh = sb_bread(inode->i_sb, EXT4_I(inode)->i_file_acl); inode 1353 fs/ext4/xattr.c ext4_error(inode->i_sb, __func__, inode 1354 fs/ext4/xattr.c "inode %lu: block %llu read error", inode->i_ino, inode 1355 fs/ext4/xattr.c EXT4_I(inode)->i_file_acl); inode 1360 fs/ext4/xattr.c ext4_error(inode->i_sb, __func__, inode 1361 fs/ext4/xattr.c "inode %lu: bad block %llu", inode->i_ino, inode 1362 fs/ext4/xattr.c EXT4_I(inode)->i_file_acl); inode 1365 fs/ext4/xattr.c ext4_xattr_release_block(handle, inode, bh); inode 1366 fs/ext4/xattr.c EXT4_I(inode)->i_file_acl = 0; inode 1473 fs/ext4/xattr.c ea_idebug(inode, "looking for cached blocks [%x]", (int)hash); inode 1476 fs/ext4/xattr.c inode->i_sb->s_bdev, hash); inode 1485 fs/ext4/xattr.c bh = sb_bread(inode->i_sb, ce->e_block); inode 1487 fs/ext4/xattr.c ext4_error(inode->i_sb, __func__, inode 1489 fs/ext4/xattr.c inode->i_ino, (unsigned long) ce->e_block); inode 1492 fs/ext4/xattr.c ea_idebug(inode, "block %lu refcount %d>=%d", inode 1501 fs/ext4/xattr.c ce = mb_cache_entry_find_next(ce, 0, inode->i_sb->s_bdev, hash); inode 63 fs/ext4/xattr.h EXT4_I(inode)->i_extra_isize)) inode 36 fs/ext4/xattr_security.c return ext4_xattr_get(inode, EXT4_XATTR_INDEX_SECURITY, name, inode 46 fs/ext4/xattr_security.c return ext4_xattr_set(inode, EXT4_XATTR_INDEX_SECURITY, name, inode 58 fs/ext4/xattr_security.c err = security_inode_init_security(inode, dir, &name, &value, &len); inode 64 fs/ext4/xattr_security.c err = ext4_xattr_set_handle(handle, inode, EXT4_XATTR_INDEX_SECURITY, inode 40 fs/ext4/xattr_trusted.c return ext4_xattr_get(inode, EXT4_XATTR_INDEX_TRUSTED, name, inode 50 fs/ext4/xattr_trusted.c return ext4_xattr_set(inode, EXT4_XATTR_INDEX_TRUSTED, name, inode 22 fs/ext4/xattr_user.c if (!test_opt(inode->i_sb, XATTR_USER)) inode 39 fs/ext4/xattr_user.c if (!test_opt(inode->i_sb, XATTR_USER)) inode 41 fs/ext4/xattr_user.c return ext4_xattr_get(inode, EXT4_XATTR_INDEX_USER, name, buffer, size); inode 50 fs/ext4/xattr_user.c if (!test_opt(inode->i_sb, XATTR_USER)) inode 52 fs/ext4/xattr_user.c return ext4_xattr_set(inode, EXT4_XATTR_INDEX_USER, name, inode 76 fs/fat/cache.c if (MSDOS_I(inode)->cache_lru.next != &cache->cache_list) inode 77 fs/fat/cache.c list_move(&cache->cache_list, &MSDOS_I(inode)->cache_lru); inode 89 fs/fat/cache.c spin_lock(&MSDOS_I(inode)->cache_lru_lock); inode 90 fs/fat/cache.c list_for_each_entry(p, &MSDOS_I(inode)->cache_lru, cache_list) { inode 103 fs/fat/cache.c fat_cache_update_lru(inode, hit); inode 105 fs/fat/cache.c cid->id = MSDOS_I(inode)->cache_valid_id; inode 112 fs/fat/cache.c spin_unlock(&MSDOS_I(inode)->cache_lru_lock); inode 122 fs/fat/cache.c list_for_each_entry(p, &MSDOS_I(inode)->cache_lru, cache_list) { inode 141 fs/fat/cache.c spin_lock(&MSDOS_I(inode)->cache_lru_lock); inode 143 fs/fat/cache.c new->id != MSDOS_I(inode)->cache_valid_id) inode 146 fs/fat/cache.c cache = fat_cache_merge(inode, new); inode 148 fs/fat/cache.c if (MSDOS_I(inode)->nr_caches < fat_max_cache(inode)) { inode 149 fs/fat/cache.c MSDOS_I(inode)->nr_caches++; inode 150 fs/fat/cache.c spin_unlock(&MSDOS_I(inode)->cache_lru_lock); inode 152 fs/fat/cache.c tmp = fat_cache_alloc(inode); inode 153 fs/fat/cache.c spin_lock(&MSDOS_I(inode)->cache_lru_lock); inode 154 fs/fat/cache.c cache = fat_cache_merge(inode, new); inode 156 fs/fat/cache.c MSDOS_I(inode)->nr_caches--; inode 162 fs/fat/cache.c struct list_head *p = MSDOS_I(inode)->cache_lru.prev; inode 170 fs/fat/cache.c fat_cache_update_lru(inode, cache); inode 172 fs/fat/cache.c spin_unlock(&MSDOS_I(inode)->cache_lru_lock); inode 181 fs/fat/cache.c struct msdos_inode_info *i = MSDOS_I(inode); inode 198 fs/fat/cache.c spin_lock(&MSDOS_I(inode)->cache_lru_lock); inode 199 fs/fat/cache.c __fat_cache_inval_inode(inode); inode 200 fs/fat/cache.c spin_unlock(&MSDOS_I(inode)->cache_lru_lock); inode 219 fs/fat/cache.c struct super_block *sb = inode->i_sb; inode 225 fs/fat/cache.c BUG_ON(MSDOS_I(inode)->i_start == 0); inode 228 fs/fat/cache.c *dclus = MSDOS_I(inode)->i_start; inode 232 fs/fat/cache.c if (fat_cache_lookup(inode, cluster, &cid, fclus, dclus) < 0) { inode 246 fs/fat/cache.c MSDOS_I(inode)->i_pos); inode 251 fs/fat/cache.c nr = fat_ent_read(inode, &fatent, *dclus); inode 257 fs/fat/cache.c MSDOS_I(inode)->i_pos); inode 261 fs/fat/cache.c fat_cache_add(inode, &cid); inode 270 fs/fat/cache.c fat_cache_add(inode, &cid); inode 278 fs/fat/cache.c struct super_block *sb = inode->i_sb; inode 281 fs/fat/cache.c if (MSDOS_I(inode)->i_start == 0) inode 284 fs/fat/cache.c ret = fat_get_cluster(inode, cluster, &fclus, &dclus); inode 289 fs/fat/cache.c __func__, MSDOS_I(inode)->i_pos); inode 298 fs/fat/cache.c struct super_block *sb = inode->i_sb; inode 305 fs/fat/cache.c if ((sbi->fat_bits != 32) && (inode->i_ino == MSDOS_ROOT_INO)) { inode 312 fs/fat/cache.c last_block = (MSDOS_I(inode)->mmu_private + (sb->s_blocksize - 1)) inode 319 fs/fat/cache.c cluster = fat_bmap_cluster(inode, cluster); inode 347 fs/fat/dir.c struct super_block *sb = inode->i_sb; inode 363 fs/fat/dir.c if (fat_get_entry(inode, &cpos, &bh, &de) == -1) inode 374 fs/fat/dir.c int status = fat_parse_long(inode, &cpos, &bh, &de, inode 471 fs/fat/dir.c struct super_block *sb = inode->i_sb; inode 495 fs/fat/dir.c if (inode->i_ino == MSDOS_ROOT_INO) { inode 515 fs/fat/dir.c if (fat_get_entry(inode, &cpos, &bh, &de) == -1) inode 536 fs/fat/dir.c int status = fat_parse_long(inode, &cpos, &bh, &de, inode 648 fs/fat/dir.c inum = inode->i_ino; inode 653 fs/fat/dir.c struct inode *tmp = fat_iget(sb, i_pos); inode 682 fs/fat/dir.c struct inode *inode = filp->f_path.dentry->d_inode; inode 683 fs/fat/dir.c return __fat_readdir(inode, filp, dirent, filldir, 0, 0); inode 748 fs/fat/dir.c mutex_lock(&inode->i_mutex); inode 750 fs/fat/dir.c if (!IS_DEADDIR(inode)) { inode 751 fs/fat/dir.c ret = __fat_readdir(inode, filp, &buf, filldir, inode 754 fs/fat/dir.c mutex_unlock(&inode->i_mutex); inode 776 fs/fat/dir.c return fat_generic_ioctl(inode, filp, cmd, arg); inode 789 fs/fat/dir.c return fat_ioctl_readdir(inode, filp, d1, fat_ioctl_filldir, inode 802 fs/fat/dir.c struct inode *inode = filp->f_path.dentry->d_inode; inode 829 fs/fat/dir.c return fat_ioctl_readdir(inode, filp, d1, fat_compat_ioctl_filldir, inode 330 fs/fat/fatent.c struct super_block *sb = inode->i_sb; inode 331 fs/fat/fatent.c struct msdos_sb_info *sbi = MSDOS_SB(inode->i_sb); inode 389 fs/fat/fatent.c struct super_block *sb = inode->i_sb; inode 444 fs/fat/fatent.c struct super_block *sb = inode->i_sb; inode 517 fs/fat/fatent.c if (inode_needs_sync(inode)) inode 526 fs/fat/fatent.c fat_free_clusters(inode, cluster[0]); inode 533 fs/fat/fatent.c struct super_block *sb = inode->i_sb; inode 545 fs/fat/fatent.c cluster = fat_ent_read(inode, &fatent, cluster); inode 24 fs/fat/file.c struct msdos_sb_info *sbi = MSDOS_SB(inode->i_sb); inode 32 fs/fat/file.c if (inode->i_ino == MSDOS_ROOT_INO) inode 35 fs/fat/file.c attr = fat_attr(inode); inode 42 fs/fat/file.c int err, is_dir = S_ISDIR(inode->i_mode); inode 49 fs/fat/file.c mutex_lock(&inode->i_mutex); inode 63 fs/fat/file.c attr |= (MSDOS_I(inode)->i_attrs & ATTR_VOLUME) | inode 65 fs/fat/file.c oldattr = fat_attr(inode); inode 69 fs/fat/file.c ia.ia_ctime = current_fs_time(inode->i_sb); inode 76 fs/fat/file.c (S_IRUGO | S_IWUGO | (inode->i_mode & S_IXUGO)) inode 82 fs/fat/file.c if (inode->i_ino == MSDOS_ROOT_INO && attr != ATTR_DIR) { inode 113 fs/fat/file.c inode->i_flags |= S_IMMUTABLE; inode 115 fs/fat/file.c inode->i_flags &= S_IMMUTABLE; inode 118 fs/fat/file.c MSDOS_I(inode)->i_attrs = attr & ATTR_UNUSED; inode 119 fs/fat/file.c mark_inode_dirty(inode); inode 123 fs/fat/file.c mutex_unlock(&inode->i_mutex); inode 134 fs/fat/file.c MSDOS_SB(inode->i_sb)->options.flush) { inode 135 fs/fat/file.c fat_flush_inodes(inode->i_sb, inode, NULL); inode 156 fs/fat/file.c struct address_space *mapping = inode->i_mapping; inode 157 fs/fat/file.c loff_t start = inode->i_size, count = size - inode->i_size; inode 160 fs/fat/file.c err = generic_cont_expand_simple(inode, size); inode 164 fs/fat/file.c inode->i_ctime = inode->i_mtime = CURRENT_TIME_SEC; inode 165 fs/fat/file.c mark_inode_dirty(inode); inode 166 fs/fat/file.c if (IS_SYNC(inode)) inode 167 fs/fat/file.c err = sync_page_range_nolock(inode, mapping, start, count); inode 175 fs/fat/file.c struct super_block *sb = inode->i_sb; inode 178 fs/fat/file.c if (MSDOS_I(inode)->i_start == 0) inode 181 fs/fat/file.c fat_cache_inval_inode(inode); inode 183 fs/fat/file.c wait = IS_DIRSYNC(inode); inode 184 fs/fat/file.c i_start = free_start = MSDOS_I(inode)->i_start; inode 185 fs/fat/file.c i_logstart = MSDOS_I(inode)->i_logstart; inode 189 fs/fat/file.c MSDOS_I(inode)->i_start = 0; inode 190 fs/fat/file.c MSDOS_I(inode)->i_logstart = 0; inode 192 fs/fat/file.c MSDOS_I(inode)->i_attrs |= ATTR_ARCH; inode 193 fs/fat/file.c inode->i_ctime = inode->i_mtime = CURRENT_TIME_SEC; inode 195 fs/fat/file.c err = fat_sync_inode(inode); inode 197 fs/fat/file.c MSDOS_I(inode)->i_start = i_start; inode 198 fs/fat/file.c MSDOS_I(inode)->i_logstart = i_logstart; inode 202 fs/fat/file.c mark_inode_dirty(inode); inode 209 fs/fat/file.c ret = fat_get_cluster(inode, skip - 1, &fclus, &dclus); inode 216 fs/fat/file.c ret = fat_ent_read(inode, &fatent, dclus); inode 223 fs/fat/file.c __func__, MSDOS_I(inode)->i_pos); inode 226 fs/fat/file.c err = fat_ent_write(inode, &fatent, FAT_ENT_EOF, wait); inode 236 fs/fat/file.c inode->i_blocks = skip << (MSDOS_SB(sb)->cluster_bits - 9); inode 239 fs/fat/file.c return fat_free_clusters(inode, free_start); inode 244 fs/fat/file.c struct msdos_sb_info *sbi = MSDOS_SB(inode->i_sb); inode 252 fs/fat/file.c if (MSDOS_I(inode)->mmu_private > inode->i_size) inode 253 fs/fat/file.c MSDOS_I(inode)->mmu_private = inode->i_size; inode 255 fs/fat/file.c nr_clusters = (inode->i_size + (cluster_size - 1)) >> sbi->cluster_bits; inode 257 fs/fat/file.c fat_free(inode, nr_clusters); inode 258 fs/fat/file.c fat_flush_inodes(inode->i_sb, inode, NULL); inode 263 fs/fat/file.c struct inode *inode = dentry->d_inode; inode 264 fs/fat/file.c generic_fillattr(inode, stat); inode 265 fs/fat/file.c stat->blksize = MSDOS_SB(inode->i_sb)->cluster_size; inode 280 fs/fat/file.c if (S_ISREG(inode->i_mode)) inode 291 fs/fat/file.c if ((perm & (S_IRUGO | S_IXUGO)) != (inode->i_mode & (S_IRUGO|S_IXUGO))) inode 305 fs/fat/file.c if (current->fsuid != inode->i_uid) { inode 306 fs/fat/file.c if (in_group_p(inode->i_gid)) inode 321 fs/fat/file.c struct inode *inode = dentry->d_inode; inode 331 fs/fat/file.c if (attr->ia_size > inode->i_size) { inode 332 fs/fat/file.c error = fat_cont_expand(inode, attr->ia_size); inode 342 fs/fat/file.c if (fat_allow_set_time(sbi, inode)) inode 346 fs/fat/file.c error = inode_change_ok(inode, attr); inode 373 fs/fat/file.c if (fat_sanitize_mode(sbi, inode, &attr->ia_mode) < 0) inode 377 fs/fat/file.c error = inode_setattr(inode, attr); inode 45 fs/fat/inode.c err = fat_alloc_clusters(inode, &cluster, 1); inode 50 fs/fat/inode.c err = fat_chain_add(inode, cluster, 1); inode 52 fs/fat/inode.c fat_free_clusters(inode, cluster); inode 60 fs/fat/inode.c struct super_block *sb = inode->i_sb; inode 66 fs/fat/inode.c err = fat_bmap(inode, iblock, &phys, &mapped_blocks); inode 77 fs/fat/inode.c if (iblock != MSDOS_I(inode)->mmu_private >> sb->s_blocksize_bits) { inode 79 fs/fat/inode.c MSDOS_I(inode)->i_pos, MSDOS_I(inode)->mmu_private); inode 86 fs/fat/inode.c err = fat_add_cluster(inode); inode 94 fs/fat/inode.c MSDOS_I(inode)->mmu_private += *max_blocks << sb->s_blocksize_bits; inode 96 fs/fat/inode.c err = fat_bmap(inode, iblock, &phys, &mapped_blocks); inode 111 fs/fat/inode.c struct super_block *sb = inode->i_sb; inode 112 fs/fat/inode.c unsigned long max_blocks = bh_result->b_size >> inode->i_blkbits; inode 115 fs/fat/inode.c err = __fat_get_block(inode, iblock, &max_blocks, bh_result, create); inode 158 fs/fat/inode.c struct inode *inode = mapping->host; inode 161 fs/fat/inode.c if (!(err < 0) && !(MSDOS_I(inode)->i_attrs & ATTR_ARCH)) { inode 162 fs/fat/inode.c inode->i_mtime = inode->i_ctime = CURRENT_TIME_SEC; inode 163 fs/fat/inode.c MSDOS_I(inode)->i_attrs |= ATTR_ARCH; inode 164 fs/fat/inode.c mark_inode_dirty(inode); inode 174 fs/fat/inode.c struct inode *inode = file->f_mapping->host; inode 187 fs/fat/inode.c if (MSDOS_I(inode)->mmu_private < size) inode 195 fs/fat/inode.c return blockdev_direct_IO(rw, iocb, inode, inode->i_sb->s_bdev, iov, inode 259 fs/fat/inode.c struct super_block *sb = inode->i_sb; inode 263 fs/fat/inode.c MSDOS_I(inode)->i_pos = i_pos; inode 264 fs/fat/inode.c hlist_add_head(&MSDOS_I(inode)->i_fat_hash, inode 273 fs/fat/inode.c struct msdos_sb_info *sbi = MSDOS_SB(inode->i_sb); inode 275 fs/fat/inode.c MSDOS_I(inode)->i_pos = 0; inode 276 fs/fat/inode.c hlist_del_init(&MSDOS_I(inode)->i_fat_hash); inode 282 fs/fat/inode.c struct inode *fat_iget(struct super_block *sb, loff_t i_pos) inode 288 fs/fat/inode.c struct inode *inode = NULL; inode 295 fs/fat/inode.c inode = igrab(&i->vfs_inode); inode 296 fs/fat/inode.c if (inode) inode 300 fs/fat/inode.c return inode; inode 315 fs/fat/inode.c struct msdos_sb_info *sbi = MSDOS_SB(inode->i_sb); inode 318 fs/fat/inode.c inode->i_size = 0; inode 319 fs/fat/inode.c if (MSDOS_I(inode)->i_start == 0) inode 322 fs/fat/inode.c ret = fat_get_cluster(inode, FAT_ENT_EOF, &fclus, &dclus); inode 325 fs/fat/inode.c inode->i_size = (fclus + 1) << sbi->cluster_bits; inode 333 fs/fat/inode.c struct msdos_sb_info *sbi = MSDOS_SB(inode->i_sb); inode 336 fs/fat/inode.c MSDOS_I(inode)->i_pos = 0; inode 337 fs/fat/inode.c inode->i_uid = sbi->options.fs_uid; inode 338 fs/fat/inode.c inode->i_gid = sbi->options.fs_gid; inode 339 fs/fat/inode.c inode->i_version++; inode 340 fs/fat/inode.c inode->i_generation = get_seconds(); inode 343 fs/fat/inode.c inode->i_generation &= ~1; inode 344 fs/fat/inode.c inode->i_mode = MSDOS_MKMODE(de->attr, inode 346 fs/fat/inode.c inode->i_op = sbi->dir_ops; inode 347 fs/fat/inode.c inode->i_fop = &fat_dir_operations; inode 349 fs/fat/inode.c MSDOS_I(inode)->i_start = le16_to_cpu(de->start); inode 351 fs/fat/inode.c MSDOS_I(inode)->i_start |= (le16_to_cpu(de->starthi) << 16); inode 353 fs/fat/inode.c MSDOS_I(inode)->i_logstart = MSDOS_I(inode)->i_start; inode 354 fs/fat/inode.c error = fat_calc_dir_size(inode); inode 357 fs/fat/inode.c MSDOS_I(inode)->mmu_private = inode->i_size; inode 359 fs/fat/inode.c inode->i_nlink = fat_subdirs(inode); inode 361 fs/fat/inode.c inode->i_generation |= 1; inode 362 fs/fat/inode.c inode->i_mode = MSDOS_MKMODE(de->attr, inode 366 fs/fat/inode.c MSDOS_I(inode)->i_start = le16_to_cpu(de->start); inode 368 fs/fat/inode.c MSDOS_I(inode)->i_start |= (le16_to_cpu(de->starthi) << 16); inode 370 fs/fat/inode.c MSDOS_I(inode)->i_logstart = MSDOS_I(inode)->i_start; inode 371 fs/fat/inode.c inode->i_size = le32_to_cpu(de->size); inode 372 fs/fat/inode.c inode->i_op = &fat_file_inode_operations; inode 373 fs/fat/inode.c inode->i_fop = &fat_file_operations; inode 374 fs/fat/inode.c inode->i_mapping->a_ops = &fat_aops; inode 375 fs/fat/inode.c MSDOS_I(inode)->mmu_private = inode->i_size; inode 379 fs/fat/inode.c inode->i_flags |= S_IMMUTABLE; inode 381 fs/fat/inode.c MSDOS_I(inode)->i_attrs = de->attr & ATTR_UNUSED; inode 382 fs/fat/inode.c inode->i_blocks = ((inode->i_size + (sbi->cluster_size - 1)) inode 384 fs/fat/inode.c inode->i_mtime.tv_sec = inode 387 fs/fat/inode.c inode->i_mtime.tv_nsec = 0; inode 391 fs/fat/inode.c inode->i_ctime.tv_sec = inode 395 fs/fat/inode.c inode->i_ctime.tv_nsec = csecs * 10000000; inode 396 fs/fat/inode.c inode->i_atime.tv_sec = inode 399 fs/fat/inode.c inode->i_atime.tv_nsec = 0; inode 401 fs/fat/inode.c inode->i_ctime = inode->i_atime = inode->i_mtime; inode 406 fs/fat/inode.c struct inode *fat_build_inode(struct super_block *sb, inode 409 fs/fat/inode.c struct inode *inode; inode 412 fs/fat/inode.c inode = fat_iget(sb, i_pos); inode 413 fs/fat/inode.c if (inode) inode 415 fs/fat/inode.c inode = new_inode(sb); inode 416 fs/fat/inode.c if (!inode) { inode 417 fs/fat/inode.c inode = ERR_PTR(-ENOMEM); inode 420 fs/fat/inode.c inode->i_ino = iunique(sb, MSDOS_ROOT_INO); inode 421 fs/fat/inode.c inode->i_version = 1; inode 422 fs/fat/inode.c err = fat_fill_inode(inode, de); inode 424 fs/fat/inode.c iput(inode); inode 425 fs/fat/inode.c inode = ERR_PTR(err); inode 428 fs/fat/inode.c fat_attach(inode, i_pos); inode 429 fs/fat/inode.c insert_inode_hash(inode); inode 431 fs/fat/inode.c return inode; inode 438 fs/fat/inode.c truncate_inode_pages(&inode->i_data, 0); inode 439 fs/fat/inode.c inode->i_size = 0; inode 440 fs/fat/inode.c fat_truncate(inode); inode 441 fs/fat/inode.c clear_inode(inode); inode 446 fs/fat/inode.c struct super_block *sb = inode->i_sb; inode 450 fs/fat/inode.c fat_cache_inval_inode(inode); inode 451 fs/fat/inode.c hlist_del_init(&MSDOS_I(inode)->i_fat_hash); inode 487 fs/fat/inode.c static struct inode *fat_alloc_inode(struct super_block *sb) inode 498 fs/fat/inode.c kmem_cache_free(fat_inode_cachep, MSDOS_I(inode)); inode 560 fs/fat/inode.c struct super_block *sb = inode->i_sb; inode 568 fs/fat/inode.c i_pos = MSDOS_I(inode)->i_pos; inode 569 fs/fat/inode.c if (inode->i_ino == MSDOS_ROOT_INO || !i_pos) inode 579 fs/fat/inode.c if (i_pos != MSDOS_I(inode)->i_pos) { inode 587 fs/fat/inode.c if (S_ISDIR(inode->i_mode)) inode 590 fs/fat/inode.c raw_entry->size = cpu_to_le32(inode->i_size); inode 591 fs/fat/inode.c raw_entry->attr = fat_attr(inode); inode 592 fs/fat/inode.c raw_entry->start = cpu_to_le16(MSDOS_I(inode)->i_logstart); inode 593 fs/fat/inode.c raw_entry->starthi = cpu_to_le16(MSDOS_I(inode)->i_logstart >> 16); inode 594 fs/fat/inode.c fat_date_unix2dos(inode->i_mtime.tv_sec, &raw_entry->time, inode 598 fs/fat/inode.c fat_date_unix2dos(inode->i_ctime.tv_sec, &raw_entry->ctime, inode 600 fs/fat/inode.c fat_date_unix2dos(inode->i_atime.tv_sec, &atime, inode 602 fs/fat/inode.c raw_entry->ctime_cs = (inode->i_ctime.tv_sec & 1) * 100 + inode 603 fs/fat/inode.c inode->i_ctime.tv_nsec / 10000000; inode 616 fs/fat/inode.c return fat_write_inode(inode, 1); inode 653 fs/fat/inode.c struct inode *inode = NULL; inode 660 fs/fat/inode.c inode = ilookup(sb, fh[0]); inode 661 fs/fat/inode.c if (!inode || inode->i_generation != fh[1]) { inode 662 fs/fat/inode.c if (inode) inode 663 fs/fat/inode.c iput(inode); inode 664 fs/fat/inode.c inode = NULL; inode 666 fs/fat/inode.c if (!inode) { inode 678 fs/fat/inode.c inode = fat_iget(sb, i_pos); inode 679 fs/fat/inode.c if (inode && MSDOS_I(inode)->i_logstart != i_logstart) { inode 680 fs/fat/inode.c iput(inode); inode 681 fs/fat/inode.c inode = NULL; inode 684 fs/fat/inode.c if (!inode) { inode 698 fs/fat/inode.c if (!inode) inode 705 fs/fat/inode.c result = d_alloc_anon(inode); inode 707 fs/fat/inode.c iput(inode); inode 718 fs/fat/inode.c struct inode *inode = de->d_inode; inode 724 fs/fat/inode.c ipos_h = MSDOS_I(inode)->i_pos >> 8; inode 725 fs/fat/inode.c ipos_m = (MSDOS_I(inode)->i_pos & 0xf0) << 24; inode 726 fs/fat/inode.c ipos_l = (MSDOS_I(inode)->i_pos & 0x0f) << 28; inode 728 fs/fat/inode.c fh[0] = inode->i_ino; inode 729 fs/fat/inode.c fh[1] = inode->i_generation; inode 731 fs/fat/inode.c fh[3] = ipos_m | MSDOS_I(inode)->i_logstart; inode 745 fs/fat/inode.c struct inode *inode; inode 755 fs/fat/inode.c inode = fat_build_inode(sb, de, i_pos); inode 757 fs/fat/inode.c if (IS_ERR(inode)) { inode 758 fs/fat/inode.c parent = ERR_CAST(inode); inode 761 fs/fat/inode.c parent = d_alloc_anon(inode); inode 763 fs/fat/inode.c iput(inode); inode 1136 fs/fat/inode.c struct super_block *sb = inode->i_sb; inode 1140 fs/fat/inode.c MSDOS_I(inode)->i_pos = 0; inode 1141 fs/fat/inode.c inode->i_uid = sbi->options.fs_uid; inode 1142 fs/fat/inode.c inode->i_gid = sbi->options.fs_gid; inode 1143 fs/fat/inode.c inode->i_version++; inode 1144 fs/fat/inode.c inode->i_generation = 0; inode 1145 fs/fat/inode.c inode->i_mode = (S_IRWXUGO & ~sbi->options.fs_dmask) | S_IFDIR; inode 1146 fs/fat/inode.c inode->i_op = sbi->dir_ops; inode 1147 fs/fat/inode.c inode->i_fop = &fat_dir_operations; inode 1149 fs/fat/inode.c MSDOS_I(inode)->i_start = sbi->root_cluster; inode 1150 fs/fat/inode.c error = fat_calc_dir_size(inode); inode 1154 fs/fat/inode.c MSDOS_I(inode)->i_start = 0; inode 1155 fs/fat/inode.c inode->i_size = sbi->dir_entries * sizeof(struct msdos_dir_entry); inode 1157 fs/fat/inode.c inode->i_blocks = ((inode->i_size + (sbi->cluster_size - 1)) inode 1159 fs/fat/inode.c MSDOS_I(inode)->i_logstart = 0; inode 1160 fs/fat/inode.c MSDOS_I(inode)->mmu_private = inode->i_size; inode 1162 fs/fat/inode.c MSDOS_I(inode)->i_attrs = ATTR_NONE; inode 1163 fs/fat/inode.c inode->i_mtime.tv_sec = inode->i_atime.tv_sec = inode->i_ctime.tv_sec = 0; inode 1164 fs/fat/inode.c inode->i_mtime.tv_nsec = inode->i_atime.tv_nsec = inode->i_ctime.tv_nsec = 0; inode 1165 fs/fat/inode.c inode->i_nlink = fat_subdirs(inode)+2; inode 1176 fs/fat/inode.c struct inode *root_inode = NULL; inode 1466 fs/fat/inode.c struct address_space *mapping = inode->i_mapping; inode 1475 fs/fat/inode.c ret = sync_inode(inode, &wbc); inode 79 fs/fat/misc.c struct super_block *sb = inode->i_sb; inode 88 fs/fat/misc.c if (MSDOS_I(inode)->i_start) { inode 91 fs/fat/misc.c ret = fat_get_cluster(inode, FAT_ENT_EOF, &fclus, &dclus); inode 103 fs/fat/misc.c ret = fat_ent_read(inode, &fatent, last); inode 105 fs/fat/misc.c int wait = inode_needs_sync(inode); inode 106 fs/fat/misc.c ret = fat_ent_write(inode, &fatent, new_dclus, wait); inode 113 fs/fat/misc.c MSDOS_I(inode)->i_start = new_dclus; inode 114 fs/fat/misc.c MSDOS_I(inode)->i_logstart = new_dclus; inode 119 fs/fat/misc.c if (S_ISDIR(inode->i_mode) && IS_DIRSYNC(inode)) { inode 120 fs/fat/misc.c ret = fat_sync_inode(inode); inode 124 fs/fat/misc.c mark_inode_dirty(inode); inode 126 fs/fat/misc.c if (new_fclus != (inode->i_blocks >> (sbi->cluster_bits - 9))) { inode 128 fs/fat/misc.c new_fclus, inode->i_blocks >> (sbi->cluster_bits - 9)); inode 129 fs/fat/misc.c fat_cache_inval_inode(inode); inode 131 fs/fat/misc.c inode->i_blocks += nr_cluster << (sbi->cluster_bits - 9); inode 147 fs/fcntl.c struct inode * inode = filp->f_path.dentry->d_inode; inode 154 fs/fcntl.c if (((arg ^ filp->f_flags) & O_APPEND) && IS_APPEND(inode)) inode 159 fs/fcntl.c if (!is_owner_or_cap(inode)) inode 23 fs/fifo.c pipe_wait(inode->i_pipe); inode 31 fs/fifo.c wake_up_interruptible(&inode->i_pipe->wait); inode 39 fs/fifo.c mutex_lock(&inode->i_mutex); inode 40 fs/fifo.c pipe = inode->i_pipe; inode 43 fs/fifo.c pipe = alloc_pipe_info(inode); inode 46 fs/fifo.c inode->i_pipe = pipe; inode 63 fs/fifo.c wake_up_partner(inode); inode 72 fs/fifo.c wait_for_partner(inode, &pipe->w_counter); inode 92 fs/fifo.c wake_up_partner(inode); inode 95 fs/fifo.c wait_for_partner(inode, &pipe->r_counter); inode 115 fs/fifo.c wake_up_partner(inode); inode 124 fs/fifo.c mutex_unlock(&inode->i_mutex); inode 141 fs/fifo.c free_pipe_info(inode); inode 144 fs/fifo.c mutex_unlock(&inode->i_mutex); inode 240 fs/file_table.c struct inode *inode = dentry->d_inode; inode 242 fs/file_table.c put_write_access(inode); inode 244 fs/file_table.c if (special_file(inode->i_mode)) inode 260 fs/file_table.c struct inode *inode = dentry->d_inode; inode 273 fs/file_table.c file->f_op->release(inode, file); inode 275 fs/file_table.c if (unlikely(S_ISCHR(inode->i_mode) && inode->i_cdev != NULL)) inode 276 fs/file_table.c cdev_put(inode->i_cdev); inode 376 fs/file_table.c struct inode *inode = file->f_path.dentry->d_inode; inode 379 fs/file_table.c if (inode->i_nlink == 0) inode 383 fs/file_table.c if (S_ISREG(inode->i_mode) && (file->f_mode & FMODE_WRITE)) inode 164 fs/freevxfs/vxfs.h struct inode *vsi_fship; /* fileset header inode */ inode 165 fs/freevxfs/vxfs.h struct inode *vsi_ilist; /* inode list inode */ inode 166 fs/freevxfs/vxfs.h struct inode *vsi_stilist; /* structural inode list inode */ inode 44 fs/freevxfs/vxfs_extern.h struct inode; inode 60 fs/freevxfs/vxfs_extern.h extern struct inode * vxfs_get_fake_inode(struct super_block *, inode 65 fs/freevxfs/vxfs_extern.h extern struct inode * vxfs_iget(struct super_block *, ino_t); inode 257 fs/freevxfs/vxfs_inode.c struct inode * inode 260 fs/freevxfs/vxfs_inode.c struct inode *ip = NULL; inode 291 fs/freevxfs/vxfs_inode.c struct inode * inode 296 fs/freevxfs/vxfs_inode.c struct inode *ip; inode 67 fs/freevxfs/vxfs_lookup.c return (inode->i_size + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT; inode 207 fs/freevxfs/vxfs_lookup.c struct inode *ip = NULL; inode 243 fs/freevxfs/vxfs_lookup.c struct inode *ip = fp->f_path.dentry->d_inode; inode 154 fs/freevxfs/vxfs_super.c struct inode *root; inode 96 fs/fs-writeback.c struct super_block *sb = inode->i_sb; inode 104 fs/fs-writeback.c sb->s_op->dirty_inode(inode); inode 114 fs/fs-writeback.c if ((inode->i_state & flags) == flags) inode 121 fs/fs-writeback.c if (!list_empty(&inode->i_dentry)) { inode 122 fs/fs-writeback.c dentry = list_entry(inode->i_dentry.next, inode 128 fs/fs-writeback.c if (inode->i_ino || strcmp(inode->i_sb->s_id, "bdev")) inode 131 fs/fs-writeback.c current->comm, task_pid_nr(current), inode->i_ino, inode 132 fs/fs-writeback.c name, inode->i_sb->s_id); inode 136 fs/fs-writeback.c if ((inode->i_state & flags) != flags) { inode 137 fs/fs-writeback.c const int was_dirty = inode->i_state & I_DIRTY; inode 139 fs/fs-writeback.c inode->i_state |= flags; inode 146 fs/fs-writeback.c if (inode->i_state & I_SYNC) inode 153 fs/fs-writeback.c if (!S_ISBLK(inode->i_mode)) { inode 154 fs/fs-writeback.c if (hlist_unhashed(&inode->i_hash)) inode 157 fs/fs-writeback.c if (inode->i_state & (I_FREEING|I_CLEAR)) inode 165 fs/fs-writeback.c inode->dirtied_when = jiffies; inode 166 fs/fs-writeback.c list_move(&inode->i_list, &sb->s_dirty); inode 177 fs/fs-writeback.c if (inode->i_sb->s_op->write_inode && !is_bad_inode(inode)) inode 178 fs/fs-writeback.c return inode->i_sb->s_op->write_inode(inode, sync); inode 193 fs/fs-writeback.c struct super_block *sb = inode->i_sb; inode 196 fs/fs-writeback.c struct inode *tail_inode; inode 198 fs/fs-writeback.c tail_inode = list_entry(sb->s_dirty.next, struct inode, i_list); inode 199 fs/fs-writeback.c if (!time_after_eq(inode->dirtied_when, inode 201 fs/fs-writeback.c inode->dirtied_when = jiffies; inode 203 fs/fs-writeback.c list_move(&inode->i_list, &sb->s_dirty); inode 211 fs/fs-writeback.c list_move(&inode->i_list, &inode->i_sb->s_more_io); inode 220 fs/fs-writeback.c wake_up_bit(&inode->i_state, __I_SYNC); inode 231 fs/fs-writeback.c struct inode *inode = list_entry(delaying_queue->prev, inode 232 fs/fs-writeback.c struct inode, i_list); inode 234 fs/fs-writeback.c time_after(inode->dirtied_when, *older_than_this)) inode 236 fs/fs-writeback.c list_move(&inode->i_list, dispatch_queue); inode 272 fs/fs-writeback.c struct address_space *mapping = inode->i_mapping; inode 276 fs/fs-writeback.c BUG_ON(inode->i_state & I_SYNC); inode 279 fs/fs-writeback.c dirty = inode->i_state & I_DIRTY; inode 280 fs/fs-writeback.c inode->i_state |= I_SYNC; inode 281 fs/fs-writeback.c inode->i_state &= ~I_DIRTY; inode 289 fs/fs-writeback.c int err = write_inode(inode, wait); inode 301 fs/fs-writeback.c inode->i_state &= ~I_SYNC; inode 302 fs/fs-writeback.c if (!(inode->i_state & I_FREEING)) { inode 303 fs/fs-writeback.c if (!(inode->i_state & I_DIRTY) && inode 325 fs/fs-writeback.c inode->i_state |= I_DIRTY_PAGES; inode 330 fs/fs-writeback.c requeue_io(inode); inode 335 fs/fs-writeback.c redirty_tail(inode); inode 345 fs/fs-writeback.c inode->i_state |= I_DIRTY_PAGES; inode 346 fs/fs-writeback.c redirty_tail(inode); inode 348 fs/fs-writeback.c } else if (inode->i_state & I_DIRTY) { inode 353 fs/fs-writeback.c redirty_tail(inode); inode 354 fs/fs-writeback.c } else if (atomic_read(&inode->i_count)) { inode 358 fs/fs-writeback.c list_move(&inode->i_list, &inode_in_use); inode 363 fs/fs-writeback.c list_move(&inode->i_list, &inode_unused); inode 366 fs/fs-writeback.c inode_sync_complete(inode); inode 380 fs/fs-writeback.c if (!atomic_read(&inode->i_count)) inode 381 fs/fs-writeback.c WARN_ON(!(inode->i_state & (I_WILL_FREE|I_FREEING))); inode 383 fs/fs-writeback.c WARN_ON(inode->i_state & I_WILL_FREE); inode 385 fs/fs-writeback.c if ((wbc->sync_mode != WB_SYNC_ALL) && (inode->i_state & I_SYNC)) { inode 393 fs/fs-writeback.c requeue_io(inode); inode 400 fs/fs-writeback.c if (inode->i_state & I_SYNC) { inode 401 fs/fs-writeback.c DEFINE_WAIT_BIT(wq, &inode->i_state, __I_SYNC); inode 403 fs/fs-writeback.c wqh = bit_waitqueue(&inode->i_state, __I_SYNC); inode 409 fs/fs-writeback.c } while (inode->i_state & I_SYNC); inode 411 fs/fs-writeback.c return __sync_single_inode(inode, wbc); inode 452 fs/fs-writeback.c struct inode *inode = list_entry(sb->s_io.prev, inode 453 fs/fs-writeback.c struct inode, i_list); inode 454 fs/fs-writeback.c struct address_space *mapping = inode->i_mapping; inode 459 fs/fs-writeback.c redirty_tail(inode); inode 479 fs/fs-writeback.c requeue_io(inode); inode 486 fs/fs-writeback.c requeue_io(inode); inode 491 fs/fs-writeback.c if (time_after(inode->dirtied_when, start)) inode 498 fs/fs-writeback.c BUG_ON(inode->i_state & I_FREEING); inode 499 fs/fs-writeback.c __iget(inode); inode 501 fs/fs-writeback.c __writeback_single_inode(inode, wbc); inode 503 fs/fs-writeback.c inode->dirtied_when = jiffies; inode 504 fs/fs-writeback.c list_move(&inode->i_list, &sb->s_dirty); inode 513 fs/fs-writeback.c redirty_tail(inode); inode 516 fs/fs-writeback.c iput(inode); inode 704 fs/fs-writeback.c if (!mapping_cap_writeback_dirty(inode->i_mapping)) inode 709 fs/fs-writeback.c ret = __writeback_single_inode(inode, &wbc); inode 712 fs/fs-writeback.c inode_sync_wait(inode); inode 733 fs/fs-writeback.c ret = __writeback_single_inode(inode, wbc); inode 776 fs/fs-writeback.c if ((inode->i_state & I_DIRTY) && inode 777 fs/fs-writeback.c ((what & OSYNC_INODE) || (inode->i_state & I_DIRTY_DATASYNC))) inode 782 fs/fs-writeback.c err2 = write_inode_now(inode, 1); inode 787 fs/fs-writeback.c inode_sync_wait(inode); inode 80 fs/fuse/control.c struct inode *inode; inode 88 fs/fuse/control.c inode = new_inode(fuse_control_sb); inode 89 fs/fuse/control.c if (!inode) inode 92 fs/fuse/control.c inode->i_mode = mode; inode 93 fs/fuse/control.c inode->i_uid = fc->user_id; inode 94 fs/fuse/control.c inode->i_gid = fc->group_id; inode 95 fs/fuse/control.c inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; inode 98 fs/fuse/control.c inode->i_op = iop; inode 99 fs/fuse/control.c inode->i_fop = fop; inode 100 fs/fuse/control.c inode->i_nlink = nlink; inode 101 fs/fuse/control.c inode->i_private = fc; inode 102 fs/fuse/control.c d_add(dentry, inode); inode 89 fs/fuse/dir.c get_fuse_inode(inode)->i_time = 0; inode 159 fs/fuse/dir.c struct inode *inode = entry->d_inode; inode 161 fs/fuse/dir.c if (inode && is_bad_inode(inode)) inode 173 fs/fuse/dir.c if (!inode) inode 176 fs/fuse/dir.c fc = get_fuse_conn(inode); inode 200 fs/fuse/dir.c struct fuse_inode *fi = get_fuse_inode(inode); inode 201 fs/fuse/dir.c if (outarg.nodeid != get_node_id(inode)) { inode 211 fs/fuse/dir.c if (err || (outarg.attr.mode ^ inode->i_mode) & S_IFMT) inode 214 fs/fuse/dir.c fuse_change_attributes(inode, &outarg.attr, inode 244 fs/fuse/dir.c struct dentry *alias = d_find_alias(inode); inode 249 fs/fuse/dir.c if (!list_empty(&inode->i_dentry)) inode 254 fs/fuse/dir.c return d_splice_alias(inode, entry); inode 266 fs/fuse/dir.c *inode = NULL; inode 299 fs/fuse/dir.c *inode = fuse_iget(sb, outarg->nodeid, outarg->generation, inode 303 fs/fuse/dir.c if (!*inode) { inode 320 fs/fuse/dir.c struct inode *inode; inode 326 fs/fuse/dir.c &outarg, &inode); inode 335 fs/fuse/dir.c if (inode && get_node_id(inode) == FUSE_ROOT_ID) inode 338 fs/fuse/dir.c if (inode && S_ISDIR(inode->i_mode)) { inode 340 fs/fuse/dir.c newent = fuse_d_add_directory(entry, inode); inode 346 fs/fuse/dir.c newent = d_splice_alias(inode, entry); inode 359 fs/fuse/dir.c iput(inode); inode 387 fs/fuse/dir.c struct inode *inode; inode 448 fs/fuse/dir.c inode = fuse_iget(dir->i_sb, outentry.nodeid, outentry.generation, inode 450 fs/fuse/dir.c if (!inode) { inode 458 fs/fuse/dir.c d_instantiate(entry, inode); inode 467 fs/fuse/dir.c fuse_finish_open(inode, file, ff, &outopen); inode 487 fs/fuse/dir.c struct inode *inode; inode 518 fs/fuse/dir.c inode = fuse_iget(dir->i_sb, outarg.nodeid, outarg.generation, inode 520 fs/fuse/dir.c if (!inode) { inode 526 fs/fuse/dir.c if (S_ISDIR(inode->i_mode)) { inode 529 fs/fuse/dir.c alias = d_find_alias(inode); inode 534 fs/fuse/dir.c iput(inode); inode 537 fs/fuse/dir.c d_instantiate(entry, inode); inode 540 fs/fuse/dir.c d_instantiate(entry, inode); inode 638 fs/fuse/dir.c struct inode *inode = entry->d_inode; inode 643 fs/fuse/dir.c clear_nlink(inode); inode 644 fs/fuse/dir.c fuse_invalidate_attr(inode); inode 731 fs/fuse/dir.c struct inode *inode = entry->d_inode; inode 732 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(inode); inode 738 fs/fuse/dir.c inarg.oldnodeid = get_node_id(inode); inode 745 fs/fuse/dir.c err = create_new_entry(fc, req, newdir, newent, inode->i_mode); inode 753 fs/fuse/dir.c fuse_invalidate_attr(inode); inode 760 fs/fuse/dir.c stat->dev = inode->i_sb->s_dev; inode 762 fs/fuse/dir.c stat->mode = (inode->i_mode & S_IFMT) | (attr->mode & 07777); inode 766 fs/fuse/dir.c stat->rdev = inode->i_rdev; inode 775 fs/fuse/dir.c stat->blksize = (1 << inode->i_blkbits); inode 784 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(inode); inode 797 fs/fuse/dir.c if (file && S_ISREG(inode->i_mode)) { inode 804 fs/fuse/dir.c req->in.h.nodeid = get_node_id(inode); inode 818 fs/fuse/dir.c if ((inode->i_mode ^ outarg.attr.mode) & S_IFMT) { inode 819 fs/fuse/dir.c make_bad_inode(inode); inode 822 fs/fuse/dir.c fuse_change_attributes(inode, &outarg.attr, inode 826 fs/fuse/dir.c fuse_fillattr(inode, &outarg.attr, stat); inode 835 fs/fuse/dir.c struct fuse_inode *fi = get_fuse_inode(inode); inode 841 fs/fuse/dir.c err = fuse_do_getattr(inode, stat, file); inode 846 fs/fuse/dir.c generic_fillattr(inode, stat); inode 888 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(inode); inode 903 fs/fuse/dir.c req->in.h.nodeid = get_node_id(inode); inode 932 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(inode); inode 943 fs/fuse/dir.c ((mask & MAY_EXEC) && S_ISREG(inode->i_mode))) { inode 944 fs/fuse/dir.c err = fuse_update_attributes(inode, NULL, NULL, &refreshed); inode 950 fs/fuse/dir.c err = generic_permission(inode, mask, NULL); inode 956 fs/fuse/dir.c err = fuse_do_getattr(inode, NULL, NULL); inode 958 fs/fuse/dir.c err = generic_permission(inode, mask, NULL); inode 966 fs/fuse/dir.c err = fuse_access(inode, mask); inode 967 fs/fuse/dir.c } else if ((mask & MAY_EXEC) && S_ISREG(inode->i_mode)) { inode 968 fs/fuse/dir.c if (!(inode->i_mode & S_IXUGO)) { inode 972 fs/fuse/dir.c err = fuse_do_getattr(inode, NULL, NULL); inode 973 fs/fuse/dir.c if (!err && !(inode->i_mode & S_IXUGO)) inode 1010 fs/fuse/dir.c struct inode *inode = file->f_path.dentry->d_inode; inode 1011 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(inode); inode 1014 fs/fuse/dir.c if (is_bad_inode(inode)) inode 1028 fs/fuse/dir.c fuse_read_fill(req, file, inode, file->f_pos, PAGE_SIZE, FUSE_READDIR); inode 1038 fs/fuse/dir.c fuse_invalidate_attr(inode); /* atime changed */ inode 1044 fs/fuse/dir.c struct inode *inode = dentry->d_inode; inode 1045 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(inode); inode 1058 fs/fuse/dir.c req->in.h.nodeid = get_node_id(inode); inode 1071 fs/fuse/dir.c fuse_invalidate_attr(inode); /* atime changed */ inode 1094 fs/fuse/dir.c return fuse_open_common(inode, file, 1); inode 1099 fs/fuse/dir.c return fuse_release_common(inode, file, 1); inode 1158 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(inode); inode 1159 fs/fuse/dir.c struct fuse_inode *fi = get_fuse_inode(inode); inode 1161 fs/fuse/dir.c BUG_ON(!mutex_is_locked(&inode->i_mutex)); inode 1178 fs/fuse/dir.c struct fuse_inode *fi = get_fuse_inode(inode); inode 1182 fs/fuse/dir.c fuse_flush_writepages(inode); inode 1187 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(inode); inode 1190 fs/fuse/dir.c __fuse_release_nowrite(inode); inode 1205 fs/fuse/dir.c struct inode *inode = entry->d_inode; inode 1206 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(inode); inode 1218 fs/fuse/dir.c err = inode_change_ok(inode, attr); inode 1228 fs/fuse/dir.c if (IS_SWAPFILE(inode)) inode 1243 fs/fuse/dir.c fuse_set_nowrite(inode); inode 1259 fs/fuse/dir.c req->in.h.nodeid = get_node_id(inode); inode 1274 fs/fuse/dir.c fuse_invalidate_attr(inode); inode 1278 fs/fuse/dir.c if ((inode->i_mode ^ outarg.attr.mode) & S_IFMT) { inode 1279 fs/fuse/dir.c make_bad_inode(inode); inode 1285 fs/fuse/dir.c fuse_change_attributes_common(inode, &outarg.attr, inode 1287 fs/fuse/dir.c oldsize = inode->i_size; inode 1288 fs/fuse/dir.c i_size_write(inode, outarg.attr.size); inode 1292 fs/fuse/dir.c __fuse_release_nowrite(inode); inode 1300 fs/fuse/dir.c if (S_ISREG(inode->i_mode) && oldsize != outarg.attr.size) { inode 1302 fs/fuse/dir.c fuse_truncate(inode->i_mapping, outarg.attr.size); inode 1303 fs/fuse/dir.c invalidate_inode_pages2(inode->i_mapping); inode 1310 fs/fuse/dir.c fuse_release_nowrite(inode); inode 1326 fs/fuse/dir.c struct inode *inode = entry->d_inode; inode 1327 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(inode); inode 1332 fs/fuse/dir.c return fuse_update_attributes(inode, stat, NULL, NULL); inode 1338 fs/fuse/dir.c struct inode *inode = entry->d_inode; inode 1339 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(inode); inode 1355 fs/fuse/dir.c req->in.h.nodeid = get_node_id(inode); inode 1376 fs/fuse/dir.c struct inode *inode = entry->d_inode; inode 1377 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(inode); inode 1393 fs/fuse/dir.c req->in.h.nodeid = get_node_id(inode); inode 1425 fs/fuse/dir.c struct inode *inode = entry->d_inode; inode 1426 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(inode); inode 1445 fs/fuse/dir.c req->in.h.nodeid = get_node_id(inode); inode 1475 fs/fuse/dir.c struct inode *inode = entry->d_inode; inode 1476 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(inode); inode 1488 fs/fuse/dir.c req->in.h.nodeid = get_node_id(inode); inode 1554 fs/fuse/dir.c inode->i_op = &fuse_common_inode_operations; inode 1559 fs/fuse/dir.c inode->i_op = &fuse_dir_inode_operations; inode 1560 fs/fuse/dir.c inode->i_fop = &fuse_dir_operations; inode 1565 fs/fuse/dir.c inode->i_op = &fuse_symlink_inode_operations; inode 21 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); inode 35 fs/fuse/file.c req->in.h.nodeid = get_node_id(inode); inode 89 fs/fuse/file.c struct inode *inode = req->misc.release.dentry->d_inode; inode 90 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); inode 103 fs/fuse/file.c invalidate_inode_pages2(inode->i_mapping); inode 118 fs/fuse/file.c err = generic_file_open(inode, file); inode 126 fs/fuse/file.c err = fuse_send_open(inode, file, isdir, &outarg); inode 132 fs/fuse/file.c fuse_finish_open(inode, file, ff, &outarg); inode 156 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); inode 159 fs/fuse/file.c fuse_release_fill(ff, get_node_id(inode), file->f_flags, inode 183 fs/fuse/file.c return fuse_open_common(inode, file, 0); inode 188 fs/fuse/file.c return fuse_release_common(inode, file, 0); inode 221 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); inode 222 fs/fuse/file.c struct fuse_inode *fi = get_fuse_inode(inode); inode 230 fs/fuse/file.c BUG_ON(req->inode != inode); inode 250 fs/fuse/file.c struct fuse_inode *fi = get_fuse_inode(inode); inode 252 fs/fuse/file.c wait_event(fi->page_waitq, !fuse_page_is_writeback(inode, index)); inode 258 fs/fuse/file.c struct inode *inode = file->f_path.dentry->d_inode; inode 259 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); inode 265 fs/fuse/file.c if (is_bad_inode(inode)) inode 276 fs/fuse/file.c req->in.h.nodeid = get_node_id(inode); inode 302 fs/fuse/file.c fuse_set_nowrite(inode); inode 303 fs/fuse/file.c fuse_release_nowrite(inode); inode 309 fs/fuse/file.c struct inode *inode = de->d_inode; inode 310 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); inode 316 fs/fuse/file.c if (is_bad_inode(inode)) inode 327 fs/fuse/file.c err = write_inode_now(inode, 0); inode 331 fs/fuse/file.c fuse_sync_writes(inode); inode 341 fs/fuse/file.c req->in.h.nodeid = get_node_id(inode); inode 374 fs/fuse/file.c req->in.h.nodeid = get_node_id(inode); inode 388 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); inode 390 fs/fuse/file.c fuse_read_fill(req, file, inode, pos, count, FUSE_READ); inode 404 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); inode 405 fs/fuse/file.c struct fuse_inode *fi = get_fuse_inode(inode); inode 408 fs/fuse/file.c if (attr_ver == fi->attr_version && size < inode->i_size) { inode 410 fs/fuse/file.c i_size_write(inode, size); inode 417 fs/fuse/file.c struct inode *inode = page->mapping->host; inode 418 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); inode 427 fs/fuse/file.c if (is_bad_inode(inode)) inode 435 fs/fuse/file.c fuse_wait_on_page_writeback(inode, page->index); inode 447 fs/fuse/file.c num_read = fuse_send_read(req, file, inode, pos, count, NULL); inode 456 fs/fuse/file.c fuse_read_update_size(inode, pos + num_read, attr_ver); inode 461 fs/fuse/file.c fuse_invalidate_attr(inode); /* atime changed */ inode 472 fs/fuse/file.c struct inode *inode = req->pages[0]->mapping->host; inode 479 fs/fuse/file.c fuse_read_update_size(inode, pos, req->misc.read.attr_ver); inode 482 fs/fuse/file.c fuse_invalidate_attr(inode); /* atime changed */ inode 500 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); inode 504 fs/fuse/file.c fuse_read_fill(req, file, inode, pos, count, FUSE_READ); inode 520 fs/fuse/file.c struct inode *inode; inode 527 fs/fuse/file.c struct inode *inode = data->inode; inode 528 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); inode 530 fs/fuse/file.c fuse_wait_on_page_writeback(inode, page->index); inode 536 fs/fuse/file.c fuse_send_readpages(req, data->file, inode); inode 551 fs/fuse/file.c struct inode *inode = mapping->host; inode 552 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); inode 557 fs/fuse/file.c if (is_bad_inode(inode)) inode 561 fs/fuse/file.c data.inode = inode; inode 570 fs/fuse/file.c fuse_send_readpages(data.req, file, inode); inode 581 fs/fuse/file.c struct inode *inode = iocb->ki_filp->f_mapping->host; inode 583 fs/fuse/file.c if (pos + iov_length(iov, nr_segs) > i_size_read(inode)) { inode 589 fs/fuse/file.c err = fuse_update_attributes(inode, NULL, iocb->ki_filp, NULL); inode 601 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); inode 612 fs/fuse/file.c req->in.h.nodeid = get_node_id(inode); inode 630 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); inode 631 fs/fuse/file.c fuse_write_fill(req, file, file->private_data, inode, pos, count, 0); inode 655 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); inode 656 fs/fuse/file.c struct fuse_inode *fi = get_fuse_inode(inode); inode 660 fs/fuse/file.c if (pos > inode->i_size) inode 661 fs/fuse/file.c i_size_write(inode, pos); inode 670 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); inode 674 fs/fuse/file.c if (is_bad_inode(inode)) inode 681 fs/fuse/file.c fuse_wait_on_page_writeback(inode, page->index); inode 690 fs/fuse/file.c nres = fuse_send_write(req, file, inode, pos, count, NULL); inode 697 fs/fuse/file.c fuse_write_update_size(inode, pos); inode 701 fs/fuse/file.c fuse_invalidate_attr(inode); inode 709 fs/fuse/file.c struct inode *inode = mapping->host; inode 713 fs/fuse/file.c res = fuse_buffered_write(file, inode, pos, copied, page); inode 729 fs/fuse/file.c fuse_wait_on_page_writeback(inode, req->pages[i]->index); inode 731 fs/fuse/file.c res = fuse_send_write(req, file, inode, pos, count, NULL); inode 819 fs/fuse/file.c struct inode *inode = mapping->host; inode 820 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); inode 824 fs/fuse/file.c if (is_bad_inode(inode)) inode 843 fs/fuse/file.c num_written = fuse_send_write_pages(req, file, inode, inode 859 fs/fuse/file.c fuse_write_update_size(inode, pos); inode 861 fs/fuse/file.c fuse_invalidate_attr(inode); inode 873 fs/fuse/file.c struct inode *inode = mapping->host; inode 883 fs/fuse/file.c mutex_lock(&inode->i_mutex); inode 884 fs/fuse/file.c vfs_check_frozen(inode->i_sb, SB_FREEZE_WRITE); inode 889 fs/fuse/file.c err = generic_write_checks(file, &pos, &count, S_ISBLK(inode->i_mode)); inode 909 fs/fuse/file.c mutex_unlock(&inode->i_mutex); inode 955 fs/fuse/file.c struct inode *inode = file->f_path.dentry->d_inode; inode 956 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); inode 962 fs/fuse/file.c if (is_bad_inode(inode)) inode 981 fs/fuse/file.c nres = fuse_send_write(req, file, inode, pos, nbytes, inode 984 fs/fuse/file.c nres = fuse_send_read(req, file, inode, pos, nbytes, inode 1011 fs/fuse/file.c fuse_write_update_size(inode, pos); inode 1014 fs/fuse/file.c fuse_invalidate_attr(inode); inode 1028 fs/fuse/file.c struct inode *inode = file->f_path.dentry->d_inode; inode 1031 fs/fuse/file.c mutex_lock(&inode->i_mutex); inode 1035 fs/fuse/file.c mutex_unlock(&inode->i_mutex); inode 1048 fs/fuse/file.c struct inode *inode = req->inode; inode 1049 fs/fuse/file.c struct fuse_inode *fi = get_fuse_inode(inode); inode 1050 fs/fuse/file.c struct backing_dev_info *bdi = inode->i_mapping->backing_dev_info; inode 1062 fs/fuse/file.c struct fuse_inode *fi = get_fuse_inode(req->inode); inode 1063 fs/fuse/file.c loff_t size = i_size_read(req->inode); inode 1098 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); inode 1099 fs/fuse/file.c struct fuse_inode *fi = get_fuse_inode(inode); inode 1111 fs/fuse/file.c struct inode *inode = req->inode; inode 1112 fs/fuse/file.c struct fuse_inode *fi = get_fuse_inode(inode); inode 1114 fs/fuse/file.c mapping_set_error(inode->i_mapping, req->out.h.error); inode 1125 fs/fuse/file.c struct inode *inode = mapping->host; inode 1126 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); inode 1127 fs/fuse/file.c struct fuse_inode *fi = get_fuse_inode(inode); inode 1148 fs/fuse/file.c fuse_write_fill(req, NULL, ff, inode, page_offset(page), 0, 1); inode 1155 fs/fuse/file.c req->inode = inode; inode 1164 fs/fuse/file.c fuse_flush_writepages(inode); inode 1190 fs/fuse/file.c struct inode *inode = page->mapping->host; inode 1193 fs/fuse/file.c fuse_wait_on_page_writeback(inode, page->index); inode 1228 fs/fuse/file.c struct inode *inode = vma->vm_file->f_mapping->host; inode 1230 fs/fuse/file.c fuse_wait_on_page_writeback(inode, page->index); inode 1243 fs/fuse/file.c struct inode *inode = file->f_dentry->d_inode; inode 1244 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); inode 1245 fs/fuse/file.c struct fuse_inode *fi = get_fuse_inode(inode); inode 1290 fs/fuse/file.c struct inode *inode = file->f_path.dentry->d_inode; inode 1291 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); inode 1304 fs/fuse/file.c req->in.h.nodeid = get_node_id(inode); inode 1312 fs/fuse/file.c struct inode *inode = file->f_path.dentry->d_inode; inode 1313 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); inode 1337 fs/fuse/file.c struct inode *inode = file->f_path.dentry->d_inode; inode 1338 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); inode 1369 fs/fuse/file.c struct inode *inode = file->f_path.dentry->d_inode; inode 1370 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); inode 1392 fs/fuse/file.c struct inode *inode = file->f_path.dentry->d_inode; inode 1393 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); inode 1409 fs/fuse/file.c struct inode *inode = mapping->host; inode 1410 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); inode 1416 fs/fuse/file.c if (!inode->i_sb->s_bdev || fc->no_bmap) inode 1425 fs/fuse/file.c inarg.blocksize = inode->i_sb->s_blocksize; inode 1427 fs/fuse/file.c req->in.h.nodeid = get_node_id(inode); inode 1446 fs/fuse/file.c struct inode *inode = file->f_path.dentry->d_inode; inode 1448 fs/fuse/file.c mutex_lock(&inode->i_mutex); inode 1451 fs/fuse/file.c offset += i_size_read(inode); inode 1457 fs/fuse/file.c if (offset >= 0 && offset <= inode->i_sb->s_maxbytes) { inode 1464 fs/fuse/file.c mutex_unlock(&inode->i_mutex); inode 1510 fs/fuse/file.c inode->i_fop = &fuse_file_operations; inode 1511 fs/fuse/file.c inode->i_data.a_ops = &fuse_file_aops; inode 56 fs/fuse/fuse_i.h struct inode inode; inode 266 fs/fuse/fuse_i.h struct inode *inode; inode 454 fs/fuse/fuse_i.h return get_fuse_conn_super(inode->i_sb); inode 459 fs/fuse/fuse_i.h return container_of(inode, struct fuse_inode, inode); inode 464 fs/fuse/fuse_i.h return get_fuse_inode(inode)->nodeid; inode 475 fs/fuse/fuse_i.h struct inode *fuse_iget(struct super_block *sb, u64 nodeid, inode 49 fs/fuse/inode.c static struct inode *fuse_alloc_inode(struct super_block *sb) inode 51 fs/fuse/inode.c struct inode *inode; inode 54 fs/fuse/inode.c inode = kmem_cache_alloc(fuse_inode_cachep, GFP_KERNEL); inode 55 fs/fuse/inode.c if (!inode) inode 58 fs/fuse/inode.c fi = get_fuse_inode(inode); inode 70 fs/fuse/inode.c kmem_cache_free(fuse_inode_cachep, inode); inode 74 fs/fuse/inode.c return inode; inode 79 fs/fuse/inode.c struct fuse_inode *fi = get_fuse_inode(inode); inode 84 fs/fuse/inode.c kmem_cache_free(fuse_inode_cachep, inode); inode 102 fs/fuse/inode.c if (inode->i_sb->s_flags & MS_ACTIVE) { inode 103 fs/fuse/inode.c struct fuse_conn *fc = get_fuse_conn(inode); inode 104 fs/fuse/inode.c struct fuse_inode *fi = get_fuse_inode(inode); inode 129 fs/fuse/inode.c struct fuse_conn *fc = get_fuse_conn(inode); inode 130 fs/fuse/inode.c struct fuse_inode *fi = get_fuse_inode(inode); inode 135 fs/fuse/inode.c inode->i_ino = attr->ino; inode 136 fs/fuse/inode.c inode->i_mode = (inode->i_mode & S_IFMT) | (attr->mode & 07777); inode 137 fs/fuse/inode.c inode->i_nlink = attr->nlink; inode 138 fs/fuse/inode.c inode->i_uid = attr->uid; inode 139 fs/fuse/inode.c inode->i_gid = attr->gid; inode 140 fs/fuse/inode.c inode->i_blocks = attr->blocks; inode 141 fs/fuse/inode.c inode->i_atime.tv_sec = attr->atime; inode 142 fs/fuse/inode.c inode->i_atime.tv_nsec = attr->atimensec; inode 143 fs/fuse/inode.c inode->i_mtime.tv_sec = attr->mtime; inode 144 fs/fuse/inode.c inode->i_mtime.tv_nsec = attr->mtimensec; inode 145 fs/fuse/inode.c inode->i_ctime.tv_sec = attr->ctime; inode 146 fs/fuse/inode.c inode->i_ctime.tv_nsec = attr->ctimensec; inode 149 fs/fuse/inode.c inode->i_blkbits = ilog2(attr->blksize); inode 151 fs/fuse/inode.c inode->i_blkbits = inode->i_sb->s_blocksize_bits; inode 158 fs/fuse/inode.c fi->orig_i_mode = inode->i_mode; inode 160 fs/fuse/inode.c inode->i_mode &= ~S_ISVTX; inode 166 fs/fuse/inode.c struct fuse_conn *fc = get_fuse_conn(inode); inode 167 fs/fuse/inode.c struct fuse_inode *fi = get_fuse_inode(inode); inode 176 fs/fuse/inode.c fuse_change_attributes_common(inode, attr, attr_valid); inode 178 fs/fuse/inode.c oldsize = inode->i_size; inode 179 fs/fuse/inode.c i_size_write(inode, attr->size); inode 182 fs/fuse/inode.c if (S_ISREG(inode->i_mode) && oldsize != attr->size) { inode 184 fs/fuse/inode.c fuse_truncate(inode->i_mapping, attr->size); inode 185 fs/fuse/inode.c invalidate_inode_pages2(inode->i_mapping); inode 191 fs/fuse/inode.c inode->i_mode = attr->mode & S_IFMT; inode 192 fs/fuse/inode.c inode->i_size = attr->size; inode 193 fs/fuse/inode.c if (S_ISREG(inode->i_mode)) { inode 194 fs/fuse/inode.c fuse_init_common(inode); inode 195 fs/fuse/inode.c fuse_init_file_inode(inode); inode 196 fs/fuse/inode.c } else if (S_ISDIR(inode->i_mode)) inode 197 fs/fuse/inode.c fuse_init_dir(inode); inode 198 fs/fuse/inode.c else if (S_ISLNK(inode->i_mode)) inode 199 fs/fuse/inode.c fuse_init_symlink(inode); inode 200 fs/fuse/inode.c else if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode) || inode 201 fs/fuse/inode.c S_ISFIFO(inode->i_mode) || S_ISSOCK(inode->i_mode)) { inode 202 fs/fuse/inode.c fuse_init_common(inode); inode 203 fs/fuse/inode.c init_special_inode(inode, inode->i_mode, inode 212 fs/fuse/inode.c if (get_node_id(inode) == nodeid) inode 221 fs/fuse/inode.c get_fuse_inode(inode)->nodeid = nodeid; inode 225 fs/fuse/inode.c struct inode *fuse_iget(struct super_block *sb, u64 nodeid, inode 229 fs/fuse/inode.c struct inode *inode; inode 234 fs/fuse/inode.c inode = iget5_locked(sb, nodeid, fuse_inode_eq, fuse_inode_set, &nodeid); inode 235 fs/fuse/inode.c if (!inode) inode 238 fs/fuse/inode.c if ((inode->i_state & I_NEW)) { inode 239 fs/fuse/inode.c inode->i_flags |= S_NOATIME|S_NOCMTIME; inode 240 fs/fuse/inode.c inode->i_generation = generation; inode 241 fs/fuse/inode.c inode->i_data.backing_dev_info = &fc->bdi; inode 242 fs/fuse/inode.c fuse_init_inode(inode, attr); inode 243 fs/fuse/inode.c unlock_new_inode(inode); inode 244 fs/fuse/inode.c } else if ((inode->i_mode ^ attr->mode) & S_IFMT) { inode 246 fs/fuse/inode.c make_bad_inode(inode); inode 247 fs/fuse/inode.c iput(inode); inode 251 fs/fuse/inode.c fi = get_fuse_inode(inode); inode 255 fs/fuse/inode.c fuse_change_attributes(inode, attr, attr_valid, attr_version); inode 257 fs/fuse/inode.c return inode; inode 545 fs/fuse/inode.c static struct inode *get_root_inode(struct super_block *sb, unsigned mode) inode 566 fs/fuse/inode.c struct inode *inode; inode 573 fs/fuse/inode.c inode = ilookup5(sb, handle->nodeid, fuse_inode_eq, &handle->nodeid); inode 574 fs/fuse/inode.c if (!inode) { inode 584 fs/fuse/inode.c &inode); inode 587 fs/fuse/inode.c if (err || !inode) { inode 592 fs/fuse/inode.c if (get_node_id(inode) != handle->nodeid) inode 596 fs/fuse/inode.c if (inode->i_generation != handle->generation) inode 599 fs/fuse/inode.c entry = d_alloc_anon(inode); inode 604 fs/fuse/inode.c if (get_node_id(inode) != FUSE_ROOT_ID) { inode 612 fs/fuse/inode.c iput(inode); inode 620 fs/fuse/inode.c struct inode *inode = dentry->d_inode; inode 621 fs/fuse/inode.c bool encode_parent = connectable && !S_ISDIR(inode->i_mode); inode 629 fs/fuse/inode.c nodeid = get_fuse_inode(inode)->nodeid; inode 630 fs/fuse/inode.c generation = inode->i_generation; inode 637 fs/fuse/inode.c struct inode *parent; inode 684 fs/fuse/inode.c struct inode *child_inode = child->d_inode; inode 686 fs/fuse/inode.c struct inode *inode; inode 698 fs/fuse/inode.c &name, &outarg, &inode); inode 701 fs/fuse/inode.c if (err || !inode) inode 704 fs/fuse/inode.c parent = d_alloc_anon(inode); inode 706 fs/fuse/inode.c iput(inode); inode 709 fs/fuse/inode.c if (get_node_id(inode) != FUSE_ROOT_ID) { inode 803 fs/fuse/inode.c struct inode *root; inode 961 fs/fuse/inode.c struct inode * inode = foo; inode 963 fs/fuse/inode.c inode_init_once(inode); inode 25 fs/generic_acl.c acl = ops->getacl(inode, type); inode 59 fs/generic_acl.c acl = ops->getacl(inode, type); inode 79 fs/generic_acl.c if (S_ISLNK(inode->i_mode)) inode 81 fs/generic_acl.c if (!is_owner_or_cap(inode)) inode 96 fs/generic_acl.c mode = inode->i_mode; inode 100 fs/generic_acl.c inode->i_mode = mode; inode 108 fs/generic_acl.c if (!S_ISDIR(inode->i_mode)) { inode 115 fs/generic_acl.c ops->setacl(inode, type, acl); inode 134 fs/generic_acl.c mode_t mode = inode->i_mode; inode 137 fs/generic_acl.c inode->i_mode = mode & ~current->fs->umask; inode 138 fs/generic_acl.c if (!S_ISLNK(inode->i_mode)) inode 143 fs/generic_acl.c if (S_ISDIR(inode->i_mode)) { inode 148 fs/generic_acl.c ops->setacl(inode, ACL_TYPE_DEFAULT, clone); inode 157 fs/generic_acl.c inode->i_mode = mode; inode 159 fs/generic_acl.c ops->setacl(inode, ACL_TYPE_ACCESS, clone); inode 183 fs/generic_acl.c if (S_ISLNK(inode->i_mode)) inode 185 fs/generic_acl.c acl = ops->getacl(inode, ACL_TYPE_ACCESS); inode 191 fs/generic_acl.c error = posix_acl_chmod_masq(clone, inode->i_mode); inode 193 fs/generic_acl.c ops->setacl(inode, ACL_TYPE_ACCESS, clone); inode 160 fs/gfs2/acl.c error = acl_get(GFS2_I(inode), ACL_ACCESS, &acl, NULL, NULL, NULL); inode 165 fs/gfs2/acl.c error = posix_acl_permission(inode, acl, mask); inode 63 fs/gfs2/bmap.c struct inode *inode = &ip->i_inode; inode 68 fs/gfs2/bmap.c page = grab_cache_page(inode->i_mapping, 0); inode 87 fs/gfs2/bmap.c create_empty_buffers(page, 1 << inode->i_blkbits, inode 93 fs/gfs2/bmap.c map_bh(bh, inode->i_sb, block); inode 431 fs/gfs2/bmap.c struct gfs2_inode *ip = GFS2_I(inode); inode 432 fs/gfs2/bmap.c struct gfs2_sbd *sdp = GFS2_SB(inode); inode 545 fs/gfs2/bmap.c map_bh(bh_map, inode->i_sb, dblock); inode 546 fs/gfs2/bmap.c bh_map->b_size = dblks << inode->i_blkbits; inode 568 fs/gfs2/bmap.c struct gfs2_inode *ip = GFS2_I(inode); inode 569 fs/gfs2/bmap.c struct gfs2_sbd *sdp = GFS2_SB(inode); inode 571 fs/gfs2/bmap.c const unsigned int maxlen = bh_map->b_size >> inode->i_blkbits; inode 614 fs/gfs2/bmap.c map_bh(bh_map, inode->i_sb, be64_to_cpu(*ptr)); inode 617 fs/gfs2/bmap.c bh_map->b_size = (len << inode->i_blkbits); inode 635 fs/gfs2/bmap.c ret = gfs2_bmap_alloc(inode, lblock, bh_map, &mp, ret, height, maxlen); inode 652 fs/gfs2/bmap.c bh.b_size = 1 << (inode->i_blkbits + (create ? 0 : 5)); inode 653 fs/gfs2/bmap.c ret = gfs2_block_map(inode, lblock, &bh, create); inode 654 fs/gfs2/bmap.c *extlen = bh.b_size >> inode->i_blkbits; inode 955 fs/gfs2/bmap.c struct inode *inode = mapping->host; inode 956 fs/gfs2/bmap.c struct gfs2_inode *ip = GFS2_I(inode); inode 957 fs/gfs2/bmap.c loff_t from = inode->i_size; inode 969 fs/gfs2/bmap.c blocksize = inode->i_sb->s_blocksize; inode 971 fs/gfs2/bmap.c iblock = index << (PAGE_CACHE_SHIFT - inode->i_sb->s_blocksize_bits); inode 988 fs/gfs2/bmap.c gfs2_block_map(inode, iblock, bh, 0); inode 13 fs/gfs2/bmap.h struct inode; inode 525 fs/gfs2/dir.c gfs2_consist_inode(GFS2_I(inode)); inode 668 fs/gfs2/dir.c struct gfs2_inode *ip = GFS2_I(inode); inode 688 fs/gfs2/dir.c dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, inode 692 fs/gfs2/dir.c return gfs2_init_dirent(inode, dent, name, bh); inode 755 fs/gfs2/dir.c struct gfs2_inode *ip = GFS2_I(inode); inode 773 fs/gfs2/dir.c dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, inode 793 fs/gfs2/dir.c dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, scan, name, NULL); inode 805 fs/gfs2/dir.c struct gfs2_inode *ip = GFS2_I(inode); inode 814 fs/gfs2/dir.c gfs2_trans_add_unrevoke(GFS2_SB(inode), bn, 1); inode 838 fs/gfs2/dir.c struct gfs2_inode *dip = GFS2_I(inode); inode 839 fs/gfs2/dir.c struct gfs2_sbd *sdp = GFS2_SB(inode); inode 856 fs/gfs2/dir.c leaf = new_leaf(inode, &bh, 0); inode 933 fs/gfs2/dir.c struct gfs2_inode *dip = GFS2_I(inode); inode 962 fs/gfs2/dir.c nleaf = new_leaf(inode, &nbh, be16_to_cpu(oleaf->lf_depth) + 1); inode 1016 fs/gfs2/dir.c new = gfs2_dirent_alloc(inode, nbh, &str); inode 1264 fs/gfs2/dir.c struct gfs2_inode *ip = GFS2_I(inode); inode 1265 fs/gfs2/dir.c struct gfs2_sbd *sdp = GFS2_SB(inode); inode 1316 fs/gfs2/dir.c dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, inode 1362 fs/gfs2/dir.c struct gfs2_inode *dip = GFS2_I(inode); inode 1363 fs/gfs2/dir.c struct gfs2_sbd *sdp = GFS2_SB(inode); inode 1401 fs/gfs2/dir.c error = gfs2_dir_read_leaf(inode, offset, opaque, filldir, inode 1421 fs/gfs2/dir.c struct gfs2_inode *dip = GFS2_I(inode); inode 1422 fs/gfs2/dir.c struct gfs2_sbd *sdp = GFS2_SB(inode); inode 1433 fs/gfs2/dir.c return dir_e_read(inode, offset, opaque, filldir); inode 1450 fs/gfs2/dir.c dent = gfs2_dirent_scan(inode, dibh->b_data, dibh->b_size, inode 1491 fs/gfs2/dir.c struct inode *gfs2_dir_search(struct inode *dir, const struct qstr *name) inode 1495 fs/gfs2/dir.c struct inode *inode; inode 1501 fs/gfs2/dir.c inode = gfs2_inode_lookup(dir->i_sb, inode 1506 fs/gfs2/dir.c return inode; inode 1545 fs/gfs2/dir.c struct gfs2_inode *ip = GFS2_I(inode); inode 1568 fs/gfs2/dir.c leaf = new_leaf(inode, &bh, be16_to_cpu(oleaf->lf_depth)); inode 1600 fs/gfs2/dir.c struct gfs2_inode *ip = GFS2_I(inode); inode 1607 fs/gfs2/dir.c dent = gfs2_dirent_search(inode, name, gfs2_dirent_find_space, inode 1612 fs/gfs2/dir.c dent = gfs2_init_dirent(inode, dent, name, bh); inode 1632 fs/gfs2/dir.c error = dir_make_exhash(inode); inode 1637 fs/gfs2/dir.c error = dir_split_leaf(inode, name); inode 1646 fs/gfs2/dir.c error = dir_split_leaf(inode, name); inode 1652 fs/gfs2/dir.c error = dir_new_leaf(inode, name); inode 2013 fs/gfs2/dir.c dent = gfs2_dirent_search(inode, name, gfs2_dirent_find_space, &bh); inode 15 fs/gfs2/dir.h struct inode; inode 19 fs/gfs2/dir.h struct inode *gfs2_dir_search(struct inode *dir, const struct qstr *filename); inode 154 fs/gfs2/glock.c struct inode *aspace = gl->gl_aspace; inode 1910 fs/gfs2/glock.c gi->sdp = inode->i_private; inode 83 fs/gfs2/glops.c struct inode *inode; inode 86 fs/gfs2/glops.c inode = &ip->i_inode; inode 87 fs/gfs2/glops.c if (!ip || !S_ISREG(inode->i_mode)) inode 90 fs/gfs2/glops.c unmap_shared_mapping_range(inode->i_mapping, 0, 0); inode 201 fs/gfs2/incore.h struct inode *gl_aspace; inode 246 fs/gfs2/incore.h struct inode i_inode; inode 269 fs/gfs2/incore.h return container_of(inode, struct gfs2_inode, i_inode); inode 274 fs/gfs2/incore.h return inode->i_sb->s_fs_info; inode 363 fs/gfs2/incore.h struct inode *jd_inode; inode 504 fs/gfs2/incore.h struct inode *sd_jindex; inode 505 fs/gfs2/incore.h struct inode *sd_inum_inode; inode 506 fs/gfs2/incore.h struct inode *sd_statfs_inode; inode 507 fs/gfs2/incore.h struct inode *sd_ir_inode; inode 508 fs/gfs2/incore.h struct inode *sd_sc_inode; inode 509 fs/gfs2/incore.h struct inode *sd_qc_inode; inode 510 fs/gfs2/incore.h struct inode *sd_rindex; inode 511 fs/gfs2/incore.h struct inode *sd_quota_inode; inode 48 fs/gfs2/inode.c struct gfs2_inode *ip = GFS2_I(inode); inode 59 fs/gfs2/inode.c struct gfs2_inode *ip = GFS2_I(inode); inode 62 fs/gfs2/inode.c inode->i_ino = (unsigned long)*no_addr; inode 68 fs/gfs2/inode.c struct inode *gfs2_ilookup(struct super_block *sb, u64 no_addr) inode 74 fs/gfs2/inode.c static struct inode *gfs2_iget(struct super_block *sb, u64 no_addr) inode 87 fs/gfs2/inode.c struct gfs2_inode *ip = GFS2_I(inode); inode 91 fs/gfs2/inode.c if (inode->i_state & (I_FREEING|I_CLEAR|I_WILL_FREE)){ inode 102 fs/gfs2/inode.c struct gfs2_inode *ip = GFS2_I(inode); inode 107 fs/gfs2/inode.c inode->i_ino = (unsigned long)(data->no_addr); inode 113 fs/gfs2/inode.c static struct inode *gfs2_iget_skip(struct super_block *sb, inode 136 fs/gfs2/inode.c struct gfs2_sbd *sdp = GFS2_SB(inode); inode 137 fs/gfs2/inode.c umode_t mode = inode->i_mode; inode 140 fs/gfs2/inode.c inode->i_op = &gfs2_file_iops; inode 142 fs/gfs2/inode.c inode->i_fop = &gfs2_file_fops_nolock; inode 144 fs/gfs2/inode.c inode->i_fop = &gfs2_file_fops; inode 146 fs/gfs2/inode.c inode->i_op = &gfs2_dir_iops; inode 148 fs/gfs2/inode.c inode->i_fop = &gfs2_dir_fops_nolock; inode 150 fs/gfs2/inode.c inode->i_fop = &gfs2_dir_fops; inode 152 fs/gfs2/inode.c inode->i_op = &gfs2_symlink_iops; inode 154 fs/gfs2/inode.c inode->i_op = &gfs2_file_iops; inode 155 fs/gfs2/inode.c init_special_inode(inode, inode->i_mode, inode->i_rdev); inode 158 fs/gfs2/inode.c unlock_new_inode(inode); inode 171 fs/gfs2/inode.c struct inode *gfs2_inode_lookup(struct super_block *sb, inode 176 fs/gfs2/inode.c struct inode *inode; inode 182 fs/gfs2/inode.c inode = gfs2_iget_skip(sb, no_addr); inode 184 fs/gfs2/inode.c inode = gfs2_iget(sb, no_addr); inode 185 fs/gfs2/inode.c ip = GFS2_I(inode); inode 187 fs/gfs2/inode.c if (!inode) inode 190 fs/gfs2/inode.c if (inode->i_state & I_NEW) { inode 191 fs/gfs2/inode.c struct gfs2_sbd *sdp = GFS2_SB(inode); inode 214 fs/gfs2/inode.c inode->i_mode = DT2IF(type); inode 232 fs/gfs2/inode.c gfs2_set_iop(inode); inode 236 fs/gfs2/inode.c return inode; inode 245 fs/gfs2/inode.c iget_failed(inode); inode 450 fs/gfs2/inode.c struct inode *gfs2_lookup_simple(struct inode *dip, const char *name) inode 453 fs/gfs2/inode.c struct inode *inode; inode 455 fs/gfs2/inode.c inode = gfs2_lookupi(dip, &qstr, 1); inode 461 fs/gfs2/inode.c if (inode == NULL) inode 464 fs/gfs2/inode.c return inode; inode 483 fs/gfs2/inode.c struct inode *gfs2_lookupi(struct inode *dir, const struct qstr *name, inode 490 fs/gfs2/inode.c struct inode *inode = NULL; inode 516 fs/gfs2/inode.c inode = gfs2_dir_search(dir, name); inode 517 fs/gfs2/inode.c if (IS_ERR(inode)) inode 518 fs/gfs2/inode.c error = PTR_ERR(inode); inode 524 fs/gfs2/inode.c return inode ? inode : ERR_PTR(error); inode 975 fs/gfs2/inode.c struct inode *gfs2_createi(struct gfs2_holder *ghs, const struct qstr *name, inode 978 fs/gfs2/inode.c struct inode *inode = NULL; inode 980 fs/gfs2/inode.c struct inode *dir = &dip->i_inode; inode 1016 fs/gfs2/inode.c inode = gfs2_inode_lookup(dir->i_sb, IF2DT(mode), inode 1019 fs/gfs2/inode.c if (IS_ERR(inode)) inode 1022 fs/gfs2/inode.c error = gfs2_inode_refresh(GFS2_I(inode)); inode 1026 fs/gfs2/inode.c error = gfs2_acl_create(dip, GFS2_I(inode)); inode 1030 fs/gfs2/inode.c error = gfs2_security_init(dip, GFS2_I(inode)); inode 1034 fs/gfs2/inode.c error = link_dinode(dip, name, GFS2_I(inode)); inode 1040 fs/gfs2/inode.c return inode; inode 1044 fs/gfs2/inode.c if (inode && !IS_ERR(inode)) inode 1045 fs/gfs2/inode.c iput(inode); inode 44 fs/gfs2/inode.h inode->i_blocks = blocks << inode 45 fs/gfs2/inode.h (GFS2_SB(inode)->sd_sb.sb_bsize_shift - GFS2_BASIC_BLOCK_SHIFT); inode 50 fs/gfs2/inode.h return inode->i_blocks >> inode 51 fs/gfs2/inode.h (GFS2_SB(inode)->sd_sb.sb_bsize_shift - GFS2_BASIC_BLOCK_SHIFT); inode 56 fs/gfs2/inode.h gfs2_assert(GFS2_SB(inode), (change >= 0 || inode->i_blocks > -change)); inode 57 fs/gfs2/inode.h change *= (GFS2_SB(inode)->sd_sb.sb_bsize/GFS2_BASIC_BLOCK); inode 58 fs/gfs2/inode.h inode->i_blocks += change; inode 76 fs/gfs2/inode.h struct inode *gfs2_inode_lookup(struct super_block *sb, unsigned type, inode 79 fs/gfs2/inode.h struct inode *gfs2_ilookup(struct super_block *sb, u64 no_addr); inode 85 fs/gfs2/inode.h struct inode *gfs2_lookupi(struct inode *dir, const struct qstr *name, inode 87 fs/gfs2/inode.h struct inode *gfs2_createi(struct gfs2_holder *ghs, const struct qstr *name, inode 96 fs/gfs2/inode.h struct inode *gfs2_lookup_simple(struct inode *dip, const char *name); inode 40 fs/gfs2/meta_io.c gfs2_assert_warn(inode->i_sb->s_fs_info, 0); inode 69 fs/gfs2/meta_io.c struct inode *gfs2_aspace_get(struct gfs2_sbd *sdp) inode 71 fs/gfs2/meta_io.c struct inode *aspace; inode 101 fs/gfs2/meta_io.c struct inode *aspace = gl->gl_aspace; inode 40 fs/gfs2/meta_io.h struct inode *gfs2_aspace_get(struct gfs2_sbd *sdp); inode 75 fs/gfs2/ops_address.c error = gfs2_block_map(inode, lblock, bh_result, 0); inode 86 fs/gfs2/ops_address.c return gfs2_block_map(inode, lblock, bh_result, 0); inode 100 fs/gfs2/ops_address.c struct inode *inode = page->mapping->host; inode 101 fs/gfs2/ops_address.c struct gfs2_inode *ip = GFS2_I(inode); inode 102 fs/gfs2/ops_address.c struct gfs2_sbd *sdp = GFS2_SB(inode); inode 103 fs/gfs2/ops_address.c loff_t i_size = i_size_read(inode); inode 157 fs/gfs2/ops_address.c struct inode *inode = page->mapping->host; inode 158 fs/gfs2/ops_address.c struct gfs2_inode *ip = GFS2_I(inode); inode 166 fs/gfs2/ops_address.c create_empty_buffers(page, inode->i_sb->s_blocksize, inode 169 fs/gfs2/ops_address.c gfs2_page_add_databufs(ip, page, 0, inode->i_sb->s_blocksize-1); inode 186 fs/gfs2/ops_address.c struct inode *inode = page->mapping->host; inode 187 fs/gfs2/ops_address.c struct gfs2_inode *ip = GFS2_I(inode); inode 188 fs/gfs2/ops_address.c struct gfs2_sbd *sdp = GFS2_SB(inode); inode 193 fs/gfs2/ops_address.c create_empty_buffers(page, inode->i_sb->s_blocksize, inode 211 fs/gfs2/ops_address.c struct inode *inode = page->mapping->host; inode 212 fs/gfs2/ops_address.c struct gfs2_sbd *sdp = GFS2_SB(inode); inode 270 fs/gfs2/ops_address.c struct inode *inode = mapping->host; inode 271 fs/gfs2/ops_address.c struct gfs2_sbd *sdp = GFS2_SB(inode); inode 272 fs/gfs2/ops_address.c loff_t i_size = i_size_read(inode); inode 275 fs/gfs2/ops_address.c unsigned nrblocks = nr_pages * (PAGE_CACHE_SIZE/inode->i_sb->s_blocksize); inode 591 fs/gfs2/ops_address.c struct inode *inode = mapping->host; inode 592 fs/gfs2/ops_address.c struct gfs2_inode *ip = GFS2_I(inode); inode 593 fs/gfs2/ops_address.c struct gfs2_sbd *sdp = GFS2_SB(inode); inode 727 fs/gfs2/ops_address.c struct gfs2_sbd *sdp = inode->i_sb->s_fs_info; inode 764 fs/gfs2/ops_address.c struct gfs2_inode *ip = GFS2_I(inode); inode 765 fs/gfs2/ops_address.c struct gfs2_sbd *sdp = GFS2_SB(inode); inode 783 fs/gfs2/ops_address.c if (inode->i_size < to) { inode 784 fs/gfs2/ops_address.c i_size_write(inode, to); inode 785 fs/gfs2/ops_address.c ip->i_di.di_size = inode->i_size; inode 786 fs/gfs2/ops_address.c di->di_size = cpu_to_be64(inode->i_size); inode 787 fs/gfs2/ops_address.c mark_inode_dirty(inode); inode 790 fs/gfs2/ops_address.c if (inode == sdp->sd_rindex) inode 791 fs/gfs2/ops_address.c adjust_fs_space(inode); inode 821 fs/gfs2/ops_address.c struct inode *inode = page->mapping->host; inode 822 fs/gfs2/ops_address.c struct gfs2_inode *ip = GFS2_I(inode); inode 823 fs/gfs2/ops_address.c struct gfs2_sbd *sdp = GFS2_SB(inode); inode 843 fs/gfs2/ops_address.c return gfs2_stuffed_write_end(inode, dibh, pos, len, copied, page); inode 850 fs/gfs2/ops_address.c if (likely(ret >= 0) && (inode->i_size > ip->i_di.di_size)) { inode 852 fs/gfs2/ops_address.c ip->i_di.di_size = inode->i_size; inode 853 fs/gfs2/ops_address.c di->di_size = cpu_to_be64(inode->i_size); inode 854 fs/gfs2/ops_address.c mark_inode_dirty(inode); inode 857 fs/gfs2/ops_address.c if (inode == sdp->sd_rindex) inode 858 fs/gfs2/ops_address.c adjust_fs_space(inode); inode 990 fs/gfs2/ops_address.c struct inode *inode = file->f_mapping->host; inode 991 fs/gfs2/ops_address.c struct gfs2_inode *ip = GFS2_I(inode); inode 1011 fs/gfs2/ops_address.c rv = blockdev_direct_IO_no_locking(rw, iocb, inode, inode->i_sb->s_bdev, inode 1033 fs/gfs2/ops_address.c struct inode *aspace = page->mapping->host; inode 1131 fs/gfs2/ops_address.c struct gfs2_inode *ip = GFS2_I(inode); inode 1134 fs/gfs2/ops_address.c inode->i_mapping->a_ops = &gfs2_writeback_aops; inode 1136 fs/gfs2/ops_address.c inode->i_mapping->a_ops = &gfs2_ordered_aops; inode 1138 fs/gfs2/ops_address.c inode->i_mapping->a_ops = &gfs2_jdata_aops; inode 42 fs/gfs2/ops_dentry.c struct inode *inode = dentry->d_inode; inode 48 fs/gfs2/ops_dentry.c if (inode) { inode 49 fs/gfs2/ops_dentry.c if (is_bad_inode(inode)) inode 51 fs/gfs2/ops_dentry.c ip = GFS2_I(inode); inode 67 fs/gfs2/ops_dentry.c if (!inode) inode 71 fs/gfs2/ops_dentry.c if (!inode) inode 89 fs/gfs2/ops_dentry.c if (inode && S_ISDIR(inode->i_mode)) { inode 38 fs/gfs2/ops_export.c struct inode *inode = dentry->d_inode; inode 39 fs/gfs2/ops_export.c struct super_block *sb = inode->i_sb; inode 40 fs/gfs2/ops_export.c struct gfs2_inode *ip = GFS2_I(inode); inode 52 fs/gfs2/ops_export.c if (!connectable || inode == sb->s_root->d_inode) inode 56 fs/gfs2/ops_export.c inode = dentry->d_parent->d_inode; inode 57 fs/gfs2/ops_export.c ip = GFS2_I(inode); inode 58 fs/gfs2/ops_export.c igrab(inode); inode 67 fs/gfs2/ops_export.c iput(inode); inode 94 fs/gfs2/ops_export.c struct inode *dir = parent->d_inode; inode 95 fs/gfs2/ops_export.c struct inode *inode = child->d_inode; inode 105 fs/gfs2/ops_export.c if (!S_ISDIR(dir->i_mode) || !inode) inode 109 fs/gfs2/ops_export.c ip = GFS2_I(inode); inode 133 fs/gfs2/ops_export.c struct inode *inode; inode 137 fs/gfs2/ops_export.c inode = gfs2_lookupi(child->d_inode, &dotdot, 1); inode 139 fs/gfs2/ops_export.c if (!inode) inode 145 fs/gfs2/ops_export.c if (IS_ERR(inode)) inode 146 fs/gfs2/ops_export.c return ERR_CAST(inode); inode 148 fs/gfs2/ops_export.c dentry = d_alloc_anon(inode); inode 150 fs/gfs2/ops_export.c iput(inode); inode 164 fs/gfs2/ops_export.c struct inode *inode; inode 170 fs/gfs2/ops_export.c inode = gfs2_ilookup(sb, inum->no_addr); inode 171 fs/gfs2/ops_export.c if (inode) { inode 172 fs/gfs2/ops_export.c if (GFS2_I(inode)->i_no_formal_ino != inum->no_formal_ino) { inode 173 fs/gfs2/ops_export.c iput(inode); inode 204 fs/gfs2/ops_export.c inode = gfs2_inode_lookup(sb, DT_UNKNOWN, inode 207 fs/gfs2/ops_export.c if (IS_ERR(inode)) { inode 208 fs/gfs2/ops_export.c error = PTR_ERR(inode); inode 212 fs/gfs2/ops_export.c error = gfs2_inode_refresh(GFS2_I(inode)); inode 214 fs/gfs2/ops_export.c iput(inode); inode 219 fs/gfs2/ops_export.c if (inode->i_state & I_NEW) inode 220 fs/gfs2/ops_export.c gfs2_set_iop(inode); inode 222 fs/gfs2/ops_export.c if (GFS2_I(inode)->i_no_formal_ino != inum->no_formal_ino) { inode 223 fs/gfs2/ops_export.c iput(inode); inode 228 fs/gfs2/ops_export.c if (GFS2_I(inode)->i_di.di_flags & GFS2_DIF_SYSTEM) { inode 229 fs/gfs2/ops_export.c iput(inode); inode 236 fs/gfs2/ops_export.c dentry = d_alloc_anon(inode); inode 238 fs/gfs2/ops_export.c iput(inode); inode 86 fs/gfs2/ops_file.c struct inode *dir = file->f_mapping->host; inode 150 fs/gfs2/ops_file.c struct inode *inode = filp->f_path.dentry->d_inode; inode 151 fs/gfs2/ops_file.c struct gfs2_inode *ip = GFS2_I(inode); inode 162 fs/gfs2/ops_file.c if (!S_ISDIR(inode->i_mode) && ip->i_di.di_flags & GFS2_DIF_JDATA) inode 174 fs/gfs2/ops_file.c struct gfs2_inode *ip = GFS2_I(inode); inode 176 fs/gfs2/ops_file.c unsigned int flags = inode->i_flags; inode 187 fs/gfs2/ops_file.c inode->i_flags = flags; inode 208 fs/gfs2/ops_file.c struct inode *inode = filp->f_path.dentry->d_inode; inode 209 fs/gfs2/ops_file.c struct gfs2_inode *ip = GFS2_I(inode); inode 210 fs/gfs2/ops_file.c struct gfs2_sbd *sdp = GFS2_SB(inode); inode 234 fs/gfs2/ops_file.c if (IS_IMMUTABLE(inode) && (new_flags & GFS2_DIF_IMMUTABLE)) inode 236 fs/gfs2/ops_file.c if (IS_APPEND(inode) && (new_flags & GFS2_DIF_APPENDONLY)) inode 241 fs/gfs2/ops_file.c if (!IS_IMMUTABLE(inode)) { inode 242 fs/gfs2/ops_file.c error = gfs2_permission(inode, MAY_WRITE); inode 249 fs/gfs2/ops_file.c error = filemap_fdatawrite(inode->i_mapping); inode 252 fs/gfs2/ops_file.c error = filemap_fdatawait(inode->i_mapping); inode 266 fs/gfs2/ops_file.c gfs2_set_inode_flags(inode); inode 267 fs/gfs2/ops_file.c gfs2_set_aops(inode); inode 279 fs/gfs2/ops_file.c struct inode *inode = filp->f_path.dentry->d_inode; inode 284 fs/gfs2/ops_file.c if (!S_ISDIR(inode->i_mode)) { inode 315 fs/gfs2/ops_file.c struct inode *inode = page->mapping->host; inode 318 fs/gfs2/ops_file.c u64 lblock = page->index << (PAGE_CACHE_SHIFT - inode->i_blkbits); inode 323 fs/gfs2/ops_file.c gfs2_block_map(inode, lblock, &bh, 1); inode 327 fs/gfs2/ops_file.c lblock += (bh.b_size >> inode->i_blkbits); inode 343 fs/gfs2/ops_file.c struct inode *inode = vma->vm_file->f_path.dentry->d_inode; inode 344 fs/gfs2/ops_file.c struct gfs2_inode *ip = GFS2_I(inode); inode 345 fs/gfs2/ops_file.c struct gfs2_sbd *sdp = GFS2_SB(inode); inode 347 fs/gfs2/ops_file.c u64 pos = page->index << (PAGE_CACHE_SIZE - inode->i_blkbits); inode 461 fs/gfs2/ops_file.c struct gfs2_inode *ip = GFS2_I(inode); inode 472 fs/gfs2/ops_file.c gfs2_assert_warn(GFS2_SB(inode), !file->private_data); inode 510 fs/gfs2/ops_file.c struct gfs2_sbd *sdp = inode->i_sb->s_fs_info; inode 545 fs/gfs2/ops_file.c struct inode *inode = dentry->d_inode; inode 546 fs/gfs2/ops_file.c int sync_state = inode->i_state & (I_DIRTY_SYNC|I_DIRTY_DATASYNC); inode 549 fs/gfs2/ops_file.c if (gfs2_is_jdata(GFS2_I(inode))) { inode 550 fs/gfs2/ops_file.c gfs2_log_flush(GFS2_SB(inode), GFS2_I(inode)->i_gl); inode 556 fs/gfs2/ops_file.c ret = write_inode_now(inode, 0); inode 558 fs/gfs2/ops_file.c if (gfs2_is_stuffed(GFS2_I(inode))) inode 559 fs/gfs2/ops_file.c gfs2_log_flush(GFS2_SB(inode), GFS2_I(inode)->i_gl); inode 520 fs/gfs2/ops_fstype.c struct inode *inode; inode 522 fs/gfs2/ops_fstype.c inode = gfs2_inode_lookup(sb, DT_DIR, no_addr, 0, 0); inode 523 fs/gfs2/ops_fstype.c if (IS_ERR(inode)) { inode 524 fs/gfs2/ops_fstype.c fs_err(sdp, "can't read in %s inode: %ld\n", name, PTR_ERR(inode)); inode 525 fs/gfs2/ops_fstype.c return PTR_ERR(inode); inode 527 fs/gfs2/ops_fstype.c dentry = d_alloc_root(inode); inode 530 fs/gfs2/ops_fstype.c iput(inode); inode 666 fs/gfs2/ops_fstype.c struct inode *master = sdp->sd_master_dir->d_inode; inode 801 fs/gfs2/ops_fstype.c struct inode *master = sdp->sd_master_dir->d_inode; inode 864 fs/gfs2/ops_fstype.c struct inode *pn = NULL; inode 868 fs/gfs2/ops_fstype.c struct inode *master = sdp->sd_master_dir->d_inode; inode 56 fs/gfs2/ops_inode.c struct inode *inode; inode 61 fs/gfs2/ops_inode.c inode = gfs2_createi(ghs, &dentry->d_name, S_IFREG | mode, 0); inode 62 fs/gfs2/ops_inode.c if (!IS_ERR(inode)) { inode 69 fs/gfs2/ops_inode.c mark_inode_dirty(inode); inode 71 fs/gfs2/ops_inode.c } else if (PTR_ERR(inode) != -EEXIST || inode 74 fs/gfs2/ops_inode.c return PTR_ERR(inode); inode 77 fs/gfs2/ops_inode.c inode = gfs2_lookupi(dir, &dentry->d_name, 0); inode 78 fs/gfs2/ops_inode.c if (inode) { inode 79 fs/gfs2/ops_inode.c if (!IS_ERR(inode)) { inode 84 fs/gfs2/ops_inode.c return PTR_ERR(inode); inode 89 fs/gfs2/ops_inode.c d_instantiate(dentry, inode); inode 108 fs/gfs2/ops_inode.c struct inode *inode = NULL; inode 112 fs/gfs2/ops_inode.c inode = gfs2_lookupi(dir, &dentry->d_name, 0); inode 113 fs/gfs2/ops_inode.c if (inode && IS_ERR(inode)) inode 114 fs/gfs2/ops_inode.c return ERR_CAST(inode); inode 116 fs/gfs2/ops_inode.c if (inode) { inode 117 fs/gfs2/ops_inode.c struct gfs2_glock *gl = GFS2_I(inode)->i_gl; inode 122 fs/gfs2/ops_inode.c iput(inode); inode 126 fs/gfs2/ops_inode.c return d_splice_alias(inode, dentry); inode 128 fs/gfs2/ops_inode.c d_add(dentry, inode); inode 150 fs/gfs2/ops_inode.c struct inode *inode = old_dentry->d_inode; inode 151 fs/gfs2/ops_inode.c struct gfs2_inode *ip = GFS2_I(inode); inode 156 fs/gfs2/ops_inode.c if (S_ISDIR(inode->i_mode)) inode 191 fs/gfs2/ops_inode.c if (IS_IMMUTABLE(inode) || IS_APPEND(inode)) inode 234 fs/gfs2/ops_inode.c error = gfs2_dir_add(dir, &dentry->d_name, ip, IF2DT(inode->i_mode)); inode 259 fs/gfs2/ops_inode.c atomic_inc(&inode->i_count); inode 260 fs/gfs2/ops_inode.c d_instantiate(dentry, inode); inode 261 fs/gfs2/ops_inode.c mark_inode_dirty(inode); inode 354 fs/gfs2/ops_inode.c struct inode *inode; inode 366 fs/gfs2/ops_inode.c inode = gfs2_createi(ghs, &dentry->d_name, S_IFLNK | S_IRWXUGO, 0); inode 367 fs/gfs2/ops_inode.c if (IS_ERR(inode)) { inode 369 fs/gfs2/ops_inode.c return PTR_ERR(inode); inode 393 fs/gfs2/ops_inode.c d_instantiate(dentry, inode); inode 394 fs/gfs2/ops_inode.c mark_inode_dirty(inode); inode 413 fs/gfs2/ops_inode.c struct inode *inode; inode 419 fs/gfs2/ops_inode.c inode = gfs2_createi(ghs, &dentry->d_name, S_IFDIR | mode, 0); inode 420 fs/gfs2/ops_inode.c if (IS_ERR(inode)) { inode 422 fs/gfs2/ops_inode.c return PTR_ERR(inode); inode 469 fs/gfs2/ops_inode.c d_instantiate(dentry, inode); inode 470 fs/gfs2/ops_inode.c mark_inode_dirty(inode); inode 568 fs/gfs2/ops_inode.c struct inode *inode; inode 572 fs/gfs2/ops_inode.c inode = gfs2_createi(ghs, &dentry->d_name, mode, dev); inode 573 fs/gfs2/ops_inode.c if (IS_ERR(inode)) { inode 575 fs/gfs2/ops_inode.c return PTR_ERR(inode); inode 586 fs/gfs2/ops_inode.c d_instantiate(dentry, inode); inode 587 fs/gfs2/ops_inode.c mark_inode_dirty(inode); inode 605 fs/gfs2/ops_inode.c struct inode *dir = &to->i_inode; inode 607 fs/gfs2/ops_inode.c struct inode *tmp; inode 965 fs/gfs2/ops_inode.c struct gfs2_inode *ip = GFS2_I(inode); inode 977 fs/gfs2/ops_inode.c if ((mask & MAY_WRITE) && IS_IMMUTABLE(inode)) inode 980 fs/gfs2/ops_inode.c error = generic_permission(inode, mask, gfs2_check_acl); inode 989 fs/gfs2/ops_inode.c struct gfs2_inode *ip = GFS2_I(inode); inode 990 fs/gfs2/ops_inode.c struct gfs2_sbd *sdp = GFS2_SB(inode); inode 997 fs/gfs2/ops_inode.c error = vmtruncate(inode, attr->ia_size); inode 1004 fs/gfs2/ops_inode.c if (error && (inode->i_size != ip->i_di.di_size)) inode 1005 fs/gfs2/ops_inode.c i_size_write(inode, ip->i_di.di_size); inode 1012 fs/gfs2/ops_inode.c struct gfs2_inode *ip = GFS2_I(inode); inode 1013 fs/gfs2/ops_inode.c struct gfs2_sbd *sdp = GFS2_SB(inode); inode 1018 fs/gfs2/ops_inode.c ouid = inode->i_uid; inode 1019 fs/gfs2/ops_inode.c ogid = inode->i_gid; inode 1049 fs/gfs2/ops_inode.c error = inode_setattr(inode, attr); inode 1084 fs/gfs2/ops_inode.c struct inode *inode = dentry->d_inode; inode 1085 fs/gfs2/ops_inode.c struct gfs2_inode *ip = GFS2_I(inode); inode 1094 fs/gfs2/ops_inode.c if (IS_IMMUTABLE(inode) || IS_APPEND(inode)) inode 1097 fs/gfs2/ops_inode.c error = inode_change_ok(inode, attr); inode 1102 fs/gfs2/ops_inode.c error = setattr_size(inode, attr); inode 1104 fs/gfs2/ops_inode.c error = setattr_chown(inode, attr); inode 1105 fs/gfs2/ops_inode.c else if ((attr->ia_valid & ATTR_MODE) && IS_POSIXACL(inode)) inode 1113 fs/gfs2/ops_inode.c mark_inode_dirty(inode); inode 1135 fs/gfs2/ops_inode.c struct inode *inode = dentry->d_inode; inode 1136 fs/gfs2/ops_inode.c struct gfs2_inode *ip = GFS2_I(inode); inode 1148 fs/gfs2/ops_inode.c generic_fillattr(inode, stat); inode 1158 fs/gfs2/ops_inode.c struct inode *inode = dentry->d_inode; inode 1170 fs/gfs2/ops_inode.c gfs2_assert_warn(GFS2_SB(inode), !(er.er_flags & GFS2_ERF_MODE)); inode 1172 fs/gfs2/ops_inode.c return gfs2_ea_set(GFS2_I(inode), &er); inode 54 fs/gfs2/ops_super.c struct gfs2_inode *ip = GFS2_I(inode); inode 55 fs/gfs2/ops_super.c struct gfs2_sbd *sdp = GFS2_SB(inode); inode 77 fs/gfs2/ops_super.c if (timespec_compare(&inode->i_atime, &atime) > 0) { inode 88 fs/gfs2/ops_super.c gfs2_log_flush(GFS2_SB(inode), ip->i_gl); inode 347 fs/gfs2/ops_super.c struct gfs2_inode *ip = GFS2_I(inode); inode 349 fs/gfs2/ops_super.c if (test_bit(GIF_USER, &ip->i_flags) && inode->i_nlink) { inode 352 fs/gfs2/ops_super.c clear_nlink(inode); inode 354 fs/gfs2/ops_super.c generic_drop_inode(inode); inode 365 fs/gfs2/ops_super.c struct gfs2_inode *ip = GFS2_I(inode); inode 479 fs/gfs2/ops_super.c struct gfs2_sbd *sdp = inode->i_sb->s_fs_info; inode 480 fs/gfs2/ops_super.c struct gfs2_inode *ip = GFS2_I(inode); inode 499 fs/gfs2/ops_super.c if (S_ISDIR(inode->i_mode) && inode 526 fs/gfs2/ops_super.c truncate_inode_pages(&inode->i_data, 0); inode 537 fs/gfs2/ops_super.c truncate_inode_pages(&inode->i_data, 0); inode 538 fs/gfs2/ops_super.c clear_inode(inode); inode 541 fs/gfs2/ops_super.c static struct inode *gfs2_alloc_inode(struct super_block *sb) inode 555 fs/gfs2/ops_super.c kmem_cache_free(gfs2_inode_cachep, inode); inode 606 fs/gfs2/quota.c struct inode *inode = &ip->i_inode; inode 607 fs/gfs2/quota.c struct address_space *mapping = inode->i_mapping; inode 626 fs/gfs2/quota.c blocksize = inode->i_sb->s_blocksize; inode 627 fs/gfs2/quota.c iblock = index << (PAGE_CACHE_SHIFT - inode->i_sb->s_blocksize_bits); inode 641 fs/gfs2/quota.c gfs2_block_map(inode, iblock, bh, 1); inode 493 fs/gfs2/rgrp.c struct inode *inode = sdp->sd_rindex; inode 494 fs/gfs2/rgrp.c struct gfs2_inode *ip = GFS2_I(inode); inode 500 fs/gfs2/rgrp.c file_ra_state_init(&ra_state, inode->i_mapping); inode 591 fs/gfs2/rgrp.c struct inode *inode = &ip->i_inode; inode 603 fs/gfs2/rgrp.c file_ra_state_init(&ra_state, inode->i_mapping); inode 629 fs/gfs2/rgrp.c struct inode *inode = &ip->i_inode; inode 633 fs/gfs2/rgrp.c file_ra_state_init(&ra_state, inode->i_mapping); inode 907 fs/gfs2/rgrp.c static struct inode *try_rgrp_unlink(struct gfs2_rgrpd *rgd, u64 *last_unlinked) inode 909 fs/gfs2/rgrp.c struct inode *inode; inode 932 fs/gfs2/rgrp.c inode = gfs2_inode_lookup(rgd->rd_sbd->sd_vfs, DT_UNKNOWN, inode 934 fs/gfs2/rgrp.c if (!IS_ERR(inode)) inode 935 fs/gfs2/rgrp.c return inode; inode 1022 fs/gfs2/rgrp.c static struct inode *get_local_rgrp(struct gfs2_inode *ip, u64 *last_unlinked) inode 1024 fs/gfs2/rgrp.c struct inode *inode = NULL; inode 1050 fs/gfs2/rgrp.c inode = try_rgrp_unlink(rgd, last_unlinked); inode 1053 fs/gfs2/rgrp.c if (inode) inode 1054 fs/gfs2/rgrp.c return inode; inode 1084 fs/gfs2/rgrp.c inode = try_rgrp_unlink(rgd, last_unlinked); inode 1087 fs/gfs2/rgrp.c if (inode) inode 1088 fs/gfs2/rgrp.c return inode; inode 1139 fs/gfs2/rgrp.c struct inode *inode; inode 1157 fs/gfs2/rgrp.c inode = get_local_rgrp(ip, &last_unlinked); inode 1158 fs/gfs2/rgrp.c if (inode) { inode 1161 fs/gfs2/rgrp.c if (IS_ERR(inode)) inode 1162 fs/gfs2/rgrp.c return PTR_ERR(inode); inode 1163 fs/gfs2/rgrp.c iput(inode); inode 1526 fs/gfs2/rgrp.c struct gfs2_inode *ip = GFS2_I(inode); inode 1527 fs/gfs2/rgrp.c struct gfs2_sbd *sdp = GFS2_SB(inode); inode 19 fs/hfs/attr.c struct inode *inode = dentry->d_inode; inode 25 fs/hfs/attr.c if (!S_ISREG(inode->i_mode) || HFS_IS_RSRC(inode)) inode 28 fs/hfs/attr.c res = hfs_find_init(HFS_SB(inode->i_sb)->cat_tree, &fd); inode 31 fs/hfs/attr.c fd.search_key->cat = HFS_I(inode)->cat_key; inode 62 fs/hfs/attr.c struct inode *inode = dentry->d_inode; inode 68 fs/hfs/attr.c if (!S_ISREG(inode->i_mode) || HFS_IS_RSRC(inode)) inode 72 fs/hfs/attr.c res = hfs_find_init(HFS_SB(inode->i_sb)->cat_tree, &fd); inode 75 fs/hfs/attr.c fd.search_key->cat = HFS_I(inode)->cat_key; inode 108 fs/hfs/attr.c struct inode *inode = dentry->d_inode; inode 110 fs/hfs/attr.c if (!S_ISREG(inode->i_mode) || HFS_IS_RSRC(inode)) inode 249 fs/hfs/bnode.c sb = tree->inode->i_sb; inode 277 fs/hfs/bnode.c mapping = tree->inode->i_mapping; inode 108 fs/hfs/brec.c mark_inode_dirty(tree->inode); inode 190 fs/hfs/brec.c mark_inode_dirty(tree->inode); inode 340 fs/hfs/brec.c mark_inode_dirty(tree->inode); inode 516 fs/hfs/brec.c mark_inode_dirty(tree->inode); inode 36 fs/hfs/btree.c tree->inode = iget_locked(sb, id); inode 37 fs/hfs/btree.c if (!tree->inode) inode 39 fs/hfs/btree.c BUG_ON(!(tree->inode->i_state & I_NEW)); inode 42 fs/hfs/btree.c HFS_I(tree->inode)->flags = 0; inode 43 fs/hfs/btree.c mutex_init(&HFS_I(tree->inode)->extents_lock); inode 46 fs/hfs/btree.c hfs_inode_read_fork(tree->inode, mdb->drXTExtRec, mdb->drXTFlSize, inode 48 fs/hfs/btree.c tree->inode->i_mapping->a_ops = &hfs_btree_aops; inode 51 fs/hfs/btree.c hfs_inode_read_fork(tree->inode, mdb->drCTExtRec, mdb->drCTFlSize, inode 53 fs/hfs/btree.c tree->inode->i_mapping->a_ops = &hfs_btree_aops; inode 59 fs/hfs/btree.c unlock_new_inode(tree->inode); inode 61 fs/hfs/btree.c mapping = tree->inode->i_mapping; inode 113 fs/hfs/btree.c tree->inode->i_mapping->a_ops = &hfs_aops; inode 114 fs/hfs/btree.c iput(tree->inode); inode 139 fs/hfs/btree.c iput(tree->inode); inode 218 fs/hfs/btree.c struct inode *inode = tree->inode; inode 222 fs/hfs/btree.c res = hfs_extend_file(inode); inode 225 fs/hfs/btree.c HFS_I(inode)->phys_size = inode->i_size = inode 226 fs/hfs/btree.c (loff_t)HFS_I(inode)->alloc_blocks * inode 228 fs/hfs/btree.c HFS_I(inode)->fs_blocks = inode->i_size >> inode 230 fs/hfs/btree.c inode_set_bytes(inode, inode->i_size); inode 231 fs/hfs/btree.c count = inode->i_size >> tree->node_size_shift; inode 260 fs/hfs/btree.c mark_inode_dirty(tree->inode); inode 349 fs/hfs/btree.c mark_inode_dirty(tree->inode); inode 18 fs/hfs/btree.h struct inode *inode; inode 41 fs/hfs/catalog.c if (S_ISDIR(inode->i_mode)) { inode 53 fs/hfs/catalog.c if (!(inode->i_mode & S_IWUSR)) inode 59 fs/hfs/catalog.c rec->file.UsrWds.fdType = HFS_SB(inode->i_sb)->s_type; inode 60 fs/hfs/catalog.c rec->file.UsrWds.fdCreator = HFS_SB(inode->i_sb)->s_creator; inode 90 fs/hfs/catalog.c dprint(DBG_CAT_MOD, "create_cat: %s,%u(%d)\n", str->name, cnid, inode->i_nlink); inode 98 fs/hfs/catalog.c entry_size = hfs_cat_build_thread(sb, &entry, S_ISDIR(inode->i_mode) ? inode 112 fs/hfs/catalog.c entry_size = hfs_cat_build_record(&entry, cnid, inode); inode 25 fs/hfs/dir.c struct inode *inode = NULL; inode 37 fs/hfs/dir.c inode = NULL; inode 42 fs/hfs/dir.c inode = hfs_iget(dir->i_sb, &fd.search_key->cat, &rec); inode 44 fs/hfs/dir.c if (!inode) inode 47 fs/hfs/dir.c d_add(dentry, inode); inode 56 fs/hfs/dir.c struct inode *inode = filp->f_path.dentry->d_inode; inode 57 fs/hfs/dir.c struct super_block *sb = inode->i_sb; inode 65 fs/hfs/dir.c if (filp->f_pos >= inode->i_size) inode 69 fs/hfs/dir.c hfs_cat_build_key(sb, fd.search_key, inode->i_ino, NULL); inode 77 fs/hfs/dir.c if (filldir(dirent, ".", 1, 0, inode->i_ino, DT_DIR)) inode 99 fs/hfs/dir.c if (filp->f_pos >= inode->i_size) inode 107 fs/hfs/dir.c if (be32_to_cpu(fd.key->cat.ParID) != inode->i_ino) { inode 139 fs/hfs/dir.c if (filp->f_pos >= inode->i_size) inode 154 fs/hfs/dir.c list_add(&rd->list, &HFS_I(inode)->open_dir_list); inode 183 fs/hfs/dir.c struct inode *inode; inode 186 fs/hfs/dir.c inode = hfs_new_inode(dir, &dentry->d_name, mode); inode 187 fs/hfs/dir.c if (!inode) inode 190 fs/hfs/dir.c res = hfs_cat_create(inode->i_ino, dir, &dentry->d_name, inode); inode 192 fs/hfs/dir.c inode->i_nlink = 0; inode 193 fs/hfs/dir.c hfs_delete_inode(inode); inode 194 fs/hfs/dir.c iput(inode); inode 197 fs/hfs/dir.c d_instantiate(dentry, inode); inode 198 fs/hfs/dir.c mark_inode_dirty(inode); inode 212 fs/hfs/dir.c struct inode *inode; inode 215 fs/hfs/dir.c inode = hfs_new_inode(dir, &dentry->d_name, S_IFDIR | mode); inode 216 fs/hfs/dir.c if (!inode) inode 219 fs/hfs/dir.c res = hfs_cat_create(inode->i_ino, dir, &dentry->d_name, inode); inode 221 fs/hfs/dir.c inode->i_nlink = 0; inode 222 fs/hfs/dir.c hfs_delete_inode(inode); inode 223 fs/hfs/dir.c iput(inode); inode 226 fs/hfs/dir.c d_instantiate(dentry, inode); inode 227 fs/hfs/dir.c mark_inode_dirty(inode); inode 241 fs/hfs/dir.c struct inode *inode; inode 244 fs/hfs/dir.c inode = dentry->d_inode; inode 245 fs/hfs/dir.c res = hfs_cat_delete(inode->i_ino, dir, &dentry->d_name); inode 249 fs/hfs/dir.c drop_nlink(inode); inode 250 fs/hfs/dir.c hfs_delete_inode(inode); inode 251 fs/hfs/dir.c inode->i_ctime = CURRENT_TIME_SEC; inode 252 fs/hfs/dir.c mark_inode_dirty(inode); inode 267 fs/hfs/dir.c struct inode *inode; inode 270 fs/hfs/dir.c inode = dentry->d_inode; inode 271 fs/hfs/dir.c if (inode->i_size != 2) inode 273 fs/hfs/dir.c res = hfs_cat_delete(inode->i_ino, dir, &dentry->d_name); inode 276 fs/hfs/dir.c clear_nlink(inode); inode 277 fs/hfs/dir.c inode->i_ctime = CURRENT_TIME_SEC; inode 278 fs/hfs/dir.c hfs_delete_inode(inode); inode 279 fs/hfs/dir.c mark_inode_dirty(inode); inode 114 fs/hfs/extent.c hfs_ext_build_key(fd->search_key, inode->i_ino, HFS_I(inode)->cached_start, inode 115 fs/hfs/extent.c HFS_IS_RSRC(inode) ? HFS_FK_RSRC : HFS_FK_DATA); inode 117 fs/hfs/extent.c if (HFS_I(inode)->flags & HFS_FLG_EXT_NEW) { inode 120 fs/hfs/extent.c hfs_brec_insert(fd, HFS_I(inode)->cached_extents, sizeof(hfs_extent_rec)); inode 121 fs/hfs/extent.c HFS_I(inode)->flags &= ~(HFS_FLG_EXT_DIRTY|HFS_FLG_EXT_NEW); inode 125 fs/hfs/extent.c hfs_bnode_write(fd->bnode, HFS_I(inode)->cached_extents, fd->entryoffset, fd->entrylength); inode 126 fs/hfs/extent.c HFS_I(inode)->flags &= ~HFS_FLG_EXT_DIRTY; inode 134 fs/hfs/extent.c if (HFS_I(inode)->flags & HFS_FLG_EXT_DIRTY) { inode 135 fs/hfs/extent.c hfs_find_init(HFS_SB(inode->i_sb)->ext_tree, &fd); inode 136 fs/hfs/extent.c __hfs_ext_write_extent(inode, &fd); inode 164 fs/hfs/extent.c if (HFS_I(inode)->flags & HFS_FLG_EXT_DIRTY) inode 165 fs/hfs/extent.c __hfs_ext_write_extent(inode, fd); inode 167 fs/hfs/extent.c res = __hfs_ext_read_extent(fd, HFS_I(inode)->cached_extents, inode->i_ino, inode 168 fs/hfs/extent.c block, HFS_IS_RSRC(inode) ? HFS_FK_RSRC : HFS_FK_DATA); inode 170 fs/hfs/extent.c HFS_I(inode)->cached_start = be16_to_cpu(fd->key->ext.FABN); inode 171 fs/hfs/extent.c HFS_I(inode)->cached_blocks = hfs_ext_block_count(HFS_I(inode)->cached_extents); inode 173 fs/hfs/extent.c HFS_I(inode)->cached_start = HFS_I(inode)->cached_blocks = 0; inode 174 fs/hfs/extent.c HFS_I(inode)->flags &= ~(HFS_FLG_EXT_DIRTY|HFS_FLG_EXT_NEW); inode 184 fs/hfs/extent.c if (block >= HFS_I(inode)->cached_start && inode 185 fs/hfs/extent.c block < HFS_I(inode)->cached_start + HFS_I(inode)->cached_blocks) inode 188 fs/hfs/extent.c hfs_find_init(HFS_SB(inode->i_sb)->ext_tree, &fd); inode 189 fs/hfs/extent.c res = __hfs_ext_cache_extent(&fd, inode, block); inode 326 fs/hfs/extent.c sb = inode->i_sb; inode 330 fs/hfs/extent.c if (block >= HFS_I(inode)->fs_blocks) { inode 331 fs/hfs/extent.c if (block > HFS_I(inode)->fs_blocks || !create) inode 333 fs/hfs/extent.c if (ablock >= HFS_I(inode)->alloc_blocks) { inode 334 fs/hfs/extent.c res = hfs_extend_file(inode); inode 341 fs/hfs/extent.c if (ablock < HFS_I(inode)->first_blocks) { inode 342 fs/hfs/extent.c dblock = hfs_ext_find_block(HFS_I(inode)->first_extents, ablock); inode 346 fs/hfs/extent.c mutex_lock(&HFS_I(inode)->extents_lock); inode 347 fs/hfs/extent.c res = hfs_ext_read_extent(inode, ablock); inode 349 fs/hfs/extent.c dblock = hfs_ext_find_block(HFS_I(inode)->cached_extents, inode 350 fs/hfs/extent.c ablock - HFS_I(inode)->cached_start); inode 352 fs/hfs/extent.c mutex_unlock(&HFS_I(inode)->extents_lock); inode 355 fs/hfs/extent.c mutex_unlock(&HFS_I(inode)->extents_lock); inode 364 fs/hfs/extent.c HFS_I(inode)->phys_size += sb->s_blocksize; inode 365 fs/hfs/extent.c HFS_I(inode)->fs_blocks++; inode 366 fs/hfs/extent.c inode_add_bytes(inode, sb->s_blocksize); inode 367 fs/hfs/extent.c mark_inode_dirty(inode); inode 374 fs/hfs/extent.c struct super_block *sb = inode->i_sb; inode 378 fs/hfs/extent.c mutex_lock(&HFS_I(inode)->extents_lock); inode 379 fs/hfs/extent.c if (HFS_I(inode)->alloc_blocks == HFS_I(inode)->first_blocks) inode 380 fs/hfs/extent.c goal = hfs_ext_lastblock(HFS_I(inode)->first_extents); inode 382 fs/hfs/extent.c res = hfs_ext_read_extent(inode, HFS_I(inode)->alloc_blocks); inode 385 fs/hfs/extent.c goal = hfs_ext_lastblock(HFS_I(inode)->cached_extents); inode 388 fs/hfs/extent.c len = HFS_I(inode)->clump_blocks; inode 395 fs/hfs/extent.c dprint(DBG_EXTENT, "extend %lu: %u,%u\n", inode->i_ino, start, len); inode 396 fs/hfs/extent.c if (HFS_I(inode)->alloc_blocks == HFS_I(inode)->first_blocks) { inode 397 fs/hfs/extent.c if (!HFS_I(inode)->first_blocks) { inode 400 fs/hfs/extent.c HFS_I(inode)->first_extents[0].block = cpu_to_be16(start); inode 401 fs/hfs/extent.c HFS_I(inode)->first_extents[0].count = cpu_to_be16(len); inode 405 fs/hfs/extent.c res = hfs_add_extent(HFS_I(inode)->first_extents, inode 406 fs/hfs/extent.c HFS_I(inode)->alloc_blocks, inode 412 fs/hfs/extent.c hfs_dump_extent(HFS_I(inode)->first_extents); inode 413 fs/hfs/extent.c HFS_I(inode)->first_blocks += len; inode 416 fs/hfs/extent.c res = hfs_add_extent(HFS_I(inode)->cached_extents, inode 417 fs/hfs/extent.c HFS_I(inode)->alloc_blocks - inode 418 fs/hfs/extent.c HFS_I(inode)->cached_start, inode 421 fs/hfs/extent.c hfs_dump_extent(HFS_I(inode)->cached_extents); inode 422 fs/hfs/extent.c HFS_I(inode)->flags |= HFS_FLG_EXT_DIRTY; inode 423 fs/hfs/extent.c HFS_I(inode)->cached_blocks += len; inode 428 fs/hfs/extent.c mutex_unlock(&HFS_I(inode)->extents_lock); inode 430 fs/hfs/extent.c HFS_I(inode)->alloc_blocks += len; inode 431 fs/hfs/extent.c mark_inode_dirty(inode); inode 432 fs/hfs/extent.c if (inode->i_ino < HFS_FIRSTUSER_CNID) inode 441 fs/hfs/extent.c hfs_ext_write_extent(inode); inode 443 fs/hfs/extent.c memset(HFS_I(inode)->cached_extents, 0, sizeof(hfs_extent_rec)); inode 444 fs/hfs/extent.c HFS_I(inode)->cached_extents[0].block = cpu_to_be16(start); inode 445 fs/hfs/extent.c HFS_I(inode)->cached_extents[0].count = cpu_to_be16(len); inode 446 fs/hfs/extent.c hfs_dump_extent(HFS_I(inode)->cached_extents); inode 447 fs/hfs/extent.c HFS_I(inode)->flags |= HFS_FLG_EXT_DIRTY|HFS_FLG_EXT_NEW; inode 448 fs/hfs/extent.c HFS_I(inode)->cached_start = HFS_I(inode)->alloc_blocks; inode 449 fs/hfs/extent.c HFS_I(inode)->cached_blocks = len; inode 457 fs/hfs/extent.c struct super_block *sb = inode->i_sb; inode 463 fs/hfs/extent.c dprint(DBG_INODE, "truncate: %lu, %Lu -> %Lu\n", inode->i_ino, inode 464 fs/hfs/extent.c (long long)HFS_I(inode)->phys_size, inode->i_size); inode 465 fs/hfs/extent.c if (inode->i_size > HFS_I(inode)->phys_size) { inode 466 fs/hfs/extent.c struct address_space *mapping = inode->i_mapping; inode 472 fs/hfs/extent.c size = inode->i_size - 1; inode 480 fs/hfs/extent.c inode->i_size = HFS_I(inode)->phys_size; inode 482 fs/hfs/extent.c } else if (inode->i_size == HFS_I(inode)->phys_size) inode 484 fs/hfs/extent.c size = inode->i_size + HFS_SB(sb)->alloc_blksz - 1; inode 486 fs/hfs/extent.c alloc_cnt = HFS_I(inode)->alloc_blocks; inode 490 fs/hfs/extent.c mutex_lock(&HFS_I(inode)->extents_lock); inode 493 fs/hfs/extent.c if (alloc_cnt == HFS_I(inode)->first_blocks) { inode 494 fs/hfs/extent.c hfs_free_extents(sb, HFS_I(inode)->first_extents, inode 496 fs/hfs/extent.c hfs_dump_extent(HFS_I(inode)->first_extents); inode 497 fs/hfs/extent.c HFS_I(inode)->first_blocks = blk_cnt; inode 500 fs/hfs/extent.c res = __hfs_ext_cache_extent(&fd, inode, alloc_cnt); inode 503 fs/hfs/extent.c start = HFS_I(inode)->cached_start; inode 504 fs/hfs/extent.c hfs_free_extents(sb, HFS_I(inode)->cached_extents, inode 506 fs/hfs/extent.c hfs_dump_extent(HFS_I(inode)->cached_extents); inode 508 fs/hfs/extent.c HFS_I(inode)->flags |= HFS_FLG_EXT_DIRTY; inode 512 fs/hfs/extent.c HFS_I(inode)->cached_start = HFS_I(inode)->cached_blocks = 0; inode 513 fs/hfs/extent.c HFS_I(inode)->flags &= ~(HFS_FLG_EXT_DIRTY|HFS_FLG_EXT_NEW); inode 517 fs/hfs/extent.c mutex_unlock(&HFS_I(inode)->extents_lock); inode 519 fs/hfs/extent.c HFS_I(inode)->alloc_blocks = blk_cnt; inode 521 fs/hfs/extent.c HFS_I(inode)->phys_size = inode->i_size; inode 522 fs/hfs/extent.c HFS_I(inode)->fs_blocks = (inode->i_size + sb->s_blocksize - 1) >> sb->s_blocksize_bits; inode 523 fs/hfs/extent.c inode_set_bytes(inode, HFS_I(inode)->fs_blocks << sb->s_blocksize_bits); inode 524 fs/hfs/extent.c mark_inode_dirty(inode); inode 55 fs/hfs/hfs_fs.h struct inode *rsrc_inode; inode 68 fs/hfs/hfs_fs.h struct inode vfs_inode; inode 75 fs/hfs/hfs_fs.h #define HFS_IS_RSRC(inode) (HFS_I(inode)->flags & HFS_FLG_RSRC) inode 189 fs/hfs/hfs_fs.h extern struct inode *hfs_new_inode(struct inode *, struct qstr *, int); inode 195 fs/hfs/hfs_fs.h extern struct inode *hfs_iget(struct super_block *, struct hfs_cat_key *, hfs_cat_rec *); inode 239 fs/hfs/hfs_fs.h #define HFS_I(inode) (list_entry(inode, struct hfs_inode_info, vfs_inode)) inode 55 fs/hfs/inode.c struct inode *inode = page->mapping->host; inode 56 fs/hfs/inode.c struct super_block *sb = inode->i_sb; inode 62 fs/hfs/inode.c switch (inode->i_ino) { inode 110 fs/hfs/inode.c struct inode *inode = file->f_path.dentry->d_inode->i_mapping->host; inode 112 fs/hfs/inode.c return blockdev_direct_IO(rw, iocb, inode, inode->i_sb->s_bdev, iov, inode 146 fs/hfs/inode.c struct inode *hfs_new_inode(struct inode *dir, struct qstr *name, int mode) inode 149 fs/hfs/inode.c struct inode *inode = new_inode(sb); inode 150 fs/hfs/inode.c if (!inode) inode 153 fs/hfs/inode.c mutex_init(&HFS_I(inode)->extents_lock); inode 154 fs/hfs/inode.c INIT_LIST_HEAD(&HFS_I(inode)->open_dir_list); inode 155 fs/hfs/inode.c hfs_cat_build_key(sb, (btree_key *)&HFS_I(inode)->cat_key, dir->i_ino, name); inode 156 fs/hfs/inode.c inode->i_ino = HFS_SB(sb)->next_id++; inode 157 fs/hfs/inode.c inode->i_mode = mode; inode 158 fs/hfs/inode.c inode->i_uid = current->fsuid; inode 159 fs/hfs/inode.c inode->i_gid = current->fsgid; inode 160 fs/hfs/inode.c inode->i_nlink = 1; inode 161 fs/hfs/inode.c inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; inode 162 fs/hfs/inode.c HFS_I(inode)->flags = 0; inode 163 fs/hfs/inode.c HFS_I(inode)->rsrc_inode = NULL; inode 164 fs/hfs/inode.c HFS_I(inode)->fs_blocks = 0; inode 166 fs/hfs/inode.c inode->i_size = 2; inode 170 fs/hfs/inode.c inode->i_op = &hfs_dir_inode_operations; inode 171 fs/hfs/inode.c inode->i_fop = &hfs_dir_operations; inode 172 fs/hfs/inode.c inode->i_mode |= S_IRWXUGO; inode 173 fs/hfs/inode.c inode->i_mode &= ~HFS_SB(inode->i_sb)->s_dir_umask; inode 175 fs/hfs/inode.c HFS_I(inode)->clump_blocks = HFS_SB(sb)->clumpablks; inode 179 fs/hfs/inode.c inode->i_op = &hfs_file_inode_operations; inode 180 fs/hfs/inode.c inode->i_fop = &hfs_file_operations; inode 181 fs/hfs/inode.c inode->i_mapping->a_ops = &hfs_aops; inode 182 fs/hfs/inode.c inode->i_mode |= S_IRUGO|S_IXUGO; inode 184 fs/hfs/inode.c inode->i_mode |= S_IWUGO; inode 185 fs/hfs/inode.c inode->i_mode &= ~HFS_SB(inode->i_sb)->s_file_umask; inode 186 fs/hfs/inode.c HFS_I(inode)->phys_size = 0; inode 187 fs/hfs/inode.c HFS_I(inode)->alloc_blocks = 0; inode 188 fs/hfs/inode.c HFS_I(inode)->first_blocks = 0; inode 189 fs/hfs/inode.c HFS_I(inode)->cached_start = 0; inode 190 fs/hfs/inode.c HFS_I(inode)->cached_blocks = 0; inode 191 fs/hfs/inode.c memset(HFS_I(inode)->first_extents, 0, sizeof(hfs_extent_rec)); inode 192 fs/hfs/inode.c memset(HFS_I(inode)->cached_extents, 0, sizeof(hfs_extent_rec)); inode 194 fs/hfs/inode.c insert_inode_hash(inode); inode 195 fs/hfs/inode.c mark_inode_dirty(inode); inode 199 fs/hfs/inode.c return inode; inode 204 fs/hfs/inode.c struct super_block *sb = inode->i_sb; inode 206 fs/hfs/inode.c dprint(DBG_INODE, "delete_inode: %lu\n", inode->i_ino); inode 207 fs/hfs/inode.c if (S_ISDIR(inode->i_mode)) { inode 209 fs/hfs/inode.c if (HFS_I(inode)->cat_key.ParID == cpu_to_be32(HFS_ROOT_CNID)) inode 216 fs/hfs/inode.c if (HFS_I(inode)->cat_key.ParID == cpu_to_be32(HFS_ROOT_CNID)) inode 218 fs/hfs/inode.c if (S_ISREG(inode->i_mode)) { inode 219 fs/hfs/inode.c if (!inode->i_nlink) { inode 220 fs/hfs/inode.c inode->i_size = 0; inode 221 fs/hfs/inode.c hfs_file_truncate(inode); inode 231 fs/hfs/inode.c struct super_block *sb = inode->i_sb; inode 236 fs/hfs/inode.c memcpy(HFS_I(inode)->first_extents, ext, sizeof(hfs_extent_rec)); inode 239 fs/hfs/inode.c HFS_I(inode)->first_blocks = count; inode 241 fs/hfs/inode.c inode->i_size = HFS_I(inode)->phys_size = log_size; inode 242 fs/hfs/inode.c HFS_I(inode)->fs_blocks = (log_size + sb->s_blocksize - 1) >> sb->s_blocksize_bits; inode 243 fs/hfs/inode.c inode_set_bytes(inode, HFS_I(inode)->fs_blocks << sb->s_blocksize_bits); inode 244 fs/hfs/inode.c HFS_I(inode)->alloc_blocks = be32_to_cpu(phys_size) / inode 246 fs/hfs/inode.c HFS_I(inode)->clump_blocks = clump_size / HFS_SB(sb)->alloc_blksz; inode 247 fs/hfs/inode.c if (!HFS_I(inode)->clump_blocks) inode 248 fs/hfs/inode.c HFS_I(inode)->clump_blocks = HFS_SB(sb)->clumpablks; inode 264 fs/hfs/inode.c return inode->i_ino == be32_to_cpu(rec->dir.DirID); inode 266 fs/hfs/inode.c return inode->i_ino == be32_to_cpu(rec->file.FlNum); inode 279 fs/hfs/inode.c struct hfs_sb_info *hsb = HFS_SB(inode->i_sb); inode 282 fs/hfs/inode.c HFS_I(inode)->flags = 0; inode 283 fs/hfs/inode.c HFS_I(inode)->rsrc_inode = NULL; inode 284 fs/hfs/inode.c mutex_init(&HFS_I(inode)->extents_lock); inode 285 fs/hfs/inode.c INIT_LIST_HEAD(&HFS_I(inode)->open_dir_list); inode 288 fs/hfs/inode.c inode->i_uid = hsb->s_uid; inode 289 fs/hfs/inode.c inode->i_gid = hsb->s_gid; inode 290 fs/hfs/inode.c inode->i_nlink = 1; inode 293 fs/hfs/inode.c HFS_I(inode)->cat_key = *idata->key; inode 295 fs/hfs/inode.c HFS_I(inode)->flags |= HFS_FLG_RSRC; inode 296 fs/hfs/inode.c HFS_I(inode)->tz_secondswest = sys_tz.tz_minuteswest * 60; inode 301 fs/hfs/inode.c if (!HFS_IS_RSRC(inode)) { inode 302 fs/hfs/inode.c hfs_inode_read_fork(inode, rec->file.ExtRec, rec->file.LgLen, inode 305 fs/hfs/inode.c hfs_inode_read_fork(inode, rec->file.RExtRec, rec->file.RLgLen, inode 309 fs/hfs/inode.c inode->i_ino = be32_to_cpu(rec->file.FlNum); inode 310 fs/hfs/inode.c inode->i_mode = S_IRUGO | S_IXUGO; inode 312 fs/hfs/inode.c inode->i_mode |= S_IWUGO; inode 313 fs/hfs/inode.c inode->i_mode &= ~hsb->s_file_umask; inode 314 fs/hfs/inode.c inode->i_mode |= S_IFREG; inode 315 fs/hfs/inode.c inode->i_ctime = inode->i_atime = inode->i_mtime = inode 317 fs/hfs/inode.c inode->i_op = &hfs_file_inode_operations; inode 318 fs/hfs/inode.c inode->i_fop = &hfs_file_operations; inode 319 fs/hfs/inode.c inode->i_mapping->a_ops = &hfs_aops; inode 322 fs/hfs/inode.c inode->i_ino = be32_to_cpu(rec->dir.DirID); inode 323 fs/hfs/inode.c inode->i_size = be16_to_cpu(rec->dir.Val) + 2; inode 324 fs/hfs/inode.c HFS_I(inode)->fs_blocks = 0; inode 325 fs/hfs/inode.c inode->i_mode = S_IFDIR | (S_IRWXUGO & ~hsb->s_dir_umask); inode 326 fs/hfs/inode.c inode->i_ctime = inode->i_atime = inode->i_mtime = inode 328 fs/hfs/inode.c inode->i_op = &hfs_dir_inode_operations; inode 329 fs/hfs/inode.c inode->i_fop = &hfs_dir_operations; inode 332 fs/hfs/inode.c make_bad_inode(inode); inode 346 fs/hfs/inode.c struct inode *hfs_iget(struct super_block *sb, struct hfs_cat_key *key, hfs_cat_rec *rec) inode 349 fs/hfs/inode.c struct inode *inode; inode 362 fs/hfs/inode.c inode = iget5_locked(sb, cnid, hfs_test_inode, hfs_read_inode, &data); inode 363 fs/hfs/inode.c if (inode && (inode->i_state & I_NEW)) inode 364 fs/hfs/inode.c unlock_new_inode(inode); inode 365 fs/hfs/inode.c return inode; inode 371 fs/hfs/inode.c memcpy(ext, HFS_I(inode)->first_extents, sizeof(hfs_extent_rec)); inode 374 fs/hfs/inode.c *log_size = cpu_to_be32(inode->i_size); inode 376 fs/hfs/inode.c *phys_size = cpu_to_be32(HFS_I(inode)->alloc_blocks * inode 377 fs/hfs/inode.c HFS_SB(inode->i_sb)->alloc_blksz); inode 382 fs/hfs/inode.c struct inode *main_inode = inode; inode 386 fs/hfs/inode.c dprint(DBG_INODE, "hfs_write_inode: %lu\n", inode->i_ino); inode 387 fs/hfs/inode.c hfs_ext_write_extent(inode); inode 389 fs/hfs/inode.c if (inode->i_ino < HFS_FIRSTUSER_CNID) { inode 390 fs/hfs/inode.c switch (inode->i_ino) { inode 394 fs/hfs/inode.c hfs_btree_write(HFS_SB(inode->i_sb)->ext_tree); inode 397 fs/hfs/inode.c hfs_btree_write(HFS_SB(inode->i_sb)->cat_tree); inode 405 fs/hfs/inode.c if (HFS_IS_RSRC(inode)) inode 406 fs/hfs/inode.c main_inode = HFS_I(inode)->rsrc_inode; inode 426 fs/hfs/inode.c be32_to_cpu(rec.dir.DirID) != inode->i_ino) { inode 429 fs/hfs/inode.c rec.dir.MdDat = hfs_u_to_mtime(inode->i_mtime); inode 430 fs/hfs/inode.c rec.dir.Val = cpu_to_be16(inode->i_size - 2); inode 434 fs/hfs/inode.c } else if (HFS_IS_RSRC(inode)) { inode 437 fs/hfs/inode.c hfs_inode_write_fork(inode, rec.file.RExtRec, inode 447 fs/hfs/inode.c be32_to_cpu(rec.file.FlNum) != inode->i_ino) { inode 450 fs/hfs/inode.c if (inode->i_mode & S_IWUSR) inode 454 fs/hfs/inode.c hfs_inode_write_fork(inode, rec.file.ExtRec, &rec.file.LgLen, &rec.file.PyLen); inode 455 fs/hfs/inode.c rec.file.MdDat = hfs_u_to_mtime(inode->i_mtime); inode 468 fs/hfs/inode.c struct inode *inode = NULL; inode 476 fs/hfs/inode.c inode = HFS_I(dir)->rsrc_inode; inode 477 fs/hfs/inode.c if (inode) inode 480 fs/hfs/inode.c inode = new_inode(dir->i_sb); inode 481 fs/hfs/inode.c if (!inode) inode 489 fs/hfs/inode.c hfs_read_inode(inode, &idata); inode 493 fs/hfs/inode.c iput(inode); inode 496 fs/hfs/inode.c HFS_I(inode)->rsrc_inode = dir; inode 497 fs/hfs/inode.c HFS_I(dir)->rsrc_inode = inode; inode 499 fs/hfs/inode.c hlist_add_head(&inode->i_hash, &HFS_SB(dir->i_sb)->rsrc_inodes); inode 500 fs/hfs/inode.c mark_inode_dirty(inode); inode 502 fs/hfs/inode.c d_add(dentry, inode); inode 508 fs/hfs/inode.c if (HFS_IS_RSRC(inode) && HFS_I(inode)->rsrc_inode) { inode 509 fs/hfs/inode.c HFS_I(HFS_I(inode)->rsrc_inode)->rsrc_inode = NULL; inode 510 fs/hfs/inode.c iput(HFS_I(inode)->rsrc_inode); inode 516 fs/hfs/inode.c if (S_ISREG(inode->i_mode) && mask & MAY_EXEC) inode 518 fs/hfs/inode.c return generic_permission(inode, mask, NULL); inode 523 fs/hfs/inode.c if (HFS_IS_RSRC(inode)) inode 524 fs/hfs/inode.c inode = HFS_I(inode)->rsrc_inode; inode 525 fs/hfs/inode.c atomic_inc(&HFS_I(inode)->opencnt); inode 533 fs/hfs/inode.c if (HFS_IS_RSRC(inode)) inode 534 fs/hfs/inode.c inode = HFS_I(inode)->rsrc_inode; inode 535 fs/hfs/inode.c if (atomic_dec_and_test(&HFS_I(inode)->opencnt)) { inode 536 fs/hfs/inode.c mutex_lock(&inode->i_mutex); inode 537 fs/hfs/inode.c hfs_file_truncate(inode); inode 542 fs/hfs/inode.c mutex_unlock(&inode->i_mutex); inode 566 fs/hfs/inode.c struct inode *inode = dentry->d_inode; inode 567 fs/hfs/inode.c struct hfs_sb_info *hsb = HFS_SB(inode->i_sb); inode 570 fs/hfs/inode.c error = inode_change_ok(inode, attr); /* basic permission checks */ inode 580 fs/hfs/inode.c ((S_ISDIR(inode->i_mode) && inode 581 fs/hfs/inode.c (attr->ia_mode != inode->i_mode)) || inode 589 fs/hfs/inode.c attr->ia_mode = inode->i_mode | S_IWUGO; inode 591 fs/hfs/inode.c attr->ia_mode = inode->i_mode & ~S_IWUGO; inode 592 fs/hfs/inode.c attr->ia_mode &= S_ISDIR(inode->i_mode) ? ~hsb->s_dir_umask: ~hsb->s_file_umask; inode 594 fs/hfs/inode.c error = inode_setattr(inode, attr); inode 281 fs/hfs/mdb.c hfs_inode_write_fork(HFS_SB(sb)->ext_tree->inode, mdb->drXTExtRec, inode 283 fs/hfs/mdb.c hfs_inode_write_fork(HFS_SB(sb)->cat_tree->inode, mdb->drCTExtRec, inode 144 fs/hfs/super.c static struct inode *hfs_alloc_inode(struct super_block *sb) inode 154 fs/hfs/super.c kmem_cache_free(hfs_inode_cachep, HFS_I(inode)); inode 358 fs/hfs/super.c struct inode *root_inode; inode 17 fs/hfs/sysdep.c struct inode *inode = dentry->d_inode; inode 20 fs/hfs/sysdep.c if(!inode) inode 24 fs/hfs/sysdep.c diff = sys_tz.tz_minuteswest * 60 - HFS_I(inode)->tz_secondswest; inode 26 fs/hfs/sysdep.c inode->i_ctime.tv_sec += diff; inode 27 fs/hfs/sysdep.c inode->i_atime.tv_sec += diff; inode 28 fs/hfs/sysdep.c inode->i_mtime.tv_sec += diff; inode 29 fs/hfs/sysdep.c HFS_I(inode)->tz_secondswest += diff; inode 409 fs/hfsplus/bnode.c sb = tree->inode->i_sb; inode 437 fs/hfsplus/bnode.c mapping = tree->inode->i_mapping; inode 95 fs/hfsplus/brec.c mark_inode_dirty(tree->inode); inode 177 fs/hfsplus/brec.c mark_inode_dirty(tree->inode); inode 315 fs/hfsplus/brec.c mark_inode_dirty(tree->inode); inode 488 fs/hfsplus/brec.c mark_inode_dirty(tree->inode); inode 25 fs/hfsplus/btree.c struct inode *inode; inode 37 fs/hfsplus/btree.c inode = hfsplus_iget(sb, id); inode 38 fs/hfsplus/btree.c if (IS_ERR(inode)) inode 40 fs/hfsplus/btree.c tree->inode = inode; inode 42 fs/hfsplus/btree.c mapping = tree->inode->i_mapping; inode 90 fs/hfsplus/btree.c tree->inode->i_mapping->a_ops = &hfsplus_aops; inode 93 fs/hfsplus/btree.c iput(tree->inode); inode 117 fs/hfsplus/btree.c iput(tree->inode); inode 194 fs/hfsplus/btree.c struct inode *inode = tree->inode; inode 198 fs/hfsplus/btree.c res = hfsplus_file_extend(inode); inode 201 fs/hfsplus/btree.c HFSPLUS_I(inode).phys_size = inode->i_size = inode 202 fs/hfsplus/btree.c (loff_t)HFSPLUS_I(inode).alloc_blocks << inode 204 fs/hfsplus/btree.c HFSPLUS_I(inode).fs_blocks = HFSPLUS_I(inode).alloc_blocks << inode 206 fs/hfsplus/btree.c inode_set_bytes(inode, inode->i_size); inode 207 fs/hfsplus/btree.c count = inode->i_size >> tree->node_size_shift; inode 236 fs/hfsplus/btree.c mark_inode_dirty(tree->inode); inode 326 fs/hfsplus/btree.c mark_inode_dirty(tree->inode); inode 72 fs/hfsplus/catalog.c if (inode->i_flags & S_IMMUTABLE) inode 76 fs/hfsplus/catalog.c if (inode->i_flags & S_APPEND) inode 80 fs/hfsplus/catalog.c HFSPLUS_I(inode).rootflags = perms->rootflags; inode 81 fs/hfsplus/catalog.c HFSPLUS_I(inode).userflags = perms->userflags; inode 82 fs/hfsplus/catalog.c perms->mode = cpu_to_be16(inode->i_mode); inode 83 fs/hfsplus/catalog.c perms->owner = cpu_to_be32(inode->i_uid); inode 84 fs/hfsplus/catalog.c perms->group = cpu_to_be32(inode->i_gid); inode 89 fs/hfsplus/catalog.c if (S_ISDIR(inode->i_mode)) { inode 95 fs/hfsplus/catalog.c folder->id = cpu_to_be32(inode->i_ino); inode 96 fs/hfsplus/catalog.c HFSPLUS_I(inode).create_date = inode 101 fs/hfsplus/catalog.c hfsplus_set_perms(inode, &folder->permissions); inode 102 fs/hfsplus/catalog.c if (inode == HFSPLUS_SB(inode->i_sb).hidden_dir) inode 114 fs/hfsplus/catalog.c HFSPLUS_I(inode).create_date = inode 119 fs/hfsplus/catalog.c if (cnid == inode->i_ino) { inode 120 fs/hfsplus/catalog.c hfsplus_set_perms(inode, &file->permissions); inode 121 fs/hfsplus/catalog.c if (S_ISLNK(inode->i_mode)) { inode 125 fs/hfsplus/catalog.c file->user_info.fdType = cpu_to_be32(HFSPLUS_SB(inode->i_sb).type); inode 126 fs/hfsplus/catalog.c file->user_info.fdCreator = cpu_to_be32(HFSPLUS_SB(inode->i_sb).creator); inode 134 fs/hfsplus/catalog.c file->create_date = HFSPLUS_I(HFSPLUS_SB(inode->i_sb).hidden_dir).create_date; inode 135 fs/hfsplus/catalog.c file->permissions.dev = cpu_to_be32(HFSPLUS_I(inode).dev); inode 184 fs/hfsplus/catalog.c dprint(DBG_CAT_MOD, "create_cat: %s,%u(%d)\n", str->name, cnid, inode->i_nlink); inode 189 fs/hfsplus/catalog.c entry_size = hfsplus_fill_cat_thread(sb, &entry, S_ISDIR(inode->i_mode) ? inode 203 fs/hfsplus/catalog.c entry_size = hfsplus_cat_build_record(&entry, cnid, inode); inode 23 fs/hfsplus/dir.c d_instantiate(dentry, inode); inode 30 fs/hfsplus/dir.c struct inode *inode = NULL; inode 50 fs/hfsplus/dir.c inode = NULL; inode 100 fs/hfsplus/dir.c inode = hfsplus_iget(dir->i_sb, cnid); inode 101 fs/hfsplus/dir.c if (IS_ERR(inode)) inode 102 fs/hfsplus/dir.c return ERR_CAST(inode); inode 103 fs/hfsplus/dir.c if (S_ISREG(inode->i_mode)) inode 104 fs/hfsplus/dir.c HFSPLUS_I(inode).dev = linkid; inode 106 fs/hfsplus/dir.c d_add(dentry, inode); inode 115 fs/hfsplus/dir.c struct inode *inode = filp->f_path.dentry->d_inode; inode 116 fs/hfsplus/dir.c struct super_block *sb = inode->i_sb; inode 124 fs/hfsplus/dir.c if (filp->f_pos >= inode->i_size) inode 128 fs/hfsplus/dir.c hfsplus_cat_build_key(sb, fd.search_key, inode->i_ino, NULL); inode 136 fs/hfsplus/dir.c if (filldir(dirent, ".", 1, 0, inode->i_ino, DT_DIR)) inode 158 fs/hfsplus/dir.c if (filp->f_pos >= inode->i_size) inode 166 fs/hfsplus/dir.c if (be32_to_cpu(fd.key->cat.parent) != inode->i_ino) { inode 205 fs/hfsplus/dir.c if (filp->f_pos >= inode->i_size) inode 220 fs/hfsplus/dir.c list_add(&rd->list, &HFSPLUS_I(inode).open_dir_list); inode 241 fs/hfsplus/dir.c struct inode *inode; inode 244 fs/hfsplus/dir.c inode = hfsplus_new_inode(dir->i_sb, mode); inode 245 fs/hfsplus/dir.c if (!inode) inode 248 fs/hfsplus/dir.c res = hfsplus_create_cat(inode->i_ino, dir, &dentry->d_name, inode); inode 250 fs/hfsplus/dir.c inode->i_nlink = 0; inode 251 fs/hfsplus/dir.c hfsplus_delete_inode(inode); inode 252 fs/hfsplus/dir.c iput(inode); inode 255 fs/hfsplus/dir.c hfsplus_instantiate(dentry, inode, inode->i_ino); inode 256 fs/hfsplus/dir.c mark_inode_dirty(inode); inode 264 fs/hfsplus/dir.c struct inode *inode = src_dentry->d_inode; inode 265 fs/hfsplus/dir.c struct inode *src_dir = src_dentry->d_parent->d_inode; inode 271 fs/hfsplus/dir.c if (HFSPLUS_IS_RSRC(inode)) inode 274 fs/hfsplus/dir.c if (inode->i_ino == (u32)(unsigned long)src_dentry->d_fsdata) { inode 280 fs/hfsplus/dir.c res = hfsplus_rename_cat(inode->i_ino, inode 288 fs/hfsplus/dir.c HFSPLUS_I(inode).dev = id; inode 291 fs/hfsplus/dir.c res = hfsplus_create_cat(cnid, src_dir, &src_dentry->d_name, inode); inode 298 fs/hfsplus/dir.c res = hfsplus_create_cat(cnid, dst_dir, &dst_dentry->d_name, inode); inode 302 fs/hfsplus/dir.c inc_nlink(inode); inode 303 fs/hfsplus/dir.c hfsplus_instantiate(dst_dentry, inode, cnid); inode 304 fs/hfsplus/dir.c atomic_inc(&inode->i_count); inode 305 fs/hfsplus/dir.c inode->i_ctime = CURRENT_TIME_SEC; inode 306 fs/hfsplus/dir.c mark_inode_dirty(inode); inode 316 fs/hfsplus/dir.c struct inode *inode = dentry->d_inode; inode 322 fs/hfsplus/dir.c if (HFSPLUS_IS_RSRC(inode)) inode 326 fs/hfsplus/dir.c if (inode->i_ino == cnid && inode 327 fs/hfsplus/dir.c atomic_read(&HFSPLUS_I(inode).opencnt)) { inode 329 fs/hfsplus/dir.c str.len = sprintf(name, "temp%lu", inode->i_ino); inode 330 fs/hfsplus/dir.c res = hfsplus_rename_cat(inode->i_ino, inode 334 fs/hfsplus/dir.c inode->i_flags |= S_DEAD; inode 341 fs/hfsplus/dir.c if (inode->i_nlink > 0) inode 342 fs/hfsplus/dir.c drop_nlink(inode); inode 343 fs/hfsplus/dir.c if (inode->i_ino == cnid) inode 344 fs/hfsplus/dir.c clear_nlink(inode); inode 345 fs/hfsplus/dir.c if (!inode->i_nlink) { inode 346 fs/hfsplus/dir.c if (inode->i_ino != cnid) { inode 348 fs/hfsplus/dir.c if (!atomic_read(&HFSPLUS_I(inode).opencnt)) { inode 349 fs/hfsplus/dir.c res = hfsplus_delete_cat(inode->i_ino, inode 353 fs/hfsplus/dir.c hfsplus_delete_inode(inode); inode 355 fs/hfsplus/dir.c inode->i_flags |= S_DEAD; inode 357 fs/hfsplus/dir.c hfsplus_delete_inode(inode); inode 360 fs/hfsplus/dir.c inode->i_ctime = CURRENT_TIME_SEC; inode 361 fs/hfsplus/dir.c mark_inode_dirty(inode); inode 368 fs/hfsplus/dir.c struct inode *inode; inode 371 fs/hfsplus/dir.c inode = hfsplus_new_inode(dir->i_sb, S_IFDIR | mode); inode 372 fs/hfsplus/dir.c if (!inode) inode 375 fs/hfsplus/dir.c res = hfsplus_create_cat(inode->i_ino, dir, &dentry->d_name, inode); inode 377 fs/hfsplus/dir.c inode->i_nlink = 0; inode 378 fs/hfsplus/dir.c hfsplus_delete_inode(inode); inode 379 fs/hfsplus/dir.c iput(inode); inode 382 fs/hfsplus/dir.c hfsplus_instantiate(dentry, inode, inode->i_ino); inode 383 fs/hfsplus/dir.c mark_inode_dirty(inode); inode 389 fs/hfsplus/dir.c struct inode *inode; inode 392 fs/hfsplus/dir.c inode = dentry->d_inode; inode 393 fs/hfsplus/dir.c if (inode->i_size != 2) inode 395 fs/hfsplus/dir.c res = hfsplus_delete_cat(inode->i_ino, dir, &dentry->d_name); inode 398 fs/hfsplus/dir.c clear_nlink(inode); inode 399 fs/hfsplus/dir.c inode->i_ctime = CURRENT_TIME_SEC; inode 400 fs/hfsplus/dir.c hfsplus_delete_inode(inode); inode 401 fs/hfsplus/dir.c mark_inode_dirty(inode); inode 409 fs/hfsplus/dir.c struct inode *inode; inode 413 fs/hfsplus/dir.c inode = hfsplus_new_inode(sb, S_IFLNK | S_IRWXUGO); inode 414 fs/hfsplus/dir.c if (!inode) inode 417 fs/hfsplus/dir.c res = page_symlink(inode, symname, strlen(symname) + 1); inode 419 fs/hfsplus/dir.c inode->i_nlink = 0; inode 420 fs/hfsplus/dir.c hfsplus_delete_inode(inode); inode 421 fs/hfsplus/dir.c iput(inode); inode 425 fs/hfsplus/dir.c mark_inode_dirty(inode); inode 426 fs/hfsplus/dir.c res = hfsplus_create_cat(inode->i_ino, dir, &dentry->d_name, inode); inode 429 fs/hfsplus/dir.c hfsplus_instantiate(dentry, inode, inode->i_ino); inode 430 fs/hfsplus/dir.c mark_inode_dirty(inode); inode 440 fs/hfsplus/dir.c struct inode *inode; inode 444 fs/hfsplus/dir.c inode = hfsplus_new_inode(sb, mode); inode 445 fs/hfsplus/dir.c if (!inode) inode 448 fs/hfsplus/dir.c res = hfsplus_create_cat(inode->i_ino, dir, &dentry->d_name, inode); inode 450 fs/hfsplus/dir.c inode->i_nlink = 0; inode 451 fs/hfsplus/dir.c hfsplus_delete_inode(inode); inode 452 fs/hfsplus/dir.c iput(inode); inode 455 fs/hfsplus/dir.c init_special_inode(inode, mode, rdev); inode 456 fs/hfsplus/dir.c hfsplus_instantiate(dentry, inode, inode->i_ino); inode 457 fs/hfsplus/dir.c mark_inode_dirty(inode); inode 90 fs/hfsplus/extents.c hfsplus_ext_build_key(fd->search_key, inode->i_ino, HFSPLUS_I(inode).cached_start, inode 91 fs/hfsplus/extents.c HFSPLUS_IS_RSRC(inode) ? HFSPLUS_TYPE_RSRC : HFSPLUS_TYPE_DATA); inode 93 fs/hfsplus/extents.c if (HFSPLUS_I(inode).flags & HFSPLUS_FLG_EXT_NEW) { inode 96 fs/hfsplus/extents.c hfs_brec_insert(fd, HFSPLUS_I(inode).cached_extents, sizeof(hfsplus_extent_rec)); inode 97 fs/hfsplus/extents.c HFSPLUS_I(inode).flags &= ~(HFSPLUS_FLG_EXT_DIRTY | HFSPLUS_FLG_EXT_NEW); inode 101 fs/hfsplus/extents.c hfs_bnode_write(fd->bnode, HFSPLUS_I(inode).cached_extents, fd->entryoffset, fd->entrylength); inode 102 fs/hfsplus/extents.c HFSPLUS_I(inode).flags &= ~HFSPLUS_FLG_EXT_DIRTY; inode 108 fs/hfsplus/extents.c if (HFSPLUS_I(inode).flags & HFSPLUS_FLG_EXT_DIRTY) { inode 111 fs/hfsplus/extents.c hfs_find_init(HFSPLUS_SB(inode->i_sb).ext_tree, &fd); inode 112 fs/hfsplus/extents.c __hfsplus_ext_write_extent(inode, &fd); inode 141 fs/hfsplus/extents.c if (HFSPLUS_I(inode).flags & HFSPLUS_FLG_EXT_DIRTY) inode 142 fs/hfsplus/extents.c __hfsplus_ext_write_extent(inode, fd); inode 144 fs/hfsplus/extents.c res = __hfsplus_ext_read_extent(fd, HFSPLUS_I(inode).cached_extents, inode->i_ino, inode 145 fs/hfsplus/extents.c block, HFSPLUS_IS_RSRC(inode) ? HFSPLUS_TYPE_RSRC : HFSPLUS_TYPE_DATA); inode 147 fs/hfsplus/extents.c HFSPLUS_I(inode).cached_start = be32_to_cpu(fd->key->ext.start_block); inode 148 fs/hfsplus/extents.c HFSPLUS_I(inode).cached_blocks = hfsplus_ext_block_count(HFSPLUS_I(inode).cached_extents); inode 150 fs/hfsplus/extents.c HFSPLUS_I(inode).cached_start = HFSPLUS_I(inode).cached_blocks = 0; inode 151 fs/hfsplus/extents.c HFSPLUS_I(inode).flags &= ~(HFSPLUS_FLG_EXT_DIRTY | HFSPLUS_FLG_EXT_NEW); inode 161 fs/hfsplus/extents.c if (block >= HFSPLUS_I(inode).cached_start && inode 162 fs/hfsplus/extents.c block < HFSPLUS_I(inode).cached_start + HFSPLUS_I(inode).cached_blocks) inode 165 fs/hfsplus/extents.c hfs_find_init(HFSPLUS_SB(inode->i_sb).ext_tree, &fd); inode 166 fs/hfsplus/extents.c res = __hfsplus_ext_cache_extent(&fd, inode, block); inode 180 fs/hfsplus/extents.c sb = inode->i_sb; inode 186 fs/hfsplus/extents.c if (iblock >= HFSPLUS_I(inode).fs_blocks) { inode 187 fs/hfsplus/extents.c if (iblock > HFSPLUS_I(inode).fs_blocks || !create) inode 189 fs/hfsplus/extents.c if (ablock >= HFSPLUS_I(inode).alloc_blocks) { inode 190 fs/hfsplus/extents.c res = hfsplus_file_extend(inode); inode 197 fs/hfsplus/extents.c if (ablock < HFSPLUS_I(inode).first_blocks) { inode 198 fs/hfsplus/extents.c dblock = hfsplus_ext_find_block(HFSPLUS_I(inode).first_extents, ablock); inode 202 fs/hfsplus/extents.c mutex_lock(&HFSPLUS_I(inode).extents_lock); inode 203 fs/hfsplus/extents.c res = hfsplus_ext_read_extent(inode, ablock); inode 205 fs/hfsplus/extents.c dblock = hfsplus_ext_find_block(HFSPLUS_I(inode).cached_extents, ablock - inode 206 fs/hfsplus/extents.c HFSPLUS_I(inode).cached_start); inode 208 fs/hfsplus/extents.c mutex_unlock(&HFSPLUS_I(inode).extents_lock); inode 211 fs/hfsplus/extents.c mutex_unlock(&HFSPLUS_I(inode).extents_lock); inode 214 fs/hfsplus/extents.c dprint(DBG_EXTENT, "get_block(%lu): %llu - %u\n", inode->i_ino, (long long)iblock, dblock); inode 219 fs/hfsplus/extents.c HFSPLUS_I(inode).phys_size += sb->s_blocksize; inode 220 fs/hfsplus/extents.c HFSPLUS_I(inode).fs_blocks++; inode 221 fs/hfsplus/extents.c inode_add_bytes(inode, sb->s_blocksize); inode 222 fs/hfsplus/extents.c mark_inode_dirty(inode); inode 347 fs/hfsplus/extents.c struct super_block *sb = inode->i_sb; inode 358 fs/hfsplus/extents.c mutex_lock(&HFSPLUS_I(inode).extents_lock); inode 359 fs/hfsplus/extents.c if (HFSPLUS_I(inode).alloc_blocks == HFSPLUS_I(inode).first_blocks) inode 360 fs/hfsplus/extents.c goal = hfsplus_ext_lastblock(HFSPLUS_I(inode).first_extents); inode 362 fs/hfsplus/extents.c res = hfsplus_ext_read_extent(inode, HFSPLUS_I(inode).alloc_blocks); inode 365 fs/hfsplus/extents.c goal = hfsplus_ext_lastblock(HFSPLUS_I(inode).cached_extents); inode 368 fs/hfsplus/extents.c len = HFSPLUS_I(inode).clump_blocks; inode 378 fs/hfsplus/extents.c dprint(DBG_EXTENT, "extend %lu: %u,%u\n", inode->i_ino, start, len); inode 379 fs/hfsplus/extents.c if (HFSPLUS_I(inode).alloc_blocks <= HFSPLUS_I(inode).first_blocks) { inode 380 fs/hfsplus/extents.c if (!HFSPLUS_I(inode).first_blocks) { inode 383 fs/hfsplus/extents.c HFSPLUS_I(inode).first_extents[0].start_block = cpu_to_be32(start); inode 384 fs/hfsplus/extents.c HFSPLUS_I(inode).first_extents[0].block_count = cpu_to_be32(len); inode 388 fs/hfsplus/extents.c res = hfsplus_add_extent(HFSPLUS_I(inode).first_extents, inode 389 fs/hfsplus/extents.c HFSPLUS_I(inode).alloc_blocks, inode 395 fs/hfsplus/extents.c hfsplus_dump_extent(HFSPLUS_I(inode).first_extents); inode 396 fs/hfsplus/extents.c HFSPLUS_I(inode).first_blocks += len; inode 399 fs/hfsplus/extents.c res = hfsplus_add_extent(HFSPLUS_I(inode).cached_extents, inode 400 fs/hfsplus/extents.c HFSPLUS_I(inode).alloc_blocks - inode 401 fs/hfsplus/extents.c HFSPLUS_I(inode).cached_start, inode 404 fs/hfsplus/extents.c hfsplus_dump_extent(HFSPLUS_I(inode).cached_extents); inode 405 fs/hfsplus/extents.c HFSPLUS_I(inode).flags |= HFSPLUS_FLG_EXT_DIRTY; inode 406 fs/hfsplus/extents.c HFSPLUS_I(inode).cached_blocks += len; inode 411 fs/hfsplus/extents.c mutex_unlock(&HFSPLUS_I(inode).extents_lock); inode 413 fs/hfsplus/extents.c HFSPLUS_I(inode).alloc_blocks += len; inode 414 fs/hfsplus/extents.c mark_inode_dirty(inode); inode 420 fs/hfsplus/extents.c hfsplus_ext_write_extent(inode); inode 422 fs/hfsplus/extents.c memset(HFSPLUS_I(inode).cached_extents, 0, sizeof(hfsplus_extent_rec)); inode 423 fs/hfsplus/extents.c HFSPLUS_I(inode).cached_extents[0].start_block = cpu_to_be32(start); inode 424 fs/hfsplus/extents.c HFSPLUS_I(inode).cached_extents[0].block_count = cpu_to_be32(len); inode 425 fs/hfsplus/extents.c hfsplus_dump_extent(HFSPLUS_I(inode).cached_extents); inode 426 fs/hfsplus/extents.c HFSPLUS_I(inode).flags |= HFSPLUS_FLG_EXT_DIRTY | HFSPLUS_FLG_EXT_NEW; inode 427 fs/hfsplus/extents.c HFSPLUS_I(inode).cached_start = HFSPLUS_I(inode).alloc_blocks; inode 428 fs/hfsplus/extents.c HFSPLUS_I(inode).cached_blocks = len; inode 436 fs/hfsplus/extents.c struct super_block *sb = inode->i_sb; inode 441 fs/hfsplus/extents.c dprint(DBG_INODE, "truncate: %lu, %Lu -> %Lu\n", inode->i_ino, inode 442 fs/hfsplus/extents.c (long long)HFSPLUS_I(inode).phys_size, inode->i_size); inode 443 fs/hfsplus/extents.c if (inode->i_size > HFSPLUS_I(inode).phys_size) { inode 444 fs/hfsplus/extents.c struct address_space *mapping = inode->i_mapping; inode 447 fs/hfsplus/extents.c u32 size = inode->i_size; inode 458 fs/hfsplus/extents.c mark_inode_dirty(inode); inode 460 fs/hfsplus/extents.c } else if (inode->i_size == HFSPLUS_I(inode).phys_size) inode 463 fs/hfsplus/extents.c blk_cnt = (inode->i_size + HFSPLUS_SB(sb).alloc_blksz - 1) >> HFSPLUS_SB(sb).alloc_blksz_shift; inode 464 fs/hfsplus/extents.c alloc_cnt = HFSPLUS_I(inode).alloc_blocks; inode 468 fs/hfsplus/extents.c mutex_lock(&HFSPLUS_I(inode).extents_lock); inode 471 fs/hfsplus/extents.c if (alloc_cnt == HFSPLUS_I(inode).first_blocks) { inode 472 fs/hfsplus/extents.c hfsplus_free_extents(sb, HFSPLUS_I(inode).first_extents, inode 474 fs/hfsplus/extents.c hfsplus_dump_extent(HFSPLUS_I(inode).first_extents); inode 475 fs/hfsplus/extents.c HFSPLUS_I(inode).first_blocks = blk_cnt; inode 478 fs/hfsplus/extents.c res = __hfsplus_ext_cache_extent(&fd, inode, alloc_cnt); inode 481 fs/hfsplus/extents.c start = HFSPLUS_I(inode).cached_start; inode 482 fs/hfsplus/extents.c hfsplus_free_extents(sb, HFSPLUS_I(inode).cached_extents, inode 484 fs/hfsplus/extents.c hfsplus_dump_extent(HFSPLUS_I(inode).cached_extents); inode 486 fs/hfsplus/extents.c HFSPLUS_I(inode).flags |= HFSPLUS_FLG_EXT_DIRTY; inode 490 fs/hfsplus/extents.c HFSPLUS_I(inode).cached_start = HFSPLUS_I(inode).cached_blocks = 0; inode 491 fs/hfsplus/extents.c HFSPLUS_I(inode).flags &= ~(HFSPLUS_FLG_EXT_DIRTY | HFSPLUS_FLG_EXT_NEW); inode 495 fs/hfsplus/extents.c mutex_unlock(&HFSPLUS_I(inode).extents_lock); inode 497 fs/hfsplus/extents.c HFSPLUS_I(inode).alloc_blocks = blk_cnt; inode 499 fs/hfsplus/extents.c HFSPLUS_I(inode).phys_size = inode->i_size; inode 500 fs/hfsplus/extents.c HFSPLUS_I(inode).fs_blocks = (inode->i_size + sb->s_blocksize - 1) >> sb->s_blocksize_bits; inode 501 fs/hfsplus/extents.c inode_set_bytes(inode, HFSPLUS_I(inode).fs_blocks << sb->s_blocksize_bits); inode 502 fs/hfsplus/extents.c mark_inode_dirty(inode); inode 47 fs/hfsplus/hfsplus_fs.h struct inode *inode; inode 115 fs/hfsplus/hfsplus_fs.h struct inode *alloc_file; inode 116 fs/hfsplus/hfsplus_fs.h struct inode *hidden_dir; inode 168 fs/hfsplus/hfsplus_fs.h struct inode *rsrc_inode; inode 180 fs/hfsplus/hfsplus_fs.h struct inode vfs_inode; inode 187 fs/hfsplus/hfsplus_fs.h #define HFSPLUS_IS_DATA(inode) (!(HFSPLUS_I(inode).flags & HFSPLUS_FLG_RSRC)) inode 188 fs/hfsplus/hfsplus_fs.h #define HFSPLUS_IS_RSRC(inode) (HFSPLUS_I(inode).flags & HFSPLUS_FLG_RSRC) inode 336 fs/hfsplus/hfsplus_fs.h struct inode *hfsplus_new_inode(struct super_block *, int); inode 354 fs/hfsplus/hfsplus_fs.h struct inode *hfsplus_iget(struct super_block *, unsigned long); inode 386 fs/hfsplus/hfsplus_fs.h #define HFSPLUS_I(inode) (*list_entry(inode, struct hfsplus_inode_info, vfs_inode)) inode 47 fs/hfsplus/inode.c struct inode *inode = page->mapping->host; inode 48 fs/hfsplus/inode.c struct super_block *sb = inode->i_sb; inode 54 fs/hfsplus/inode.c switch (inode->i_ino) { inode 107 fs/hfsplus/inode.c struct inode *inode = file->f_path.dentry->d_inode->i_mapping->host; inode 109 fs/hfsplus/inode.c return blockdev_direct_IO(rw, iocb, inode, inode->i_sb->s_bdev, iov, inode 150 fs/hfsplus/inode.c struct inode *inode = NULL; inode 156 fs/hfsplus/inode.c inode = HFSPLUS_I(dir).rsrc_inode; inode 157 fs/hfsplus/inode.c if (inode) inode 160 fs/hfsplus/inode.c inode = new_inode(sb); inode 161 fs/hfsplus/inode.c if (!inode) inode 164 fs/hfsplus/inode.c inode->i_ino = dir->i_ino; inode 165 fs/hfsplus/inode.c INIT_LIST_HEAD(&HFSPLUS_I(inode).open_dir_list); inode 166 fs/hfsplus/inode.c mutex_init(&HFSPLUS_I(inode).extents_lock); inode 167 fs/hfsplus/inode.c HFSPLUS_I(inode).flags = HFSPLUS_FLG_RSRC; inode 172 fs/hfsplus/inode.c err = hfsplus_cat_read_inode(inode, &fd); inode 175 fs/hfsplus/inode.c iput(inode); inode 178 fs/hfsplus/inode.c HFSPLUS_I(inode).rsrc_inode = dir; inode 179 fs/hfsplus/inode.c HFSPLUS_I(dir).rsrc_inode = inode; inode 181 fs/hfsplus/inode.c hlist_add_head(&inode->i_hash, &HFSPLUS_SB(sb).rsrc_inodes); inode 182 fs/hfsplus/inode.c mark_inode_dirty(inode); inode 184 fs/hfsplus/inode.c d_add(dentry, inode); inode 190 fs/hfsplus/inode.c struct super_block *sb = inode->i_sb; inode 195 fs/hfsplus/inode.c inode->i_uid = be32_to_cpu(perms->owner); inode 196 fs/hfsplus/inode.c if (!inode->i_uid && !mode) inode 197 fs/hfsplus/inode.c inode->i_uid = HFSPLUS_SB(sb).uid; inode 199 fs/hfsplus/inode.c inode->i_gid = be32_to_cpu(perms->group); inode 200 fs/hfsplus/inode.c if (!inode->i_gid && !mode) inode 201 fs/hfsplus/inode.c inode->i_gid = HFSPLUS_SB(sb).gid; inode 210 fs/hfsplus/inode.c inode->i_mode = mode; inode 212 fs/hfsplus/inode.c HFSPLUS_I(inode).rootflags = perms->rootflags; inode 213 fs/hfsplus/inode.c HFSPLUS_I(inode).userflags = perms->userflags; inode 215 fs/hfsplus/inode.c inode->i_flags |= S_IMMUTABLE; inode 217 fs/hfsplus/inode.c inode->i_flags &= ~S_IMMUTABLE; inode 219 fs/hfsplus/inode.c inode->i_flags |= S_APPEND; inode 221 fs/hfsplus/inode.c inode->i_flags &= ~S_APPEND; inode 226 fs/hfsplus/inode.c if (inode->i_flags & S_IMMUTABLE) inode 230 fs/hfsplus/inode.c if (inode->i_flags & S_APPEND) inode 234 fs/hfsplus/inode.c perms->userflags = HFSPLUS_I(inode).userflags; inode 235 fs/hfsplus/inode.c perms->mode = cpu_to_be16(inode->i_mode); inode 236 fs/hfsplus/inode.c perms->owner = cpu_to_be32(inode->i_uid); inode 237 fs/hfsplus/inode.c perms->group = cpu_to_be32(inode->i_gid); inode 238 fs/hfsplus/inode.c perms->dev = cpu_to_be32(HFSPLUS_I(inode).dev); inode 247 fs/hfsplus/inode.c if (S_ISREG(inode->i_mode) && mask & MAY_EXEC && !(inode->i_mode & 0111)) inode 249 fs/hfsplus/inode.c return generic_permission(inode, mask, NULL); inode 255 fs/hfsplus/inode.c if (HFSPLUS_IS_RSRC(inode)) inode 256 fs/hfsplus/inode.c inode = HFSPLUS_I(inode).rsrc_inode; inode 257 fs/hfsplus/inode.c atomic_inc(&HFSPLUS_I(inode).opencnt); inode 263 fs/hfsplus/inode.c struct super_block *sb = inode->i_sb; inode 265 fs/hfsplus/inode.c if (HFSPLUS_IS_RSRC(inode)) inode 266 fs/hfsplus/inode.c inode = HFSPLUS_I(inode).rsrc_inode; inode 267 fs/hfsplus/inode.c if (atomic_dec_and_test(&HFSPLUS_I(inode).opencnt)) { inode 268 fs/hfsplus/inode.c mutex_lock(&inode->i_mutex); inode 269 fs/hfsplus/inode.c hfsplus_file_truncate(inode); inode 270 fs/hfsplus/inode.c if (inode->i_flags & S_DEAD) { inode 271 fs/hfsplus/inode.c hfsplus_delete_cat(inode->i_ino, HFSPLUS_SB(sb).hidden_dir, NULL); inode 272 fs/hfsplus/inode.c hfsplus_delete_inode(inode); inode 274 fs/hfsplus/inode.c mutex_unlock(&inode->i_mutex); inode 302 fs/hfsplus/inode.c struct inode *hfsplus_new_inode(struct super_block *sb, int mode) inode 304 fs/hfsplus/inode.c struct inode *inode = new_inode(sb); inode 305 fs/hfsplus/inode.c if (!inode) inode 308 fs/hfsplus/inode.c inode->i_ino = HFSPLUS_SB(sb).next_cnid++; inode 309 fs/hfsplus/inode.c inode->i_mode = mode; inode 310 fs/hfsplus/inode.c inode->i_uid = current->fsuid; inode 311 fs/hfsplus/inode.c inode->i_gid = current->fsgid; inode 312 fs/hfsplus/inode.c inode->i_nlink = 1; inode 313 fs/hfsplus/inode.c inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; inode 314 fs/hfsplus/inode.c INIT_LIST_HEAD(&HFSPLUS_I(inode).open_dir_list); inode 315 fs/hfsplus/inode.c mutex_init(&HFSPLUS_I(inode).extents_lock); inode 316 fs/hfsplus/inode.c atomic_set(&HFSPLUS_I(inode).opencnt, 0); inode 317 fs/hfsplus/inode.c HFSPLUS_I(inode).flags = 0; inode 318 fs/hfsplus/inode.c memset(HFSPLUS_I(inode).first_extents, 0, sizeof(hfsplus_extent_rec)); inode 319 fs/hfsplus/inode.c memset(HFSPLUS_I(inode).cached_extents, 0, sizeof(hfsplus_extent_rec)); inode 320 fs/hfsplus/inode.c HFSPLUS_I(inode).alloc_blocks = 0; inode 321 fs/hfsplus/inode.c HFSPLUS_I(inode).first_blocks = 0; inode 322 fs/hfsplus/inode.c HFSPLUS_I(inode).cached_start = 0; inode 323 fs/hfsplus/inode.c HFSPLUS_I(inode).cached_blocks = 0; inode 324 fs/hfsplus/inode.c HFSPLUS_I(inode).phys_size = 0; inode 325 fs/hfsplus/inode.c HFSPLUS_I(inode).fs_blocks = 0; inode 326 fs/hfsplus/inode.c HFSPLUS_I(inode).rsrc_inode = NULL; inode 327 fs/hfsplus/inode.c if (S_ISDIR(inode->i_mode)) { inode 328 fs/hfsplus/inode.c inode->i_size = 2; inode 330 fs/hfsplus/inode.c inode->i_op = &hfsplus_dir_inode_operations; inode 331 fs/hfsplus/inode.c inode->i_fop = &hfsplus_dir_operations; inode 332 fs/hfsplus/inode.c } else if (S_ISREG(inode->i_mode)) { inode 334 fs/hfsplus/inode.c inode->i_op = &hfsplus_file_inode_operations; inode 335 fs/hfsplus/inode.c inode->i_fop = &hfsplus_file_operations; inode 336 fs/hfsplus/inode.c inode->i_mapping->a_ops = &hfsplus_aops; inode 337 fs/hfsplus/inode.c HFSPLUS_I(inode).clump_blocks = HFSPLUS_SB(sb).data_clump_blocks; inode 338 fs/hfsplus/inode.c } else if (S_ISLNK(inode->i_mode)) { inode 340 fs/hfsplus/inode.c inode->i_op = &page_symlink_inode_operations; inode 341 fs/hfsplus/inode.c inode->i_mapping->a_ops = &hfsplus_aops; inode 342 fs/hfsplus/inode.c HFSPLUS_I(inode).clump_blocks = 1; inode 345 fs/hfsplus/inode.c insert_inode_hash(inode); inode 346 fs/hfsplus/inode.c mark_inode_dirty(inode); inode 349 fs/hfsplus/inode.c return inode; inode 354 fs/hfsplus/inode.c struct super_block *sb = inode->i_sb; inode 356 fs/hfsplus/inode.c if (S_ISDIR(inode->i_mode)) { inode 362 fs/hfsplus/inode.c if (S_ISREG(inode->i_mode)) { inode 363 fs/hfsplus/inode.c if (!inode->i_nlink) { inode 364 fs/hfsplus/inode.c inode->i_size = 0; inode 365 fs/hfsplus/inode.c hfsplus_file_truncate(inode); inode 367 fs/hfsplus/inode.c } else if (S_ISLNK(inode->i_mode)) { inode 368 fs/hfsplus/inode.c inode->i_size = 0; inode 369 fs/hfsplus/inode.c hfsplus_file_truncate(inode); inode 376 fs/hfsplus/inode.c struct super_block *sb = inode->i_sb; inode 380 fs/hfsplus/inode.c memcpy(&HFSPLUS_I(inode).first_extents, &fork->extents, inode 384 fs/hfsplus/inode.c HFSPLUS_I(inode).first_blocks = count; inode 385 fs/hfsplus/inode.c memset(HFSPLUS_I(inode).cached_extents, 0, sizeof(hfsplus_extent_rec)); inode 386 fs/hfsplus/inode.c HFSPLUS_I(inode).cached_start = 0; inode 387 fs/hfsplus/inode.c HFSPLUS_I(inode).cached_blocks = 0; inode 389 fs/hfsplus/inode.c HFSPLUS_I(inode).alloc_blocks = be32_to_cpu(fork->total_blocks); inode 390 fs/hfsplus/inode.c inode->i_size = HFSPLUS_I(inode).phys_size = be64_to_cpu(fork->total_size); inode 391 fs/hfsplus/inode.c HFSPLUS_I(inode).fs_blocks = (inode->i_size + sb->s_blocksize - 1) >> sb->s_blocksize_bits; inode 392 fs/hfsplus/inode.c inode_set_bytes(inode, HFSPLUS_I(inode).fs_blocks << sb->s_blocksize_bits); inode 393 fs/hfsplus/inode.c HFSPLUS_I(inode).clump_blocks = be32_to_cpu(fork->clump_size) >> HFSPLUS_SB(sb).alloc_blksz_shift; inode 394 fs/hfsplus/inode.c if (!HFSPLUS_I(inode).clump_blocks) inode 395 fs/hfsplus/inode.c HFSPLUS_I(inode).clump_blocks = HFSPLUS_IS_RSRC(inode) ? HFSPLUS_SB(sb).rsrc_clump_blocks : inode 401 fs/hfsplus/inode.c memcpy(&fork->extents, &HFSPLUS_I(inode).first_extents, inode 403 fs/hfsplus/inode.c fork->total_size = cpu_to_be64(inode->i_size); inode 404 fs/hfsplus/inode.c fork->total_blocks = cpu_to_be32(HFSPLUS_I(inode).alloc_blocks); inode 415 fs/hfsplus/inode.c HFSPLUS_I(inode).dev = 0; inode 423 fs/hfsplus/inode.c hfsplus_get_perms(inode, &folder->permissions, 1); inode 424 fs/hfsplus/inode.c inode->i_nlink = 1; inode 425 fs/hfsplus/inode.c inode->i_size = 2 + be32_to_cpu(folder->valence); inode 426 fs/hfsplus/inode.c inode->i_atime = hfsp_mt2ut(folder->access_date); inode 427 fs/hfsplus/inode.c inode->i_mtime = hfsp_mt2ut(folder->content_mod_date); inode 428 fs/hfsplus/inode.c inode->i_ctime = hfsp_mt2ut(folder->attribute_mod_date); inode 429 fs/hfsplus/inode.c HFSPLUS_I(inode).create_date = folder->create_date; inode 430 fs/hfsplus/inode.c HFSPLUS_I(inode).fs_blocks = 0; inode 431 fs/hfsplus/inode.c inode->i_op = &hfsplus_dir_inode_operations; inode 432 fs/hfsplus/inode.c inode->i_fop = &hfsplus_dir_operations; inode 441 fs/hfsplus/inode.c hfsplus_inode_read_fork(inode, HFSPLUS_IS_DATA(inode) ? inode 443 fs/hfsplus/inode.c hfsplus_get_perms(inode, &file->permissions, 0); inode 444 fs/hfsplus/inode.c inode->i_nlink = 1; inode 445 fs/hfsplus/inode.c if (S_ISREG(inode->i_mode)) { inode 447 fs/hfsplus/inode.c inode->i_nlink = be32_to_cpu(file->permissions.dev); inode 448 fs/hfsplus/inode.c inode->i_op = &hfsplus_file_inode_operations; inode 449 fs/hfsplus/inode.c inode->i_fop = &hfsplus_file_operations; inode 450 fs/hfsplus/inode.c inode->i_mapping->a_ops = &hfsplus_aops; inode 451 fs/hfsplus/inode.c } else if (S_ISLNK(inode->i_mode)) { inode 452 fs/hfsplus/inode.c inode->i_op = &page_symlink_inode_operations; inode 453 fs/hfsplus/inode.c inode->i_mapping->a_ops = &hfsplus_aops; inode 455 fs/hfsplus/inode.c init_special_inode(inode, inode->i_mode, inode 458 fs/hfsplus/inode.c inode->i_atime = hfsp_mt2ut(file->access_date); inode 459 fs/hfsplus/inode.c inode->i_mtime = hfsp_mt2ut(file->content_mod_date); inode 460 fs/hfsplus/inode.c inode->i_ctime = hfsp_mt2ut(file->attribute_mod_date); inode 461 fs/hfsplus/inode.c HFSPLUS_I(inode).create_date = file->create_date; inode 471 fs/hfsplus/inode.c struct inode *main_inode = inode; inode 475 fs/hfsplus/inode.c if (HFSPLUS_IS_RSRC(inode)) inode 476 fs/hfsplus/inode.c main_inode = HFSPLUS_I(inode).rsrc_inode; inode 497 fs/hfsplus/inode.c hfsplus_set_perms(inode, &folder->permissions); inode 498 fs/hfsplus/inode.c folder->access_date = hfsp_ut2mt(inode->i_atime); inode 499 fs/hfsplus/inode.c folder->content_mod_date = hfsp_ut2mt(inode->i_mtime); inode 500 fs/hfsplus/inode.c folder->attribute_mod_date = hfsp_ut2mt(inode->i_ctime); inode 501 fs/hfsplus/inode.c folder->valence = cpu_to_be32(inode->i_size - 2); inode 504 fs/hfsplus/inode.c } else if (HFSPLUS_IS_RSRC(inode)) { inode 508 fs/hfsplus/inode.c hfsplus_inode_write_fork(inode, &file->rsrc_fork); inode 518 fs/hfsplus/inode.c hfsplus_inode_write_fork(inode, &file->data_fork); inode 519 fs/hfsplus/inode.c if (S_ISREG(inode->i_mode)) inode 520 fs/hfsplus/inode.c HFSPLUS_I(inode).dev = inode->i_nlink; inode 521 fs/hfsplus/inode.c if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) inode 522 fs/hfsplus/inode.c HFSPLUS_I(inode).dev = kdev_t_to_nr(inode->i_rdev); inode 523 fs/hfsplus/inode.c hfsplus_set_perms(inode, &file->permissions); inode 528 fs/hfsplus/inode.c file->access_date = hfsp_ut2mt(inode->i_atime); inode 529 fs/hfsplus/inode.c file->content_mod_date = hfsp_ut2mt(inode->i_mtime); inode 530 fs/hfsplus/inode.c file->attribute_mod_date = hfsp_ut2mt(inode->i_ctime); inode 31 fs/hfsplus/ioctl.c if (HFSPLUS_I(inode).rootflags & HFSPLUS_FLG_IMMUTABLE) inode 33 fs/hfsplus/ioctl.c if (HFSPLUS_I(inode).rootflags & HFSPLUS_FLG_APPEND) inode 35 fs/hfsplus/ioctl.c if (HFSPLUS_I(inode).userflags & HFSPLUS_FLG_NODUMP) inode 44 fs/hfsplus/ioctl.c if (!is_owner_or_cap(inode)) { inode 53 fs/hfsplus/ioctl.c HFSPLUS_I(inode).rootflags & (HFSPLUS_FLG_IMMUTABLE|HFSPLUS_FLG_APPEND)) { inode 66 fs/hfsplus/ioctl.c inode->i_flags |= S_IMMUTABLE; inode 67 fs/hfsplus/ioctl.c HFSPLUS_I(inode).rootflags |= HFSPLUS_FLG_IMMUTABLE; inode 69 fs/hfsplus/ioctl.c inode->i_flags &= ~S_IMMUTABLE; inode 70 fs/hfsplus/ioctl.c HFSPLUS_I(inode).rootflags &= ~HFSPLUS_FLG_IMMUTABLE; inode 73 fs/hfsplus/ioctl.c inode->i_flags |= S_APPEND; inode 74 fs/hfsplus/ioctl.c HFSPLUS_I(inode).rootflags |= HFSPLUS_FLG_APPEND; inode 76 fs/hfsplus/ioctl.c inode->i_flags &= ~S_APPEND; inode 77 fs/hfsplus/ioctl.c HFSPLUS_I(inode).rootflags &= ~HFSPLUS_FLG_APPEND; inode 80 fs/hfsplus/ioctl.c HFSPLUS_I(inode).userflags |= HFSPLUS_FLG_NODUMP; inode 82 fs/hfsplus/ioctl.c HFSPLUS_I(inode).userflags &= ~HFSPLUS_FLG_NODUMP; inode 84 fs/hfsplus/ioctl.c inode->i_ctime = CURRENT_TIME_SEC; inode 85 fs/hfsplus/ioctl.c mark_inode_dirty(inode); inode 98 fs/hfsplus/ioctl.c struct inode *inode = dentry->d_inode; inode 104 fs/hfsplus/ioctl.c if (!S_ISREG(inode->i_mode) || HFSPLUS_IS_RSRC(inode)) inode 107 fs/hfsplus/ioctl.c res = hfs_find_init(HFSPLUS_SB(inode->i_sb).cat_tree, &fd); inode 110 fs/hfsplus/ioctl.c res = hfsplus_find_cat(inode->i_sb, inode->i_ino, &fd); inode 140 fs/hfsplus/ioctl.c struct inode *inode = dentry->d_inode; inode 146 fs/hfsplus/ioctl.c if (!S_ISREG(inode->i_mode) || HFSPLUS_IS_RSRC(inode)) inode 150 fs/hfsplus/ioctl.c res = hfs_find_init(HFSPLUS_SB(inode->i_sb).cat_tree, &fd); inode 153 fs/hfsplus/ioctl.c res = hfsplus_find_cat(inode->i_sb, inode->i_ino, &fd); inode 185 fs/hfsplus/ioctl.c struct inode *inode = dentry->d_inode; inode 187 fs/hfsplus/ioctl.c if (!S_ISREG(inode->i_mode) || HFSPLUS_IS_RSRC(inode)) inode 18 fs/hfsplus/super.c static struct inode *hfsplus_alloc_inode(struct super_block *sb); inode 23 fs/hfsplus/super.c struct inode *hfsplus_iget(struct super_block *sb, unsigned long ino) inode 27 fs/hfsplus/super.c struct inode *inode; inode 30 fs/hfsplus/super.c inode = iget_locked(sb, ino); inode 31 fs/hfsplus/super.c if (!inode) inode 33 fs/hfsplus/super.c if (!(inode->i_state & I_NEW)) inode 34 fs/hfsplus/super.c return inode; inode 36 fs/hfsplus/super.c INIT_LIST_HEAD(&HFSPLUS_I(inode).open_dir_list); inode 37 fs/hfsplus/super.c mutex_init(&HFSPLUS_I(inode).extents_lock); inode 38 fs/hfsplus/super.c HFSPLUS_I(inode).flags = 0; inode 39 fs/hfsplus/super.c HFSPLUS_I(inode).rsrc_inode = NULL; inode 40 fs/hfsplus/super.c atomic_set(&HFSPLUS_I(inode).opencnt, 0); inode 42 fs/hfsplus/super.c if (inode->i_ino >= HFSPLUS_FIRSTUSER_CNID) { inode 44 fs/hfsplus/super.c hfs_find_init(HFSPLUS_SB(inode->i_sb).cat_tree, &fd); inode 45 fs/hfsplus/super.c err = hfsplus_find_cat(inode->i_sb, inode->i_ino, &fd); inode 47 fs/hfsplus/super.c err = hfsplus_cat_read_inode(inode, &fd); inode 53 fs/hfsplus/super.c vhdr = HFSPLUS_SB(inode->i_sb).s_vhdr; inode 54 fs/hfsplus/super.c switch(inode->i_ino) { inode 58 fs/hfsplus/super.c hfsplus_inode_read_fork(inode, &vhdr->ext_file); inode 59 fs/hfsplus/super.c inode->i_mapping->a_ops = &hfsplus_btree_aops; inode 62 fs/hfsplus/super.c hfsplus_inode_read_fork(inode, &vhdr->cat_file); inode 63 fs/hfsplus/super.c inode->i_mapping->a_ops = &hfsplus_btree_aops; inode 66 fs/hfsplus/super.c hfsplus_inode_read_fork(inode, &vhdr->alloc_file); inode 67 fs/hfsplus/super.c inode->i_mapping->a_ops = &hfsplus_aops; inode 70 fs/hfsplus/super.c hfsplus_inode_read_fork(inode, &vhdr->start_file); inode 73 fs/hfsplus/super.c hfsplus_inode_read_fork(inode, &vhdr->attr_file); inode 74 fs/hfsplus/super.c inode->i_mapping->a_ops = &hfsplus_btree_aops; inode 81 fs/hfsplus/super.c unlock_new_inode(inode); inode 82 fs/hfsplus/super.c return inode; inode 85 fs/hfsplus/super.c iget_failed(inode); inode 94 fs/hfsplus/super.c dprint(DBG_INODE, "hfsplus_write_inode: %lu\n", inode->i_ino); inode 95 fs/hfsplus/super.c hfsplus_ext_write_extent(inode); inode 96 fs/hfsplus/super.c if (inode->i_ino >= HFSPLUS_FIRSTUSER_CNID) { inode 97 fs/hfsplus/super.c return hfsplus_cat_write_inode(inode); inode 99 fs/hfsplus/super.c vhdr = HFSPLUS_SB(inode->i_sb).s_vhdr; inode 100 fs/hfsplus/super.c switch (inode->i_ino) { inode 102 fs/hfsplus/super.c ret = hfsplus_cat_write_inode(inode); inode 105 fs/hfsplus/super.c if (vhdr->ext_file.total_size != cpu_to_be64(inode->i_size)) { inode 106 fs/hfsplus/super.c HFSPLUS_SB(inode->i_sb).flags |= HFSPLUS_SB_WRITEBACKUP; inode 107 fs/hfsplus/super.c inode->i_sb->s_dirt = 1; inode 109 fs/hfsplus/super.c hfsplus_inode_write_fork(inode, &vhdr->ext_file); inode 110 fs/hfsplus/super.c hfs_btree_write(HFSPLUS_SB(inode->i_sb).ext_tree); inode 113 fs/hfsplus/super.c if (vhdr->cat_file.total_size != cpu_to_be64(inode->i_size)) { inode 114 fs/hfsplus/super.c HFSPLUS_SB(inode->i_sb).flags |= HFSPLUS_SB_WRITEBACKUP; inode 115 fs/hfsplus/super.c inode->i_sb->s_dirt = 1; inode 117 fs/hfsplus/super.c hfsplus_inode_write_fork(inode, &vhdr->cat_file); inode 118 fs/hfsplus/super.c hfs_btree_write(HFSPLUS_SB(inode->i_sb).cat_tree); inode 121 fs/hfsplus/super.c if (vhdr->alloc_file.total_size != cpu_to_be64(inode->i_size)) { inode 122 fs/hfsplus/super.c HFSPLUS_SB(inode->i_sb).flags |= HFSPLUS_SB_WRITEBACKUP; inode 123 fs/hfsplus/super.c inode->i_sb->s_dirt = 1; inode 125 fs/hfsplus/super.c hfsplus_inode_write_fork(inode, &vhdr->alloc_file); inode 128 fs/hfsplus/super.c if (vhdr->start_file.total_size != cpu_to_be64(inode->i_size)) { inode 129 fs/hfsplus/super.c HFSPLUS_SB(inode->i_sb).flags |= HFSPLUS_SB_WRITEBACKUP; inode 130 fs/hfsplus/super.c inode->i_sb->s_dirt = 1; inode 132 fs/hfsplus/super.c hfsplus_inode_write_fork(inode, &vhdr->start_file); inode 135 fs/hfsplus/super.c if (vhdr->attr_file.total_size != cpu_to_be64(inode->i_size)) { inode 136 fs/hfsplus/super.c HFSPLUS_SB(inode->i_sb).flags |= HFSPLUS_SB_WRITEBACKUP; inode 137 fs/hfsplus/super.c inode->i_sb->s_dirt = 1; inode 139 fs/hfsplus/super.c hfsplus_inode_write_fork(inode, &vhdr->attr_file); inode 140 fs/hfsplus/super.c hfs_btree_write(HFSPLUS_SB(inode->i_sb).attr_tree); inode 148 fs/hfsplus/super.c dprint(DBG_INODE, "hfsplus_clear_inode: %lu\n", inode->i_ino); inode 149 fs/hfsplus/super.c if (HFSPLUS_IS_RSRC(inode)) { inode 150 fs/hfsplus/super.c HFSPLUS_I(HFSPLUS_I(inode).rsrc_inode).rsrc_inode = NULL; inode 151 fs/hfsplus/super.c iput(HFSPLUS_I(inode).rsrc_inode); inode 290 fs/hfsplus/super.c struct inode *root, *inode; inode 378 fs/hfsplus/super.c inode = hfsplus_iget(sb, HFSPLUS_ALLOC_CNID); inode 379 fs/hfsplus/super.c if (IS_ERR(inode)) { inode 381 fs/hfsplus/super.c err = PTR_ERR(inode); inode 384 fs/hfsplus/super.c HFSPLUS_SB(sb).alloc_file = inode; inode 409 fs/hfsplus/super.c inode = hfsplus_iget(sb, be32_to_cpu(entry.folder.id)); inode 410 fs/hfsplus/super.c if (IS_ERR(inode)) { inode 411 fs/hfsplus/super.c err = PTR_ERR(inode); inode 414 fs/hfsplus/super.c HFSPLUS_SB(sb).hidden_dir = inode; inode 457 fs/hfsplus/super.c static struct inode *hfsplus_alloc_inode(struct super_block *sb) inode 467 fs/hfsplus/super.c kmem_cache_free(hfsplus_inode_cachep, &HFSPLUS_I(inode)); inode 24 fs/hostfs/hostfs_kern.c struct inode vfs_inode; inode 29 fs/hostfs/hostfs_kern.c return list_entry(inode, struct hostfs_inode_info, vfs_inode); inode 238 fs/hostfs/hostfs_kern.c static struct inode *hostfs_iget(struct super_block *sb) inode 240 fs/hostfs/hostfs_kern.c struct inode *inode; inode 243 fs/hostfs/hostfs_kern.c inode = iget_locked(sb, 0); inode 244 fs/hostfs/hostfs_kern.c if (!inode) inode 246 fs/hostfs/hostfs_kern.c if (inode->i_state & I_NEW) { inode 247 fs/hostfs/hostfs_kern.c ret = hostfs_read_inode(inode); inode 249 fs/hostfs/hostfs_kern.c iget_failed(inode); inode 252 fs/hostfs/hostfs_kern.c unlock_new_inode(inode); inode 254 fs/hostfs/hostfs_kern.c return inode; inode 286 fs/hostfs/hostfs_kern.c static struct inode *hostfs_alloc_inode(struct super_block *sb) inode 303 fs/hostfs/hostfs_kern.c truncate_inode_pages(&inode->i_data, 0); inode 304 fs/hostfs/hostfs_kern.c if (HOSTFS_I(inode)->fd != -1) { inode 305 fs/hostfs/hostfs_kern.c close_file(&HOSTFS_I(inode)->fd); inode 306 fs/hostfs/hostfs_kern.c HOSTFS_I(inode)->fd = -1; inode 308 fs/hostfs/hostfs_kern.c clear_inode(inode); inode 313 fs/hostfs/hostfs_kern.c kfree(HOSTFS_I(inode)->host_filename); inode 319 fs/hostfs/hostfs_kern.c if (HOSTFS_I(inode)->fd != -1) { inode 320 fs/hostfs/hostfs_kern.c close_file(&HOSTFS_I(inode)->fd); inode 324 fs/hostfs/hostfs_kern.c kfree(HOSTFS_I(inode)); inode 329 fs/hostfs/hostfs_kern.c struct inode *root = vfs->mnt_sb->s_root->d_inode; inode 439 fs/hostfs/hostfs_kern.c struct inode *inode = mapping->host; inode 443 fs/hostfs/hostfs_kern.c int end_index = inode->i_size >> PAGE_CACHE_SHIFT; inode 447 fs/hostfs/hostfs_kern.c count = inode->i_size & (PAGE_CACHE_SIZE-1); inode 452 fs/hostfs/hostfs_kern.c err = write_file(HOSTFS_I(inode)->fd, &base, buffer, count); inode 458 fs/hostfs/hostfs_kern.c if (base > inode->i_size) inode 459 fs/hostfs/hostfs_kern.c inode->i_size = base; inode 513 fs/hostfs/hostfs_kern.c struct inode *inode = mapping->host; inode 529 fs/hostfs/hostfs_kern.c if (err > 0 && (pos > inode->i_size)) inode 530 fs/hostfs/hostfs_kern.c inode->i_size = pos; inode 565 fs/hostfs/hostfs_kern.c inode->i_op = &page_symlink_inode_operations; inode 567 fs/hostfs/hostfs_kern.c inode->i_op = &hostfs_dir_iops; inode 568 fs/hostfs/hostfs_kern.c else inode->i_op = &hostfs_iops; inode 570 fs/hostfs/hostfs_kern.c if (type == OS_TYPE_DIR) inode->i_fop = &hostfs_dir_fops; inode 571 fs/hostfs/hostfs_kern.c else inode->i_fop = &hostfs_file_fops; inode 574 fs/hostfs/hostfs_kern.c inode->i_mapping->a_ops = &hostfs_link_aops; inode 575 fs/hostfs/hostfs_kern.c else inode->i_mapping->a_ops = &hostfs_aops; inode 579 fs/hostfs/hostfs_kern.c init_special_inode(inode, S_IFCHR, rdev); inode 582 fs/hostfs/hostfs_kern.c init_special_inode(inode, S_IFBLK, rdev); inode 585 fs/hostfs/hostfs_kern.c init_special_inode(inode, S_IFIFO, 0); inode 588 fs/hostfs/hostfs_kern.c init_special_inode(inode, S_IFSOCK, 0); inode 598 fs/hostfs/hostfs_kern.c struct inode *inode; inode 602 fs/hostfs/hostfs_kern.c inode = hostfs_iget(dir->i_sb); inode 603 fs/hostfs/hostfs_kern.c if (IS_ERR(inode)) { inode 604 fs/hostfs/hostfs_kern.c error = PTR_ERR(inode); inode 608 fs/hostfs/hostfs_kern.c error = init_inode(inode, dentry); inode 623 fs/hostfs/hostfs_kern.c else error = read_name(inode, name); inode 629 fs/hostfs/hostfs_kern.c HOSTFS_I(inode)->fd = fd; inode 630 fs/hostfs/hostfs_kern.c HOSTFS_I(inode)->mode = FMODE_READ | FMODE_WRITE; inode 631 fs/hostfs/hostfs_kern.c d_instantiate(dentry, inode); inode 635 fs/hostfs/hostfs_kern.c iput(inode); inode 643 fs/hostfs/hostfs_kern.c struct inode *inode; inode 647 fs/hostfs/hostfs_kern.c inode = hostfs_iget(ino->i_sb); inode 648 fs/hostfs/hostfs_kern.c if (IS_ERR(inode)) { inode 649 fs/hostfs/hostfs_kern.c err = PTR_ERR(inode); inode 653 fs/hostfs/hostfs_kern.c err = init_inode(inode, dentry); inode 662 fs/hostfs/hostfs_kern.c err = read_name(inode, name); inode 665 fs/hostfs/hostfs_kern.c iput(inode); inode 666 fs/hostfs/hostfs_kern.c inode = NULL; inode 671 fs/hostfs/hostfs_kern.c d_add(dentry, inode); inode 676 fs/hostfs/hostfs_kern.c iput(inode); inode 767 fs/hostfs/hostfs_kern.c struct inode *inode; inode 771 fs/hostfs/hostfs_kern.c inode = hostfs_iget(dir->i_sb); inode 772 fs/hostfs/hostfs_kern.c if (IS_ERR(inode)) { inode 773 fs/hostfs/hostfs_kern.c err = PTR_ERR(inode); inode 777 fs/hostfs/hostfs_kern.c err = init_inode(inode, dentry); inode 786 fs/hostfs/hostfs_kern.c init_special_inode(inode, mode, dev); inode 791 fs/hostfs/hostfs_kern.c err = read_name(inode, name); inode 796 fs/hostfs/hostfs_kern.c d_instantiate(dentry, inode); inode 802 fs/hostfs/hostfs_kern.c iput(inode); inode 966 fs/hostfs/hostfs_kern.c struct inode *root_inode; inode 44 fs/hpfs/anode.c if (inode) { inode 45 fs/hpfs/anode.c struct hpfs_inode_info *hpfs_inode = hpfs_i(inode); inode 14 fs/hpfs/dir.c hpfs_del_pos(inode, &filp->f_pos); inode 27 fs/hpfs/dir.c struct inode *i = filp->f_path.dentry->d_inode; inode 55 fs/hpfs/dir.c struct inode *inode = filp->f_path.dentry->d_inode; inode 56 fs/hpfs/dir.c struct hpfs_inode_info *hpfs_inode = hpfs_i(inode); inode 67 fs/hpfs/dir.c if (hpfs_sb(inode->i_sb)->sb_chk) { inode 68 fs/hpfs/dir.c if (hpfs_chk_sectors(inode->i_sb, inode->i_ino, 1, "dir_fnode")) { inode 72 fs/hpfs/dir.c if (hpfs_chk_sectors(inode->i_sb, hpfs_inode->i_dno, 4, "dir_dnode")) { inode 77 fs/hpfs/dir.c if (hpfs_sb(inode->i_sb)->sb_chk >= 2) { inode 81 fs/hpfs/dir.c if (!(fno = hpfs_map_fnode(inode->i_sb, inode->i_ino, &bh))) { inode 87 fs/hpfs/dir.c hpfs_error(inode->i_sb, "not a directory, fnode %08lx", inode 88 fs/hpfs/dir.c (unsigned long)inode->i_ino); inode 92 fs/hpfs/dir.c hpfs_error(inode->i_sb, "corrupted inode: i_dno == %08x, fnode -> dnode == %08x", hpfs_inode->i_dno, fno->u.external[0].disk_secno); inode 100 fs/hpfs/dir.c lc = hpfs_sb(inode->i_sb)->sb_lowercase; inode 115 fs/hpfs/dir.c if (hpfs_sb(inode->i_sb)->sb_chk) inode 116 fs/hpfs/dir.c if (hpfs_stop_cycles(inode->i_sb, filp->f_pos, &c1, &c2, "hpfs_readdir")) { inode 127 fs/hpfs/dir.c if (filldir(dirent, ".", 1, filp->f_pos, inode->i_ino, DT_DIR) < 0) inode 137 fs/hpfs/dir.c filp->f_pos = ((loff_t) hpfs_de_as_down_as_possible(inode->i_sb, hpfs_inode->i_dno) << 4) + 1; inode 138 fs/hpfs/dir.c hpfs_add_pos(inode, &filp->f_pos); inode 139 fs/hpfs/dir.c filp->f_version = inode->i_version; inode 142 fs/hpfs/dir.c if (!(de = map_pos_dirent(inode, &filp->f_pos, &qbh))) { inode 147 fs/hpfs/dir.c if (hpfs_sb(inode->i_sb)->sb_chk) { inode 150 fs/hpfs/dir.c hpfs_error(inode->i_sb, "hpfs_readdir: bad ^A^A entry; pos = %08lx", old_pos); inode 152 fs/hpfs/dir.c hpfs_error(inode->i_sb, "hpfs_readdir: bad \\377 entry; pos = %08lx", old_pos); inode 157 fs/hpfs/dir.c tempname = hpfs_translate_name(inode->i_sb, de->name, de->namelen, lc, de->not_8x3); inode 195 fs/hpfs/dir.c struct inode *result = NULL; inode 26 fs/hpfs/dnode.c struct hpfs_inode_info *hpfs_inode = hpfs_i(inode); inode 50 fs/hpfs/dnode.c struct hpfs_inode_info *hpfs_inode = hpfs_i(inode); inode 73 fs/hpfs/dnode.c struct hpfs_inode_info *hpfs_inode = hpfs_i(inode); inode 851 fs/hpfs/dnode.c if (!(de = map_nth_dirent(inode->i_sb, dno, pos, qbh, &dnode))) inode 857 fs/hpfs/dnode.c hpfs_error(inode->i_sb, inode 864 fs/hpfs/dnode.c *posp = ((loff_t) hpfs_de_as_down_as_possible(inode->i_sb, de_down_pointer(d)) << 4) + 1; inode 873 fs/hpfs/dnode.c if (!(up_dnode = hpfs_map_dnode(inode->i_sb, dnode->up, &qbh0))) inode 880 fs/hpfs/dnode.c if (!(++c & 077)) hpfs_error(inode->i_sb, inode 889 fs/hpfs/dnode.c hpfs_error(inode->i_sb, "map_pos_dirent: pointer to dnode %08x not found in parent dnode %08x", inode 908 fs/hpfs/dnode.c if (!S_ISDIR(inode->i_mode)) hpfs_error(inode->i_sb, "map_dirent: not a directory\n"); inode 910 fs/hpfs/dnode.c if (hpfs_sb(inode->i_sb)->sb_chk) inode 911 fs/hpfs/dnode.c if (hpfs_stop_cycles(inode->i_sb, dno, &c1, &c2, "map_dirent")) return NULL; inode 912 fs/hpfs/dnode.c if (!(dnode = hpfs_map_dnode(inode->i_sb, dno, qbh))) return NULL; inode 916 fs/hpfs/dnode.c int t = hpfs_compare_names(inode->i_sb, name, len, de->name, de->namelen, de->last); inode 191 fs/hpfs/ea.c fnode_secno fno = inode->i_ino; inode 192 fs/hpfs/ea.c struct super_block *s = inode->i_sb; inode 247 fs/hpfs/ea.c (unsigned long)inode->i_ino, inode 356 fs/hpfs/ea.c hpfs_i(inode)->i_ea_size += 5 + strlen(key) + size; inode 16 fs/hpfs/file.c hpfs_write_if_changed(inode); inode 34 fs/hpfs/file.c struct hpfs_inode_info *hpfs_inode = hpfs_i(inode); inode 38 fs/hpfs/file.c if (BLOCKS(hpfs_i(inode)->mmu_private) <= file_secno) return 0; inode 41 fs/hpfs/file.c if (!(fnode = hpfs_map_fnode(inode->i_sb, inode->i_ino, &bh))) return 0; inode 42 fs/hpfs/file.c disk_secno = hpfs_bplus_lookup(inode->i_sb, inode, &fnode->btree, file_secno, bh); inode 44 fs/hpfs/file.c if (hpfs_chk_sectors(inode->i_sb, disk_secno, 1, "bmap")) return 0; inode 64 fs/hpfs/file.c s = hpfs_bmap(inode, iblock); inode 66 fs/hpfs/file.c map_bh(bh_result, inode->i_sb, s); inode 70 fs/hpfs/file.c if (iblock<<9 != hpfs_i(inode)->mmu_private) { inode 74 fs/hpfs/file.c if ((s = hpfs_add_sector_to_btree(inode->i_sb, inode->i_ino, 1, inode->i_blocks - 1)) == -1) { inode 75 fs/hpfs/file.c hpfs_truncate_btree(inode->i_sb, inode->i_ino, 1, inode->i_blocks - 1); inode 78 fs/hpfs/file.c inode->i_blocks++; inode 79 fs/hpfs/file.c hpfs_i(inode)->mmu_private += 512; inode 81 fs/hpfs/file.c map_bh(bh_result, inode->i_sb, s); inode 63 fs/hpfs/hpfs_fn.h struct inode vfs_inode; inode 310 fs/hpfs/hpfs_fn.h return list_entry(inode, struct hpfs_inode_info, vfs_inode); inode 182 fs/hpfs/inode.c struct inode *parent; inode 265 fs/hpfs/inode.c struct inode *inode = dentry->d_inode; inode 268 fs/hpfs/inode.c if ( ((attr->ia_valid & ATTR_SIZE) && attr->ia_size > inode->i_size) || inode 269 fs/hpfs/inode.c (hpfs_sb(inode->i_sb)->sb_root == inode->i_ino) ) { inode 271 fs/hpfs/inode.c } else if ((error = inode_change_ok(inode, attr))) { inode 272 fs/hpfs/inode.c } else if ((error = inode_setattr(inode, attr))) { inode 274 fs/hpfs/inode.c hpfs_write_inode(inode); inode 282 fs/hpfs/inode.c struct hpfs_inode_info *hpfs_inode = hpfs_i(inode); inode 285 fs/hpfs/inode.c hpfs_write_inode(inode); inode 290 fs/hpfs/inode.c truncate_inode_pages(&inode->i_data, 0); inode 292 fs/hpfs/inode.c hpfs_remove_fnode(inode->i_sb, inode->i_ino); inode 294 fs/hpfs/inode.c clear_inode(inode); inode 22 fs/hpfs/name.c struct hpfs_inode_info *hpfs_inode = hpfs_i(inode); inode 28 fs/hpfs/name.c if (!hpfs_compare_names(inode->i_sb, text_postfix[i], l, name + len - l, l, 0)) inode 34 fs/hpfs/name.c if (!hpfs_compare_names(inode->i_sb, text_prefix[i], l, name, l, 0)) inode 20 fs/hpfs/namei.c struct inode *result; inode 125 fs/hpfs/namei.c struct inode *result = NULL; inode 220 fs/hpfs/namei.c struct inode *result = NULL; inode 298 fs/hpfs/namei.c struct inode *result; inode 375 fs/hpfs/namei.c struct inode *inode = dentry->d_inode; inode 385 fs/hpfs/namei.c mutex_lock(&hpfs_i(inode)->i_parent_mutex); inode 414 fs/hpfs/namei.c mutex_unlock(&hpfs_i(inode)->i_parent_mutex); inode 418 fs/hpfs/namei.c generic_permission(inode, MAY_WRITE, NULL) || inode 419 fs/hpfs/namei.c !S_ISREG(inode->i_mode) || inode 420 fs/hpfs/namei.c get_write_access(inode)) { inode 430 fs/hpfs/namei.c put_write_access(inode); inode 437 fs/hpfs/namei.c drop_nlink(inode); inode 446 fs/hpfs/namei.c mutex_unlock(&hpfs_i(inode)->i_parent_mutex); inode 457 fs/hpfs/namei.c struct inode *inode = dentry->d_inode; inode 466 fs/hpfs/namei.c mutex_lock(&hpfs_i(inode)->i_parent_mutex); inode 481 fs/hpfs/namei.c hpfs_count_dnodes(dir->i_sb, hpfs_i(inode)->i_dno, NULL, NULL, &n_items); inode 498 fs/hpfs/namei.c clear_nlink(inode); inode 506 fs/hpfs/namei.c mutex_unlock(&hpfs_i(inode)->i_parent_mutex); inode 514 fs/hpfs/namei.c struct inode *i = page->mapping->host; inode 552 fs/hpfs/namei.c struct inode *i = old_dentry->d_inode; inode 553 fs/hpfs/namei.c struct inode *new_inode = new_dentry->d_inode; inode 161 fs/hpfs/super.c static struct inode *hpfs_alloc_inode(struct super_block *sb) inode 173 fs/hpfs/super.c kmem_cache_free(hpfs_inode_cachep, hpfs_i(inode)); inode 453 fs/hpfs/super.c struct inode *root; inode 21 fs/hppfs/hppfs.c static struct inode *get_inode(struct super_block *, struct dentry *); inode 37 fs/hppfs/hppfs.c struct inode vfs_inode; inode 42 fs/hppfs/hppfs.c return container_of(inode, struct hppfs_inode_info, vfs_inode); inode 142 fs/hppfs/hppfs.c struct inode *inode; inode 174 fs/hppfs/hppfs.c inode = get_inode(ino->i_sb, proc_dentry); inode 175 fs/hppfs/hppfs.c if (!inode) inode 178 fs/hppfs/hppfs.c d_add(dentry, inode); inode 444 fs/hppfs/hppfs.c proc_dentry = HPPFS_I(inode)->proc_dentry; inode 445 fs/hppfs/hppfs.c proc_mnt = inode->i_sb->s_fs_info; inode 502 fs/hppfs/hppfs.c proc_dentry = HPPFS_I(inode)->proc_dentry; inode 503 fs/hppfs/hppfs.c proc_mnt = inode->i_sb->s_fs_info; inode 559 fs/hppfs/hppfs.c inode, type); inode 606 fs/hppfs/hppfs.c static struct inode *hppfs_alloc_inode(struct super_block *sb) inode 629 fs/hppfs/hppfs.c kfree(HPPFS_I(inode)); inode 667 fs/hppfs/hppfs.c static struct inode *get_inode(struct super_block *sb, struct dentry *dentry) inode 669 fs/hppfs/hppfs.c struct inode *proc_ino = dentry->d_inode; inode 670 fs/hppfs/hppfs.c struct inode *inode = new_inode(sb); inode 672 fs/hppfs/hppfs.c if (!inode) inode 676 fs/hppfs/hppfs.c inode->i_op = &hppfs_dir_iops; inode 677 fs/hppfs/hppfs.c inode->i_fop = &hppfs_dir_fops; inode 679 fs/hppfs/hppfs.c inode->i_op = &hppfs_link_iops; inode 680 fs/hppfs/hppfs.c inode->i_fop = &hppfs_file_fops; inode 682 fs/hppfs/hppfs.c inode->i_op = &hppfs_file_iops; inode 683 fs/hppfs/hppfs.c inode->i_fop = &hppfs_file_fops; inode 686 fs/hppfs/hppfs.c HPPFS_I(inode)->proc_dentry = dget(dentry); inode 688 fs/hppfs/hppfs.c inode->i_uid = proc_ino->i_uid; inode 689 fs/hppfs/hppfs.c inode->i_gid = proc_ino->i_gid; inode 690 fs/hppfs/hppfs.c inode->i_atime = proc_ino->i_atime; inode 691 fs/hppfs/hppfs.c inode->i_mtime = proc_ino->i_mtime; inode 692 fs/hppfs/hppfs.c inode->i_ctime = proc_ino->i_ctime; inode 693 fs/hppfs/hppfs.c inode->i_ino = proc_ino->i_ino; inode 694 fs/hppfs/hppfs.c inode->i_mode = proc_ino->i_mode; inode 695 fs/hppfs/hppfs.c inode->i_nlink = proc_ino->i_nlink; inode 696 fs/hppfs/hppfs.c inode->i_size = proc_ino->i_size; inode 697 fs/hppfs/hppfs.c inode->i_blocks = proc_ino->i_blocks; inode 699 fs/hppfs/hppfs.c return inode; inode 704 fs/hppfs/hppfs.c struct inode *root_inode; inode 82 fs/hugetlbfs/inode.c struct inode *inode = file->f_path.dentry->d_inode; inode 103 fs/hugetlbfs/inode.c mutex_lock(&inode->i_mutex); inode 109 fs/hugetlbfs/inode.c if (hugetlb_reserve_pages(inode, inode 116 fs/hugetlbfs/inode.c if (vma->vm_flags & VM_WRITE && inode->i_size < len) inode 117 fs/hugetlbfs/inode.c inode->i_size = len; inode 119 fs/hugetlbfs/inode.c mutex_unlock(&inode->i_mutex); inode 234 fs/hugetlbfs/inode.c struct inode *inode = mapping->host; inode 241 fs/hugetlbfs/inode.c mutex_lock(&inode->i_mutex); inode 247 fs/hugetlbfs/inode.c isize = i_size_read(inode); inode 307 fs/hugetlbfs/inode.c mutex_unlock(&inode->i_mutex); inode 347 fs/hugetlbfs/inode.c struct hstate *h = hstate_inode(inode); inode 348 fs/hugetlbfs/inode.c struct address_space *mapping = &inode->i_data; inode 378 fs/hugetlbfs/inode.c hugetlb_unreserve_pages(inode, start, freed); inode 383 fs/hugetlbfs/inode.c truncate_hugepages(inode, 0); inode 384 fs/hugetlbfs/inode.c clear_inode(inode); inode 389 fs/hugetlbfs/inode.c struct super_block *sb = inode->i_sb; inode 391 fs/hugetlbfs/inode.c if (!hlist_unhashed(&inode->i_hash)) { inode 392 fs/hugetlbfs/inode.c if (!(inode->i_state & (I_DIRTY|I_SYNC))) inode 393 fs/hugetlbfs/inode.c list_move(&inode->i_list, &inode_unused); inode 399 fs/hugetlbfs/inode.c inode->i_state |= I_WILL_FREE; inode 405 fs/hugetlbfs/inode.c write_inode_now(inode, 1); inode 407 fs/hugetlbfs/inode.c inode->i_state &= ~I_WILL_FREE; inode 409 fs/hugetlbfs/inode.c hlist_del_init(&inode->i_hash); inode 411 fs/hugetlbfs/inode.c list_del_init(&inode->i_list); inode 412 fs/hugetlbfs/inode.c list_del_init(&inode->i_sb_list); inode 413 fs/hugetlbfs/inode.c inode->i_state |= I_FREEING; inode 416 fs/hugetlbfs/inode.c truncate_hugepages(inode, 0); inode 417 fs/hugetlbfs/inode.c clear_inode(inode); inode 418 fs/hugetlbfs/inode.c destroy_inode(inode); inode 423 fs/hugetlbfs/inode.c if (!inode->i_nlink) inode 424 fs/hugetlbfs/inode.c generic_delete_inode(inode); inode 426 fs/hugetlbfs/inode.c hugetlbfs_forget_inode(inode); inode 457 fs/hugetlbfs/inode.c struct address_space *mapping = inode->i_mapping; inode 458 fs/hugetlbfs/inode.c struct hstate *h = hstate_inode(inode); inode 463 fs/hugetlbfs/inode.c i_size_write(inode, offset); inode 468 fs/hugetlbfs/inode.c truncate_hugepages(inode, offset); inode 474 fs/hugetlbfs/inode.c struct inode *inode = dentry->d_inode; inode 475 fs/hugetlbfs/inode.c struct hstate *h = hstate_inode(inode); inode 479 fs/hugetlbfs/inode.c BUG_ON(!inode); inode 481 fs/hugetlbfs/inode.c error = inode_change_ok(inode, attr); inode 488 fs/hugetlbfs/inode.c error = hugetlb_vmtruncate(inode, attr->ia_size); inode 493 fs/hugetlbfs/inode.c error = inode_setattr(inode, attr); inode 498 fs/hugetlbfs/inode.c static struct inode *hugetlbfs_get_inode(struct super_block *sb, uid_t uid, inode 501 fs/hugetlbfs/inode.c struct inode *inode; inode 503 fs/hugetlbfs/inode.c inode = new_inode(sb); inode 504 fs/hugetlbfs/inode.c if (inode) { inode 506 fs/hugetlbfs/inode.c inode->i_mode = mode; inode 507 fs/hugetlbfs/inode.c inode->i_uid = uid; inode 508 fs/hugetlbfs/inode.c inode->i_gid = gid; inode 509 fs/hugetlbfs/inode.c inode->i_blocks = 0; inode 510 fs/hugetlbfs/inode.c inode->i_mapping->a_ops = &hugetlbfs_aops; inode 511 fs/hugetlbfs/inode.c inode->i_mapping->backing_dev_info =&hugetlbfs_backing_dev_info; inode 512 fs/hugetlbfs/inode.c inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; inode 513 fs/hugetlbfs/inode.c INIT_LIST_HEAD(&inode->i_mapping->private_list); inode 514 fs/hugetlbfs/inode.c info = HUGETLBFS_I(inode); inode 518 fs/hugetlbfs/inode.c init_special_inode(inode, mode, dev); inode 521 fs/hugetlbfs/inode.c inode->i_op = &hugetlbfs_inode_operations; inode 522 fs/hugetlbfs/inode.c inode->i_fop = &hugetlbfs_file_operations; inode 525 fs/hugetlbfs/inode.c inode->i_op = &hugetlbfs_dir_inode_operations; inode 526 fs/hugetlbfs/inode.c inode->i_fop = &simple_dir_operations; inode 529 fs/hugetlbfs/inode.c inc_nlink(inode); inode 532 fs/hugetlbfs/inode.c inode->i_op = &page_symlink_inode_operations; inode 536 fs/hugetlbfs/inode.c return inode; inode 545 fs/hugetlbfs/inode.c struct inode *inode; inode 556 fs/hugetlbfs/inode.c inode = hugetlbfs_get_inode(dir->i_sb, current->fsuid, gid, mode, dev); inode 557 fs/hugetlbfs/inode.c if (inode) { inode 559 fs/hugetlbfs/inode.c d_instantiate(dentry, inode); inode 582 fs/hugetlbfs/inode.c struct inode *inode; inode 591 fs/hugetlbfs/inode.c inode = hugetlbfs_get_inode(dir->i_sb, current->fsuid, inode 593 fs/hugetlbfs/inode.c if (inode) { inode 595 fs/hugetlbfs/inode.c error = page_symlink(inode, symname, l); inode 597 fs/hugetlbfs/inode.c d_instantiate(dentry, inode); inode 600 fs/hugetlbfs/inode.c iput(inode); inode 678 fs/hugetlbfs/inode.c static struct inode *hugetlbfs_alloc_inode(struct super_block *sb) inode 695 fs/hugetlbfs/inode.c hugetlbfs_inc_free_inodes(HUGETLBFS_SB(inode->i_sb)); inode 696 fs/hugetlbfs/inode.c mpol_free_shared_policy(&HUGETLBFS_I(inode)->policy); inode 697 fs/hugetlbfs/inode.c kmem_cache_free(hugetlbfs_inode_cachep, HUGETLBFS_I(inode)); inode 847 fs/hugetlbfs/inode.c struct inode * inode; inode 881 fs/hugetlbfs/inode.c inode = hugetlbfs_get_inode(sb, config.uid, config.gid, inode 883 fs/hugetlbfs/inode.c if (!inode) inode 886 fs/hugetlbfs/inode.c root = d_alloc_root(inode); inode 888 fs/hugetlbfs/inode.c iput(inode); inode 951 fs/hugetlbfs/inode.c struct inode *inode; inode 973 fs/hugetlbfs/inode.c inode = hugetlbfs_get_inode(root->d_sb, current->fsuid, inode 975 fs/hugetlbfs/inode.c if (!inode) inode 979 fs/hugetlbfs/inode.c if (hugetlb_reserve_pages(inode, 0, inode 980 fs/hugetlbfs/inode.c size >> huge_page_shift(hstate_inode(inode)), NULL)) inode 983 fs/hugetlbfs/inode.c d_instantiate(dentry, inode); inode 984 fs/hugetlbfs/inode.c inode->i_size = size; inode 985 fs/hugetlbfs/inode.c inode->i_nlink = 0; inode 997 fs/hugetlbfs/inode.c iput(inode); inode 108 fs/inode.c wake_up_bit(&inode->i_state, __I_LOCK); inode 111 fs/inode.c static struct inode *alloc_inode(struct super_block *sb) inode 116 fs/inode.c struct inode *inode; inode 119 fs/inode.c inode = sb->s_op->alloc_inode(sb); inode 121 fs/inode.c inode = (struct inode *) kmem_cache_alloc(inode_cachep, GFP_KERNEL); inode 123 fs/inode.c if (inode) { inode 124 fs/inode.c struct address_space * const mapping = &inode->i_data; inode 126 fs/inode.c inode->i_sb = sb; inode 127 fs/inode.c inode->i_blkbits = sb->s_blocksize_bits; inode 128 fs/inode.c inode->i_flags = 0; inode 129 fs/inode.c atomic_set(&inode->i_count, 1); inode 130 fs/inode.c inode->i_op = &empty_iops; inode 131 fs/inode.c inode->i_fop = &empty_fops; inode 132 fs/inode.c inode->i_nlink = 1; inode 133 fs/inode.c atomic_set(&inode->i_writecount, 0); inode 134 fs/inode.c inode->i_size = 0; inode 135 fs/inode.c inode->i_blocks = 0; inode 136 fs/inode.c inode->i_bytes = 0; inode 137 fs/inode.c inode->i_generation = 0; inode 139 fs/inode.c memset(&inode->i_dquot, 0, sizeof(inode->i_dquot)); inode 141 fs/inode.c inode->i_pipe = NULL; inode 142 fs/inode.c inode->i_bdev = NULL; inode 143 fs/inode.c inode->i_cdev = NULL; inode 144 fs/inode.c inode->i_rdev = 0; inode 145 fs/inode.c inode->dirtied_when = 0; inode 146 fs/inode.c if (security_inode_alloc(inode)) { inode 147 fs/inode.c if (inode->i_sb->s_op->destroy_inode) inode 148 fs/inode.c inode->i_sb->s_op->destroy_inode(inode); inode 150 fs/inode.c kmem_cache_free(inode_cachep, (inode)); inode 154 fs/inode.c spin_lock_init(&inode->i_lock); inode 155 fs/inode.c lockdep_set_class(&inode->i_lock, &sb->s_type->i_lock_key); inode 157 fs/inode.c mutex_init(&inode->i_mutex); inode 158 fs/inode.c lockdep_set_class(&inode->i_mutex, &sb->s_type->i_mutex_key); inode 160 fs/inode.c init_rwsem(&inode->i_alloc_sem); inode 161 fs/inode.c lockdep_set_class(&inode->i_alloc_sem, &sb->s_type->i_alloc_sem_key); inode 164 fs/inode.c mapping->host = inode; inode 184 fs/inode.c inode->i_private = NULL; inode 185 fs/inode.c inode->i_mapping = mapping; inode 187 fs/inode.c return inode; inode 192 fs/inode.c BUG_ON(inode_has_buffers(inode)); inode 193 fs/inode.c security_inode_free(inode); inode 194 fs/inode.c if (inode->i_sb->s_op->destroy_inode) inode 195 fs/inode.c inode->i_sb->s_op->destroy_inode(inode); inode 197 fs/inode.c kmem_cache_free(inode_cachep, (inode)); inode 208 fs/inode.c memset(inode, 0, sizeof(*inode)); inode 209 fs/inode.c INIT_HLIST_NODE(&inode->i_hash); inode 210 fs/inode.c INIT_LIST_HEAD(&inode->i_dentry); inode 211 fs/inode.c INIT_LIST_HEAD(&inode->i_devices); inode 212 fs/inode.c INIT_RADIX_TREE(&inode->i_data.page_tree, GFP_ATOMIC); inode 213 fs/inode.c spin_lock_init(&inode->i_data.tree_lock); inode 214 fs/inode.c spin_lock_init(&inode->i_data.i_mmap_lock); inode 215 fs/inode.c INIT_LIST_HEAD(&inode->i_data.private_list); inode 216 fs/inode.c spin_lock_init(&inode->i_data.private_lock); inode 217 fs/inode.c INIT_RAW_PRIO_TREE_ROOT(&inode->i_data.i_mmap); inode 218 fs/inode.c INIT_LIST_HEAD(&inode->i_data.i_mmap_nonlinear); inode 219 fs/inode.c i_size_ordered_init(inode); inode 221 fs/inode.c INIT_LIST_HEAD(&inode->inotify_watches); inode 222 fs/inode.c mutex_init(&inode->inotify_mutex); inode 230 fs/inode.c struct inode * inode = (struct inode *) foo; inode 232 fs/inode.c inode_init_once(inode); inode 240 fs/inode.c if (atomic_read(&inode->i_count)) { inode 241 fs/inode.c atomic_inc(&inode->i_count); inode 244 fs/inode.c atomic_inc(&inode->i_count); inode 245 fs/inode.c if (!(inode->i_state & (I_DIRTY|I_SYNC))) inode 246 fs/inode.c list_move(&inode->i_list, &inode_in_use); inode 261 fs/inode.c invalidate_inode_buffers(inode); inode 263 fs/inode.c BUG_ON(inode->i_data.nrpages); inode 264 fs/inode.c BUG_ON(!(inode->i_state & I_FREEING)); inode 265 fs/inode.c BUG_ON(inode->i_state & I_CLEAR); inode 266 fs/inode.c inode_sync_wait(inode); inode 267 fs/inode.c DQUOT_DROP(inode); inode 268 fs/inode.c if (inode->i_sb->s_op->clear_inode) inode 269 fs/inode.c inode->i_sb->s_op->clear_inode(inode); inode 270 fs/inode.c if (S_ISBLK(inode->i_mode) && inode->i_bdev) inode 271 fs/inode.c bd_forget(inode); inode 272 fs/inode.c if (S_ISCHR(inode->i_mode) && inode->i_cdev) inode 273 fs/inode.c cd_forget(inode); inode 274 fs/inode.c inode->i_state = I_CLEAR; inode 291 fs/inode.c struct inode *inode; inode 293 fs/inode.c inode = list_first_entry(head, struct inode, i_list); inode 294 fs/inode.c list_del(&inode->i_list); inode 296 fs/inode.c if (inode->i_data.nrpages) inode 297 fs/inode.c truncate_inode_pages(&inode->i_data, 0); inode 298 fs/inode.c clear_inode(inode); inode 301 fs/inode.c hlist_del_init(&inode->i_hash); inode 302 fs/inode.c list_del_init(&inode->i_sb_list); inode 305 fs/inode.c wake_up_inode(inode); inode 306 fs/inode.c destroy_inode(inode); inode 325 fs/inode.c struct inode * inode; inode 338 fs/inode.c inode = list_entry(tmp, struct inode, i_sb_list); inode 339 fs/inode.c invalidate_inode_buffers(inode); inode 340 fs/inode.c if (!atomic_read(&inode->i_count)) { inode 341 fs/inode.c list_move(&inode->i_list, dispose); inode 342 fs/inode.c inode->i_state |= I_FREEING; inode 382 fs/inode.c if (inode->i_state) inode 384 fs/inode.c if (inode_has_buffers(inode)) inode 386 fs/inode.c if (atomic_read(&inode->i_count)) inode 388 fs/inode.c if (inode->i_data.nrpages) inode 416 fs/inode.c struct inode *inode; inode 421 fs/inode.c inode = list_entry(inode_unused.prev, struct inode, i_list); inode 423 fs/inode.c if (inode->i_state || atomic_read(&inode->i_count)) { inode 424 fs/inode.c list_move(&inode->i_list, &inode_unused); inode 427 fs/inode.c if (inode_has_buffers(inode) || inode->i_data.nrpages) { inode 428 fs/inode.c __iget(inode); inode 430 fs/inode.c if (remove_inode_buffers(inode)) inode 431 fs/inode.c reap += invalidate_mapping_pages(&inode->i_data, inode 433 fs/inode.c iput(inode); inode 436 fs/inode.c if (inode != list_entry(inode_unused.next, inode 437 fs/inode.c struct inode, i_list)) inode 439 fs/inode.c if (!can_unuse(inode)) inode 442 fs/inode.c list_move(&inode->i_list, &freeable); inode 443 fs/inode.c inode->i_state |= I_FREEING; inode 493 fs/inode.c static struct inode * find_inode(struct super_block * sb, struct hlist_head *head, int (*test)(struct inode *, void *), void *data) inode 496 fs/inode.c struct inode * inode = NULL; inode 499 fs/inode.c hlist_for_each_entry(inode, node, head, i_hash) { inode 500 fs/inode.c if (inode->i_sb != sb) inode 502 fs/inode.c if (!test(inode, data)) inode 504 fs/inode.c if (inode->i_state & (I_FREEING|I_CLEAR|I_WILL_FREE)) { inode 505 fs/inode.c __wait_on_freeing_inode(inode); inode 510 fs/inode.c return node ? inode : NULL; inode 517 fs/inode.c static struct inode * find_inode_fast(struct super_block * sb, struct hlist_head *head, unsigned long ino) inode 520 fs/inode.c struct inode * inode = NULL; inode 523 fs/inode.c hlist_for_each_entry(inode, node, head, i_hash) { inode 524 fs/inode.c if (inode->i_ino != ino) inode 526 fs/inode.c if (inode->i_sb != sb) inode 528 fs/inode.c if (inode->i_state & (I_FREEING|I_CLEAR|I_WILL_FREE)) { inode 529 fs/inode.c __wait_on_freeing_inode(inode); inode 534 fs/inode.c return node ? inode : NULL; inode 549 fs/inode.c struct inode *new_inode(struct super_block *sb) inode 557 fs/inode.c struct inode * inode; inode 561 fs/inode.c inode = alloc_inode(sb); inode 562 fs/inode.c if (inode) { inode 565 fs/inode.c list_add(&inode->i_list, &inode_in_use); inode 566 fs/inode.c list_add(&inode->i_sb_list, &sb->s_inodes); inode 567 fs/inode.c inode->i_ino = ++last_ino; inode 568 fs/inode.c inode->i_state = 0; inode 571 fs/inode.c return inode; inode 579 fs/inode.c if (inode->i_mode & S_IFDIR) { inode 580 fs/inode.c struct file_system_type *type = inode->i_sb->s_type; inode 585 fs/inode.c mutex_destroy(&inode->i_mutex); inode 586 fs/inode.c mutex_init(&inode->i_mutex); inode 587 fs/inode.c lockdep_set_class(&inode->i_mutex, &type->i_mutex_dir_key); inode 598 fs/inode.c inode->i_state &= ~(I_LOCK|I_NEW); inode 599 fs/inode.c wake_up_inode(inode); inode 610 fs/inode.c static struct inode * get_new_inode(struct super_block *sb, struct hlist_head *head, int (*test)(struct inode *, void *), int (*set)(struct inode *, void *), void *data) inode 612 fs/inode.c struct inode * inode; inode 614 fs/inode.c inode = alloc_inode(sb); inode 615 fs/inode.c if (inode) { inode 616 fs/inode.c struct inode * old; inode 622 fs/inode.c if (set(inode, data)) inode 626 fs/inode.c list_add(&inode->i_list, &inode_in_use); inode 627 fs/inode.c list_add(&inode->i_sb_list, &sb->s_inodes); inode 628 fs/inode.c hlist_add_head(&inode->i_hash, head); inode 629 fs/inode.c inode->i_state = I_LOCK|I_NEW; inode 635 fs/inode.c return inode; inode 645 fs/inode.c destroy_inode(inode); inode 646 fs/inode.c inode = old; inode 647 fs/inode.c wait_on_inode(inode); inode 649 fs/inode.c return inode; inode 653 fs/inode.c destroy_inode(inode); inode 661 fs/inode.c static struct inode * get_new_inode_fast(struct super_block *sb, struct hlist_head *head, unsigned long ino) inode 663 fs/inode.c struct inode * inode; inode 665 fs/inode.c inode = alloc_inode(sb); inode 666 fs/inode.c if (inode) { inode 667 fs/inode.c struct inode * old; inode 673 fs/inode.c inode->i_ino = ino; inode 675 fs/inode.c list_add(&inode->i_list, &inode_in_use); inode 676 fs/inode.c list_add(&inode->i_sb_list, &sb->s_inodes); inode 677 fs/inode.c hlist_add_head(&inode->i_hash, head); inode 678 fs/inode.c inode->i_state = I_LOCK|I_NEW; inode 684 fs/inode.c return inode; inode 694 fs/inode.c destroy_inode(inode); inode 695 fs/inode.c inode = old; inode 696 fs/inode.c wait_on_inode(inode); inode 698 fs/inode.c return inode; inode 733 fs/inode.c struct inode *inode; inode 743 fs/inode.c inode = find_inode_fast(sb, head, res); inode 744 fs/inode.c } while (inode != NULL); inode 751 fs/inode.c struct inode *igrab(struct inode *inode) inode 754 fs/inode.c if (!(inode->i_state & (I_FREEING|I_CLEAR|I_WILL_FREE))) inode 755 fs/inode.c __iget(inode); inode 762 fs/inode.c inode = NULL; inode 764 fs/inode.c return inode; inode 788 fs/inode.c static struct inode *ifind(struct super_block *sb, inode 792 fs/inode.c struct inode *inode; inode 795 fs/inode.c inode = find_inode(sb, head, test, data); inode 796 fs/inode.c if (inode) { inode 797 fs/inode.c __iget(inode); inode 800 fs/inode.c wait_on_inode(inode); inode 801 fs/inode.c return inode; inode 822 fs/inode.c static struct inode *ifind_fast(struct super_block *sb, inode 825 fs/inode.c struct inode *inode; inode 828 fs/inode.c inode = find_inode_fast(sb, head, ino); inode 829 fs/inode.c if (inode) { inode 830 fs/inode.c __iget(inode); inode 832 fs/inode.c wait_on_inode(inode); inode 833 fs/inode.c return inode; inode 860 fs/inode.c struct inode *ilookup5_nowait(struct super_block *sb, unsigned long hashval, inode 889 fs/inode.c struct inode *ilookup5(struct super_block *sb, unsigned long hashval, inode 913 fs/inode.c struct inode *ilookup(struct super_block *sb, unsigned long ino) inode 942 fs/inode.c struct inode *iget5_locked(struct super_block *sb, unsigned long hashval, inode 947 fs/inode.c struct inode *inode; inode 949 fs/inode.c inode = ifind(sb, head, test, data, 1); inode 950 fs/inode.c if (inode) inode 951 fs/inode.c return inode; inode 976 fs/inode.c struct inode *iget_locked(struct super_block *sb, unsigned long ino) inode 979 fs/inode.c struct inode *inode; inode 981 fs/inode.c inode = ifind_fast(sb, head, ino); inode 982 fs/inode.c if (inode) inode 983 fs/inode.c return inode; inode 1003 fs/inode.c struct hlist_head *head = inode_hashtable + hash(inode->i_sb, hashval); inode 1005 fs/inode.c hlist_add_head(&inode->i_hash, head); inode 1020 fs/inode.c hlist_del_init(&inode->i_hash); inode 1040 fs/inode.c const struct super_operations *op = inode->i_sb->s_op; inode 1042 fs/inode.c list_del_init(&inode->i_list); inode 1043 fs/inode.c list_del_init(&inode->i_sb_list); inode 1044 fs/inode.c inode->i_state |= I_FREEING; inode 1048 fs/inode.c security_inode_delete(inode); inode 1051 fs/inode.c void (*delete)(struct inode *) = op->delete_inode; inode 1052 fs/inode.c if (!is_bad_inode(inode)) inode 1053 fs/inode.c DQUOT_INIT(inode); inode 1058 fs/inode.c delete(inode); inode 1060 fs/inode.c truncate_inode_pages(&inode->i_data, 0); inode 1061 fs/inode.c clear_inode(inode); inode 1064 fs/inode.c hlist_del_init(&inode->i_hash); inode 1066 fs/inode.c wake_up_inode(inode); inode 1067 fs/inode.c BUG_ON(inode->i_state != I_CLEAR); inode 1068 fs/inode.c destroy_inode(inode); inode 1075 fs/inode.c struct super_block *sb = inode->i_sb; inode 1077 fs/inode.c if (!hlist_unhashed(&inode->i_hash)) { inode 1078 fs/inode.c if (!(inode->i_state & (I_DIRTY|I_SYNC))) inode 1079 fs/inode.c list_move(&inode->i_list, &inode_unused); inode 1085 fs/inode.c inode->i_state |= I_WILL_FREE; inode 1087 fs/inode.c write_inode_now(inode, 1); inode 1089 fs/inode.c inode->i_state &= ~I_WILL_FREE; inode 1091 fs/inode.c hlist_del_init(&inode->i_hash); inode 1093 fs/inode.c list_del_init(&inode->i_list); inode 1094 fs/inode.c list_del_init(&inode->i_sb_list); inode 1095 fs/inode.c inode->i_state |= I_FREEING; inode 1098 fs/inode.c if (inode->i_data.nrpages) inode 1099 fs/inode.c truncate_inode_pages(&inode->i_data, 0); inode 1100 fs/inode.c clear_inode(inode); inode 1101 fs/inode.c wake_up_inode(inode); inode 1102 fs/inode.c destroy_inode(inode); inode 1112 fs/inode.c if (!inode->i_nlink) inode 1113 fs/inode.c generic_delete_inode(inode); inode 1115 fs/inode.c generic_forget_inode(inode); inode 1133 fs/inode.c const struct super_operations *op = inode->i_sb->s_op; inode 1134 fs/inode.c void (*drop)(struct inode *) = generic_drop_inode; inode 1138 fs/inode.c drop(inode); inode 1152 fs/inode.c if (inode) { inode 1153 fs/inode.c BUG_ON(inode->i_state == I_CLEAR); inode 1155 fs/inode.c if (atomic_dec_and_lock(&inode->i_count, &inode_lock)) inode 1156 fs/inode.c iput_final(inode); inode 1176 fs/inode.c if (inode->i_mapping->a_ops->bmap) inode 1177 fs/inode.c res = inode->i_mapping->a_ops->bmap(inode->i_mapping, block); inode 1193 fs/inode.c struct inode *inode = dentry->d_inode; inode 1198 fs/inode.c if (inode->i_flags & S_NOATIME) inode 1200 fs/inode.c if (IS_NOATIME(inode)) inode 1202 fs/inode.c if ((inode->i_sb->s_flags & MS_NODIRATIME) && S_ISDIR(inode->i_mode)) inode 1207 fs/inode.c if ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode)) inode 1214 fs/inode.c if (timespec_compare(&inode->i_mtime, &inode->i_atime) < 0 && inode 1215 fs/inode.c timespec_compare(&inode->i_ctime, &inode->i_atime) < 0) inode 1219 fs/inode.c now = current_fs_time(inode->i_sb); inode 1220 fs/inode.c if (timespec_equal(&inode->i_atime, &now)) inode 1223 fs/inode.c inode->i_atime = now; inode 1224 fs/inode.c mark_inode_dirty_sync(inode); inode 1244 fs/inode.c struct inode *inode = file->f_path.dentry->d_inode; inode 1249 fs/inode.c if (IS_NOCMTIME(inode)) inode 1256 fs/inode.c now = current_fs_time(inode->i_sb); inode 1257 fs/inode.c if (!timespec_equal(&inode->i_mtime, &now)) { inode 1258 fs/inode.c inode->i_mtime = now; inode 1262 fs/inode.c if (!timespec_equal(&inode->i_ctime, &now)) { inode 1263 fs/inode.c inode->i_ctime = now; inode 1267 fs/inode.c if (IS_I_VERSION(inode)) { inode 1268 fs/inode.c inode_inc_iversion(inode); inode 1273 fs/inode.c mark_inode_dirty_sync(inode); inode 1281 fs/inode.c if (IS_SYNC(inode)) inode 1283 fs/inode.c if (S_ISDIR(inode->i_mode) && IS_DIRSYNC(inode)) inode 1311 fs/inode.c DEFINE_WAIT_BIT(wait, &inode->i_state, __I_LOCK); inode 1312 fs/inode.c wq = bit_waitqueue(&inode->i_state, __I_LOCK); inode 1399 fs/inode.c sizeof(struct inode), inode 1426 fs/inode.c inode->i_mode = mode; inode 1428 fs/inode.c inode->i_fop = &def_chr_fops; inode 1429 fs/inode.c inode->i_rdev = rdev; inode 1431 fs/inode.c inode->i_fop = &def_blk_fops; inode 1432 fs/inode.c inode->i_rdev = rdev; inode 1434 fs/inode.c inode->i_fop = &def_fifo_fops; inode 1436 fs/inode.c inode->i_fop = &bad_sock_fops; inode 120 fs/inotify.c iput(watch->inode); inode 155 fs/inotify.c return !list_empty(&inode->inotify_watches); inode 167 fs/inotify.c list_for_each_entry(alias, &inode->i_dentry, d_alias) { inode 196 fs/inotify.c list_for_each_entry(watch, &inode->inotify_watches, i_list) { inode 215 fs/inotify.c if (!inotify_inode_watched(watch->inode)) inode 216 fs/inotify.c set_dentry_child_flags(watch->inode, 0); inode 247 fs/inotify.c if (!inode) inode 284 fs/inotify.c if (!inotify_inode_watched(inode)) inode 287 fs/inotify.c mutex_lock(&inode->inotify_mutex); inode 288 fs/inotify.c list_for_each_entry_safe(watch, next, &inode->inotify_watches, i_list) { inode 300 fs/inotify.c mutex_unlock(&inode->inotify_mutex); inode 315 fs/inotify.c struct inode *inode; inode 322 fs/inotify.c inode = parent->d_inode; inode 324 fs/inotify.c if (inotify_inode_watched(inode)) { inode 327 fs/inotify.c inotify_inode_queue_event(inode, mask, cookie, name, inode 354 fs/inotify.c struct inode *inode, *next_i, *need_iput = NULL; inode 356 fs/inotify.c list_for_each_entry_safe(inode, next_i, list, i_sb_list) { inode 358 fs/inotify.c struct inode *need_iput_tmp; inode 367 fs/inotify.c if (!atomic_read(&inode->i_count)) inode 375 fs/inotify.c if (inode->i_state & (I_CLEAR | I_FREEING | I_WILL_FREE)) inode 381 fs/inotify.c if (inode != need_iput_tmp) inode 382 fs/inotify.c __iget(inode); inode 406 fs/inotify.c mutex_lock(&inode->inotify_mutex); inode 407 fs/inotify.c watches = &inode->inotify_watches; inode 416 fs/inotify.c mutex_unlock(&inode->inotify_mutex); inode 417 fs/inotify.c iput(inode); inode 432 fs/inotify.c mutex_lock(&inode->inotify_mutex); inode 433 fs/inotify.c list_for_each_entry_safe(watch, next, &inode->inotify_watches, i_list) { inode 439 fs/inotify.c mutex_unlock(&inode->inotify_mutex); inode 497 fs/inotify.c struct inode *inode; inode 509 fs/inotify.c inode = watch->inode; inode 510 fs/inotify.c mutex_lock(&inode->inotify_mutex); inode 520 fs/inotify.c mutex_unlock(&inode->inotify_mutex); inode 543 fs/inotify.c mutex_lock(&inode->inotify_mutex); inode 546 fs/inotify.c old = inode_find_handle(inode, ih); inode 554 fs/inotify.c mutex_unlock(&inode->inotify_mutex); inode 583 fs/inotify.c mutex_lock(&inode->inotify_mutex); inode 590 fs/inotify.c old = inode_find_handle(inode, ih); inode 603 fs/inotify.c mutex_unlock(&inode->inotify_mutex); inode 631 fs/inotify.c mutex_lock(&inode->inotify_mutex); inode 648 fs/inotify.c watch->inode = igrab(inode); inode 651 fs/inotify.c newly_watched = !inotify_inode_watched(inode); inode 653 fs/inotify.c list_add(&watch->i_list, &inode->inotify_watches); inode 660 fs/inotify.c set_dentry_child_flags(inode, 1); inode 664 fs/inotify.c mutex_unlock(&inode->inotify_mutex); inode 695 fs/inotify.c new->inode = igrab(old->inode); inode 698 fs/inotify.c list_add(&new->i_list, &old->inode->inotify_watches); inode 722 fs/inotify.c struct inode *inode; inode 731 fs/inotify.c inode = watch->inode; inode 734 fs/inotify.c mutex_lock(&inode->inotify_mutex); inode 742 fs/inotify.c mutex_unlock(&inode->inotify_mutex); inode 407 fs/inotify_user.c ret = inotify_add_watch(dev->ih, &watch->wdata, inode, mask); inode 668 fs/inotify_user.c struct inode *inode; inode 695 fs/inotify_user.c inode = path.dentry->d_inode; inode 699 fs/inotify_user.c ret = inotify_find_update_watch(dev->ih, inode, mask); inode 701 fs/inotify_user.c ret = create_watch(dev, inode, mask); inode 188 fs/ioctl.c struct inode *inode = filp->f_path.dentry->d_inode; inode 189 fs/ioctl.c struct super_block *sb = inode->i_sb; inode 193 fs/ioctl.c if (!inode->i_op->fiemap) inode 218 fs/ioctl.c filemap_write_and_wait(inode->i_mapping); inode 220 fs/ioctl.c error = inode->i_op->fiemap(inode, &fieinfo, fiemap.fm_start, len); inode 231 fs/ioctl.c #define blk_to_logical(inode, blk) (blk << (inode)->i_blkbits) inode 232 fs/ioctl.c #define logical_to_blk(inode, offset) (offset >> (inode)->i_blkbits); inode 261 fs/ioctl.c start_blk = logical_to_blk(inode, start); inode 264 fs/ioctl.c mutex_lock(&inode->i_mutex); inode 266 fs/ioctl.c length = (long long)min_t(u64, len, i_size_read(inode)); inode 277 fs/ioctl.c ret = get_block(inode, start_blk, &tmp, 0); inode 295 fs/ioctl.c length -= blk_to_logical(inode, 1); inode 311 fs/ioctl.c logical = blk_to_logical(inode, start_blk); inode 312 fs/ioctl.c phys = blk_to_logical(inode, tmp.b_blocknr); inode 317 fs/ioctl.c start_blk += logical_to_blk(inode, size); inode 337 fs/ioctl.c mutex_unlock(&inode->i_mutex); inode 352 fs/ioctl.c struct inode *inode = filp->f_path.dentry->d_inode; inode 361 fs/ioctl.c return put_user(inode->i_sb->s_blocksize, p); inode 363 fs/ioctl.c return put_user(i_size_read(inode) - filp->f_pos, p); inode 45 fs/isofs/compress.c struct inode *inode = file->f_path.dentry->d_inode; inode 46 fs/isofs/compress.c struct address_space *mapping = inode->i_mapping; inode 51 fs/isofs/compress.c unsigned long bufsize = ISOFS_BUFFER_SIZE(inode); inode 52 fs/isofs/compress.c unsigned int bufshift = ISOFS_BUFFER_BITS(inode); inode 56 fs/isofs/compress.c unsigned int header_size = ISOFS_I(inode)->i_format_parm[0]; inode 57 fs/isofs/compress.c unsigned int zisofs_block_shift = ISOFS_I(inode)->i_format_parm[1]; inode 74 fs/isofs/compress.c maxpage = (inode->i_size + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT; inode 111 fs/isofs/compress.c if ( isofs_get_blocks(inode, blockptr >> bufshift, ptrbh, indexblocks) != indexblocks ) { inode 114 fs/isofs/compress.c inode->i_ino, blockptr >> bufshift); inode 122 fs/isofs/compress.c inode->i_ino, blockptr >> bufshift); inode 135 fs/isofs/compress.c inode->i_ino, blockendptr >> bufshift); inode 186 fs/isofs/compress.c haveblocks = isofs_get_blocks(inode, blockptr, bhs, needblocks); inode 261 fs/isofs/compress.c zerr, inode->i_ino, index, inode 54 fs/isofs/dir.c int retnamlen = isofs_name_translate(de, retname, inode); inode 85 fs/isofs/dir.c unsigned long bufsize = ISOFS_BUFFER_SIZE(inode); inode 86 fs/isofs/dir.c unsigned char bufbits = ISOFS_BUFFER_BITS(inode); inode 95 fs/isofs/dir.c struct isofs_sb_info *sbi = ISOFS_SB(inode->i_sb); inode 100 fs/isofs/dir.c while (filp->f_pos < inode->i_size) { inode 104 fs/isofs/dir.c bh = isofs_bread(inode, block); inode 141 fs/isofs/dir.c bh = isofs_bread(inode, block); inode 153 fs/isofs/dir.c inode->i_ino); inode 174 fs/isofs/dir.c if (filldir(dirent, ".", 1, filp->f_pos, inode->i_ino, DT_DIR) < 0) inode 208 fs/isofs/dir.c len = get_rock_ridge_filename(de, tmpname, inode); inode 217 fs/isofs/dir.c len = get_joliet_filename(de, tmpname, inode); inode 222 fs/isofs/dir.c len = get_acorn_filename(de, tmpname, inode); inode 226 fs/isofs/dir.c len = isofs_name_translate(de, tmpname, inode); inode 257 fs/isofs/dir.c struct inode *inode = filp->f_path.dentry->d_inode; inode 266 fs/isofs/dir.c result = do_isofs_readdir(inode, filp, dirent, filldir, tmpname, tmpde); inode 24 fs/isofs/export.c struct inode *inode; inode 28 fs/isofs/export.c inode = isofs_iget(sb, block, offset); inode 29 fs/isofs/export.c if (IS_ERR(inode)) inode 30 fs/isofs/export.c return ERR_CAST(inode); inode 31 fs/isofs/export.c if (generation && inode->i_generation != generation) { inode 32 fs/isofs/export.c iput(inode); inode 35 fs/isofs/export.c result = d_alloc_anon(inode); inode 37 fs/isofs/export.c iput(inode); inode 52 fs/isofs/export.c struct inode *child_inode = child->d_inode; inode 54 fs/isofs/export.c struct inode *parent_inode = NULL; inode 138 fs/isofs/export.c struct inode * inode = dentry->d_inode; inode 139 fs/isofs/export.c struct iso_inode_info * ei = ISOFS_I(inode); inode 157 fs/isofs/export.c fh32[2] = inode->i_generation; inode 158 fs/isofs/export.c if (connectable && !S_ISDIR(inode->i_mode)) { inode 159 fs/isofs/export.c struct inode *parent; inode 62 fs/isofs/inode.c static struct inode *isofs_alloc_inode(struct super_block *sb) inode 73 fs/isofs/inode.c kmem_cache_free(isofs_inode_cachep, ISOFS_I(inode)); inode 555 fs/isofs/inode.c struct inode *inode; inode 822 fs/isofs/inode.c inode = isofs_iget(s, sbi->s_firstdatazone, 0); inode 823 fs/isofs/inode.c if (IS_ERR(inode)) inode 842 fs/isofs/inode.c iput(inode); inode 843 fs/isofs/inode.c inode = isofs_iget(s, sbi->s_firstdatazone, 0); inode 844 fs/isofs/inode.c if (IS_ERR(inode)) inode 859 fs/isofs/inode.c if (!inode->i_op) inode 863 fs/isofs/inode.c if (!S_ISDIR(inode->i_mode)) { inode 871 fs/isofs/inode.c s->s_root = d_alloc_root(inode); inode 892 fs/isofs/inode.c iput(inode); inode 895 fs/isofs/inode.c error = PTR_ERR(inode); inode 959 fs/isofs/inode.c struct iso_inode_info *ei = ISOFS_I(inode); inode 974 fs/isofs/inode.c sect_size = ei->i_section_size >> ISOFS_BUFFER_BITS(inode); inode 987 fs/isofs/inode.c if (b_off > ((inode->i_size + PAGE_CACHE_SIZE - 1) >> ISOFS_BUFFER_BITS(inode))) { inode 989 fs/isofs/inode.c __func__, iblock, (unsigned long) inode->i_size); inode 998 fs/isofs/inode.c struct inode *ninode; inode 1001 fs/isofs/inode.c ninode = isofs_iget(inode->i_sb, nextblk, nextoff); inode 1024 fs/isofs/inode.c map_bh(*bh, inode->i_sb, firstext + b_off - offset); inode 1026 fs/isofs/inode.c *bh = sb_getblk(inode->i_sb, firstext+b_off-offset); inode 1055 fs/isofs/inode.c ret = isofs_get_blocks(inode, iblock, &bh_result, 1); inode 1066 fs/isofs/inode.c error = isofs_get_block(inode, block, &dummy, 0); inode 1074 fs/isofs/inode.c sector_t blknr = isofs_bmap(inode, block); inode 1077 fs/isofs/inode.c return sb_bread(inode->i_sb, blknr); inode 1110 fs/isofs/inode.c unsigned long bufsize = ISOFS_BUFFER_SIZE(inode); inode 1111 fs/isofs/inode.c int high_sierra = ISOFS_SB(inode->i_sb)->s_high_sierra; inode 1117 fs/isofs/inode.c struct iso_inode_info *ei = ISOFS_I(inode); inode 1119 fs/isofs/inode.c inode->i_size = 0; inode 1135 fs/isofs/inode.c bh = sb_bread(inode->i_sb, block); inode 1168 fs/isofs/inode.c bh = sb_bread(inode->i_sb, block); inode 1176 fs/isofs/inode.c inode->i_size += isonum_733(de->size); inode 1207 fs/isofs/inode.c __func__, inode->i_ino); inode 1213 fs/isofs/inode.c struct super_block *sb = inode->i_sb; inode 1215 fs/isofs/inode.c unsigned long bufsize = ISOFS_BUFFER_SIZE(inode); inode 1223 fs/isofs/inode.c struct iso_inode_info *ei = ISOFS_I(inode); inode 1227 fs/isofs/inode.c bh = sb_bread(inode->i_sb, block); inode 1247 fs/isofs/inode.c bh = sb_bread(inode->i_sb, ++block); inode 1254 fs/isofs/inode.c inode->i_ino = isofs_get_ino(ei->i_iget5_block, inode 1256 fs/isofs/inode.c ISOFS_BUFFER_BITS(inode)); inode 1262 fs/isofs/inode.c inode->i_mode = sbi->s_dmode | S_IFDIR; inode 1263 fs/isofs/inode.c inode->i_nlink = 1; /* inode 1272 fs/isofs/inode.c inode->i_mode = sbi->s_fmode | S_IFREG; inode 1273 fs/isofs/inode.c inode->i_nlink = 1; inode 1275 fs/isofs/inode.c inode->i_uid = sbi->s_uid; inode 1276 fs/isofs/inode.c inode->i_gid = sbi->s_gid; inode 1277 fs/isofs/inode.c inode->i_blocks = 0; inode 1285 fs/isofs/inode.c ret = isofs_read_level3_size(inode); inode 1292 fs/isofs/inode.c inode->i_size = isonum_733(de->size); inode 1302 fs/isofs/inode.c inode->i_size &= 0x00ffffff; inode 1306 fs/isofs/inode.c inode->i_size = 0; inode 1313 fs/isofs/inode.c inode->i_ino); inode 1322 fs/isofs/inode.c inode->i_ino, de->flags[-high_sierra]); inode 1326 fs/isofs/inode.c inode->i_mtime.tv_sec = inode 1327 fs/isofs/inode.c inode->i_atime.tv_sec = inode 1328 fs/isofs/inode.c inode->i_ctime.tv_sec = iso_date(de->date, high_sierra); inode 1329 fs/isofs/inode.c inode->i_mtime.tv_nsec = inode 1330 fs/isofs/inode.c inode->i_atime.tv_nsec = inode 1331 fs/isofs/inode.c inode->i_ctime.tv_nsec = 0; inode 1337 fs/isofs/inode.c inode->i_blocks = (inode->i_size + 511) >> 9; inode 1345 fs/isofs/inode.c parse_rock_ridge_inode(de, inode); inode 1347 fs/isofs/inode.c test_and_set_uid(&inode->i_uid, sbi->s_uid); inode 1348 fs/isofs/inode.c test_and_set_gid(&inode->i_gid, sbi->s_gid); inode 1352 fs/isofs/inode.c if (S_ISREG(inode->i_mode)) { inode 1353 fs/isofs/inode.c inode->i_fop = &generic_ro_fops; inode 1357 fs/isofs/inode.c inode->i_data.a_ops = &zisofs_aops; inode 1361 fs/isofs/inode.c inode->i_data.a_ops = &isofs_aops; inode 1364 fs/isofs/inode.c } else if (S_ISDIR(inode->i_mode)) { inode 1365 fs/isofs/inode.c inode->i_op = &isofs_dir_inode_operations; inode 1366 fs/isofs/inode.c inode->i_fop = &isofs_dir_operations; inode 1367 fs/isofs/inode.c } else if (S_ISLNK(inode->i_mode)) { inode 1368 fs/isofs/inode.c inode->i_op = &page_symlink_inode_operations; inode 1369 fs/isofs/inode.c inode->i_data.a_ops = &isofs_symlink_aops; inode 1372 fs/isofs/inode.c init_special_inode(inode, inode->i_mode, inode->i_rdev); inode 1415 fs/isofs/inode.c struct inode *isofs_iget(struct super_block *sb, inode 1420 fs/isofs/inode.c struct inode *inode; inode 1432 fs/isofs/inode.c inode = iget5_locked(sb, hashval, &isofs_iget5_test, inode 1435 fs/isofs/inode.c if (!inode) inode 1438 fs/isofs/inode.c if (inode->i_state & I_NEW) { inode 1439 fs/isofs/inode.c ret = isofs_read_inode(inode); inode 1441 fs/isofs/inode.c iget_failed(inode); inode 1442 fs/isofs/inode.c inode = ERR_PTR(ret); inode 1444 fs/isofs/inode.c unlock_new_inode(inode); inode 1448 fs/isofs/inode.c return inode; inode 25 fs/isofs/isofs.h struct inode vfs_inode; inode 68 fs/isofs/isofs.h return container_of(inode, struct iso_inode_info, vfs_inode); inode 107 fs/isofs/isofs.h struct inode; /* To make gcc happy */ inode 120 fs/isofs/isofs.h extern struct inode *isofs_iget(struct super_block *sb, inode 78 fs/isofs/joliet.c utf8 = ISOFS_SB(inode->i_sb)->s_utf8; inode 79 fs/isofs/joliet.c nls = ISOFS_SB(inode->i_sb)->s_nls_iocharset; inode 170 fs/isofs/namei.c struct inode *inode; inode 186 fs/isofs/namei.c inode = NULL; inode 188 fs/isofs/namei.c inode = isofs_iget(dir->i_sb, block, offset); inode 189 fs/isofs/namei.c if (IS_ERR(inode)) { inode 191 fs/isofs/namei.c return ERR_CAST(inode); inode 195 fs/isofs/namei.c return d_splice_alias(inode, dentry); inode 34 fs/isofs/rock.c struct inode *inode; inode 48 fs/isofs/rock.c ISOFS_SB(inode->i_sb)->s_rock_offset = rr->u.SP.skip; inode 63 fs/isofs/rock.c if (ISOFS_SB(inode->i_sb)->s_rock_offset != -1) { inode 64 fs/isofs/rock.c rs->len -= ISOFS_SB(inode->i_sb)->s_rock_offset; inode 65 fs/isofs/rock.c rs->chr += ISOFS_SB(inode->i_sb)->s_rock_offset; inode 74 fs/isofs/rock.c rs->inode = inode; inode 84 fs/isofs/rock.c int blocksize = 1 << rs->inode->i_blkbits; inode 109 fs/isofs/rock.c bh = sb_bread(rs->inode->i_sb, rs->cont_extent); inode 202 fs/isofs/rock.c if (!ISOFS_SB(inode->i_sb)->s_rock) inode 206 fs/isofs/rock.c init_rock_state(&rs, inode); inode 207 fs/isofs/rock.c setup_rock_ridge(de, inode, &rs); inode 237 fs/isofs/rock.c if (check_sp(rr, inode)) inode 298 fs/isofs/rock.c struct inode *reloc; inode 304 fs/isofs/rock.c if (!ISOFS_SB(inode->i_sb)->s_rock) inode 307 fs/isofs/rock.c init_rock_state(&rs, inode); inode 308 fs/isofs/rock.c setup_rock_ridge(de, inode, &rs); inode 347 fs/isofs/rock.c if (check_sp(rr, inode)) inode 356 fs/isofs/rock.c ISOFS_SB(inode->i_sb)->s_rock = 1; inode 366 fs/isofs/rock.c inode->i_mode = isonum_733(rr->u.PX.mode); inode 367 fs/isofs/rock.c inode->i_nlink = isonum_733(rr->u.PX.n_links); inode 368 fs/isofs/rock.c inode->i_uid = isonum_733(rr->u.PX.uid); inode 369 fs/isofs/rock.c inode->i_gid = isonum_733(rr->u.PX.gid); inode 387 fs/isofs/rock.c inode->i_rdev = inode 390 fs/isofs/rock.c inode->i_rdev = inode 404 fs/isofs/rock.c inode->i_ctime.tv_sec = inode 407 fs/isofs/rock.c inode->i_ctime.tv_nsec = 0; inode 410 fs/isofs/rock.c inode->i_mtime.tv_sec = inode 413 fs/isofs/rock.c inode->i_mtime.tv_nsec = 0; inode 416 fs/isofs/rock.c inode->i_atime.tv_sec = inode 419 fs/isofs/rock.c inode->i_atime.tv_nsec = 0; inode 422 fs/isofs/rock.c inode->i_ctime.tv_sec = inode 425 fs/isofs/rock.c inode->i_ctime.tv_nsec = 0; inode 435 fs/isofs/rock.c inode->i_size = symlink_len; inode 440 fs/isofs/rock.c inode->i_size += inode 444 fs/isofs/rock.c inode->i_size += 1; inode 447 fs/isofs/rock.c inode->i_size += 2; inode 451 fs/isofs/rock.c inode->i_size += 1; inode 468 fs/isofs/rock.c inode->i_size += inode 479 fs/isofs/rock.c inode->i_size += 1; inode 482 fs/isofs/rock.c symlink_len = inode->i_size; inode 489 fs/isofs/rock.c ISOFS_I(inode)->i_first_extent = inode 492 fs/isofs/rock.c isofs_iget(inode->i_sb, inode 493 fs/isofs/rock.c ISOFS_I(inode)->i_first_extent, inode 499 fs/isofs/rock.c inode->i_mode = reloc->i_mode; inode 500 fs/isofs/rock.c inode->i_nlink = reloc->i_nlink; inode 501 fs/isofs/rock.c inode->i_uid = reloc->i_uid; inode 502 fs/isofs/rock.c inode->i_gid = reloc->i_gid; inode 503 fs/isofs/rock.c inode->i_rdev = reloc->i_rdev; inode 504 fs/isofs/rock.c inode->i_size = reloc->i_size; inode 505 fs/isofs/rock.c inode->i_blocks = reloc->i_blocks; inode 506 fs/isofs/rock.c inode->i_atime = reloc->i_atime; inode 507 fs/isofs/rock.c inode->i_ctime = reloc->i_ctime; inode 508 fs/isofs/rock.c inode->i_mtime = reloc->i_mtime; inode 515 fs/isofs/rock.c if (ISOFS_SB(inode->i_sb)->s_nocompress) inode 532 fs/isofs/rock.c ISOFS_I(inode)->i_file_format = inode 539 fs/isofs/rock.c ISOFS_I(inode)->i_format_parm[0] = inode 541 fs/isofs/rock.c ISOFS_I(inode)->i_format_parm[1] = inode 543 fs/isofs/rock.c inode->i_size = inode 644 fs/isofs/rock.c int result = parse_rock_ridge_inode_internal(de, inode, 0); inode 650 fs/isofs/rock.c if ((ISOFS_SB(inode->i_sb)->s_rock_offset == -1) inode 651 fs/isofs/rock.c && (ISOFS_SB(inode->i_sb)->s_rock == 2)) { inode 652 fs/isofs/rock.c result = parse_rock_ridge_inode_internal(de, inode, 14); inode 663 fs/isofs/rock.c struct inode *inode = page->mapping->host; inode 664 fs/isofs/rock.c struct iso_inode_info *ei = ISOFS_I(inode); inode 666 fs/isofs/rock.c unsigned long bufsize = ISOFS_BUFFER_SIZE(inode); inode 677 fs/isofs/rock.c if (!ISOFS_SB(inode->i_sb)->s_rock) inode 680 fs/isofs/rock.c init_rock_state(&rs, inode); inode 683 fs/isofs/rock.c bh = sb_bread(inode->i_sb, block); inode 703 fs/isofs/rock.c setup_rock_ridge(raw_de, inode, &rs); inode 724 fs/isofs/rock.c if (check_sp(rr, inode)) inode 767 fs/jbd/journal.c journal->j_dev = journal->j_fs_dev = inode->i_sb->s_bdev; inode 768 fs/jbd/journal.c journal->j_inode = inode; inode 771 fs/jbd/journal.c journal, inode->i_sb->s_id, inode->i_ino, inode 772 fs/jbd/journal.c (long long) inode->i_size, inode 773 fs/jbd/journal.c inode->i_sb->s_blocksize_bits, inode->i_sb->s_blocksize); inode 775 fs/jbd/journal.c journal->j_maxlen = inode->i_size >> inode->i_sb->s_blocksize_bits; inode 776 fs/jbd/journal.c journal->j_blocksize = inode->i_sb->s_blocksize; inode 1607 fs/jbd/journal.c return 1 << (PAGE_CACHE_SHIFT - inode->i_sb->s_blocksize_bits); inode 747 fs/jbd2/journal.c journal_t *journal = PDE(inode)->data; inode 785 fs/jbd2/journal.c return seq_release(inode, file); inode 849 fs/jbd2/journal.c journal_t *journal = PDE(inode)->data; inode 885 fs/jbd2/journal.c return seq_release(inode, file); inode 1067 fs/jbd2/journal.c journal->j_dev = journal->j_fs_dev = inode->i_sb->s_bdev; inode 1068 fs/jbd2/journal.c journal->j_inode = inode; inode 1077 fs/jbd2/journal.c journal, inode->i_sb->s_id, inode->i_ino, inode 1078 fs/jbd2/journal.c (long long) inode->i_size, inode 1079 fs/jbd2/journal.c inode->i_sb->s_blocksize_bits, inode->i_sb->s_blocksize); inode 1081 fs/jbd2/journal.c journal->j_maxlen = inode->i_size >> inode->i_sb->s_blocksize_bits; inode 1082 fs/jbd2/journal.c journal->j_blocksize = inode->i_sb->s_blocksize; inode 1963 fs/jbd2/journal.c return 1 << (PAGE_CACHE_SHIFT - inode->i_sb->s_blocksize_bits); inode 2229 fs/jbd2/journal.c jinode->i_vfs_inode = inode; inode 2064 fs/jbd2/transaction.c if (!inode->i_transaction && !inode->i_next_transaction) inode 2066 fs/jbd2/transaction.c journal = inode->i_transaction->t_journal; inode 2070 fs/jbd2/transaction.c if (inode->i_transaction == commit_trans) { inode 2071 fs/jbd2/transaction.c ret = filemap_fdatawrite_range(inode->i_vfs_inode->i_mapping, inode 163 fs/jffs2/acl.c spin_lock(&inode->i_lock); inode 166 fs/jffs2/acl.c spin_unlock(&inode->i_lock); inode 172 fs/jffs2/acl.c spin_lock(&inode->i_lock); inode 176 fs/jffs2/acl.c spin_unlock(&inode->i_lock); inode 181 fs/jffs2/acl.c struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode); inode 188 fs/jffs2/acl.c acl = jffs2_iget_acl(inode, &f->i_acl_access); inode 194 fs/jffs2/acl.c acl = jffs2_iget_acl(inode, &f->i_acl_default); inode 202 fs/jffs2/acl.c rc = do_jffs2_getxattr(inode, xprefix, "", NULL, 0); inode 207 fs/jffs2/acl.c rc = do_jffs2_getxattr(inode, xprefix, "", value, rc); inode 221 fs/jffs2/acl.c jffs2_iset_acl(inode, &f->i_acl_access, acl); inode 224 fs/jffs2/acl.c jffs2_iset_acl(inode, &f->i_acl_default, acl); inode 242 fs/jffs2/acl.c rc = do_jffs2_setxattr(inode, xprefix, "", value, size, 0); inode 252 fs/jffs2/acl.c struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode); inode 255 fs/jffs2/acl.c if (S_ISLNK(inode->i_mode)) inode 262 fs/jffs2/acl.c mode_t mode = inode->i_mode; inode 266 fs/jffs2/acl.c if (inode->i_mode != mode) { inode 271 fs/jffs2/acl.c rc = jffs2_do_setattr(inode, &attr); inode 281 fs/jffs2/acl.c if (!S_ISDIR(inode->i_mode)) inode 287 fs/jffs2/acl.c rc = __jffs2_set_acl(inode, xprefix, acl); inode 291 fs/jffs2/acl.c jffs2_iset_acl(inode, &f->i_acl_access, acl); inode 294 fs/jffs2/acl.c jffs2_iset_acl(inode, &f->i_acl_default, acl); inode 306 fs/jffs2/acl.c acl = jffs2_get_acl(inode, ACL_TYPE_ACCESS); inode 310 fs/jffs2/acl.c rc = posix_acl_permission(inode, acl, mask); inode 319 fs/jffs2/acl.c return generic_permission(inode, mask, jffs2_check_acl); inode 324 fs/jffs2/acl.c struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode); inode 342 fs/jffs2/acl.c jffs2_iset_acl(inode, &f->i_acl_default, acl); inode 353 fs/jffs2/acl.c jffs2_iset_acl(inode, &f->i_acl_access, clone); inode 362 fs/jffs2/acl.c struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode); inode 366 fs/jffs2/acl.c rc = __jffs2_set_acl(inode, JFFS2_XPREFIX_ACL_DEFAULT, f->i_acl_default); inode 372 fs/jffs2/acl.c rc = __jffs2_set_acl(inode, JFFS2_XPREFIX_ACL_ACCESS, f->i_acl_access); inode 397 fs/jffs2/acl.c if (S_ISLNK(inode->i_mode)) inode 399 fs/jffs2/acl.c acl = jffs2_get_acl(inode, ACL_TYPE_ACCESS); inode 406 fs/jffs2/acl.c rc = posix_acl_chmod_masq(clone, inode->i_mode); inode 408 fs/jffs2/acl.c rc = jffs2_set_acl(inode, ACL_TYPE_ACCESS, clone); inode 438 fs/jffs2/acl.c acl = jffs2_get_acl(inode, type); inode 453 fs/jffs2/acl.c return jffs2_acl_getxattr(inode, ACL_TYPE_ACCESS, buffer, size); inode 460 fs/jffs2/acl.c return jffs2_acl_getxattr(inode, ACL_TYPE_DEFAULT, buffer, size); inode 468 fs/jffs2/acl.c if (!is_owner_or_cap(inode)) inode 483 fs/jffs2/acl.c rc = jffs2_set_acl(inode, type, acl); inode 494 fs/jffs2/acl.c return jffs2_acl_setxattr(inode, ACL_TYPE_ACCESS, buffer, size); inode 502 fs/jffs2/acl.c return jffs2_acl_setxattr(inode, ACL_TYPE_DEFAULT, buffer, size); inode 79 fs/jffs2/dir.c struct inode *inode = NULL; inode 104 fs/jffs2/dir.c inode = jffs2_iget(dir_i->i_sb, ino); inode 105 fs/jffs2/dir.c if (IS_ERR(inode)) { inode 107 fs/jffs2/dir.c return ERR_CAST(inode); inode 111 fs/jffs2/dir.c d_add(target, inode); inode 123 fs/jffs2/dir.c struct inode *inode = filp->f_path.dentry->d_inode; inode 129 fs/jffs2/dir.c f = JFFS2_INODE_INFO(inode); inode 130 fs/jffs2/dir.c c = JFFS2_SB_INFO(inode->i_sb); inode 135 fs/jffs2/dir.c D1(printk(KERN_DEBUG "Dirent 0: \".\", ino #%lu\n", inode->i_ino)); inode 136 fs/jffs2/dir.c if (filldir(dirent, ".", 1, 0, inode->i_ino, DT_DIR) < 0) inode 184 fs/jffs2/dir.c struct inode *inode; inode 195 fs/jffs2/dir.c inode = jffs2_new_inode(dir_i, mode, ri); inode 197 fs/jffs2/dir.c if (IS_ERR(inode)) { inode 200 fs/jffs2/dir.c return PTR_ERR(inode); inode 203 fs/jffs2/dir.c inode->i_op = &jffs2_file_inode_operations; inode 204 fs/jffs2/dir.c inode->i_fop = &jffs2_file_operations; inode 205 fs/jffs2/dir.c inode->i_mapping->a_ops = &jffs2_file_address_operations; inode 206 fs/jffs2/dir.c inode->i_mapping->nrpages = 0; inode 208 fs/jffs2/dir.c f = JFFS2_INODE_INFO(inode); inode 226 fs/jffs2/dir.c d_instantiate(dentry, inode); inode 229 fs/jffs2/dir.c inode->i_ino, inode->i_mode, inode->i_nlink, inode 230 fs/jffs2/dir.c f->inocache->pino_nlink, inode->i_mapping->nrpages)); inode 234 fs/jffs2/dir.c make_bad_inode(inode); inode 235 fs/jffs2/dir.c iput(inode); inode 302 fs/jffs2/dir.c struct inode *inode; inode 335 fs/jffs2/dir.c inode = jffs2_new_inode(dir_i, S_IFLNK | S_IRWXUGO, ri); inode 337 fs/jffs2/dir.c if (IS_ERR(inode)) { inode 340 fs/jffs2/dir.c return PTR_ERR(inode); inode 343 fs/jffs2/dir.c inode->i_op = &jffs2_symlink_inode_operations; inode 345 fs/jffs2/dir.c f = JFFS2_INODE_INFO(inode); inode 347 fs/jffs2/dir.c inode->i_size = targetlen; inode 348 fs/jffs2/dir.c ri->isize = ri->dsize = ri->csize = cpu_to_je32(inode->i_size); inode 349 fs/jffs2/dir.c ri->totlen = cpu_to_je32(sizeof(*ri) + inode->i_size); inode 364 fs/jffs2/dir.c jffs2_clear_inode(inode); inode 374 fs/jffs2/dir.c jffs2_clear_inode(inode); inode 389 fs/jffs2/dir.c ret = jffs2_init_security(inode, dir_i); inode 391 fs/jffs2/dir.c jffs2_clear_inode(inode); inode 394 fs/jffs2/dir.c ret = jffs2_init_acl_post(inode); inode 396 fs/jffs2/dir.c jffs2_clear_inode(inode); inode 404 fs/jffs2/dir.c jffs2_clear_inode(inode); inode 412 fs/jffs2/dir.c jffs2_clear_inode(inode); inode 426 fs/jffs2/dir.c rd->ino = cpu_to_je32(inode->i_ino); inode 441 fs/jffs2/dir.c jffs2_clear_inode(inode); inode 456 fs/jffs2/dir.c d_instantiate(dentry, inode); inode 465 fs/jffs2/dir.c struct inode *inode; inode 494 fs/jffs2/dir.c inode = jffs2_new_inode(dir_i, mode, ri); inode 496 fs/jffs2/dir.c if (IS_ERR(inode)) { inode 499 fs/jffs2/dir.c return PTR_ERR(inode); inode 502 fs/jffs2/dir.c inode->i_op = &jffs2_dir_inode_operations; inode 503 fs/jffs2/dir.c inode->i_fop = &jffs2_dir_operations; inode 505 fs/jffs2/dir.c f = JFFS2_INODE_INFO(inode); inode 508 fs/jffs2/dir.c inode->i_nlink = 2; inode 523 fs/jffs2/dir.c jffs2_clear_inode(inode); inode 534 fs/jffs2/dir.c ret = jffs2_init_security(inode, dir_i); inode 536 fs/jffs2/dir.c jffs2_clear_inode(inode); inode 539 fs/jffs2/dir.c ret = jffs2_init_acl_post(inode); inode 541 fs/jffs2/dir.c jffs2_clear_inode(inode); inode 549 fs/jffs2/dir.c jffs2_clear_inode(inode); inode 557 fs/jffs2/dir.c jffs2_clear_inode(inode); inode 571 fs/jffs2/dir.c rd->ino = cpu_to_je32(inode->i_ino); inode 586 fs/jffs2/dir.c jffs2_clear_inode(inode); inode 602 fs/jffs2/dir.c d_instantiate(dentry, inode); inode 634 fs/jffs2/dir.c struct inode *inode; inode 669 fs/jffs2/dir.c inode = jffs2_new_inode(dir_i, mode, ri); inode 671 fs/jffs2/dir.c if (IS_ERR(inode)) { inode 674 fs/jffs2/dir.c return PTR_ERR(inode); inode 676 fs/jffs2/dir.c inode->i_op = &jffs2_file_inode_operations; inode 677 fs/jffs2/dir.c init_special_inode(inode, inode->i_mode, rdev); inode 679 fs/jffs2/dir.c f = JFFS2_INODE_INFO(inode); inode 697 fs/jffs2/dir.c jffs2_clear_inode(inode); inode 708 fs/jffs2/dir.c ret = jffs2_init_security(inode, dir_i); inode 710 fs/jffs2/dir.c jffs2_clear_inode(inode); inode 713 fs/jffs2/dir.c ret = jffs2_init_acl_post(inode); inode 715 fs/jffs2/dir.c jffs2_clear_inode(inode); inode 723 fs/jffs2/dir.c jffs2_clear_inode(inode); inode 731 fs/jffs2/dir.c jffs2_clear_inode(inode); inode 745 fs/jffs2/dir.c rd->ino = cpu_to_je32(inode->i_ino); inode 763 fs/jffs2/dir.c jffs2_clear_inode(inode); inode 778 fs/jffs2/dir.c d_instantiate(dentry, inode); inode 32 fs/jffs2/file.c struct inode *inode = dentry->d_inode; inode 33 fs/jffs2/file.c struct jffs2_sb_info *c = JFFS2_SB_INFO(inode->i_sb); inode 36 fs/jffs2/file.c jffs2_flush_wbuf_gc(c, inode->i_ino); inode 76 fs/jffs2/file.c struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode); inode 77 fs/jffs2/file.c struct jffs2_sb_info *c = JFFS2_SB_INFO(inode->i_sb); inode 81 fs/jffs2/file.c D2(printk(KERN_DEBUG "jffs2_do_readpage_nolock(): ino #%lu, page at offset 0x%lx\n", inode->i_ino, pg->index << PAGE_CACHE_SHIFT)); inode 107 fs/jffs2/file.c int ret = jffs2_do_readpage_nolock(inode, pg); inode 129 fs/jffs2/file.c struct inode *inode = mapping->host; inode 130 fs/jffs2/file.c struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode); inode 142 fs/jffs2/file.c if (pageofs > inode->i_size) { inode 144 fs/jffs2/file.c struct jffs2_sb_info *c = JFFS2_SB_INFO(inode->i_sb); inode 150 fs/jffs2/file.c (unsigned int)inode->i_size, pageofs)); inode 167 fs/jffs2/file.c ri.mode = cpu_to_jemode(inode->i_mode); inode 168 fs/jffs2/file.c ri.uid = cpu_to_je16(inode->i_uid); inode 169 fs/jffs2/file.c ri.gid = cpu_to_je16(inode->i_gid); inode 170 fs/jffs2/file.c ri.isize = cpu_to_je32(max((uint32_t)inode->i_size, pageofs)); inode 172 fs/jffs2/file.c ri.offset = cpu_to_je32(inode->i_size); inode 173 fs/jffs2/file.c ri.dsize = cpu_to_je32(pageofs - inode->i_size); inode 202 fs/jffs2/file.c inode->i_size = pageofs; inode 213 fs/jffs2/file.c ret = jffs2_do_readpage_nolock(inode, pg); inode 234 fs/jffs2/file.c struct inode *inode = mapping->host; inode 235 fs/jffs2/file.c struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode); inode 236 fs/jffs2/file.c struct jffs2_sb_info *c = JFFS2_SB_INFO(inode->i_sb); inode 245 fs/jffs2/file.c inode->i_ino, pg->index << PAGE_CACHE_SHIFT, start, end, pg->flags)); inode 271 fs/jffs2/file.c ri->ino = cpu_to_je32(inode->i_ino); inode 272 fs/jffs2/file.c ri->mode = cpu_to_jemode(inode->i_mode); inode 273 fs/jffs2/file.c ri->uid = cpu_to_je16(inode->i_uid); inode 274 fs/jffs2/file.c ri->gid = cpu_to_je16(inode->i_gid); inode 275 fs/jffs2/file.c ri->isize = cpu_to_je32((uint32_t)inode->i_size); inode 297 fs/jffs2/file.c if (inode->i_size < pos + writtenlen) { inode 298 fs/jffs2/file.c inode->i_size = pos + writtenlen; inode 299 fs/jffs2/file.c inode->i_blocks = (inode->i_size + 511) >> 9; inode 301 fs/jffs2/file.c inode->i_ctime = inode->i_mtime = ITIME(je32_to_cpu(ri->ctime)); inode 30 fs/jffs2/fs.c struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode); inode 31 fs/jffs2/fs.c struct jffs2_sb_info *c = JFFS2_SB_INFO(inode->i_sb); inode 41 fs/jffs2/fs.c D1(printk(KERN_DEBUG "jffs2_setattr(): ino #%lu\n", inode->i_ino)); inode 48 fs/jffs2/fs.c if (S_ISBLK(inode->i_mode) || S_ISCHR(inode->i_mode)) { inode 50 fs/jffs2/fs.c mdatalen = jffs2_encode_dev(&dev, inode->i_rdev); inode 53 fs/jffs2/fs.c } else if (S_ISLNK(inode->i_mode)) { inode 73 fs/jffs2/fs.c if (S_ISLNK(inode->i_mode)) inode 82 fs/jffs2/fs.c if (S_ISLNK(inode->i_mode & S_IFMT)) inode 94 fs/jffs2/fs.c ri->ino = cpu_to_je32(inode->i_ino); inode 97 fs/jffs2/fs.c ri->uid = cpu_to_je16((ivalid & ATTR_UID)?iattr->ia_uid:inode->i_uid); inode 98 fs/jffs2/fs.c ri->gid = cpu_to_je16((ivalid & ATTR_GID)?iattr->ia_gid:inode->i_gid); inode 103 fs/jffs2/fs.c ri->mode = cpu_to_jemode(inode->i_mode); inode 106 fs/jffs2/fs.c ri->isize = cpu_to_je32((ivalid & ATTR_SIZE)?iattr->ia_size:inode->i_size); inode 107 fs/jffs2/fs.c ri->atime = cpu_to_je32(I_SEC((ivalid & ATTR_ATIME)?iattr->ia_atime:inode->i_atime)); inode 108 fs/jffs2/fs.c ri->mtime = cpu_to_je32(I_SEC((ivalid & ATTR_MTIME)?iattr->ia_mtime:inode->i_mtime)); inode 109 fs/jffs2/fs.c ri->ctime = cpu_to_je32(I_SEC((ivalid & ATTR_CTIME)?iattr->ia_ctime:inode->i_ctime)); inode 114 fs/jffs2/fs.c if (ivalid & ATTR_SIZE && inode->i_size < iattr->ia_size) { inode 117 fs/jffs2/fs.c ri->dsize = cpu_to_je32(iattr->ia_size - inode->i_size); inode 118 fs/jffs2/fs.c ri->offset = cpu_to_je32(inode->i_size); inode 131 fs/jffs2/fs.c if (S_ISLNK(inode->i_mode)) inode 141 fs/jffs2/fs.c inode->i_atime = ITIME(je32_to_cpu(ri->atime)); inode 142 fs/jffs2/fs.c inode->i_ctime = ITIME(je32_to_cpu(ri->ctime)); inode 143 fs/jffs2/fs.c inode->i_mtime = ITIME(je32_to_cpu(ri->mtime)); inode 144 fs/jffs2/fs.c inode->i_mode = jemode_to_cpu(ri->mode); inode 145 fs/jffs2/fs.c inode->i_uid = je16_to_cpu(ri->uid); inode 146 fs/jffs2/fs.c inode->i_gid = je16_to_cpu(ri->gid); inode 151 fs/jffs2/fs.c if (ivalid & ATTR_SIZE && inode->i_size > iattr->ia_size) inode 154 fs/jffs2/fs.c if (ivalid & ATTR_SIZE && inode->i_size < iattr->ia_size) { inode 156 fs/jffs2/fs.c inode->i_size = iattr->ia_size; inode 157 fs/jffs2/fs.c inode->i_blocks = (inode->i_size + 511) >> 9; inode 176 fs/jffs2/fs.c if (ivalid & ATTR_SIZE && inode->i_size > iattr->ia_size) { inode 177 fs/jffs2/fs.c vmtruncate(inode, iattr->ia_size); inode 178 fs/jffs2/fs.c inode->i_blocks = (inode->i_size + 511) >> 9; inode 230 fs/jffs2/fs.c struct jffs2_sb_info *c = JFFS2_SB_INFO(inode->i_sb); inode 231 fs/jffs2/fs.c struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode); inode 233 fs/jffs2/fs.c D1(printk(KERN_DEBUG "jffs2_clear_inode(): ino #%lu mode %o\n", inode->i_ino, inode->i_mode)); inode 237 fs/jffs2/fs.c struct inode *jffs2_iget(struct super_block *sb, unsigned long ino) inode 243 fs/jffs2/fs.c struct inode *inode; inode 249 fs/jffs2/fs.c inode = iget_locked(sb, ino); inode 250 fs/jffs2/fs.c if (!inode) inode 252 fs/jffs2/fs.c if (!(inode->i_state & I_NEW)) inode 253 fs/jffs2/fs.c return inode; inode 255 fs/jffs2/fs.c f = JFFS2_INODE_INFO(inode); inode 256 fs/jffs2/fs.c c = JFFS2_SB_INFO(inode->i_sb); inode 261 fs/jffs2/fs.c ret = jffs2_do_read_inode(c, f, inode->i_ino, &latest_node); inode 265 fs/jffs2/fs.c iget_failed(inode); inode 268 fs/jffs2/fs.c inode->i_mode = jemode_to_cpu(latest_node.mode); inode 269 fs/jffs2/fs.c inode->i_uid = je16_to_cpu(latest_node.uid); inode 270 fs/jffs2/fs.c inode->i_gid = je16_to_cpu(latest_node.gid); inode 271 fs/jffs2/fs.c inode->i_size = je32_to_cpu(latest_node.isize); inode 272 fs/jffs2/fs.c inode->i_atime = ITIME(je32_to_cpu(latest_node.atime)); inode 273 fs/jffs2/fs.c inode->i_mtime = ITIME(je32_to_cpu(latest_node.mtime)); inode 274 fs/jffs2/fs.c inode->i_ctime = ITIME(je32_to_cpu(latest_node.ctime)); inode 276 fs/jffs2/fs.c inode->i_nlink = f->inocache->pino_nlink; inode 278 fs/jffs2/fs.c inode->i_blocks = (inode->i_size + 511) >> 9; inode 280 fs/jffs2/fs.c switch (inode->i_mode & S_IFMT) { inode 283 fs/jffs2/fs.c inode->i_op = &jffs2_symlink_inode_operations; inode 289 fs/jffs2/fs.c inode->i_nlink = 2; /* parent and '.' */ inode 293 fs/jffs2/fs.c inc_nlink(inode); inode 296 fs/jffs2/fs.c if (inode->i_ino == 1) inode 297 fs/jffs2/fs.c inc_nlink(inode); inode 299 fs/jffs2/fs.c inode->i_op = &jffs2_dir_inode_operations; inode 300 fs/jffs2/fs.c inode->i_fop = &jffs2_dir_operations; inode 304 fs/jffs2/fs.c inode->i_op = &jffs2_file_inode_operations; inode 305 fs/jffs2/fs.c inode->i_fop = &jffs2_file_operations; inode 306 fs/jffs2/fs.c inode->i_mapping->a_ops = &jffs2_file_address_operations; inode 307 fs/jffs2/fs.c inode->i_mapping->nrpages = 0; inode 322 fs/jffs2/fs.c printk(KERN_NOTICE "Read device numbers for inode %lu failed\n", (unsigned long)inode->i_ino); inode 332 fs/jffs2/fs.c inode->i_op = &jffs2_file_inode_operations; inode 333 fs/jffs2/fs.c init_special_inode(inode, inode->i_mode, rdev); inode 337 fs/jffs2/fs.c printk(KERN_WARNING "jffs2_read_inode(): Bogus imode %o for ino %lu\n", inode->i_mode, (unsigned long)inode->i_ino); inode 343 fs/jffs2/fs.c unlock_new_inode(inode); inode 344 fs/jffs2/fs.c return inode; inode 351 fs/jffs2/fs.c iget_failed(inode); inode 359 fs/jffs2/fs.c if (!(inode->i_state & I_DIRTY_DATASYNC)) { inode 360 fs/jffs2/fs.c D2(printk(KERN_DEBUG "jffs2_dirty_inode() not calling setattr() for ino #%lu\n", inode->i_ino)); inode 364 fs/jffs2/fs.c D1(printk(KERN_DEBUG "jffs2_dirty_inode() calling setattr() for ino #%lu\n", inode->i_ino)); inode 367 fs/jffs2/fs.c iattr.ia_mode = inode->i_mode; inode 368 fs/jffs2/fs.c iattr.ia_uid = inode->i_uid; inode 369 fs/jffs2/fs.c iattr.ia_gid = inode->i_gid; inode 370 fs/jffs2/fs.c iattr.ia_atime = inode->i_atime; inode 371 fs/jffs2/fs.c iattr.ia_mtime = inode->i_mtime; inode 372 fs/jffs2/fs.c iattr.ia_ctime = inode->i_ctime; inode 374 fs/jffs2/fs.c jffs2_do_setattr(inode, &iattr); inode 420 fs/jffs2/fs.c struct inode *jffs2_new_inode (struct inode *dir_i, int mode, struct jffs2_raw_inode *ri) inode 422 fs/jffs2/fs.c struct inode *inode; inode 432 fs/jffs2/fs.c inode = new_inode(sb); inode 434 fs/jffs2/fs.c if (!inode) inode 437 fs/jffs2/fs.c f = JFFS2_INODE_INFO(inode); inode 455 fs/jffs2/fs.c ret = jffs2_init_acl_pre(dir_i, inode, &mode); inode 457 fs/jffs2/fs.c make_bad_inode(inode); inode 458 fs/jffs2/fs.c iput(inode); inode 463 fs/jffs2/fs.c make_bad_inode(inode); inode 464 fs/jffs2/fs.c iput(inode); inode 467 fs/jffs2/fs.c inode->i_nlink = 1; inode 468 fs/jffs2/fs.c inode->i_ino = je32_to_cpu(ri->ino); inode 469 fs/jffs2/fs.c inode->i_mode = jemode_to_cpu(ri->mode); inode 470 fs/jffs2/fs.c inode->i_gid = je16_to_cpu(ri->gid); inode 471 fs/jffs2/fs.c inode->i_uid = je16_to_cpu(ri->uid); inode 472 fs/jffs2/fs.c inode->i_atime = inode->i_ctime = inode->i_mtime = CURRENT_TIME_SEC; inode 473 fs/jffs2/fs.c ri->atime = ri->mtime = ri->ctime = cpu_to_je32(I_SEC(inode->i_mtime)); inode 475 fs/jffs2/fs.c inode->i_blocks = 0; inode 476 fs/jffs2/fs.c inode->i_size = 0; inode 478 fs/jffs2/fs.c insert_inode_hash(inode); inode 480 fs/jffs2/fs.c return inode; inode 487 fs/jffs2/fs.c struct inode *root_i; inode 590 fs/jffs2/fs.c struct inode *inode; inode 608 fs/jffs2/fs.c inode = ilookup(OFNI_BS_2SFFJ(c), inum); inode 609 fs/jffs2/fs.c if (!inode) { inode 636 fs/jffs2/fs.c inode = jffs2_iget(OFNI_BS_2SFFJ(c), inum); inode 637 fs/jffs2/fs.c if (IS_ERR(inode)) inode 638 fs/jffs2/fs.c return ERR_CAST(inode); inode 640 fs/jffs2/fs.c if (is_bad_inode(inode)) { inode 644 fs/jffs2/fs.c iput(inode); inode 648 fs/jffs2/fs.c return JFFS2_INODE_INFO(inode); inode 656 fs/jffs2/fs.c struct inode *inode = OFNI_EDONI_2SFFJ(f); inode 659 fs/jffs2/fs.c pg = read_cache_page_async(inode->i_mapping, offset >> PAGE_CACHE_SHIFT, inode 660 fs/jffs2/fs.c (void *)jffs2_do_readpage_unlock, inode); inode 52 fs/jffs2/jffs2_fs_i.h struct inode vfs_inode; inode 178 fs/jffs2/os-linux.h struct inode *jffs2_iget(struct super_block *, unsigned long); inode 181 fs/jffs2/os-linux.h struct inode *jffs2_new_inode (struct inode *dir_i, int mode, inode 33 fs/jffs2/security.c rc = security_inode_init_security(inode, dir, &name, &value, &len); inode 39 fs/jffs2/security.c rc = do_jffs2_setxattr(inode, JFFS2_XPREFIX_SECURITY, name, value, len, 0); inode 53 fs/jffs2/security.c return do_jffs2_getxattr(inode, JFFS2_XPREFIX_SECURITY, name, buffer, size); inode 62 fs/jffs2/security.c return do_jffs2_setxattr(inode, JFFS2_XPREFIX_SECURITY, name, buffer, size, flags); inode 74 fs/jffs2/summary.c je32_to_cpu(item->i.inode)); inode 122 fs/jffs2/summary.c temp->inode = ri->ino; inode 270 fs/jffs2/summary.c temp->inode = node->i.ino; inode 410 fs/jffs2/summary.c ino = je32_to_cpu(spi->inode); inode 721 fs/jffs2/summary.c sino_ptr->inode = temp->i.inode; inode 48 fs/jffs2/summary.h jint32_t inode; /* inode number */ inode 103 fs/jffs2/summary.h jint32_t inode; /* inode number */ inode 32 fs/jffs2/super.c static struct inode *jffs2_alloc_inode(struct super_block *sb) inode 44 fs/jffs2/super.c kmem_cache_free(jffs2_inode_cachep, JFFS2_INODE_INFO(inode)); inode 952 fs/jffs2/xattr.c struct inode *inode = dentry->d_inode; inode 953 fs/jffs2/xattr.c struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode); inode 954 fs/jffs2/xattr.c struct jffs2_sb_info *c = JFFS2_SB_INFO(inode->i_sb); inode 993 fs/jffs2/xattr.c rc = xhandle->list(inode, buffer+len, size-len, xd->xname, xd->name_len); inode 995 fs/jffs2/xattr.c rc = xhandle->list(inode, NULL, 0, xd->xname, xd->name_len); inode 1014 fs/jffs2/xattr.c struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode); inode 1015 fs/jffs2/xattr.c struct jffs2_sb_info *c = JFFS2_SB_INFO(inode->i_sb); inode 1076 fs/jffs2/xattr.c struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode); inode 1077 fs/jffs2/xattr.c struct jffs2_sb_info *c = JFFS2_SB_INFO(inode->i_sb); inode 24 fs/jffs2/xattr_trusted.c return do_jffs2_getxattr(inode, JFFS2_XPREFIX_TRUSTED, name, buffer, size); inode 32 fs/jffs2/xattr_trusted.c return do_jffs2_setxattr(inode, JFFS2_XPREFIX_TRUSTED, name, buffer, size, flags); inode 24 fs/jffs2/xattr_user.c return do_jffs2_getxattr(inode, JFFS2_XPREFIX_USER, name, buffer, size); inode 32 fs/jffs2/xattr_user.c return do_jffs2_setxattr(inode, JFFS2_XPREFIX_USER, name, buffer, size, flags); inode 34 fs/jfs/acl.c struct jfs_inode_info *ji = JFS_IP(inode); inode 55 fs/jfs/acl.c size = __jfs_getxattr(inode, ea_name, NULL, 0); inode 61 fs/jfs/acl.c size = __jfs_getxattr(inode, ea_name, value, size); inode 83 fs/jfs/acl.c struct jfs_inode_info *ji = JFS_IP(inode); inode 89 fs/jfs/acl.c if (S_ISLNK(inode->i_mode)) inode 100 fs/jfs/acl.c if (!S_ISDIR(inode->i_mode)) inode 115 fs/jfs/acl.c rc = __jfs_setxattr(tid, inode, ea_name, value, size, 0); inode 129 fs/jfs/acl.c struct jfs_inode_info *ji = JFS_IP(inode); inode 132 fs/jfs/acl.c struct posix_acl *acl = jfs_get_acl(inode, ACL_TYPE_ACCESS); inode 139 fs/jfs/acl.c return posix_acl_permission(inode, ji->i_acl, mask); inode 145 fs/jfs/acl.c return generic_permission(inode, mask, jfs_check_acl); inode 155 fs/jfs/acl.c if (S_ISLNK(inode->i_mode)) inode 163 fs/jfs/acl.c if (S_ISDIR(inode->i_mode)) { inode 164 fs/jfs/acl.c rc = jfs_set_acl(tid, inode, ACL_TYPE_DEFAULT, acl); inode 173 fs/jfs/acl.c mode = inode->i_mode; inode 176 fs/jfs/acl.c inode->i_mode = mode; inode 178 fs/jfs/acl.c rc = jfs_set_acl(tid, inode, ACL_TYPE_ACCESS, inode 185 fs/jfs/acl.c inode->i_mode &= ~current->fs->umask; inode 187 fs/jfs/acl.c JFS_IP(inode)->mode2 = (JFS_IP(inode)->mode2 & 0xffff0000) | inode 188 fs/jfs/acl.c inode->i_mode; inode 198 fs/jfs/acl.c if (S_ISLNK(inode->i_mode)) inode 201 fs/jfs/acl.c acl = jfs_get_acl(inode, ACL_TYPE_ACCESS); inode 210 fs/jfs/acl.c rc = posix_acl_chmod_masq(clone, inode->i_mode); inode 212 fs/jfs/acl.c tid_t tid = txBegin(inode->i_sb, 0); inode 213 fs/jfs/acl.c mutex_lock(&JFS_IP(inode)->commit_mutex); inode 214 fs/jfs/acl.c rc = jfs_set_acl(tid, inode, ACL_TYPE_ACCESS, clone); inode 216 fs/jfs/acl.c rc = txCommit(tid, 1, &inode, 0); inode 218 fs/jfs/acl.c mutex_unlock(&JFS_IP(inode)->commit_mutex); inode 227 fs/jfs/acl.c struct inode *inode = dentry->d_inode; inode 230 fs/jfs/acl.c rc = inode_change_ok(inode, iattr); inode 234 fs/jfs/acl.c if ((iattr->ia_valid & ATTR_UID && iattr->ia_uid != inode->i_uid) || inode 235 fs/jfs/acl.c (iattr->ia_valid & ATTR_GID && iattr->ia_gid != inode->i_gid)) { inode 236 fs/jfs/acl.c if (DQUOT_TRANSFER(inode, iattr)) inode 240 fs/jfs/acl.c rc = inode_setattr(inode, iattr); inode 243 fs/jfs/acl.c rc = jfs_acl_chmod(inode); inode 31 fs/jfs/file.c struct inode *inode = dentry->d_inode; inode 34 fs/jfs/file.c if (!(inode->i_state & I_DIRTY) || inode 35 fs/jfs/file.c (datasync && !(inode->i_state & I_DIRTY_DATASYNC))) { inode 37 fs/jfs/file.c jfs_flush_journal(JFS_SBI(inode->i_sb)->log, 1); inode 41 fs/jfs/file.c rc |= jfs_commit_inode(inode, 1); inode 50 fs/jfs/file.c if ((rc = generic_file_open(inode, file))) inode 62 fs/jfs/file.c if (S_ISREG(inode->i_mode) && file->f_mode & FMODE_WRITE && inode 63 fs/jfs/file.c (inode->i_size == 0)) { inode 64 fs/jfs/file.c struct jfs_inode_info *ji = JFS_IP(inode); inode 69 fs/jfs/file.c &JFS_SBI(inode->i_sb)->bmap->db_active[ji->agno]); inode 78 fs/jfs/file.c struct jfs_inode_info *ji = JFS_IP(inode); inode 82 fs/jfs/file.c struct bmap *bmap = JFS_SBI(inode->i_sb)->bmap; inode 34 fs/jfs/inode.c struct inode *jfs_iget(struct super_block *sb, unsigned long ino) inode 36 fs/jfs/inode.c struct inode *inode; inode 39 fs/jfs/inode.c inode = iget_locked(sb, ino); inode 40 fs/jfs/inode.c if (!inode) inode 42 fs/jfs/inode.c if (!(inode->i_state & I_NEW)) inode 43 fs/jfs/inode.c return inode; inode 45 fs/jfs/inode.c ret = diRead(inode); inode 47 fs/jfs/inode.c iget_failed(inode); inode 51 fs/jfs/inode.c if (S_ISREG(inode->i_mode)) { inode 52 fs/jfs/inode.c inode->i_op = &jfs_file_inode_operations; inode 53 fs/jfs/inode.c inode->i_fop = &jfs_file_operations; inode 54 fs/jfs/inode.c inode->i_mapping->a_ops = &jfs_aops; inode 55 fs/jfs/inode.c } else if (S_ISDIR(inode->i_mode)) { inode 56 fs/jfs/inode.c inode->i_op = &jfs_dir_inode_operations; inode 57 fs/jfs/inode.c inode->i_fop = &jfs_dir_operations; inode 58 fs/jfs/inode.c } else if (S_ISLNK(inode->i_mode)) { inode 59 fs/jfs/inode.c if (inode->i_size >= IDATASIZE) { inode 60 fs/jfs/inode.c inode->i_op = &page_symlink_inode_operations; inode 61 fs/jfs/inode.c inode->i_mapping->a_ops = &jfs_aops; inode 63 fs/jfs/inode.c inode->i_op = &jfs_symlink_inode_operations; inode 65 fs/jfs/inode.c inode->i_op = &jfs_file_inode_operations; inode 66 fs/jfs/inode.c init_special_inode(inode, inode->i_mode, inode->i_rdev); inode 68 fs/jfs/inode.c unlock_new_inode(inode); inode 69 fs/jfs/inode.c return inode; inode 81 fs/jfs/inode.c jfs_info("In jfs_commit_inode, inode = 0x%p", inode); inode 87 fs/jfs/inode.c if (inode->i_nlink == 0 || !test_cflag(COMMIT_Dirty, inode)) inode 90 fs/jfs/inode.c if (isReadOnly(inode)) { inode 94 fs/jfs/inode.c if (!special_file(inode->i_mode) && noisy) { inode 96 fs/jfs/inode.c "read-only volume", inode); inode 103 fs/jfs/inode.c tid = txBegin(inode->i_sb, COMMIT_INODE); inode 104 fs/jfs/inode.c mutex_lock(&JFS_IP(inode)->commit_mutex); inode 109 fs/jfs/inode.c if (inode->i_nlink && test_cflag(COMMIT_Dirty, inode)) inode 110 fs/jfs/inode.c rc = txCommit(tid, 1, &inode, wait ? COMMIT_SYNC : 0); inode 113 fs/jfs/inode.c mutex_unlock(&JFS_IP(inode)->commit_mutex); inode 119 fs/jfs/inode.c if (test_cflag(COMMIT_Nolink, inode)) inode 126 fs/jfs/inode.c if (!test_cflag(COMMIT_Dirty, inode)) { inode 128 fs/jfs/inode.c jfs_flush_journal(JFS_SBI(inode->i_sb)->log, wait); inode 132 fs/jfs/inode.c if (jfs_commit_inode(inode, wait)) { inode 141 fs/jfs/inode.c jfs_info("In jfs_delete_inode, inode = 0x%p", inode); inode 143 fs/jfs/inode.c if (!is_bad_inode(inode) && inode 144 fs/jfs/inode.c (JFS_IP(inode)->fileset == FILESYSTEM_I)) { inode 145 fs/jfs/inode.c truncate_inode_pages(&inode->i_data, 0); inode 147 fs/jfs/inode.c if (test_cflag(COMMIT_Freewmap, inode)) inode 148 fs/jfs/inode.c jfs_free_zero_link(inode); inode 150 fs/jfs/inode.c diFree(inode); inode 155 fs/jfs/inode.c DQUOT_INIT(inode); inode 156 fs/jfs/inode.c DQUOT_FREE_INODE(inode); inode 157 fs/jfs/inode.c DQUOT_DROP(inode); inode 160 fs/jfs/inode.c clear_inode(inode); inode 167 fs/jfs/inode.c if (isReadOnly(inode)) { inode 168 fs/jfs/inode.c if (!special_file(inode->i_mode) && noisy) { inode 179 fs/jfs/inode.c set_cflag(COMMIT_Dirty, inode); inode 307 fs/jfs/inode.c struct inode *inode = file->f_mapping->host; inode 309 fs/jfs/inode.c return blockdev_direct_IO(rw, iocb, inode, inode->i_sb->s_bdev, iov, inode 57 fs/jfs/ioctl.c struct inode *inode = filp->f_dentry->d_inode; inode 58 fs/jfs/ioctl.c struct jfs_inode_info *jfs_inode = JFS_IP(inode); inode 75 fs/jfs/ioctl.c if (!is_owner_or_cap(inode)) { inode 85 fs/jfs/ioctl.c if (!S_ISDIR(inode->i_mode)) inode 89 fs/jfs/ioctl.c if (IS_NOQUOTA(inode)) { inode 95 fs/jfs/ioctl.c mutex_lock(&inode->i_mutex); inode 108 fs/jfs/ioctl.c mutex_unlock(&inode->i_mutex); inode 118 fs/jfs/ioctl.c jfs_set_inode_flags(inode); inode 119 fs/jfs/ioctl.c mutex_unlock(&inode->i_mutex); inode 120 fs/jfs/ioctl.c inode->i_ctime = CURRENT_TIME_SEC; inode 121 fs/jfs/ioctl.c mark_inode_dirty(inode); inode 337 fs/jfs/jfs_dmap.c struct inode *ipbmap = JFS_SBI(ip->i_sb)->ipbmap; inode 697 fs/jfs/jfs_dmap.c struct inode *ipbmap = JFS_SBI(ip->i_sb)->ipbmap; inode 890 fs/jfs/jfs_dmap.c struct inode *ipbmap = JFS_SBI(ip->i_sb)->ipbmap; inode 1028 fs/jfs/jfs_dmap.c struct inode *ipbmap = sbi->ipbmap; inode 3109 fs/jfs/jfs_dmap.c struct inode *ipbmap = JFS_SBI(ip->i_sb)->ipbmap; inode 245 fs/jfs/jfs_dmap.h struct inode *db_ipbmap; /* ptr to aggregate map incore inode */ inode 214 fs/jfs/jfs_dtree.c rc = xtLookup(inode, blkno, 1, &xflag, &xaddr, &xlen, 1); inode 218 fs/jfs/jfs_dtree.c return read_metapage(inode, xaddr, PSIZE, 1); inode 233 fs/jfs/jfs_dtree.c rc = xtLookup(inode, blkno, 1, &xflag, &xaddr, &xlen, 1); inode 237 fs/jfs/jfs_dtree.c return get_metapage(inode, xaddr, PSIZE, 1); inode 2929 fs/jfs/jfs_dtree.c tid = txBegin(inode->i_sb, 0); inode 2931 fs/jfs/jfs_dtree.c DT_GETPAGE(inode, bn, mp, PSIZE, p, rc); inode 2937 fs/jfs/jfs_dtree.c BT_MARK_DIRTY(mp, inode); inode 2941 fs/jfs/jfs_dtree.c tlck = txLock(tid, inode, mp, tlckDTREE | tlckENTRY); inode 2951 fs/jfs/jfs_dtree.c if ((index < 2) || (index >= JFS_IP(inode)->next_index)) { inode 2952 fs/jfs/jfs_dtree.c d->index = cpu_to_le32(add_index(tid, inode, bn, i)); inode 2963 fs/jfs/jfs_dtree.c (void) txCommit(tid, 1, &inode, 0); inode 3004 fs/jfs/jfs_dtree.c struct inode *ip = filp->f_path.dentry->d_inode; inode 30 fs/jfs/jfs_dtree.h struct inode *ip; inode 313 fs/jfs/jfs_imap.c struct inode *ipimap; inode 434 fs/jfs/jfs_imap.c struct inode *diReadSpecial(struct super_block *sb, ino_t inum, int secondary) inode 439 fs/jfs/jfs_imap.c struct inode *ip; inode 612 fs/jfs/jfs_imap.c struct inode *ipimap; inode 871 fs/jfs/jfs_imap.c struct inode *ipimap = JFS_SBI(ip->i_sb)->ipimap; inode 875 fs/jfs/jfs_imap.c struct inode *iplist[3]; inode 1278 fs/jfs/jfs_imap.c iplist[1] = (struct inode *) (size_t)iagno; inode 1279 fs/jfs/jfs_imap.c iplist[2] = (struct inode *) (size_t)extno; inode 1348 fs/jfs/jfs_imap.c struct inode *ipimap; inode 2181 fs/jfs/jfs_imap.c struct inode *ipimap; inode 2462 fs/jfs/jfs_imap.c struct inode *ipimap; inode 2470 fs/jfs/jfs_imap.c struct inode *iplist[1]; inode 2682 fs/jfs/jfs_imap.c struct inode *ipimap = imap->im_ipimap; inode 3010 fs/jfs/jfs_imap.c struct inode *ip; inode 142 fs/jfs/jfs_imap.h struct inode *im_ipimap; /* 4: ptr to inode for imap */ inode 171 fs/jfs/jfs_imap.h extern struct inode *diReadSpecial(struct super_block *, ino_t, int); inode 51 fs/jfs/jfs_incore.h struct inode *ipimap; /* inode map */ inode 101 fs/jfs/jfs_incore.h struct inode vfs_inode; inode 166 fs/jfs/jfs_incore.h struct inode *ipbmap; /* block map inode */ inode 167 fs/jfs/jfs_incore.h struct inode *ipaimap; /* aggregate inode map inode */ inode 168 fs/jfs/jfs_incore.h struct inode *ipaimap2; /* secondary aimap inode */ inode 169 fs/jfs/jfs_incore.h struct inode *ipimap; /* aggregate inode map inode */ inode 196 fs/jfs/jfs_incore.h struct inode *direct_inode; /* metadata inode */ inode 210 fs/jfs/jfs_incore.h return list_entry(inode, struct jfs_inode_info, vfs_inode); inode 215 fs/jfs/jfs_incore.h return (JFS_IP(inode)->next_index <= (MAX_INLINE_DIRTABLE_ENTRY + 1)); inode 225 fs/jfs/jfs_incore.h if (JFS_SBI(inode->i_sb)->log) inode 31 fs/jfs/jfs_inode.c unsigned int flags = JFS_IP(inode)->mode2; inode 33 fs/jfs/jfs_inode.c inode->i_flags &= ~(S_IMMUTABLE | S_APPEND | inode 37 fs/jfs/jfs_inode.c inode->i_flags |= S_IMMUTABLE; inode 39 fs/jfs/jfs_inode.c inode->i_flags |= S_APPEND; inode 41 fs/jfs/jfs_inode.c inode->i_flags |= S_NOATIME; inode 43 fs/jfs/jfs_inode.c inode->i_flags |= S_DIRSYNC; inode 45 fs/jfs/jfs_inode.c inode->i_flags |= S_SYNC; inode 72 fs/jfs/jfs_inode.c struct inode *ialloc(struct inode *parent, umode_t mode) inode 75 fs/jfs/jfs_inode.c struct inode *inode; inode 79 fs/jfs/jfs_inode.c inode = new_inode(sb); inode 80 fs/jfs/jfs_inode.c if (!inode) { inode 85 fs/jfs/jfs_inode.c jfs_inode = JFS_IP(inode); inode 87 fs/jfs/jfs_inode.c rc = diAlloc(parent, S_ISDIR(mode), inode); inode 91 fs/jfs/jfs_inode.c make_bad_inode(inode); inode 92 fs/jfs/jfs_inode.c iput(inode); inode 96 fs/jfs/jfs_inode.c inode->i_uid = current->fsuid; inode 98 fs/jfs/jfs_inode.c inode->i_gid = parent->i_gid; inode 102 fs/jfs/jfs_inode.c inode->i_gid = current->fsgid; inode 108 fs/jfs/jfs_inode.c jfs_inode->saved_uid = inode->i_uid; inode 109 fs/jfs/jfs_inode.c jfs_inode->saved_gid = inode->i_gid; inode 114 fs/jfs/jfs_inode.c if (DQUOT_ALLOC_INODE(inode)) { inode 115 fs/jfs/jfs_inode.c DQUOT_DROP(inode); inode 116 fs/jfs/jfs_inode.c inode->i_flags |= S_NOQUOTA; inode 117 fs/jfs/jfs_inode.c inode->i_nlink = 0; inode 118 fs/jfs/jfs_inode.c iput(inode); inode 122 fs/jfs/jfs_inode.c inode->i_mode = mode; inode 137 fs/jfs/jfs_inode.c inode->i_blocks = 0; inode 138 fs/jfs/jfs_inode.c inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; inode 139 fs/jfs/jfs_inode.c jfs_inode->otime = inode->i_ctime.tv_sec; inode 140 fs/jfs/jfs_inode.c inode->i_generation = JFS_SBI(sb)->gengen++; inode 156 fs/jfs/jfs_inode.c jfs_set_inode_flags(inode); inode 158 fs/jfs/jfs_inode.c jfs_info("ialloc returns inode = 0x%p\n", inode); inode 160 fs/jfs/jfs_inode.c return inode; inode 23 fs/jfs/jfs_inode.h extern struct inode *ialloc(struct inode *, umode_t); inode 27 fs/jfs/jfs_inode.h extern struct inode *jfs_iget(struct super_block *, unsigned long); inode 232 fs/jfs/jfs_logmgr.h __le32 inode; /* 4: inode number */ inode 248 fs/jfs/jfs_logmgr.h __le32 inode; /* 4: inode number */ inode 264 fs/jfs/jfs_logmgr.h __le32 inode; /* 4: inode number */ inode 329 fs/jfs/jfs_logmgr.h __le32 inode; /* 4: inode number */ inode 339 fs/jfs/jfs_logmgr.h __le32 inode; /* 4: inode number */ inode 259 fs/jfs/jfs_metapage.c sector_t file_blocks = (inode->i_size + inode->i_sb->s_blocksize - 1) >> inode 260 fs/jfs/jfs_metapage.c inode->i_blkbits; inode 267 fs/jfs/jfs_metapage.c if (inode->i_ino) { inode 268 fs/jfs/jfs_metapage.c rc = xtLookup(inode, (s64)lblock, *len, &xflag, &xaddr, len, 0); inode 358 fs/jfs/jfs_metapage.c struct inode *inode = page->mapping->host; inode 359 fs/jfs/jfs_metapage.c int blocks_per_mp = JFS_SBI(inode->i_sb)->nbperpage; inode 374 fs/jfs/jfs_metapage.c (PAGE_CACHE_SHIFT - inode->i_blkbits); inode 397 fs/jfs/jfs_metapage.c block_offset = offset >> inode->i_blkbits; inode 404 fs/jfs/jfs_metapage.c bio_bytes += len << inode->i_blkbits; inode 424 fs/jfs/jfs_metapage.c xlen = (PAGE_CACHE_SIZE - offset) >> inode->i_blkbits; inode 425 fs/jfs/jfs_metapage.c pblock = metapage_get_blocks(inode, lblock, &xlen); inode 433 fs/jfs/jfs_metapage.c len = min(xlen, (int)JFS_SBI(inode->i_sb)->nbperpage); inode 436 fs/jfs/jfs_metapage.c bio->bi_bdev = inode->i_sb->s_bdev; inode 437 fs/jfs/jfs_metapage.c bio->bi_sector = pblock << (inode->i_blkbits - 9); inode 443 fs/jfs/jfs_metapage.c bio_bytes = len << inode->i_blkbits; inode 483 fs/jfs/jfs_metapage.c struct inode *inode = page->mapping->host; inode 486 fs/jfs/jfs_metapage.c int blocks_per_page = PAGE_CACHE_SIZE >> inode->i_blkbits; inode 495 fs/jfs/jfs_metapage.c (PAGE_CACHE_SHIFT - inode->i_blkbits); inode 500 fs/jfs/jfs_metapage.c pblock = metapage_get_blocks(inode, page_start + block_offset, inode 510 fs/jfs/jfs_metapage.c bio->bi_bdev = inode->i_sb->s_bdev; inode 511 fs/jfs/jfs_metapage.c bio->bi_sector = pblock << (inode->i_blkbits - 9); inode 514 fs/jfs/jfs_metapage.c len = xlen << inode->i_blkbits; inode 515 fs/jfs/jfs_metapage.c offset = block_offset << inode->i_blkbits; inode 596 fs/jfs/jfs_metapage.c inode->i_ino, lblock, absolute); inode 598 fs/jfs/jfs_metapage.c l2bsize = inode->i_blkbits; inode 609 fs/jfs/jfs_metapage.c mapping = JFS_SBI(inode->i_sb)->direct_inode->i_mapping; inode 616 fs/jfs/jfs_metapage.c if ((lblock << inode->i_blkbits) >= inode->i_size) inode 618 fs/jfs/jfs_metapage.c mapping = inode->i_mapping; inode 640 fs/jfs/jfs_metapage.c jfs_error(inode->i_sb, inode 651 fs/jfs/jfs_metapage.c jfs_error(inode->i_sb, inode 68 fs/jfs/jfs_metapage.h __get_metapage(inode, lblock, size, absolute, false) inode 71 fs/jfs/jfs_metapage.h __get_metapage(inode, lblock, size, absolute, true) inode 85 fs/jfs/jfs_mount.c struct inode *ipaimap = NULL; inode 86 fs/jfs/jfs_mount.c struct inode *ipaimap2 = NULL; inode 87 fs/jfs/jfs_mount.c struct inode *ipimap = NULL; inode 88 fs/jfs/jfs_mount.c struct inode *ipbmap = NULL; inode 1147 fs/jfs/jfs_txnmgr.c struct inode *ip; inode 1386 fs/jfs/jfs_txnmgr.c struct inode *ip; inode 1403 fs/jfs/jfs_txnmgr.c lrd->log.redopage.inode = cpu_to_le32(ip->i_ino); inode 1705 fs/jfs/jfs_txnmgr.c struct inode *ip; inode 2297 fs/jfs/jfs_txnmgr.c struct inode *ip; inode 2298 fs/jfs/jfs_txnmgr.c struct inode *ipimap; inode 2444 fs/jfs/jfs_txnmgr.c struct inode *ipbmap = JFS_SBI(ip->i_sb)->ipbmap; inode 2502 fs/jfs/jfs_txnmgr.c struct inode *ipbmap = JFS_SBI(ip->i_sb)->ipbmap; inode 2864 fs/jfs/jfs_txnmgr.c struct inode *ip; inode 2936 fs/jfs/jfs_txnmgr.c struct inode *ip; inode 66 fs/jfs/jfs_txnmgr.h struct inode *ip; /* inode being deleted */ inode 105 fs/jfs/jfs_txnmgr.h struct inode *ip; /* 4/8: object */ inode 280 fs/jfs/jfs_txnmgr.h struct inode **iplist; /* list of pointers to inodes */ inode 53 fs/jfs/jfs_umount.c struct inode *ipbmap = sbi->ipbmap; inode 54 fs/jfs/jfs_umount.c struct inode *ipimap = sbi->ipimap; inode 55 fs/jfs/jfs_umount.c struct inode *ipaimap = sbi->ipaimap; inode 56 fs/jfs/jfs_umount.c struct inode *ipaimap2 = sbi->ipaimap2; inode 50 fs/jfs/namei.c dxd_t *ea = &JFS_IP(inode)->ea; inode 54 fs/jfs/namei.c invalidate_dxd_metapages(inode, *ea); inode 55 fs/jfs/namei.c dbFree(inode, addressDXD(ea), lengthDXD(ea)); inode 79 fs/jfs/namei.c struct inode *ip = NULL; /* child directory inode */ inode 83 fs/jfs/namei.c struct inode *iplist[2]; inode 207 fs/jfs/namei.c struct inode *ip = NULL; /* child directory inode */ inode 211 fs/jfs/namei.c struct inode *iplist[2]; inode 346 fs/jfs/namei.c struct inode *ip = dentry->d_inode; inode 349 fs/jfs/namei.c struct inode *iplist[2]; inode 471 fs/jfs/namei.c struct inode *ip = dentry->d_inode; inode 474 fs/jfs/namei.c struct inode *iplist[2]; inode 789 fs/jfs/namei.c struct inode *ip = old_dentry->d_inode; inode 793 fs/jfs/namei.c struct inode *iplist[2]; inode 882 fs/jfs/namei.c struct inode *ip = dentry->d_inode; inode 891 fs/jfs/namei.c struct inode *iplist[2]; inode 1066 fs/jfs/namei.c struct inode *new_ip; inode 1068 fs/jfs/namei.c struct inode *old_ip; inode 1075 fs/jfs/namei.c struct inode *iplist[4]; inode 1346 fs/jfs/namei.c struct inode *ip; inode 1347 fs/jfs/namei.c struct inode *iplist[2]; inode 1436 fs/jfs/namei.c struct inode *ip; inode 1479 fs/jfs/namei.c static struct inode *jfs_nfs_get_inode(struct super_block *sb, inode 1482 fs/jfs/namei.c struct inode *inode; inode 1486 fs/jfs/namei.c inode = jfs_iget(sb, ino); inode 1487 fs/jfs/namei.c if (IS_ERR(inode)) inode 1488 fs/jfs/namei.c return ERR_CAST(inode); inode 1490 fs/jfs/namei.c if (generation && inode->i_generation != generation) { inode 1491 fs/jfs/namei.c iput(inode); inode 1495 fs/jfs/namei.c return inode; inode 1516 fs/jfs/namei.c struct inode *inode; inode 1521 fs/jfs/namei.c inode = jfs_iget(sb, parent_ino); inode 1522 fs/jfs/namei.c if (IS_ERR(inode)) { inode 1523 fs/jfs/namei.c parent = ERR_CAST(inode); inode 1525 fs/jfs/namei.c parent = d_alloc_anon(inode); inode 1528 fs/jfs/namei.c iput(inode); inode 66 fs/jfs/resize.c struct inode *ipbmap = sbi->ipbmap; inode 67 fs/jfs/resize.c struct inode *ipbmap2; inode 68 fs/jfs/resize.c struct inode *ipimap = sbi->ipimap; inode 81 fs/jfs/resize.c struct inode *iplist[1]; inode 106 fs/jfs/super.c static struct inode *jfs_alloc_inode(struct super_block *sb) inode 118 fs/jfs/super.c struct jfs_inode_info *ji = JFS_IP(inode); inode 124 fs/jfs/super.c struct bmap *bmap = JFS_SBI(inode->i_sb)->bmap; inode 415 fs/jfs/super.c struct inode *inode; inode 464 fs/jfs/super.c inode = new_inode(sb); inode 465 fs/jfs/super.c if (inode == NULL) { inode 469 fs/jfs/super.c inode->i_ino = 0; inode 470 fs/jfs/super.c inode->i_nlink = 1; inode 471 fs/jfs/super.c inode->i_size = sb->s_bdev->bd_inode->i_size; inode 472 fs/jfs/super.c inode->i_mapping->a_ops = &jfs_metapage_aops; inode 473 fs/jfs/super.c insert_inode_hash(inode); inode 474 fs/jfs/super.c mapping_set_gfp_mask(inode->i_mapping, GFP_NOFS); inode 476 fs/jfs/super.c sbi->direct_inode = inode; inode 500 fs/jfs/super.c inode = jfs_iget(sb, ROOT_I); inode 501 fs/jfs/super.c if (IS_ERR(inode)) { inode 502 fs/jfs/super.c ret = PTR_ERR(inode); inode 505 fs/jfs/super.c sb->s_root = d_alloc_root(inode); inode 526 fs/jfs/super.c iput(inode); inode 632 fs/jfs/super.c struct inode *inode = sb_dqopt(sb)->files[type]; inode 640 fs/jfs/super.c loff_t i_size = i_size_read(inode); inode 652 fs/jfs/super.c tmp_bh.b_size = 1 << inode->i_blkbits; inode 653 fs/jfs/super.c err = jfs_get_block(inode, blk, &tmp_bh, 0); inode 677 fs/jfs/super.c struct inode *inode = sb_dqopt(sb)->files[type]; inode 686 fs/jfs/super.c mutex_lock(&inode->i_mutex); inode 692 fs/jfs/super.c tmp_bh.b_size = 1 << inode->i_blkbits; inode 693 fs/jfs/super.c err = jfs_get_block(inode, blk, &tmp_bh, 1); inode 719 fs/jfs/super.c if (inode->i_size < off+len-towrite) inode 720 fs/jfs/super.c i_size_write(inode, off+len-towrite); inode 721 fs/jfs/super.c inode->i_version++; inode 722 fs/jfs/super.c inode->i_mtime = inode->i_ctime = CURRENT_TIME; inode 723 fs/jfs/super.c mark_inode_dirty(inode); inode 724 fs/jfs/super.c mutex_unlock(&inode->i_mutex); inode 463 fs/jfs/xattr.c struct jfs_inode_info *ji = JFS_IP(inode); inode 464 fs/jfs/xattr.c struct super_block *sb = inode->i_sb; inode 529 fs/jfs/xattr.c if ((rc = ea_read(inode, ea_buf->xattr))) { inode 541 fs/jfs/xattr.c if (DQUOT_ALLOC_BLOCK(inode, blocks_needed)) inode 546 fs/jfs/xattr.c rc = dbAlloc(inode, INOHINT(inode), (s64) blocks_needed, inode 558 fs/jfs/xattr.c ea_buf->mp = get_metapage(inode, blkno, inode 562 fs/jfs/xattr.c dbFree(inode, blkno, (s64) blocks_needed); inode 571 fs/jfs/xattr.c if ((rc = ea_read(inode, ea_buf->xattr))) { inode 573 fs/jfs/xattr.c dbFree(inode, blkno, (s64) blocks_needed); inode 579 fs/jfs/xattr.c ea_buf->mp = read_metapage(inode, addressDXD(&ji->ea), inode 595 fs/jfs/xattr.c ea_release(inode, ea_buf); inode 605 fs/jfs/xattr.c DQUOT_FREE_BLOCK(inode, quota_allocation); inode 619 fs/jfs/xattr.c dbFree(inode, addressDXD(&ea_buf->new_ea), inode 627 fs/jfs/xattr.c struct jfs_inode_info *ji = JFS_IP(inode); inode 632 fs/jfs/xattr.c ea_release(inode, ea_buf); inode 642 fs/jfs/xattr.c rc = ea_write(inode, ea_buf->xattr, new_size, &ea_buf->new_ea); inode 649 fs/jfs/xattr.c rc = ea_write(inode, ea_buf->xattr, new_size, &ea_buf->new_ea); inode 658 fs/jfs/xattr.c invalidate_dxd_metapages(inode, ji->ea); inode 663 fs/jfs/xattr.c txEA(tid, inode, &ji->ea, &ea_buf->new_ea); inode 671 fs/jfs/xattr.c txEA(tid, inode, &ji->ea, NULL); inode 680 fs/jfs/xattr.c DQUOT_FREE_BLOCK(inode, old_blocks); inode 682 fs/jfs/xattr.c inode->i_ctime = CURRENT_TIME; inode 700 fs/jfs/xattr.c if (!is_owner_or_cap(inode)) inode 715 fs/jfs/xattr.c mode_t mode = inode->i_mode; inode 724 fs/jfs/xattr.c inode->i_mode = mode; inode 725 fs/jfs/xattr.c mark_inode_dirty(inode); inode 730 fs/jfs/xattr.c acl =JFS_IP(inode)->i_acl; inode 733 fs/jfs/xattr.c JFS_IP(inode)->i_acl = JFS_ACL_NOT_CACHED; inode 749 fs/jfs/xattr.c acl =JFS_IP(inode)->i_default_acl; inode 752 fs/jfs/xattr.c JFS_IP(inode)->i_default_acl = JFS_ACL_NOT_CACHED; inode 769 fs/jfs/xattr.c return can_set_system_xattr(inode, name, value, value_len); inode 808 fs/jfs/xattr.c down_write(&JFS_IP(inode)->xattr_sem); inode 810 fs/jfs/xattr.c xattr_size = ea_get(inode, &ea_buf, 0); inode 856 fs/jfs/xattr.c ea_release(inode, &ea_buf); inode 857 fs/jfs/xattr.c xattr_size = ea_get(inode, &ea_buf, new_size); inode 909 fs/jfs/xattr.c rc = ea_put(tid, inode, &ea_buf, new_size); inode 913 fs/jfs/xattr.c ea_release(inode, &ea_buf); inode 915 fs/jfs/xattr.c up_write(&JFS_IP(inode)->xattr_sem); inode 925 fs/jfs/xattr.c struct inode *inode = dentry->d_inode; inode 926 fs/jfs/xattr.c struct jfs_inode_info *ji = JFS_IP(inode); inode 930 fs/jfs/xattr.c if ((rc = can_set_xattr(inode, name, value, value_len))) inode 938 fs/jfs/xattr.c tid = txBegin(inode->i_sb, 0); inode 943 fs/jfs/xattr.c rc = txCommit(tid, 1, &inode, 0); inode 972 fs/jfs/xattr.c down_read(&JFS_IP(inode)->xattr_sem); inode 974 fs/jfs/xattr.c xattr_size = ea_get(inode, &ea_buf, 0); inode 1005 fs/jfs/xattr.c ea_release(inode, &ea_buf); inode 1007 fs/jfs/xattr.c up_read(&JFS_IP(inode)->xattr_sem); inode 1036 fs/jfs/xattr.c struct inode *inode = dentry->d_inode; inode 1044 fs/jfs/xattr.c down_read(&JFS_IP(inode)->xattr_sem); inode 1046 fs/jfs/xattr.c xattr_size = ea_get(inode, &ea_buf, 0); inode 1081 fs/jfs/xattr.c ea_release(inode, &ea_buf); inode 1083 fs/jfs/xattr.c up_read(&JFS_IP(inode)->xattr_sem); inode 1089 fs/jfs/xattr.c struct inode *inode = dentry->d_inode; inode 1090 fs/jfs/xattr.c struct jfs_inode_info *ji = JFS_IP(inode); inode 1094 fs/jfs/xattr.c if ((rc = can_set_xattr(inode, name, NULL, 0))) inode 1097 fs/jfs/xattr.c tid = txBegin(inode->i_sb, 0); inode 1101 fs/jfs/xattr.c rc = txCommit(tid, 1, &inode, 0); inode 1117 fs/jfs/xattr.c rc = security_inode_init_security(inode, dir, &suffix, &value, &len); inode 1132 fs/jfs/xattr.c rc = __jfs_setxattr(tid, inode, name, value, len, 0); inode 18 fs/libfs.c struct inode *inode = dentry->d_inode; inode 19 fs/libfs.c generic_fillattr(inode, stat); inode 20 fs/libfs.c stat->blocks = inode->i_mapping->nrpages << (PAGE_CACHE_SHIFT - 9); inode 119 fs/libfs.c return (inode->i_mode >> 12) & 15; inode 211 fs/libfs.c struct inode *root; inode 256 fs/libfs.c struct inode *inode = old_dentry->d_inode; inode 258 fs/libfs.c inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; inode 259 fs/libfs.c inc_nlink(inode); inode 260 fs/libfs.c atomic_inc(&inode->i_count); inode 262 fs/libfs.c d_instantiate(dentry, inode); inode 288 fs/libfs.c struct inode *inode = dentry->d_inode; inode 290 fs/libfs.c inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; inode 291 fs/libfs.c drop_nlink(inode); inode 310 fs/libfs.c struct inode *inode = old_dentry->d_inode; inode 326 fs/libfs.c new_dir->i_mtime = inode->i_ctime = CURRENT_TIME; inode 375 fs/libfs.c struct inode *inode = page->mapping->host; inode 384 fs/libfs.c if (pos > inode->i_size) inode 385 fs/libfs.c i_size_write(inode, pos); inode 419 fs/libfs.c struct inode *inode; inode 430 fs/libfs.c inode = new_inode(s); inode 431 fs/libfs.c if (!inode) inode 437 fs/libfs.c inode->i_ino = 1; inode 438 fs/libfs.c inode->i_mode = S_IFDIR | 0755; inode 439 fs/libfs.c inode->i_uid = inode->i_gid = 0; inode 440 fs/libfs.c inode->i_blocks = 0; inode 441 fs/libfs.c inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; inode 442 fs/libfs.c inode->i_op = &simple_dir_inode_operations; inode 443 fs/libfs.c inode->i_fop = &simple_dir_operations; inode 444 fs/libfs.c inode->i_nlink = 2; inode 445 fs/libfs.c root = d_alloc_root(inode); inode 447 fs/libfs.c iput(inode); inode 463 fs/libfs.c inode = new_inode(s); inode 464 fs/libfs.c if (!inode) inode 466 fs/libfs.c inode->i_mode = S_IFREG | files->mode; inode 467 fs/libfs.c inode->i_uid = inode->i_gid = 0; inode 468 fs/libfs.c inode->i_blocks = 0; inode 469 fs/libfs.c inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; inode 470 fs/libfs.c inode->i_fop = files->ops; inode 471 fs/libfs.c inode->i_ino = i; inode 472 fs/libfs.c d_add(dentry, inode); inode 654 fs/libfs.c attr->data = inode->i_private; inode 660 fs/libfs.c return nonseekable_open(inode, file); inode 744 fs/libfs.c if (!inode) inode 746 fs/libfs.c if (IS_ERR(inode)) inode 747 fs/libfs.c return ERR_PTR(PTR_ERR(inode)); inode 749 fs/libfs.c dentry = d_alloc_anon(inode); inode 751 fs/libfs.c iput(inode); inode 773 fs/libfs.c struct inode *inode = NULL; inode 781 fs/libfs.c inode = get_inode(sb, fid->i32.ino, fid->i32.gen); inode 785 fs/libfs.c return exportfs_d_alloc(inode); inode 806 fs/libfs.c struct inode *inode = NULL; inode 813 fs/libfs.c inode = get_inode(sb, fid->i32.parent_ino, inode 818 fs/libfs.c return exportfs_d_alloc(inode); inode 48 fs/lockd/svcsubs.c struct inode *inode = file->f_file->f_path.dentry->d_inode; inode 51 fs/lockd/svcsubs.c msg, inode->i_sb->s_id, inode->i_ino); inode 167 fs/lockd/svcsubs.c struct inode *inode = nlmsvc_file_inode(file); inode 173 fs/lockd/svcsubs.c for (fl = inode->i_flock; fl; fl = fl->fl_next) { inode 223 fs/lockd/svcsubs.c struct inode *inode = nlmsvc_file_inode(file); inode 229 fs/lockd/svcsubs.c for (fl = inode->i_flock; fl; fl = fl->fl_next) { inode 141 fs/locks.c for (lockp = &inode->i_flock; *lockp != NULL; lockp = &(*lockp)->fl_next) inode 728 fs/locks.c struct inode * inode = filp->f_path.dentry->d_inode; inode 744 fs/locks.c for_each_lock(inode, before) { inode 773 fs/locks.c for_each_lock(inode, before) { inode 827 fs/locks.c for_each_lock(inode, before) { inode 856 fs/locks.c before = &inode->i_flock; inode 1069 fs/locks.c for (fl = inode->i_flock; fl != NULL; fl = fl->fl_next) { inode 1111 fs/locks.c error = __posix_lock_file(inode, &fl, NULL); inode 1120 fs/locks.c if (__mandatory_lock(inode)) inode 1154 fs/locks.c before = &inode->i_flock; inode 1189 fs/locks.c time_out_leases(inode); inode 1191 fs/locks.c flock = inode->i_flock; inode 1253 fs/locks.c time_out_leases(inode); inode 1255 fs/locks.c for (flock = inode->i_flock; flock && IS_LEASE(flock); inode 1283 fs/locks.c struct file_lock *flock = inode->i_flock; inode 1285 fs/locks.c *time = current_fs_time(inode->i_sb); inode 1287 fs/locks.c *time = inode->i_mtime; inode 1349 fs/locks.c struct inode *inode = dentry->d_inode; inode 1352 fs/locks.c if ((current->fsuid != inode->i_uid) && !capable(CAP_LEASE)) inode 1354 fs/locks.c if (!S_ISREG(inode->i_mode)) inode 1360 fs/locks.c time_out_leases(inode); inode 1373 fs/locks.c if ((arg == F_RDLCK) && (atomic_read(&inode->i_writecount) > 0)) inode 1377 fs/locks.c || (atomic_read(&inode->i_count) > 1))) inode 1389 fs/locks.c for (before = &inode->i_flock; inode 1492 fs/locks.c struct inode *inode = filp->f_path.dentry->d_inode; inode 1511 fs/locks.c time_out_leases(inode); inode 1773 fs/locks.c struct inode *inode; inode 1787 fs/locks.c inode = filp->f_path.dentry->d_inode; inode 1792 fs/locks.c if (mandatory_lock(inode) && mapping_writably_mapped(filp->f_mapping)) { inode 1891 fs/locks.c struct inode *inode; inode 1905 fs/locks.c inode = filp->f_path.dentry->d_inode; inode 1910 fs/locks.c if (mandatory_lock(inode) && mapping_writably_mapped(filp->f_mapping)) { inode 2000 fs/locks.c struct inode * inode = filp->f_path.dentry->d_inode; inode 2004 fs/locks.c if (!inode->i_flock) inode 2021 fs/locks.c before = &inode->i_flock; inode 2086 fs/locks.c struct inode *inode = NULL; inode 2095 fs/locks.c inode = fl->fl_file->f_path.dentry->d_inode; inode 2101 fs/locks.c (inode == NULL) ? "*NOINODE*" : inode 2102 fs/locks.c mandatory_lock(inode) ? "MANDATORY" : "ADVISORY "); inode 2131 fs/locks.c if (inode) { inode 2134 fs/locks.c inode->i_sb->s_id, inode->i_ino); inode 2138 fs/locks.c MAJOR(inode->i_sb->s_dev), inode 2139 fs/locks.c MINOR(inode->i_sb->s_dev), inode->i_ino); inode 2212 fs/locks.c for (fl = inode->i_flock; fl != NULL; fl = fl->fl_next) { inode 2252 fs/locks.c for (fl = inode->i_flock; fl != NULL; fl = fl->fl_next) { inode 54 fs/minix/bitmap.c struct super_block *sb = inode->i_sb; inode 83 fs/minix/bitmap.c struct minix_sb_info *sbi = minix_sb(inode->i_sb); inode 84 fs/minix/bitmap.c int bits_per_zone = 8 * inode->i_sb->s_blocksize; inode 170 fs/minix/bitmap.c if (INODE_VERSION(inode) == MINIX_V1) { inode 172 fs/minix/bitmap.c raw_inode = minix_V1_raw_inode(inode->i_sb, inode->i_ino, &bh); inode 179 fs/minix/bitmap.c raw_inode = minix_V2_raw_inode(inode->i_sb, inode->i_ino, &bh); inode 193 fs/minix/bitmap.c struct super_block *sb = inode->i_sb; inode 194 fs/minix/bitmap.c struct minix_sb_info *sbi = minix_sb(inode->i_sb); inode 199 fs/minix/bitmap.c ino = inode->i_ino; inode 211 fs/minix/bitmap.c minix_clear_inode(inode); /* clear on-disk copy */ inode 220 fs/minix/bitmap.c clear_inode(inode); /* clear in-memory copy */ inode 223 fs/minix/bitmap.c struct inode * minix_new_inode(const struct inode * dir, int * error) inode 227 fs/minix/bitmap.c struct inode *inode = new_inode(sb); inode 233 fs/minix/bitmap.c if (!inode) { inode 249 fs/minix/bitmap.c iput(inode); inode 255 fs/minix/bitmap.c iput(inode); inode 262 fs/minix/bitmap.c iput(inode); inode 265 fs/minix/bitmap.c inode->i_uid = current->fsuid; inode 266 fs/minix/bitmap.c inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->fsgid; inode 267 fs/minix/bitmap.c inode->i_ino = j; inode 268 fs/minix/bitmap.c inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; inode 269 fs/minix/bitmap.c inode->i_blocks = 0; inode 270 fs/minix/bitmap.c memset(&minix_i(inode)->u, 0, sizeof(minix_i(inode)->u)); inode 271 fs/minix/bitmap.c insert_inode_hash(inode); inode 272 fs/minix/bitmap.c mark_inode_dirty(inode); inode 275 fs/minix/bitmap.c return inode; inode 43 fs/minix/dir.c if (page_nr == (inode->i_size >> PAGE_CACHE_SHIFT)) inode 44 fs/minix/dir.c last_byte = inode->i_size & (PAGE_CACHE_SIZE - 1); inode 50 fs/minix/dir.c return (inode->i_size+PAGE_CACHE_SIZE-1)>>PAGE_CACHE_SHIFT; inode 56 fs/minix/dir.c struct inode *dir = mapping->host; inode 95 fs/minix/dir.c struct inode *inode = filp->f_path.dentry->d_inode; inode 96 fs/minix/dir.c struct super_block *sb = inode->i_sb; inode 99 fs/minix/dir.c unsigned long npages = dir_pages(inode); inode 108 fs/minix/dir.c if (pos >= inode->i_size) inode 113 fs/minix/dir.c struct page *page = dir_get_page(inode, n); inode 119 fs/minix/dir.c limit = kaddr + minix_last_byte(inode, n) - chunk_size; inode 124 fs/minix/dir.c inumber = de3->inode; inode 128 fs/minix/dir.c inumber = de->inode; inode 173 fs/minix/dir.c struct inode * dir = dentry->d_parent->d_inode; inode 198 fs/minix/dir.c inumber = de3->inode; inode 202 fs/minix/dir.c inumber = de->inode; inode 220 fs/minix/dir.c struct inode *dir = dentry->d_parent->d_inode; inode 257 fs/minix/dir.c inumber = de3->inode; inode 260 fs/minix/dir.c inumber = de->inode; inode 265 fs/minix/dir.c de3->inode = 0; inode 267 fs/minix/dir.c de->inode = 0; inode 291 fs/minix/dir.c de3->inode = inode->i_ino; inode 294 fs/minix/dir.c de->inode = inode->i_ino; inode 311 fs/minix/dir.c struct inode *inode = (struct inode*)mapping->host; inode 314 fs/minix/dir.c unsigned len = minix_sb(inode->i_sb)->s_dirsize; inode 321 fs/minix/dir.c de->inode = 0; inode 327 fs/minix/dir.c inode->i_ctime = inode->i_mtime = CURRENT_TIME_SEC; inode 328 fs/minix/dir.c mark_inode_dirty(inode); inode 334 fs/minix/dir.c struct address_space *mapping = inode->i_mapping; inode 336 fs/minix/dir.c struct minix_sb_info *sbi = minix_sb(inode->i_sb); inode 355 fs/minix/dir.c de3->inode = inode->i_ino; inode 358 fs/minix/dir.c de3->inode = dir->i_ino; inode 363 fs/minix/dir.c de->inode = inode->i_ino; inode 366 fs/minix/dir.c de->inode = dir->i_ino; inode 383 fs/minix/dir.c unsigned long i, npages = dir_pages(inode); inode 384 fs/minix/dir.c struct minix_sb_info *sbi = minix_sb(inode->i_sb); inode 391 fs/minix/dir.c page = dir_get_page(inode, i); inode 396 fs/minix/dir.c limit = kaddr + minix_last_byte(inode, i) - sbi->s_dirsize; inode 401 fs/minix/dir.c inumber = de3->inode; inode 405 fs/minix/dir.c inumber = de->inode; inode 413 fs/minix/dir.c if (inumber != inode->i_ino) inode 435 fs/minix/dir.c struct inode *dir = mapping->host; inode 446 fs/minix/dir.c de->inode = inode->i_ino; inode 476 fs/minix/dir.c res = de->inode; inode 36 fs/minix/file.c struct inode *inode = dentry->d_inode; inode 39 fs/minix/file.c err = sync_mapping_buffers(inode->i_mapping); inode 40 fs/minix/file.c if (!(inode->i_state & I_DIRTY)) inode 42 fs/minix/file.c if (datasync && !(inode->i_state & I_DIRTY_DATASYNC)) inode 45 fs/minix/file.c err |= minix_sync_inode(inode); inode 27 fs/minix/inode.c truncate_inode_pages(&inode->i_data, 0); inode 28 fs/minix/inode.c inode->i_size = 0; inode 29 fs/minix/inode.c minix_truncate(inode); inode 30 fs/minix/inode.c minix_free_inode(inode); inode 57 fs/minix/inode.c static struct inode *minix_alloc_inode(struct super_block *sb) inode 68 fs/minix/inode.c kmem_cache_free(minix_inode_cachep, minix_i(inode)); inode 148 fs/minix/inode.c struct inode *root_inode; inode 339 fs/minix/inode.c if (INODE_VERSION(inode) == MINIX_V1) inode 340 fs/minix/inode.c return V1_minix_get_block(inode, block, bh_result, create); inode 342 fs/minix/inode.c return V2_minix_get_block(inode, block, bh_result, create); inode 394 fs/minix/inode.c if (S_ISREG(inode->i_mode)) { inode 395 fs/minix/inode.c inode->i_op = &minix_file_inode_operations; inode 396 fs/minix/inode.c inode->i_fop = &minix_file_operations; inode 397 fs/minix/inode.c inode->i_mapping->a_ops = &minix_aops; inode 398 fs/minix/inode.c } else if (S_ISDIR(inode->i_mode)) { inode 399 fs/minix/inode.c inode->i_op = &minix_dir_inode_operations; inode 400 fs/minix/inode.c inode->i_fop = &minix_dir_operations; inode 401 fs/minix/inode.c inode->i_mapping->a_ops = &minix_aops; inode 402 fs/minix/inode.c } else if (S_ISLNK(inode->i_mode)) { inode 403 fs/minix/inode.c inode->i_op = &minix_symlink_inode_operations; inode 404 fs/minix/inode.c inode->i_mapping->a_ops = &minix_aops; inode 406 fs/minix/inode.c init_special_inode(inode, inode->i_mode, rdev); inode 412 fs/minix/inode.c static struct inode *V1_minix_iget(struct inode *inode) inode 416 fs/minix/inode.c struct minix_inode_info *minix_inode = minix_i(inode); inode 419 fs/minix/inode.c raw_inode = minix_V1_raw_inode(inode->i_sb, inode->i_ino, &bh); inode 421 fs/minix/inode.c iget_failed(inode); inode 424 fs/minix/inode.c inode->i_mode = raw_inode->i_mode; inode 425 fs/minix/inode.c inode->i_uid = (uid_t)raw_inode->i_uid; inode 426 fs/minix/inode.c inode->i_gid = (gid_t)raw_inode->i_gid; inode 427 fs/minix/inode.c inode->i_nlink = raw_inode->i_nlinks; inode 428 fs/minix/inode.c inode->i_size = raw_inode->i_size; inode 429 fs/minix/inode.c inode->i_mtime.tv_sec = inode->i_atime.tv_sec = inode->i_ctime.tv_sec = raw_inode->i_time; inode 430 fs/minix/inode.c inode->i_mtime.tv_nsec = 0; inode 431 fs/minix/inode.c inode->i_atime.tv_nsec = 0; inode 432 fs/minix/inode.c inode->i_ctime.tv_nsec = 0; inode 433 fs/minix/inode.c inode->i_blocks = 0; inode 436 fs/minix/inode.c minix_set_inode(inode, old_decode_dev(raw_inode->i_zone[0])); inode 438 fs/minix/inode.c unlock_new_inode(inode); inode 439 fs/minix/inode.c return inode; inode 445 fs/minix/inode.c static struct inode *V2_minix_iget(struct inode *inode) inode 449 fs/minix/inode.c struct minix_inode_info *minix_inode = minix_i(inode); inode 452 fs/minix/inode.c raw_inode = minix_V2_raw_inode(inode->i_sb, inode->i_ino, &bh); inode 454 fs/minix/inode.c iget_failed(inode); inode 457 fs/minix/inode.c inode->i_mode = raw_inode->i_mode; inode 458 fs/minix/inode.c inode->i_uid = (uid_t)raw_inode->i_uid; inode 459 fs/minix/inode.c inode->i_gid = (gid_t)raw_inode->i_gid; inode 460 fs/minix/inode.c inode->i_nlink = raw_inode->i_nlinks; inode 461 fs/minix/inode.c inode->i_size = raw_inode->i_size; inode 462 fs/minix/inode.c inode->i_mtime.tv_sec = raw_inode->i_mtime; inode 463 fs/minix/inode.c inode->i_atime.tv_sec = raw_inode->i_atime; inode 464 fs/minix/inode.c inode->i_ctime.tv_sec = raw_inode->i_ctime; inode 465 fs/minix/inode.c inode->i_mtime.tv_nsec = 0; inode 466 fs/minix/inode.c inode->i_atime.tv_nsec = 0; inode 467 fs/minix/inode.c inode->i_ctime.tv_nsec = 0; inode 468 fs/minix/inode.c inode->i_blocks = 0; inode 471 fs/minix/inode.c minix_set_inode(inode, old_decode_dev(raw_inode->i_zone[0])); inode 473 fs/minix/inode.c unlock_new_inode(inode); inode 474 fs/minix/inode.c return inode; inode 480 fs/minix/inode.c struct inode *minix_iget(struct super_block *sb, unsigned long ino) inode 482 fs/minix/inode.c struct inode *inode; inode 484 fs/minix/inode.c inode = iget_locked(sb, ino); inode 485 fs/minix/inode.c if (!inode) inode 487 fs/minix/inode.c if (!(inode->i_state & I_NEW)) inode 488 fs/minix/inode.c return inode; inode 490 fs/minix/inode.c if (INODE_VERSION(inode) == MINIX_V1) inode 491 fs/minix/inode.c return V1_minix_iget(inode); inode 493 fs/minix/inode.c return V2_minix_iget(inode); inode 503 fs/minix/inode.c struct minix_inode_info *minix_inode = minix_i(inode); inode 506 fs/minix/inode.c raw_inode = minix_V1_raw_inode(inode->i_sb, inode->i_ino, &bh); inode 509 fs/minix/inode.c raw_inode->i_mode = inode->i_mode; inode 510 fs/minix/inode.c raw_inode->i_uid = fs_high2lowuid(inode->i_uid); inode 511 fs/minix/inode.c raw_inode->i_gid = fs_high2lowgid(inode->i_gid); inode 512 fs/minix/inode.c raw_inode->i_nlinks = inode->i_nlink; inode 513 fs/minix/inode.c raw_inode->i_size = inode->i_size; inode 514 fs/minix/inode.c raw_inode->i_time = inode->i_mtime.tv_sec; inode 515 fs/minix/inode.c if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) inode 516 fs/minix/inode.c raw_inode->i_zone[0] = old_encode_dev(inode->i_rdev); inode 530 fs/minix/inode.c struct minix_inode_info *minix_inode = minix_i(inode); inode 533 fs/minix/inode.c raw_inode = minix_V2_raw_inode(inode->i_sb, inode->i_ino, &bh); inode 536 fs/minix/inode.c raw_inode->i_mode = inode->i_mode; inode 537 fs/minix/inode.c raw_inode->i_uid = fs_high2lowuid(inode->i_uid); inode 538 fs/minix/inode.c raw_inode->i_gid = fs_high2lowgid(inode->i_gid); inode 539 fs/minix/inode.c raw_inode->i_nlinks = inode->i_nlink; inode 540 fs/minix/inode.c raw_inode->i_size = inode->i_size; inode 541 fs/minix/inode.c raw_inode->i_mtime = inode->i_mtime.tv_sec; inode 542 fs/minix/inode.c raw_inode->i_atime = inode->i_atime.tv_sec; inode 543 fs/minix/inode.c raw_inode->i_ctime = inode->i_ctime.tv_sec; inode 544 fs/minix/inode.c if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) inode 545 fs/minix/inode.c raw_inode->i_zone[0] = old_encode_dev(inode->i_rdev); inode 554 fs/minix/inode.c if (INODE_VERSION(inode) == MINIX_V1) inode 555 fs/minix/inode.c return V1_minix_update_inode(inode); inode 557 fs/minix/inode.c return V2_minix_update_inode(inode); inode 562 fs/minix/inode.c brelse(minix_update_inode(inode)); inode 571 fs/minix/inode.c bh = minix_update_inode(inode); inode 578 fs/minix/inode.c inode->i_sb->s_id, inode->i_ino); inode 590 fs/minix/inode.c struct inode *dir = dentry->d_parent->d_inode; inode 606 fs/minix/inode.c if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode))) inode 608 fs/minix/inode.c if (INODE_VERSION(inode) == MINIX_V1) inode 609 fs/minix/inode.c V1_minix_truncate(inode); inode 611 fs/minix/inode.c V2_minix_truncate(inode); inode 35 fs/minix/itree_common.c struct super_block *sb = inode->i_sb; inode 41 fs/minix/itree_common.c add_chain (chain, NULL, i_data(inode) + *offsets); inode 76 fs/minix/itree_common.c int parent = minix_new_block(inode); inode 82 fs/minix/itree_common.c int nr = minix_new_block(inode); inode 86 fs/minix/itree_common.c bh = sb_getblk(inode->i_sb, parent); inode 94 fs/minix/itree_common.c mark_buffer_dirty_inode(bh, inode); inode 104 fs/minix/itree_common.c minix_free_block(inode, block_to_cpu(branch[i].key)); inode 127 fs/minix/itree_common.c inode->i_ctime = CURRENT_TIME_SEC; inode 131 fs/minix/itree_common.c mark_buffer_dirty_inode(where->bh, inode); inode 133 fs/minix/itree_common.c mark_inode_dirty(inode); inode 141 fs/minix/itree_common.c minix_free_block(inode, block_to_cpu(where[i].key)); inode 153 fs/minix/itree_common.c int depth = block_to_path(inode, block, offsets); inode 159 fs/minix/itree_common.c partial = get_branch(inode, depth, offsets, chain, &err); inode 164 fs/minix/itree_common.c map_bh(bh, inode->i_sb, block_to_cpu(chain[depth-1].key)); inode 190 fs/minix/itree_common.c err = alloc_branch(inode, left, offsets+(partial-chain), partial); inode 194 fs/minix/itree_common.c if (splice_branch(inode, chain, partial, left) < 0) inode 228 fs/minix/itree_common.c partial = get_branch(inode, k, offsets, chain, &err); inode 264 fs/minix/itree_common.c minix_free_block(inode, nr); inode 280 fs/minix/itree_common.c bh = sb_bread(inode->i_sb, nr); inode 283 fs/minix/itree_common.c free_branches(inode, (block_t*)bh->b_data, inode 286 fs/minix/itree_common.c minix_free_block(inode, nr); inode 287 fs/minix/itree_common.c mark_inode_dirty(inode); inode 290 fs/minix/itree_common.c free_data(inode, p, q); inode 295 fs/minix/itree_common.c struct super_block *sb = inode->i_sb; inode 296 fs/minix/itree_common.c block_t *idata = i_data(inode); inode 305 fs/minix/itree_common.c iblock = (inode->i_size + sb->s_blocksize -1) >> sb->s_blocksize_bits; inode 306 fs/minix/itree_common.c block_truncate_page(inode->i_mapping, inode->i_size, get_block); inode 308 fs/minix/itree_common.c n = block_to_path(inode, iblock, offsets); inode 313 fs/minix/itree_common.c free_data(inode, idata+offsets[0], idata + DIRECT); inode 319 fs/minix/itree_common.c partial = find_shared(inode, n, offsets, chain, &nr); inode 322 fs/minix/itree_common.c mark_inode_dirty(inode); inode 324 fs/minix/itree_common.c mark_buffer_dirty_inode(partial->bh, inode); inode 325 fs/minix/itree_common.c free_branches(inode, &nr, &nr+1, (chain+n-1) - partial); inode 329 fs/minix/itree_common.c free_branches(inode, partial->p + 1, block_end(partial->bh), inode 331 fs/minix/itree_common.c mark_buffer_dirty_inode(partial->bh, inode); inode 341 fs/minix/itree_common.c mark_inode_dirty(inode); inode 342 fs/minix/itree_common.c free_branches(inode, &nr, &nr+1, first_whole+1); inode 346 fs/minix/itree_common.c inode->i_mtime = inode->i_ctime = CURRENT_TIME_SEC; inode 347 fs/minix/itree_common.c mark_inode_dirty(inode); inode 20 fs/minix/itree_v1.c return (block_t *)minix_i(inode)->u.i1_data; inode 30 fs/minix/itree_v1.c block, bdevname(inode->i_sb->s_bdev, b)); inode 31 fs/minix/itree_v1.c } else if (block >= (minix_sb(inode->i_sb)->s_max_size/BLOCK_SIZE)) { inode 35 fs/minix/itree_v1.c block, bdevname(inode->i_sb->s_bdev, b)); inode 55 fs/minix/itree_v1.c return get_block(inode, block, bh_result, create); inode 60 fs/minix/itree_v1.c truncate(inode); inode 20 fs/minix/itree_v2.c return (block_t *)minix_i(inode)->u.i2_data; inode 27 fs/minix/itree_v2.c struct super_block *sb = inode->i_sb; inode 32 fs/minix/itree_v2.c } else if (block >= (minix_sb(inode->i_sb)->s_max_size/sb->s_blocksize)) { inode 61 fs/minix/itree_v2.c return get_block(inode, block, bh_result, create); inode 66 fs/minix/itree_v2.c truncate(inode); inode 5 fs/minix/minix.h #define INODE_VERSION(inode) minix_sb(inode->i_sb)->s_version inode 18 fs/minix/minix.h struct inode vfs_inode; inode 43 fs/minix/minix.h extern struct inode *minix_iget(struct super_block *, unsigned long); inode 46 fs/minix/minix.h extern struct inode * minix_new_inode(const struct inode * dir, int * error); inode 89 fs/minix/minix.h return list_entry(inode, struct minix_inode_info, vfs_inode); inode 11 fs/minix/namei.c int err = minix_add_link(dentry, inode); inode 13 fs/minix/namei.c d_instantiate(dentry, inode); inode 16 fs/minix/namei.c inode_dec_link_count(inode); inode 17 fs/minix/namei.c iput(inode); inode 23 fs/minix/namei.c struct inode * inode = NULL; inode 33 fs/minix/namei.c inode = minix_iget(dir->i_sb, ino); inode 34 fs/minix/namei.c if (IS_ERR(inode)) inode 35 fs/minix/namei.c return ERR_CAST(inode); inode 37 fs/minix/namei.c d_add(dentry, inode); inode 44 fs/minix/namei.c struct inode *inode; inode 49 fs/minix/namei.c inode = minix_new_inode(dir, &error); inode 51 fs/minix/namei.c if (inode) { inode 52 fs/minix/namei.c inode->i_mode = mode; inode 53 fs/minix/namei.c minix_set_inode(inode, rdev); inode 54 fs/minix/namei.c mark_inode_dirty(inode); inode 55 fs/minix/namei.c error = add_nondir(dentry, inode); inode 71 fs/minix/namei.c struct inode * inode; inode 76 fs/minix/namei.c inode = minix_new_inode(dir, &err); inode 77 fs/minix/namei.c if (!inode) inode 80 fs/minix/namei.c inode->i_mode = S_IFLNK | 0777; inode 81 fs/minix/namei.c minix_set_inode(inode, 0); inode 82 fs/minix/namei.c err = page_symlink(inode, symname, i); inode 86 fs/minix/namei.c err = add_nondir(dentry, inode); inode 91 fs/minix/namei.c inode_dec_link_count(inode); inode 92 fs/minix/namei.c iput(inode); inode 99 fs/minix/namei.c struct inode *inode = old_dentry->d_inode; inode 101 fs/minix/namei.c if (inode->i_nlink >= minix_sb(inode->i_sb)->s_link_max) inode 104 fs/minix/namei.c inode->i_ctime = CURRENT_TIME_SEC; inode 105 fs/minix/namei.c inode_inc_link_count(inode); inode 106 fs/minix/namei.c atomic_inc(&inode->i_count); inode 107 fs/minix/namei.c return add_nondir(dentry, inode); inode 112 fs/minix/namei.c struct inode * inode; inode 120 fs/minix/namei.c inode = minix_new_inode(dir, &err); inode 121 fs/minix/namei.c if (!inode) inode 124 fs/minix/namei.c inode->i_mode = S_IFDIR | mode; inode 126 fs/minix/namei.c inode->i_mode |= S_ISGID; inode 127 fs/minix/namei.c minix_set_inode(inode, 0); inode 129 fs/minix/namei.c inode_inc_link_count(inode); inode 131 fs/minix/namei.c err = minix_make_empty(inode, dir); inode 135 fs/minix/namei.c err = minix_add_link(dentry, inode); inode 139 fs/minix/namei.c d_instantiate(dentry, inode); inode 144 fs/minix/namei.c inode_dec_link_count(inode); inode 145 fs/minix/namei.c inode_dec_link_count(inode); inode 146 fs/minix/namei.c iput(inode); inode 155 fs/minix/namei.c struct inode * inode = dentry->d_inode; inode 167 fs/minix/namei.c inode->i_ctime = dir->i_ctime; inode 168 fs/minix/namei.c inode_dec_link_count(inode); inode 175 fs/minix/namei.c struct inode * inode = dentry->d_inode; inode 178 fs/minix/namei.c if (minix_empty_dir(inode)) { inode 182 fs/minix/namei.c inode_dec_link_count(inode); inode 192 fs/minix/namei.c struct inode * old_inode = old_dentry->d_inode; inode 193 fs/minix/namei.c struct inode * new_inode = new_dentry->d_inode; inode 129 fs/mpage.c struct inode *inode = page->mapping->host; inode 138 fs/mpage.c if (inode->i_blkbits == PAGE_CACHE_SHIFT && inode 143 fs/mpage.c create_empty_buffers(page, 1 << inode->i_blkbits, 0); inode 173 fs/mpage.c struct inode *inode = page->mapping->host; inode 174 fs/mpage.c const unsigned blkbits = inode->i_blkbits; inode 194 fs/mpage.c last_block_in_file = (i_size_read(inode) + blocksize - 1) >> blkbits; inode 233 fs/mpage.c if (get_block(inode, block_in_file, map_bh, 0)) inode 446 fs/mpage.c struct inode *inode = page->mapping->host; inode 447 fs/mpage.c const unsigned blkbits = inode->i_blkbits; inode 461 fs/mpage.c loff_t i_size = i_size_read(inode); inode 525 fs/mpage.c if (mpd->get_block(inode, block_in_file, &map_bh, 1)) inode 206 fs/msdos/namei.c struct inode *inode = NULL; inode 217 fs/msdos/namei.c inode = fat_build_inode(sb, sinfo.de, sinfo.i_pos); inode 219 fs/msdos/namei.c if (IS_ERR(inode)) { inode 220 fs/msdos/namei.c res = PTR_ERR(inode); inode 225 fs/msdos/namei.c dentry = d_splice_alias(inode, dentry); inode 278 fs/msdos/namei.c struct inode *inode = NULL; inode 302 fs/msdos/namei.c inode = fat_build_inode(sb, sinfo.de, sinfo.i_pos); inode 304 fs/msdos/namei.c if (IS_ERR(inode)) { inode 305 fs/msdos/namei.c err = PTR_ERR(inode); inode 308 fs/msdos/namei.c inode->i_mtime = inode->i_atime = inode->i_ctime = ts; inode 311 fs/msdos/namei.c d_instantiate(dentry, inode); inode 315 fs/msdos/namei.c err = fat_flush_inodes(sb, dir, inode); inode 323 fs/msdos/namei.c struct inode *inode = dentry->d_inode; inode 332 fs/msdos/namei.c err = fat_dir_empty(inode); inode 344 fs/msdos/namei.c clear_nlink(inode); inode 345 fs/msdos/namei.c inode->i_ctime = CURRENT_TIME_SEC; inode 346 fs/msdos/namei.c fat_detach(inode); inode 350 fs/msdos/namei.c err = fat_flush_inodes(sb, dir, inode); inode 360 fs/msdos/namei.c struct inode *inode; inode 390 fs/msdos/namei.c inode = fat_build_inode(sb, sinfo.de, sinfo.i_pos); inode 392 fs/msdos/namei.c if (IS_ERR(inode)) { inode 393 fs/msdos/namei.c err = PTR_ERR(inode); inode 397 fs/msdos/namei.c inode->i_nlink = 2; inode 398 fs/msdos/namei.c inode->i_mtime = inode->i_atime = inode->i_ctime = ts; inode 401 fs/msdos/namei.c d_instantiate(dentry, inode); inode 404 fs/msdos/namei.c fat_flush_inodes(sb, dir, inode); inode 417 fs/msdos/namei.c struct inode *inode = dentry->d_inode; inode 418 fs/msdos/namei.c struct super_block *sb= inode->i_sb; inode 430 fs/msdos/namei.c clear_nlink(inode); inode 431 fs/msdos/namei.c inode->i_ctime = CURRENT_TIME_SEC; inode 432 fs/msdos/namei.c fat_detach(inode); inode 436 fs/msdos/namei.c err = fat_flush_inodes(sb, dir, inode); inode 448 fs/msdos/namei.c struct inode *old_inode, *new_inode; inode 185 fs/namei.c umode_t mode = inode->i_mode; inode 189 fs/namei.c if (current->fsuid == inode->i_uid) inode 192 fs/namei.c if (IS_POSIXACL(inode) && (mode & S_IRWXG) && check_acl) { inode 193 fs/namei.c int error = check_acl(inode, mask); inode 200 fs/namei.c if (in_group_p(inode->i_gid)) inode 216 fs/namei.c (inode->i_mode & S_IXUGO) || S_ISDIR(inode->i_mode)) inode 223 fs/namei.c if (mask == MAY_READ || (S_ISDIR(inode->i_mode) && !(mask & MAY_WRITE))) inode 235 fs/namei.c umode_t mode = inode->i_mode; inode 240 fs/namei.c if (IS_RDONLY(inode) && inode 247 fs/namei.c if (IS_IMMUTABLE(inode)) inode 252 fs/namei.c if (inode->i_op && inode->i_op->permission) { inode 253 fs/namei.c retval = inode->i_op->permission(inode, mask); inode 262 fs/namei.c if ((mask & MAY_EXEC) && S_ISREG(inode->i_mode) && inode 263 fs/namei.c !(inode->i_mode & S_IXUGO)) inode 267 fs/namei.c retval = generic_permission(inode, mask, NULL); inode 272 fs/namei.c retval = devcgroup_inode_permission(inode, mask); inode 276 fs/namei.c return security_inode_permission(inode, inode 332 fs/namei.c spin_lock(&inode->i_lock); inode 333 fs/namei.c if (atomic_read(&inode->i_writecount) < 0) { inode 334 fs/namei.c spin_unlock(&inode->i_lock); inode 337 fs/namei.c atomic_inc(&inode->i_writecount); inode 338 fs/namei.c spin_unlock(&inode->i_lock); inode 345 fs/namei.c struct inode *inode = file->f_path.dentry->d_inode; inode 347 fs/namei.c spin_lock(&inode->i_lock); inode 348 fs/namei.c if (atomic_read(&inode->i_writecount) > 0) { inode 349 fs/namei.c spin_unlock(&inode->i_lock); inode 352 fs/namei.c atomic_dec(&inode->i_writecount); inode 353 fs/namei.c spin_unlock(&inode->i_lock); inode 452 fs/namei.c umode_t mode = inode->i_mode; inode 454 fs/namei.c if (inode->i_op && inode->i_op->permission) inode 457 fs/namei.c if (current->fsuid == inode->i_uid) inode 459 fs/namei.c else if (in_group_p(inode->i_gid)) inode 465 fs/namei.c if ((inode->i_mode & S_IXUGO) && capable(CAP_DAC_OVERRIDE)) inode 468 fs/namei.c if (S_ISDIR(inode->i_mode) && capable(CAP_DAC_OVERRIDE)) inode 471 fs/namei.c if (S_ISDIR(inode->i_mode) && capable(CAP_DAC_READ_SEARCH)) inode 476 fs/namei.c return security_inode_permission(inode, MAY_EXEC); inode 490 fs/namei.c struct inode *dir = parent->d_inode; inode 853 fs/namei.c struct inode *inode; inode 862 fs/namei.c inode = nd->path.dentry->d_inode; inode 873 fs/namei.c err = exec_permission_lite(inode); inode 910 fs/namei.c inode = nd->path.dentry->d_inode; inode 931 fs/namei.c inode = next.dentry->d_inode; inode 932 fs/namei.c if (!inode) inode 935 fs/namei.c if (!inode->i_op) inode 938 fs/namei.c if (inode->i_op->follow_link) { inode 943 fs/namei.c inode = nd->path.dentry->d_inode; inode 944 fs/namei.c if (!inode) inode 947 fs/namei.c if (!inode->i_op) inode 952 fs/namei.c if (!inode->i_op->lookup) inode 971 fs/namei.c inode = nd->path.dentry->d_inode; inode 985 fs/namei.c inode = next.dentry->d_inode; inode 987 fs/namei.c && inode && inode->i_op && inode->i_op->follow_link) { inode 991 fs/namei.c inode = nd->path.dentry->d_inode; inode 995 fs/namei.c if (!inode) inode 999 fs/namei.c if (!inode->i_op || !inode->i_op->lookup) inode 1200 fs/namei.c struct inode *inode; inode 1203 fs/namei.c inode = base->d_inode; inode 1222 fs/namei.c if (IS_DEADDIR(inode)) inode 1229 fs/namei.c dentry = inode->i_op->lookup(inode, new, nd); inode 1368 fs/namei.c if (inode->i_uid == current->fsuid) inode 1528 fs/namei.c struct inode *inode = dentry->d_inode; inode 1531 fs/namei.c if (!inode) inode 1534 fs/namei.c if (S_ISLNK(inode->i_mode)) inode 1537 fs/namei.c if (S_ISDIR(inode->i_mode) && (acc_mode & MAY_WRITE)) inode 1545 fs/namei.c if (S_ISFIFO(inode->i_mode) || S_ISSOCK(inode->i_mode)) { inode 1547 fs/namei.c } else if (S_ISBLK(inode->i_mode) || S_ISCHR(inode->i_mode)) { inode 1560 fs/namei.c if (IS_APPEND(inode)) { inode 1569 fs/namei.c if (!is_owner_or_cap(inode)) inode 1575 fs/namei.c error = break_lease(inode, flag); inode 1580 fs/namei.c error = get_write_access(inode); inode 1587 fs/namei.c error = locks_verify_locked(inode); inode 1589 fs/namei.c DQUOT_INIT(inode); inode 1595 fs/namei.c put_write_access(inode); inode 1600 fs/namei.c DQUOT_INIT(inode); inode 1658 fs/namei.c if (special_file(inode->i_mode)) inode 2259 fs/namei.c struct inode *inode = NULL; inode 2275 fs/namei.c inode = dentry->d_inode; inode 2276 fs/namei.c if (inode) inode 2277 fs/namei.c atomic_inc(&inode->i_count); inode 2287 fs/namei.c if (inode) inode 2288 fs/namei.c iput(inode); /* truncate the inode here */ inode 2382 fs/namei.c struct inode *inode = old_dentry->d_inode; inode 2385 fs/namei.c if (!inode) inode 2392 fs/namei.c if (dir->i_sb != inode->i_sb) inode 2398 fs/namei.c if (IS_APPEND(inode) || IS_IMMUTABLE(inode)) inode 2402 fs/namei.c if (S_ISDIR(inode->i_mode)) inode 2409 fs/namei.c mutex_lock(&inode->i_mutex); inode 2412 fs/namei.c mutex_unlock(&inode->i_mutex); inode 2414 fs/namei.c fsnotify_link(dir, inode, new_dentry); inode 2515 fs/namei.c struct inode *target; inode 2557 fs/namei.c struct inode *target; inode 2803 fs/namei.c struct address_space *mapping = inode->i_mapping; inode 2826 fs/namei.c mark_inode_dirty(inode); inode 2834 fs/namei.c return __page_symlink(inode, symname, len, inode 2835 fs/namei.c mapping_gfp_mask(inode->i_mapping)); inode 141 fs/ncpfs/dir.c struct inode *inode = dentry->d_inode; inode 143 fs/ncpfs/dir.c if (inode) { inode 144 fs/ncpfs/dir.c if (is_bad_inode(inode)) inode 161 fs/ncpfs/dir.c return (!ncp_single_volume(NCP_SERVER(inode)) && inode 162 fs/ncpfs/dir.c inode == inode->i_sb->s_root->d_inode); inode 180 fs/ncpfs/dir.c struct inode *inode; inode 185 fs/ncpfs/dir.c inode = dentry->d_inode; inode 187 fs/ncpfs/dir.c old_nwattr = NCP_FINFO(inode)->nwattr; inode 189 fs/ncpfs/dir.c res2 = ncp_modify_file_or_subdir_dos_info_path(NCP_SERVER(inode), inode, NULL, DM_ATTRIBUTES, &info); inode 199 fs/ncpfs/dir.c res2 = ncp_modify_file_or_subdir_dos_info_path(NCP_SERVER(inode), inode, NULL, DM_ATTRIBUTES, &info); inode 215 fs/ncpfs/dir.c struct inode *old_inode = old_dentry->d_inode; inode 273 fs/ncpfs/dir.c struct inode *dir; inode 390 fs/ncpfs/dir.c struct inode *inode = dentry->d_inode; inode 391 fs/ncpfs/dir.c struct ncp_server *server = NCP_SERVER(inode); inode 394 fs/ncpfs/dir.c if (!ncp_conn_valid(server) || ncp_is_server_root(inode)) inode 397 fs/ncpfs/dir.c if (ncp_obtain_info(server, inode, NULL, &i)) inode 406 fs/ncpfs/dir.c struct inode *inode = dentry->d_inode; inode 408 fs/ncpfs/dir.c struct ncp_server *server = NCP_SERVER(inode); inode 429 fs/ncpfs/dir.c if (filldir(dirent, ".", 1, 0, inode->i_ino, DT_DIR)) inode 439 fs/ncpfs/dir.c page = grab_cache_page(&inode->i_data, 0); inode 468 fs/ncpfs/dir.c ctl.page = find_lock_page(&inode->i_data, ctl.ofs); inode 527 fs/ncpfs/dir.c if (ncp_is_server_root(inode)) { inode 558 fs/ncpfs/dir.c struct inode *newino, *inode = dentry->d_inode; inode 567 fs/ncpfs/dir.c if (ncp_vol2io(NCP_SERVER(inode), __name, &qname.len, inode 569 fs/ncpfs/dir.c !ncp_preserve_entry_case(inode, entry->i.NSCreator))) inode 593 fs/ncpfs/dir.c entry->ino = iunique(inode->i_sb, 2); inode 594 fs/ncpfs/dir.c newino = ncp_iget(inode->i_sb, entry); inode 620 fs/ncpfs/dir.c ctl.page = grab_cache_page(&inode->i_data, ctl.ofs); inode 636 fs/ncpfs/dir.c ino = iunique(inode->i_sb, 2); inode 653 fs/ncpfs/dir.c struct inode *inode = dentry->d_inode; inode 654 fs/ncpfs/dir.c struct ncp_server *server = NCP_SERVER(inode); inode 689 fs/ncpfs/dir.c struct inode *dir = dentry->d_inode; inode 776 fs/ncpfs/dir.c struct inode* ino = dent->d_inode; inode 797 fs/ncpfs/dir.c struct inode *inode = NULL; inode 837 fs/ncpfs/dir.c inode = ncp_iget(dir->i_sb, &finfo); inode 839 fs/ncpfs/dir.c if (inode) { inode 843 fs/ncpfs/dir.c d_add(dentry, inode); inode 859 fs/ncpfs/dir.c struct inode *inode; inode 863 fs/ncpfs/dir.c inode = ncp_iget(dir->i_sb, finfo); inode 864 fs/ncpfs/dir.c if (!inode) inode 866 fs/ncpfs/dir.c d_instantiate(dentry,inode); inode 1049 fs/ncpfs/dir.c struct inode *inode = dentry->d_inode; inode 1065 fs/ncpfs/dir.c if (inode) { inode 1067 fs/ncpfs/dir.c ncp_make_closed(inode); inode 40 fs/ncpfs/file.c if (!inode) { inode 46 fs/ncpfs/file.c atomic_read(&NCP_FINFO(inode)->opened), inode 47 fs/ncpfs/file.c NCP_FINFO(inode)->volNumber, inode 48 fs/ncpfs/file.c NCP_FINFO(inode)->dirEntNum); inode 50 fs/ncpfs/file.c mutex_lock(&NCP_FINFO(inode)->open_mutex); inode 51 fs/ncpfs/file.c if (!atomic_read(&NCP_FINFO(inode)->opened)) { inode 57 fs/ncpfs/file.c result = ncp_open_create_file_or_subdir(NCP_SERVER(inode), inode 58 fs/ncpfs/file.c inode, NULL, OC_MODE_OPEN, inode 66 fs/ncpfs/file.c result = ncp_open_create_file_or_subdir(NCP_SERVER(inode), inode 67 fs/ncpfs/file.c inode, NULL, OC_MODE_OPEN, inode 72 fs/ncpfs/file.c result = ncp_open_create_file_or_subdir(NCP_SERVER(inode), inode 73 fs/ncpfs/file.c inode, NULL, OC_MODE_OPEN, inode 85 fs/ncpfs/file.c ncp_update_inode(inode, &finfo); inode 86 fs/ncpfs/file.c atomic_set(&NCP_FINFO(inode)->opened, 1); inode 89 fs/ncpfs/file.c access = NCP_FINFO(inode)->access; inode 92 fs/ncpfs/file.c atomic_inc(&NCP_FINFO(inode)->opened); inode 97 fs/ncpfs/file.c mutex_unlock(&NCP_FINFO(inode)->open_mutex); inode 106 fs/ncpfs/file.c struct inode *inode = dentry->d_inode; inode 117 fs/ncpfs/file.c if (!ncp_conn_valid(NCP_SERVER(inode))) inode 127 fs/ncpfs/file.c if (pos > inode->i_sb->s_maxbytes) inode 129 fs/ncpfs/file.c if (pos + count > inode->i_sb->s_maxbytes) { inode 130 fs/ncpfs/file.c count = inode->i_sb->s_maxbytes - pos; inode 133 fs/ncpfs/file.c error = ncp_make_open(inode, O_RDONLY); inode 139 fs/ncpfs/file.c bufsize = NCP_SERVER(inode)->buffer_size; inode 154 fs/ncpfs/file.c error = ncp_read_bounce(NCP_SERVER(inode), inode 155 fs/ncpfs/file.c NCP_FINFO(inode)->file_handle, inode 179 fs/ncpfs/file.c ncp_inode_close(inode); inode 187 fs/ncpfs/file.c struct inode *inode = dentry->d_inode; inode 196 fs/ncpfs/file.c if (!ncp_conn_valid(NCP_SERVER(inode))) inode 202 fs/ncpfs/file.c pos = inode->i_size; inode 213 fs/ncpfs/file.c if (pos >= inode->i_sb->s_maxbytes) { inode 214 fs/ncpfs/file.c if (count || pos > inode->i_sb->s_maxbytes) { inode 218 fs/ncpfs/file.c if (pos + count > inode->i_sb->s_maxbytes) { inode 219 fs/ncpfs/file.c count = inode->i_sb->s_maxbytes - pos; inode 224 fs/ncpfs/file.c errno = ncp_make_open(inode, O_WRONLY); inode 229 fs/ncpfs/file.c bufsize = NCP_SERVER(inode)->buffer_size; inode 248 fs/ncpfs/file.c if (ncp_write_kernel(NCP_SERVER(inode), inode 249 fs/ncpfs/file.c NCP_FINFO(inode)->file_handle, inode 268 fs/ncpfs/file.c if (pos > inode->i_size) { inode 269 fs/ncpfs/file.c inode->i_size = pos; inode 274 fs/ncpfs/file.c ncp_inode_close(inode); inode 279 fs/ncpfs/file.c if (ncp_make_closed(inode)) { inode 53 fs/ncpfs/inode.c static struct inode *ncp_alloc_inode(struct super_block *sb) inode 64 fs/ncpfs/inode.c kmem_cache_free(ncp_inode_cachep, NCP_FINFO(inode)); inode 115 fs/ncpfs/inode.c NCP_FINFO(inode)->DosDirNum = nwinfo->i.DosDirNum; inode 116 fs/ncpfs/inode.c NCP_FINFO(inode)->dirEntNum = nwinfo->i.dirEntNum; inode 117 fs/ncpfs/inode.c NCP_FINFO(inode)->volNumber = nwinfo->volume; inode 122 fs/ncpfs/inode.c ncp_update_dirent(inode, nwinfo); inode 123 fs/ncpfs/inode.c NCP_FINFO(inode)->nwattr = nwinfo->i.attributes; inode 124 fs/ncpfs/inode.c NCP_FINFO(inode)->access = nwinfo->access; inode 125 fs/ncpfs/inode.c memcpy(NCP_FINFO(inode)->file_handle, nwinfo->file_handle, inode 128 fs/ncpfs/inode.c nwinfo->i.entryName, NCP_FINFO(inode)->volNumber, inode 129 fs/ncpfs/inode.c NCP_FINFO(inode)->dirEntNum); inode 139 fs/ncpfs/inode.c inode->i_mode = nwi->nfs.mode; inode 142 fs/ncpfs/inode.c inode->i_blocks = (inode->i_size + NCP_BLOCK_SIZE - 1) >> NCP_BLOCK_SHIFT; inode 144 fs/ncpfs/inode.c inode->i_mtime.tv_sec = ncp_date_dos2unix(nwi->modifyTime, nwi->modifyDate); inode 145 fs/ncpfs/inode.c inode->i_ctime.tv_sec = ncp_date_dos2unix(nwi->creationTime, nwi->creationDate); inode 146 fs/ncpfs/inode.c inode->i_atime.tv_sec = ncp_date_dos2unix(0, nwi->lastAccessDate); inode 147 fs/ncpfs/inode.c inode->i_atime.tv_nsec = 0; inode 148 fs/ncpfs/inode.c inode->i_mtime.tv_nsec = 0; inode 149 fs/ncpfs/inode.c inode->i_ctime.tv_nsec = 0; inode 155 fs/ncpfs/inode.c struct ncp_server *server = NCP_SERVER(inode); inode 158 fs/ncpfs/inode.c inode->i_mode = server->m.dir_mode; inode 161 fs/ncpfs/inode.c inode->i_size = NCP_BLOCK_SIZE; inode 163 fs/ncpfs/inode.c inode->i_mode = server->m.file_mode; inode 164 fs/ncpfs/inode.c inode->i_size = le32_to_cpu(nwi->dataStreamSize); inode 172 fs/ncpfs/inode.c && */ (inode->i_size <= NCP_MAX_SYMLINK_SIZE)) { inode 173 fs/ncpfs/inode.c inode->i_mode = (inode->i_mode & ~S_IFMT) | S_IFLNK; inode 174 fs/ncpfs/inode.c NCP_FINFO(inode)->flags |= NCPI_KLUDGE_SYMLINK; inode 181 fs/ncpfs/inode.c inode->i_mode |= S_IRUGO; inode 185 fs/ncpfs/inode.c inode->i_mode |= (inode->i_mode >> 2) & S_IXUGO; inode 195 fs/ncpfs/inode.c if (nwi->attributes & aRONLY) inode->i_mode &= ~S_IWUGO; inode 200 fs/ncpfs/inode.c NCP_FINFO(inode)->flags = 0; inode 201 fs/ncpfs/inode.c if (!atomic_read(&NCP_FINFO(inode)->opened)) { inode 202 fs/ncpfs/inode.c NCP_FINFO(inode)->nwattr = nwinfo->i.attributes; inode 203 fs/ncpfs/inode.c ncp_update_attrs(inode, nwinfo); inode 206 fs/ncpfs/inode.c ncp_update_dates(inode, &nwinfo->i); inode 207 fs/ncpfs/inode.c ncp_update_dirent(inode, nwinfo); inode 215 fs/ncpfs/inode.c struct ncp_server *server = NCP_SERVER(inode); inode 217 fs/ncpfs/inode.c NCP_FINFO(inode)->flags = 0; inode 219 fs/ncpfs/inode.c ncp_update_attrs(inode, nwinfo); inode 221 fs/ncpfs/inode.c DDPRINTK("ncp_read_inode: inode->i_mode = %u\n", inode->i_mode); inode 223 fs/ncpfs/inode.c inode->i_nlink = 1; inode 224 fs/ncpfs/inode.c inode->i_uid = server->m.uid; inode 225 fs/ncpfs/inode.c inode->i_gid = server->m.gid; inode 227 fs/ncpfs/inode.c ncp_update_dates(inode, &nwinfo->i); inode 228 fs/ncpfs/inode.c ncp_update_inode(inode, nwinfo); inode 243 fs/ncpfs/inode.c struct inode * inode 246 fs/ncpfs/inode.c struct inode *inode; inode 253 fs/ncpfs/inode.c inode = new_inode(sb); inode 254 fs/ncpfs/inode.c if (inode) { inode 255 fs/ncpfs/inode.c atomic_set(&NCP_FINFO(inode)->opened, info->opened); inode 257 fs/ncpfs/inode.c inode->i_ino = info->ino; inode 258 fs/ncpfs/inode.c ncp_set_attr(inode, info); inode 259 fs/ncpfs/inode.c if (S_ISREG(inode->i_mode)) { inode 260 fs/ncpfs/inode.c inode->i_op = &ncp_file_inode_operations; inode 261 fs/ncpfs/inode.c inode->i_fop = &ncp_file_operations; inode 262 fs/ncpfs/inode.c } else if (S_ISDIR(inode->i_mode)) { inode 263 fs/ncpfs/inode.c inode->i_op = &ncp_dir_inode_operations; inode 264 fs/ncpfs/inode.c inode->i_fop = &ncp_dir_operations; inode 266 fs/ncpfs/inode.c } else if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode) || S_ISFIFO(inode->i_mode) || S_ISSOCK(inode->i_mode)) { inode 267 fs/ncpfs/inode.c init_special_inode(inode, inode->i_mode, inode 271 fs/ncpfs/inode.c } else if (S_ISLNK(inode->i_mode)) { inode 272 fs/ncpfs/inode.c inode->i_op = &ncp_symlink_inode_operations; inode 273 fs/ncpfs/inode.c inode->i_data.a_ops = &ncp_symlink_aops; inode 276 fs/ncpfs/inode.c make_bad_inode(inode); inode 278 fs/ncpfs/inode.c insert_inode_hash(inode); inode 281 fs/ncpfs/inode.c return inode; inode 287 fs/ncpfs/inode.c truncate_inode_pages(&inode->i_data, 0); inode 289 fs/ncpfs/inode.c if (S_ISDIR(inode->i_mode)) { inode 290 fs/ncpfs/inode.c DDPRINTK("ncp_delete_inode: put directory %ld\n", inode->i_ino); inode 293 fs/ncpfs/inode.c if (ncp_make_closed(inode) != 0) { inode 297 fs/ncpfs/inode.c clear_inode(inode); inode 438 fs/ncpfs/inode.c struct inode *root_inode; inode 439 fs/ncpfs/inode.c struct inode *sock_inode; inode 777 fs/ncpfs/inode.c struct inode* i; inode 842 fs/ncpfs/inode.c struct inode *inode = dentry->d_inode; inode 852 fs/ncpfs/inode.c server = NCP_SERVER(inode); inode 859 fs/ncpfs/inode.c result = inode_change_ok(inode, attr); inode 887 fs/ncpfs/inode.c if (S_ISDIR(inode->i_mode)) { inode 908 fs/ncpfs/inode.c if (ncp_is_nfs_extras(server, NCP_FINFO(inode)->volNumber)) { inode 910 fs/ncpfs/inode.c NCP_FINFO(inode)->volNumber, inode 911 fs/ncpfs/inode.c NCP_FINFO(inode)->dirEntNum, inode 923 fs/ncpfs/inode.c result = inode_setattr(inode, &tmpattr); inode 940 fs/ncpfs/inode.c if ((result = ncp_make_open(inode, O_WRONLY)) < 0) { inode 944 fs/ncpfs/inode.c ncp_write_kernel(NCP_SERVER(inode), NCP_FINFO(inode)->file_handle, inode 949 fs/ncpfs/inode.c ncp_inode_close(inode); inode 950 fs/ncpfs/inode.c result = ncp_make_closed(inode); inode 959 fs/ncpfs/inode.c result = inode_setattr(inode, &tmpattr); inode 981 fs/ncpfs/inode.c result = ncp_modify_file_or_subdir_dos_info(NCP_SERVER(inode), inode 982 fs/ncpfs/inode.c inode, info_mask, &info); inode 998 fs/ncpfs/inode.c NCP_FINFO(inode)->nwattr = info.attributes; inode 1002 fs/ncpfs/inode.c result = inode_setattr(inode, attr); inode 40 fs/ncpfs/ioctl.c struct inode *inode = file->f_path.dentry->d_inode; inode 58 fs/ncpfs/ioctl.c info.volume_number = NCP_FINFO(inode)->volNumber; inode 59 fs/ncpfs/ioctl.c info.directory_id = NCP_FINFO(inode)->DosDirNum; inode 70 fs/ncpfs/ioctl.c struct inode *inode = file->f_path.dentry->d_inode; inode 87 fs/ncpfs/ioctl.c info2.volume_number = NCP_FINFO(inode)->volNumber; inode 88 fs/ncpfs/ioctl.c info2.directory_id = NCP_FINFO(inode)->DosDirNum; inode 141 fs/ncpfs/ioctl.c struct inode *inode = file->f_path.dentry->d_inode; inode 158 fs/ncpfs/ioctl.c info2.volume_number = NCP_FINFO(inode)->volNumber; inode 159 fs/ncpfs/ioctl.c info2.directory_id = NCP_FINFO(inode)->DosDirNum; inode 268 fs/ncpfs/ioctl.c struct ncp_server *server = NCP_SERVER(inode); inode 341 fs/ncpfs/ioctl.c return ncp_conn_logged_in(inode->i_sb); inode 389 fs/ncpfs/ioctl.c struct dentry* dentry = inode->i_sb->s_root; inode 392 fs/ncpfs/ioctl.c struct inode* s_inode = dentry->d_inode; inode 439 fs/ncpfs/ioctl.c dentry = inode->i_sb->s_root; inode 442 fs/ncpfs/ioctl.c struct inode* s_inode = dentry->d_inode; inode 444 fs/ncpfs/ioctl.c if (inode) { inode 544 fs/ncpfs/ioctl.c if ((result = ncp_make_open(inode, O_RDWR)) != 0) inode 552 fs/ncpfs/ioctl.c if (!S_ISREG(inode->i_mode)) inode 556 fs/ncpfs/ioctl.c result = ncp_ClearPhysicalRecord(NCP_SERVER(inode), inode 557 fs/ncpfs/ioctl.c NCP_FINFO(inode)->file_handle, inode 572 fs/ncpfs/ioctl.c result = ncp_LogPhysicalRecord(NCP_SERVER(inode), inode 573 fs/ncpfs/ioctl.c NCP_FINFO(inode)->file_handle, inode 581 fs/ncpfs/ioctl.c ncp_inode_close(inode); inode 870 fs/ncpfs/ioctl.c ret = __ncp_ioctl(inode, filp, cmd, arg); inode 879 fs/ncpfs/ioctl.c struct inode *inode = file->f_path.dentry->d_inode; inode 884 fs/ncpfs/ioctl.c ret = ncp_ioctl(inode, file, cmd, arg); inode 35 fs/ncpfs/mmap.c struct inode *inode = dentry->d_inode; inode 54 fs/ncpfs/mmap.c bufsize = NCP_SERVER(inode)->buffer_size; inode 57 fs/ncpfs/mmap.c if (ncp_make_open(inode, O_RDONLY) >= 0) { inode 66 fs/ncpfs/mmap.c if (ncp_read_kernel(NCP_SERVER(inode), inode 67 fs/ncpfs/mmap.c NCP_FINFO(inode)->file_handle, inode 80 fs/ncpfs/mmap.c ncp_inode_close(inode); inode 107 fs/ncpfs/mmap.c struct inode *inode = file->f_path.dentry->d_inode; inode 111 fs/ncpfs/mmap.c if (!ncp_conn_valid(NCP_SERVER(inode))) inode 292 fs/ncpfs/ncplib_kernel.c mutex_lock(&NCP_FINFO(inode)->open_mutex); inode 293 fs/ncpfs/ncplib_kernel.c if (atomic_read(&NCP_FINFO(inode)->opened) == 1) { inode 294 fs/ncpfs/ncplib_kernel.c atomic_set(&NCP_FINFO(inode)->opened, 0); inode 295 fs/ncpfs/ncplib_kernel.c err = ncp_close_file(NCP_SERVER(inode), NCP_FINFO(inode)->file_handle); inode 299 fs/ncpfs/ncplib_kernel.c NCP_FINFO(inode)->volNumber, inode 300 fs/ncpfs/ncplib_kernel.c NCP_FINFO(inode)->dirEntNum, err); inode 302 fs/ncpfs/ncplib_kernel.c mutex_unlock(&NCP_FINFO(inode)->open_mutex); inode 723 fs/ncpfs/ncplib_kernel.c struct inode *inode = dentry->d_inode; inode 727 fs/ncpfs/ncplib_kernel.c if (!inode) { inode 730 fs/ncpfs/ncplib_kernel.c volnum = NCP_FINFO(inode)->volNumber; inode 731 fs/ncpfs/ncplib_kernel.c dirent = NCP_FINFO(inode)->DosDirNum; inode 65 fs/ncpfs/ncplib_kernel.h atomic_dec(&NCP_FINFO(inode)->opened); inode 45 fs/ncpfs/symlink.c struct inode *inode = page->mapping->host; inode 55 fs/ncpfs/symlink.c if (ncp_make_open(inode,O_RDONLY)) inode 58 fs/ncpfs/symlink.c error=ncp_read_kernel(NCP_SERVER(inode),NCP_FINFO(inode)->file_handle, inode 61 fs/ncpfs/symlink.c ncp_inode_close(inode); inode 63 fs/ncpfs/symlink.c ncp_make_closed(inode); inode 67 fs/ncpfs/symlink.c if (NCP_FINFO(inode)->flags & NCPI_KLUDGE_SYMLINK) { inode 79 fs/ncpfs/symlink.c error = ncp_vol2io(NCP_SERVER(inode), buf, &len, link, length, 0); inode 108 fs/ncpfs/symlink.c struct inode *inode; inode 160 fs/ncpfs/symlink.c inode=dentry->d_inode; inode 162 fs/ncpfs/symlink.c if (ncp_make_open(inode, O_WRONLY)) inode 165 fs/ncpfs/symlink.c if (ncp_write_kernel(NCP_SERVER(inode), NCP_FINFO(inode)->file_handle, inode 170 fs/ncpfs/symlink.c ncp_inode_close(inode); inode 171 fs/ncpfs/symlink.c ncp_make_closed(inode); inode 175 fs/ncpfs/symlink.c ncp_inode_close(inode); inode 176 fs/ncpfs/symlink.c ncp_make_closed(inode); inode 24 fs/nfs/callback_proc.c struct inode *inode; inode 35 fs/nfs/callback_proc.c inode = nfs_delegation_find_inode(clp, &args->fh); inode 36 fs/nfs/callback_proc.c if (inode == NULL) inode 38 fs/nfs/callback_proc.c nfsi = NFS_I(inode); inode 43 fs/nfs/callback_proc.c res->size = i_size_read(inode); inode 47 fs/nfs/callback_proc.c res->ctime = inode->i_ctime; inode 48 fs/nfs/callback_proc.c res->mtime = inode->i_mtime; inode 56 fs/nfs/callback_proc.c iput(inode); inode 67 fs/nfs/callback_proc.c struct inode *inode; inode 81 fs/nfs/callback_proc.c inode = nfs_delegation_find_inode(clp, &args->fh); inode 82 fs/nfs/callback_proc.c if (inode != NULL) { inode 84 fs/nfs/callback_proc.c switch(nfs_async_inode_return_delegation(inode, &args->stateid)) { inode 95 fs/nfs/callback_proc.c iput(inode); inode 1365 fs/nfs/client.c m->private = PDE(inode)->data; inode 1435 fs/nfs/client.c m->private = PDE(inode)->data; inode 48 fs/nfs/delegation.c struct inode *inode = state->inode; inode 52 fs/nfs/delegation.c for (fl = inode->i_flock; fl != NULL; fl = fl->fl_next) { inode 67 fs/nfs/delegation.c nfs4_schedule_state_recovery(NFS_SERVER(inode)->nfs_client); inode 78 fs/nfs/delegation.c struct nfs_inode *nfsi = NFS_I(inode); inode 84 fs/nfs/delegation.c spin_lock(&inode->i_lock); inode 94 fs/nfs/delegation.c spin_unlock(&inode->i_lock); inode 103 fs/nfs/delegation.c spin_unlock(&inode->i_lock); inode 111 fs/nfs/delegation.c struct nfs_delegation *delegation = NFS_I(inode)->delegation; inode 123 fs/nfs/delegation.c NFS_I(inode)->delegation_state = delegation->type; inode 132 fs/nfs/delegation.c res = nfs4_proc_delegreturn(inode, delegation->cred, &delegation->stateid, issync); inode 159 fs/nfs/delegation.c struct nfs_client *clp = NFS_SERVER(inode)->nfs_client; inode 160 fs/nfs/delegation.c struct nfs_inode *nfsi = NFS_I(inode); inode 174 fs/nfs/delegation.c delegation->inode = inode; inode 203 fs/nfs/delegation.c spin_lock(&inode->i_lock); inode 205 fs/nfs/delegation.c spin_unlock(&inode->i_lock); inode 212 fs/nfs/delegation.c nfs_do_return_delegation(inode, freeme, 0); inode 219 fs/nfs/delegation.c filemap_fdatawrite(inode->i_mapping); inode 220 fs/nfs/delegation.c nfs_wb_all(inode); inode 221 fs/nfs/delegation.c filemap_fdatawait(inode->i_mapping); inode 229 fs/nfs/delegation.c struct nfs_client *clp = NFS_SERVER(inode)->nfs_client; inode 230 fs/nfs/delegation.c struct nfs_inode *nfsi = NFS_I(inode); inode 232 fs/nfs/delegation.c nfs_msync_inode(inode); inode 236 fs/nfs/delegation.c nfs_delegation_claim_opens(inode, &delegation->stateid); inode 239 fs/nfs/delegation.c nfs_msync_inode(inode); inode 241 fs/nfs/delegation.c return nfs_do_return_delegation(inode, delegation, 1); inode 252 fs/nfs/delegation.c struct nfs_client *clp = NFS_SERVER(inode)->nfs_client; inode 253 fs/nfs/delegation.c struct nfs_inode *nfsi = NFS_I(inode); inode 261 fs/nfs/delegation.c nfs_do_return_delegation(inode, delegation, 0); inode 267 fs/nfs/delegation.c struct nfs_client *clp = NFS_SERVER(inode)->nfs_client; inode 268 fs/nfs/delegation.c struct nfs_inode *nfsi = NFS_I(inode); inode 277 fs/nfs/delegation.c err = __nfs_inode_return_delegation(inode, delegation); inode 289 fs/nfs/delegation.c struct inode *inode; inode 296 fs/nfs/delegation.c if (delegation->inode->i_sb != sb) inode 298 fs/nfs/delegation.c inode = igrab(delegation->inode); inode 299 fs/nfs/delegation.c if (inode == NULL) inode 302 fs/nfs/delegation.c delegation = nfs_detach_delegation_locked(NFS_I(inode), NULL); inode 306 fs/nfs/delegation.c __nfs_inode_return_delegation(inode, delegation); inode 307 fs/nfs/delegation.c iput(inode); inode 317 fs/nfs/delegation.c struct inode *inode; inode 327 fs/nfs/delegation.c inode = igrab(delegation->inode); inode 328 fs/nfs/delegation.c if (inode == NULL) inode 331 fs/nfs/delegation.c delegation = nfs_detach_delegation_locked(NFS_I(inode), NULL); inode 335 fs/nfs/delegation.c __nfs_inode_return_delegation(inode, delegation); inode 336 fs/nfs/delegation.c iput(inode); inode 367 fs/nfs/delegation.c struct inode *inode; inode 374 fs/nfs/delegation.c inode = igrab(delegation->inode); inode 375 fs/nfs/delegation.c if (inode == NULL) inode 378 fs/nfs/delegation.c delegation = nfs_detach_delegation_locked(NFS_I(inode), NULL); inode 382 fs/nfs/delegation.c __nfs_inode_return_delegation(inode, delegation); inode 383 fs/nfs/delegation.c iput(inode); inode 390 fs/nfs/delegation.c struct inode *inode; inode 401 fs/nfs/delegation.c struct inode *inode = igrab(args->inode); inode 402 fs/nfs/delegation.c struct nfs_client *clp = NFS_SERVER(inode)->nfs_client; inode 403 fs/nfs/delegation.c struct nfs_inode *nfsi = NFS_I(inode); inode 408 fs/nfs/delegation.c nfs_msync_inode(inode); inode 419 fs/nfs/delegation.c nfs_delegation_claim_opens(inode, args->stateid); inode 422 fs/nfs/delegation.c nfs_msync_inode(inode); inode 425 fs/nfs/delegation.c nfs_do_return_delegation(inode, delegation, 1); inode 426 fs/nfs/delegation.c iput(inode); inode 436 fs/nfs/delegation.c .inode = inode, inode 456 fs/nfs/delegation.c struct inode *nfs_delegation_find_inode(struct nfs_client *clp, const struct nfs_fh *fhandle) inode 459 fs/nfs/delegation.c struct inode *res = NULL; inode 462 fs/nfs/delegation.c if (nfs_compare_fh(fhandle, &NFS_I(delegation->inode)->fh) == 0) { inode 463 fs/nfs/delegation.c res = igrab(delegation->inode); inode 495 fs/nfs/delegation.c delegation = nfs_detach_delegation_locked(NFS_I(delegation->inode), NULL); inode 507 fs/nfs/delegation.c struct nfs_inode *nfsi = NFS_I(inode); inode 18 fs/nfs/delegation.h struct inode *inode; inode 34 fs/nfs/delegation.h struct inode *nfs_delegation_find_inode(struct nfs_client *clp, const struct nfs_fh *fhandle); inode 55 fs/nfs/delegation.h delegation = rcu_dereference(NFS_I(inode)->delegation); inode 140 fs/nfs/dir.c nfs_inc_stats(inode, NFSIOS_VFSOPEN); inode 143 fs/nfs/dir.c res = nfs_open(inode, filp); inode 178 fs/nfs/dir.c struct inode *inode = file->f_path.dentry->d_inode; inode 189 fs/nfs/dir.c error = NFS_PROTO(inode)->readdir(file->f_path.dentry, cred, desc->entry->cookie, page, inode 190 fs/nfs/dir.c NFS_SERVER(inode)->dtsize, desc->plus); inode 194 fs/nfs/dir.c NFS_SERVER(inode)->caps &= ~NFS_CAP_READDIRPLUS; inode 195 fs/nfs/dir.c clear_bit(NFS_INO_ADVISE_RDPLUS, &NFS_I(inode)->flags); inode 208 fs/nfs/dir.c if (invalidate_inode_pages2_range(inode->i_mapping, page->index + 1, -1) < 0) { inode 210 fs/nfs/dir.c nfs_zap_mapping(inode, inode->i_mapping); inode 314 fs/nfs/dir.c struct inode *inode = desc->file->f_path.dentry->d_inode; inode 326 fs/nfs/dir.c page = read_cache_page(inode->i_mapping, desc->page_index, inode 390 fs/nfs/dir.c return (inode->i_mode >> 12) & 15; inode 470 fs/nfs/dir.c struct inode *inode = file->f_path.dentry->d_inode; inode 485 fs/nfs/dir.c status = NFS_PROTO(inode)->readdir(file->f_path.dentry, cred, inode 487 fs/nfs/dir.c NFS_SERVER(inode)->dtsize, inode 524 fs/nfs/dir.c struct inode *inode = dentry->d_inode; inode 535 fs/nfs/dir.c nfs_inc_stats(inode, NFSIOS_VFSGETDENTS); inode 547 fs/nfs/dir.c desc->decode = NFS_PROTO(inode)->decode_dirent; inode 548 fs/nfs/dir.c desc->plus = NFS_USE_READDIRPLUS(inode); inode 558 fs/nfs/dir.c res = nfs_revalidate_mapping_nolock(inode, filp->f_mapping); inode 577 fs/nfs/dir.c clear_bit(NFS_INO_ADVISE_RDPLUS, &NFS_I(inode)->flags); inode 578 fs/nfs/dir.c nfs_zap_caches(inode); inode 605 fs/nfs/dir.c struct inode *inode = dentry->d_inode; inode 612 fs/nfs/dir.c mutex_lock(&inode->i_mutex); inode 628 fs/nfs/dir.c mutex_unlock(&inode->i_mutex); inode 718 fs/nfs/dir.c struct nfs_server *server = NFS_SERVER(inode); inode 720 fs/nfs/dir.c if (test_bit(NFS_INO_MOUNTPOINT, &NFS_I(inode)->flags)) inode 729 fs/nfs/dir.c (S_ISREG(inode->i_mode) || inode 730 fs/nfs/dir.c S_ISDIR(inode->i_mode))) inode 734 fs/nfs/dir.c return nfs_revalidate_inode(server, inode); inode 736 fs/nfs/dir.c return __nfs_revalidate_inode(server, inode); inode 769 fs/nfs/dir.c struct inode *dir; inode 770 fs/nfs/dir.c struct inode *inode; inode 779 fs/nfs/dir.c inode = dentry->d_inode; inode 781 fs/nfs/dir.c if (!inode) { inode 787 fs/nfs/dir.c if (is_bad_inode(inode)) { inode 796 fs/nfs/dir.c if (nfs_lookup_verify_inode(inode, nd)) inode 801 fs/nfs/dir.c if (NFS_STALE(inode)) inode 807 fs/nfs/dir.c if (nfs_compare_fh(NFS_FH(inode), &fhandle)) inode 809 fs/nfs/dir.c if ((error = nfs_refresh_inode(inode, &fattr)) != 0) inode 823 fs/nfs/dir.c if (inode && S_ISDIR(inode->i_mode)) { inode 825 fs/nfs/dir.c nfs_zap_caches(inode); inode 867 fs/nfs/dir.c spin_lock(&inode->i_lock); inode 868 fs/nfs/dir.c if (inode->i_nlink > 0) inode 869 fs/nfs/dir.c drop_nlink(inode); inode 870 fs/nfs/dir.c spin_unlock(&inode->i_lock); inode 879 fs/nfs/dir.c if (S_ISDIR(inode->i_mode)) inode 881 fs/nfs/dir.c NFS_I(inode)->cache_validity |= NFS_INO_INVALID_DATA; inode 884 fs/nfs/dir.c drop_nlink(inode); inode 885 fs/nfs/dir.c nfs_complete_unlink(dentry, inode); inode 887 fs/nfs/dir.c iput(inode); inode 900 fs/nfs/dir.c struct inode *inode = NULL; inode 936 fs/nfs/dir.c inode = nfs_fhget(dentry->d_sb, &fhandle, &fattr); inode 937 fs/nfs/dir.c res = (struct dentry *)inode; inode 942 fs/nfs/dir.c res = d_materialise_unique(dentry, inode); inode 1038 fs/nfs/dir.c struct inode *inode = dentry->d_inode; inode 1039 fs/nfs/dir.c struct inode *dir; inode 1049 fs/nfs/dir.c if (inode == NULL) { inode 1056 fs/nfs/dir.c if (!S_ISREG(inode->i_mode)) inode 1078 fs/nfs/dir.c if (inode != NULL && nfs_have_delegation(inode, FMODE_READ)) inode 1087 fs/nfs/dir.c struct inode *dir = parent->d_inode; inode 1094 fs/nfs/dir.c struct inode *inode; inode 1140 fs/nfs/dir.c inode = nfs_fhget(dentry->d_sb, entry->fh, entry->fattr); inode 1141 fs/nfs/dir.c if (IS_ERR(inode)) { inode 1146 fs/nfs/dir.c alias = d_materialise_unique(dentry, inode); inode 1166 fs/nfs/dir.c struct inode *dir = parent->d_inode; inode 1167 fs/nfs/dir.c struct inode *inode; inode 1187 fs/nfs/dir.c inode = nfs_fhget(dentry->d_sb, fhandle, fattr); inode 1188 fs/nfs/dir.c error = PTR_ERR(inode); inode 1189 fs/nfs/dir.c if (IS_ERR(inode)) inode 1191 fs/nfs/dir.c d_add(dentry, inode); inode 1384 fs/nfs/dir.c struct inode *dir = dentry->d_parent->d_inode; inode 1385 fs/nfs/dir.c struct inode *inode = dentry->d_inode; inode 1397 fs/nfs/dir.c if (inode != NULL) { inode 1398 fs/nfs/dir.c nfs_inode_return_delegation(inode); inode 1402 fs/nfs/dir.c nfs_drop_nlink(inode); inode 1403 fs/nfs/dir.c nfs_mark_for_revalidate(inode); inode 1522 fs/nfs/dir.c struct inode *inode = old_dentry->d_inode; inode 1530 fs/nfs/dir.c error = NFS_PROTO(dir)->link(inode, dir, &dentry->d_name); inode 1532 fs/nfs/dir.c atomic_inc(&inode->i_count); inode 1533 fs/nfs/dir.c d_add(dentry, inode); inode 1565 fs/nfs/dir.c struct inode *old_inode = old_dentry->d_inode; inode 1566 fs/nfs/dir.c struct inode *new_inode = new_dentry->d_inode; inode 1677 fs/nfs/dir.c struct inode *inode; inode 1684 fs/nfs/dir.c inode = igrab(&nfsi->vfs_inode); inode 1685 fs/nfs/dir.c if (inode == NULL) { inode 1689 fs/nfs/dir.c spin_lock(&inode->i_lock); inode 1704 fs/nfs/dir.c spin_unlock(&inode->i_lock); inode 1706 fs/nfs/dir.c iput(inode); inode 1721 fs/nfs/dir.c struct nfs_inode *nfsi = NFS_I(inode); inode 1735 fs/nfs/dir.c spin_unlock(&inode->i_lock); inode 1748 fs/nfs/dir.c if (test_and_clear_bit(NFS_INO_ACL_LRU_SET, &NFS_I(inode)->flags)) { inode 1750 fs/nfs/dir.c list_del_init(&NFS_I(inode)->access_cache_inode_lru); inode 1754 fs/nfs/dir.c spin_lock(&inode->i_lock); inode 1756 fs/nfs/dir.c __nfs_access_zap_cache(inode); inode 1761 fs/nfs/dir.c struct rb_node *n = NFS_I(inode)->access_cache.rb_node; inode 1779 fs/nfs/dir.c struct nfs_inode *nfsi = NFS_I(inode); inode 1783 fs/nfs/dir.c spin_lock(&inode->i_lock); inode 1786 fs/nfs/dir.c cache = nfs_access_search_rbtree(inode, cred); inode 1797 fs/nfs/dir.c spin_unlock(&inode->i_lock); inode 1802 fs/nfs/dir.c spin_unlock(&inode->i_lock); inode 1807 fs/nfs/dir.c __nfs_access_zap_cache(inode); inode 1813 fs/nfs/dir.c struct nfs_inode *nfsi = NFS_I(inode); inode 1819 fs/nfs/dir.c spin_lock(&inode->i_lock); inode 1834 fs/nfs/dir.c spin_unlock(&inode->i_lock); inode 1840 fs/nfs/dir.c spin_unlock(&inode->i_lock); inode 1854 fs/nfs/dir.c nfs_access_add_rbtree(inode, cache); inode 1862 fs/nfs/dir.c if (!test_and_set_bit(NFS_INO_ACL_LRU_SET, &NFS_I(inode)->flags)) { inode 1864 fs/nfs/dir.c list_add_tail(&NFS_I(inode)->access_cache_inode_lru, &nfs_access_lru_list); inode 1874 fs/nfs/dir.c status = nfs_access_get_cached(inode, cred, &cache); inode 1882 fs/nfs/dir.c status = NFS_PROTO(inode)->access(inode, &cache); inode 1885 fs/nfs/dir.c nfs_access_add_cache(inode, &cache); inode 1907 fs/nfs/dir.c return nfs_do_access(inode, cred, nfs_open_permission_mask(openflags)); inode 1915 fs/nfs/dir.c nfs_inc_stats(inode, NFSIOS_VFSACCESS); inode 1923 fs/nfs/dir.c switch (inode->i_mode & S_IFMT) { inode 1928 fs/nfs/dir.c if (nfs_server_capable(inode, NFS_CAP_ATOMIC_OPEN) inode 1942 fs/nfs/dir.c if (!NFS_PROTO(inode)->access) inode 1947 fs/nfs/dir.c res = nfs_do_access(inode, cred, mask); inode 1953 fs/nfs/dir.c inode->i_sb->s_id, inode->i_ino, mask, res); inode 1956 fs/nfs/dir.c res = nfs_revalidate_inode(NFS_SERVER(inode), inode); inode 1958 fs/nfs/dir.c res = generic_permission(inode, mask, NULL); inode 72 fs/nfs/direct.c struct inode * inode; /* target file of i/o */ inode 278 fs/nfs/direct.c struct inode *inode = ctx->path.dentry->d_inode; inode 281 fs/nfs/direct.c size_t rsize = NFS_SERVER(inode)->rsize; inode 287 fs/nfs/direct.c .rpc_client = NFS_CLIENT(inode), inode 331 fs/nfs/direct.c data->inode = inode; inode 333 fs/nfs/direct.c data->args.fh = NFS_FH(inode); inode 347 fs/nfs/direct.c NFS_PROTO(inode)->read_setup(data, &msg); inode 357 fs/nfs/direct.c inode->i_sb->s_id, inode 358 fs/nfs/direct.c (long long)NFS_FILEID(inode), inode 415 fs/nfs/direct.c struct inode *inode = iocb->ki_filp->f_mapping->host; inode 422 fs/nfs/direct.c dreq->inode = inode; inode 448 fs/nfs/direct.c struct inode *inode = dreq->inode; inode 456 fs/nfs/direct.c .rpc_client = NFS_CLIENT(inode), inode 488 fs/nfs/direct.c NFS_PROTO(inode)->write_setup(data, &msg); inode 499 fs/nfs/direct.c inode->i_sb->s_id, inode 500 fs/nfs/direct.c (long long)NFS_FILEID(inode), inode 506 fs/nfs/direct.c nfs_direct_write_complete(dreq, inode); inode 514 fs/nfs/direct.c NFS_PROTO(data->inode)->commit_done(task, data); inode 533 fs/nfs/direct.c nfs_direct_write_complete(dreq, data->inode); inode 553 fs/nfs/direct.c .rpc_client = NFS_CLIENT(dreq->inode), inode 561 fs/nfs/direct.c data->inode = dreq->inode; inode 564 fs/nfs/direct.c data->args.fh = NFS_FH(data->inode); inode 572 fs/nfs/direct.c NFS_PROTO(data->inode)->commit_setup(data, &msg); inode 600 fs/nfs/direct.c nfs_zap_mapping(inode, inode->i_mapping); inode 620 fs/nfs/direct.c nfs_zap_mapping(inode, inode->i_mapping); inode 672 fs/nfs/direct.c nfs_direct_write_complete(dreq, data->inode); inode 692 fs/nfs/direct.c struct inode *inode = ctx->path.dentry->d_inode; inode 700 fs/nfs/direct.c .rpc_client = NFS_CLIENT(inode), inode 706 fs/nfs/direct.c size_t wsize = NFS_SERVER(inode)->wsize; inode 747 fs/nfs/direct.c data->inode = inode; inode 749 fs/nfs/direct.c data->args.fh = NFS_FH(inode); inode 764 fs/nfs/direct.c NFS_PROTO(inode)->write_setup(data, &msg); inode 774 fs/nfs/direct.c inode->i_sb->s_id, inode 775 fs/nfs/direct.c (long long)NFS_FILEID(inode), inode 820 fs/nfs/direct.c nfs_direct_write_complete(dreq, dreq->inode); inode 835 fs/nfs/direct.c struct inode *inode = iocb->ki_filp->f_mapping->host; inode 837 fs/nfs/direct.c size_t wsize = NFS_SERVER(inode)->wsize; inode 848 fs/nfs/direct.c dreq->inode = inode; inode 130 fs/nfs/file.c nfs_inc_stats(inode, NFSIOS_VFSOPEN); inode 131 fs/nfs/file.c res = nfs_open(inode, filp); inode 147 fs/nfs/file.c nfs_inc_stats(inode, NFSIOS_VFSRELEASE); inode 148 fs/nfs/file.c return nfs_release(inode, filp); inode 164 fs/nfs/file.c struct nfs_server *server = NFS_SERVER(inode); inode 165 fs/nfs/file.c struct nfs_inode *nfsi = NFS_I(inode); inode 173 fs/nfs/file.c if (!(nfsi->cache_validity & NFS_INO_REVAL_PAGECACHE) && !nfs_attribute_timeout(inode)) inode 176 fs/nfs/file.c return __nfs_revalidate_inode(server, inode); inode 190 fs/nfs/file.c struct inode *inode = filp->f_mapping->host; inode 191 fs/nfs/file.c int retval = nfs_revalidate_file_size(inode, filp); inode 217 fs/nfs/file.c status = nfs_wb_all(inode); inode 234 fs/nfs/file.c struct inode *inode = dentry->d_inode; inode 243 fs/nfs/file.c nfs_inc_stats(inode, NFSIOS_VFSFLUSH); inode 246 fs/nfs/file.c status = nfs_do_fsync(ctx, inode); inode 248 fs/nfs/file.c nfs_revalidate_inode(NFS_SERVER(inode), inode); inode 257 fs/nfs/file.c struct inode * inode = dentry->d_inode; inode 268 fs/nfs/file.c result = nfs_revalidate_mapping(inode, iocb->ki_filp->f_mapping); inode 269 fs/nfs/file.c nfs_add_stats(inode, NFSIOS_NORMALREADBYTES, count); inode 281 fs/nfs/file.c struct inode *inode = dentry->d_inode; inode 288 fs/nfs/file.c res = nfs_revalidate_mapping(inode, filp->f_mapping); inode 298 fs/nfs/file.c struct inode *inode = dentry->d_inode; inode 304 fs/nfs/file.c status = nfs_revalidate_mapping(inode, file->f_mapping); inode 322 fs/nfs/file.c struct inode *inode = dentry->d_inode; inode 328 fs/nfs/file.c nfs_inc_stats(inode, NFSIOS_VFSFSYNC); inode 329 fs/nfs/file.c return nfs_do_fsync(ctx, inode); inode 429 fs/nfs/file.c struct inode *inode = page->mapping->host; inode 432 fs/nfs/file.c inode->i_ino, (long long)page_offset(page)); inode 434 fs/nfs/file.c return nfs_wb_page(inode, page); inode 495 fs/nfs/file.c if (IS_SYNC(inode) || (filp->f_flags & O_SYNC)) inode 507 fs/nfs/file.c struct inode * inode = dentry->d_inode; inode 519 fs/nfs/file.c if (IS_SWAPFILE(inode)) inode 525 fs/nfs/file.c result = nfs_revalidate_file_size(inode, iocb->ki_filp); inode 534 fs/nfs/file.c nfs_add_stats(inode, NFSIOS_NORMALWRITTENBYTES, count); inode 537 fs/nfs/file.c if (result >= 0 && nfs_need_sync_write(iocb->ki_filp, inode)) { inode 538 fs/nfs/file.c int err = nfs_do_fsync(nfs_file_open_context(iocb->ki_filp), inode); inode 552 fs/nfs/file.c struct inode *inode = filp->f_mapping->host; inode 563 fs/nfs/file.c if (nfs_have_delegation(inode, FMODE_READ)) inode 566 fs/nfs/file.c if (NFS_SERVER(inode)->flags & NFS_MOUNT_NONLM) inode 569 fs/nfs/file.c status = NFS_PROTO(inode)->lock(filp, cmd, fl); inode 600 fs/nfs/file.c struct inode *inode = filp->f_mapping->host; inode 615 fs/nfs/file.c if (!(NFS_SERVER(inode)->flags & NFS_MOUNT_NONLM)) inode 616 fs/nfs/file.c status = NFS_PROTO(inode)->lock(filp, cmd, fl); inode 625 fs/nfs/file.c struct inode *inode = filp->f_mapping->host; inode 638 fs/nfs/file.c if (!(NFS_SERVER(inode)->flags & NFS_MOUNT_NONLM)) inode 639 fs/nfs/file.c status = NFS_PROTO(inode)->lock(filp, cmd, fl); inode 650 fs/nfs/file.c if (!nfs_have_delegation(inode, FMODE_READ)) inode 651 fs/nfs/file.c nfs_zap_caches(inode); inode 661 fs/nfs/file.c struct inode *inode = filp->f_mapping->host; inode 670 fs/nfs/file.c nfs_inc_stats(inode, NFSIOS_VFSLOCK); inode 673 fs/nfs/file.c if (__mandatory_lock(inode) && fl->fl_type != F_UNLCK) inode 676 fs/nfs/file.c if (NFS_PROTO(inode)->lock_check_bounds != NULL) { inode 677 fs/nfs/file.c ret = NFS_PROTO(inode)->lock_check_bounds(fl); inode 53 fs/nfs/getroot.c sb->s_root = d_alloc_root(inode); inode 55 fs/nfs/getroot.c iput(inode); inode 59 fs/nfs/getroot.c atomic_inc(&inode->i_count); inode 84 fs/nfs/getroot.c struct inode *inode; inode 96 fs/nfs/getroot.c inode = nfs_fhget(sb, mntfh, fsinfo.fattr); inode 97 fs/nfs/getroot.c if (IS_ERR(inode)) { inode 99 fs/nfs/getroot.c return ERR_CAST(inode); inode 102 fs/nfs/getroot.c error = nfs_superblock_set_dummy_root(sb, inode); inode 110 fs/nfs/getroot.c mntroot = d_alloc_anon(inode); inode 112 fs/nfs/getroot.c iput(inode); inode 117 fs/nfs/getroot.c security_d_instantiate(mntroot, inode); inode 246 fs/nfs/getroot.c struct inode *inode; inode 266 fs/nfs/getroot.c inode = nfs_fhget(sb, mntfh, &fattr); inode 267 fs/nfs/getroot.c if (IS_ERR(inode)) { inode 269 fs/nfs/getroot.c return ERR_CAST(inode); inode 272 fs/nfs/getroot.c error = nfs_superblock_set_dummy_root(sb, inode); inode 280 fs/nfs/getroot.c mntroot = d_alloc_anon(inode); inode 282 fs/nfs/getroot.c iput(inode); inode 287 fs/nfs/getroot.c security_d_instantiate(mntroot, inode); inode 92 fs/nfs/inode.c ret = filemap_fdatawait(inode->i_mapping); inode 94 fs/nfs/inode.c ret = nfs_commit_inode(inode, FLUSH_SYNC); inode 96 fs/nfs/inode.c ret = nfs_commit_inode(inode, 0); inode 99 fs/nfs/inode.c __mark_inode_dirty(inode, I_DIRTY_DATASYNC); inode 108 fs/nfs/inode.c BUG_ON(nfs_have_writebacks(inode)); inode 109 fs/nfs/inode.c BUG_ON(!list_empty(&NFS_I(inode)->open_files)); inode 110 fs/nfs/inode.c nfs_zap_acl_cache(inode); inode 111 fs/nfs/inode.c nfs_access_zap_cache(inode); inode 137 fs/nfs/inode.c struct nfs_inode *nfsi = NFS_I(inode); inode 138 fs/nfs/inode.c int mode = inode->i_mode; inode 140 fs/nfs/inode.c nfs_inc_stats(inode, NFSIOS_ATTRINVALIDATE); inode 142 fs/nfs/inode.c nfsi->attrtimeo = NFS_MINATTRTIMEO(inode); inode 145 fs/nfs/inode.c memset(NFS_COOKIEVERF(inode), 0, sizeof(NFS_COOKIEVERF(inode))); inode 154 fs/nfs/inode.c spin_lock(&inode->i_lock); inode 155 fs/nfs/inode.c nfs_zap_caches_locked(inode); inode 156 fs/nfs/inode.c spin_unlock(&inode->i_lock); inode 162 fs/nfs/inode.c spin_lock(&inode->i_lock); inode 163 fs/nfs/inode.c NFS_I(inode)->cache_validity |= NFS_INO_INVALID_DATA; inode 164 fs/nfs/inode.c spin_unlock(&inode->i_lock); inode 170 fs/nfs/inode.c void (*clear_acl_cache)(struct inode *); inode 172 fs/nfs/inode.c clear_acl_cache = NFS_PROTO(inode)->clear_acl_cache; inode 174 fs/nfs/inode.c clear_acl_cache(inode); inode 175 fs/nfs/inode.c spin_lock(&inode->i_lock); inode 176 fs/nfs/inode.c NFS_I(inode)->cache_validity &= ~NFS_INO_INVALID_ACL; inode 177 fs/nfs/inode.c spin_unlock(&inode->i_lock); inode 182 fs/nfs/inode.c spin_lock(&inode->i_lock); inode 183 fs/nfs/inode.c NFS_I(inode)->cache_validity |= NFS_INO_INVALID_ATIME; inode 184 fs/nfs/inode.c spin_unlock(&inode->i_lock); inode 193 fs/nfs/inode.c set_bit(NFS_INO_STALE, &NFS_I(inode)->flags); inode 194 fs/nfs/inode.c nfs_zap_caches_locked(inode); inode 215 fs/nfs/inode.c if (NFS_FILEID(inode) != fattr->fileid) inode 217 fs/nfs/inode.c if (nfs_compare_fh(NFS_FH(inode), fh)) inode 219 fs/nfs/inode.c if (is_bad_inode(inode) || NFS_STALE(inode)) inode 230 fs/nfs/inode.c set_nfs_fileid(inode, fattr->fileid); inode 231 fs/nfs/inode.c nfs_copy_fh(NFS_FH(inode), desc->fh); inode 242 fs/nfs/inode.c struct inode * inode 249 fs/nfs/inode.c struct inode *inode = ERR_PTR(-ENOENT); inode 262 fs/nfs/inode.c inode = iget5_locked(sb, hash, nfs_find_actor, nfs_init_locked, &desc); inode 263 fs/nfs/inode.c if (inode == NULL) { inode 264 fs/nfs/inode.c inode = ERR_PTR(-ENOMEM); inode 268 fs/nfs/inode.c if (inode->i_state & I_NEW) { inode 269 fs/nfs/inode.c struct nfs_inode *nfsi = NFS_I(inode); inode 274 fs/nfs/inode.c inode->i_ino = hash; inode 277 fs/nfs/inode.c inode->i_flags |= S_NOATIME|S_NOCMTIME; inode 278 fs/nfs/inode.c inode->i_mode = fattr->mode; inode 282 fs/nfs/inode.c inode->i_op = NFS_SB(sb)->nfs_client->rpc_ops->file_inode_ops; inode 283 fs/nfs/inode.c if (S_ISREG(inode->i_mode)) { inode 284 fs/nfs/inode.c inode->i_fop = &nfs_file_operations; inode 285 fs/nfs/inode.c inode->i_data.a_ops = &nfs_file_aops; inode 286 fs/nfs/inode.c inode->i_data.backing_dev_info = &NFS_SB(sb)->backing_dev_info; inode 287 fs/nfs/inode.c } else if (S_ISDIR(inode->i_mode)) { inode 288 fs/nfs/inode.c inode->i_op = NFS_SB(sb)->nfs_client->rpc_ops->dir_inode_ops; inode 289 fs/nfs/inode.c inode->i_fop = &nfs_dir_operations; inode 290 fs/nfs/inode.c if (nfs_server_capable(inode, NFS_CAP_READDIRPLUS) inode 292 fs/nfs/inode.c set_bit(NFS_INO_ADVISE_RDPLUS, &NFS_I(inode)->flags); inode 296 fs/nfs/inode.c inode->i_op = &nfs_referral_inode_operations; inode 298 fs/nfs/inode.c inode->i_op = &nfs_mountpoint_inode_operations; inode 299 fs/nfs/inode.c inode->i_fop = NULL; inode 302 fs/nfs/inode.c } else if (S_ISLNK(inode->i_mode)) inode 303 fs/nfs/inode.c inode->i_op = &nfs_symlink_inode_operations; inode 305 fs/nfs/inode.c init_special_inode(inode, inode->i_mode, fattr->rdev); inode 310 fs/nfs/inode.c inode->i_atime = fattr->atime; inode 311 fs/nfs/inode.c inode->i_mtime = fattr->mtime; inode 312 fs/nfs/inode.c inode->i_ctime = fattr->ctime; inode 315 fs/nfs/inode.c inode->i_size = nfs_size_to_loff_t(fattr->size); inode 316 fs/nfs/inode.c inode->i_nlink = fattr->nlink; inode 317 fs/nfs/inode.c inode->i_uid = fattr->uid; inode 318 fs/nfs/inode.c inode->i_gid = fattr->gid; inode 323 fs/nfs/inode.c inode->i_blocks = nfs_calc_block_size(fattr->du.nfs3.used); inode 325 fs/nfs/inode.c inode->i_blocks = fattr->du.nfs2.blocks; inode 327 fs/nfs/inode.c nfsi->attrtimeo = NFS_MINATTRTIMEO(inode); inode 332 fs/nfs/inode.c unlock_new_inode(inode); inode 334 fs/nfs/inode.c nfs_refresh_inode(inode, fattr); inode 336 fs/nfs/inode.c inode->i_sb->s_id, inode 337 fs/nfs/inode.c (long long)NFS_FILEID(inode), inode 338 fs/nfs/inode.c atomic_read(&inode->i_count)); inode 341 fs/nfs/inode.c return inode; inode 344 fs/nfs/inode.c dprintk("nfs_fhget: iget failed with error %ld\n", PTR_ERR(inode)); inode 353 fs/nfs/inode.c struct inode *inode = dentry->d_inode; inode 357 fs/nfs/inode.c nfs_inc_stats(inode, NFSIOS_VFSSETATTR); inode 364 fs/nfs/inode.c if (!S_ISREG(inode->i_mode) || attr->ia_size == i_size_read(inode)) inode 374 fs/nfs/inode.c if (S_ISREG(inode->i_mode)) { inode 375 fs/nfs/inode.c filemap_write_and_wait(inode->i_mapping); inode 376 fs/nfs/inode.c nfs_wb_all(inode); inode 382 fs/nfs/inode.c nfs_inode_return_delegation(inode); inode 383 fs/nfs/inode.c error = NFS_PROTO(inode)->setattr(dentry, &fattr, attr); inode 385 fs/nfs/inode.c nfs_refresh_inode(inode, &fattr); inode 400 fs/nfs/inode.c if (i_size_read(inode) < offset) { inode 406 fs/nfs/inode.c if (offset > inode->i_sb->s_maxbytes) inode 408 fs/nfs/inode.c spin_lock(&inode->i_lock); inode 409 fs/nfs/inode.c i_size_write(inode, offset); inode 410 fs/nfs/inode.c spin_unlock(&inode->i_lock); inode 412 fs/nfs/inode.c struct address_space *mapping = inode->i_mapping; inode 419 fs/nfs/inode.c if (IS_SWAPFILE(inode)) inode 421 fs/nfs/inode.c spin_lock(&inode->i_lock); inode 422 fs/nfs/inode.c i_size_write(inode, offset); inode 423 fs/nfs/inode.c spin_unlock(&inode->i_lock); inode 458 fs/nfs/inode.c mode |= inode->i_mode & ~S_IALLUGO; inode 459 fs/nfs/inode.c inode->i_mode = mode; inode 462 fs/nfs/inode.c inode->i_uid = attr->ia_uid; inode 464 fs/nfs/inode.c inode->i_gid = attr->ia_gid; inode 465 fs/nfs/inode.c spin_lock(&inode->i_lock); inode 466 fs/nfs/inode.c NFS_I(inode)->cache_validity |= NFS_INO_INVALID_ACCESS|NFS_INO_INVALID_ACL; inode 467 fs/nfs/inode.c spin_unlock(&inode->i_lock); inode 470 fs/nfs/inode.c nfs_inc_stats(inode, NFSIOS_SETATTRTRUNC); inode 471 fs/nfs/inode.c nfs_vmtruncate(inode, attr->ia_size); inode 488 fs/nfs/inode.c struct nfs_inode *nfsi = NFS_I(inode); inode 499 fs/nfs/inode.c struct nfs_inode *nfsi = NFS_I(inode); inode 508 fs/nfs/inode.c struct inode *inode = dentry->d_inode; inode 509 fs/nfs/inode.c int need_atime = NFS_I(inode)->cache_validity & NFS_INO_INVALID_ATIME; inode 519 fs/nfs/inode.c if (S_ISREG(inode->i_mode)) { inode 520 fs/nfs/inode.c mutex_lock(&inode->i_mutex); inode 521 fs/nfs/inode.c nfs_wb_nocommit(inode); inode 522 fs/nfs/inode.c mutex_unlock(&inode->i_mutex); inode 535 fs/nfs/inode.c ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode))) inode 539 fs/nfs/inode.c err = __nfs_revalidate_inode(NFS_SERVER(inode), inode); inode 541 fs/nfs/inode.c err = nfs_revalidate_inode(NFS_SERVER(inode), inode); inode 543 fs/nfs/inode.c generic_fillattr(inode, stat); inode 544 fs/nfs/inode.c stat->ino = nfs_compat_user_ino64(NFS_FILEID(inode)); inode 577 fs/nfs/inode.c struct inode *inode; inode 582 fs/nfs/inode.c inode = ctx->path.dentry->d_inode; inode 583 fs/nfs/inode.c if (!atomic_dec_and_lock(&ctx->count, &inode->i_lock)) inode 586 fs/nfs/inode.c spin_unlock(&inode->i_lock); inode 615 fs/nfs/inode.c struct inode *inode = filp->f_path.dentry->d_inode; inode 616 fs/nfs/inode.c struct nfs_inode *nfsi = NFS_I(inode); inode 619 fs/nfs/inode.c spin_lock(&inode->i_lock); inode 621 fs/nfs/inode.c spin_unlock(&inode->i_lock); inode 629 fs/nfs/inode.c struct nfs_inode *nfsi = NFS_I(inode); inode 632 fs/nfs/inode.c spin_lock(&inode->i_lock); inode 641 fs/nfs/inode.c spin_unlock(&inode->i_lock); inode 647 fs/nfs/inode.c struct inode *inode = filp->f_path.dentry->d_inode; inode 652 fs/nfs/inode.c spin_lock(&inode->i_lock); inode 653 fs/nfs/inode.c list_move_tail(&ctx->list, &NFS_I(inode)->open_files); inode 654 fs/nfs/inode.c spin_unlock(&inode->i_lock); inode 695 fs/nfs/inode.c struct nfs_inode *nfsi = NFS_I(inode); inode 698 fs/nfs/inode.c inode->i_sb->s_id, (long long)NFS_FILEID(inode)); inode 700 fs/nfs/inode.c nfs_inc_stats(inode, NFSIOS_INODEREVALIDATE); inode 701 fs/nfs/inode.c if (is_bad_inode(inode)) inode 703 fs/nfs/inode.c if (NFS_STALE(inode)) inode 706 fs/nfs/inode.c status = nfs_wait_on_inode(inode); inode 711 fs/nfs/inode.c if (NFS_STALE(inode)) inode 714 fs/nfs/inode.c status = NFS_PROTO(inode)->getattr(server, NFS_FH(inode), &fattr); inode 717 fs/nfs/inode.c inode->i_sb->s_id, inode 718 fs/nfs/inode.c (long long)NFS_FILEID(inode), status); inode 720 fs/nfs/inode.c nfs_zap_caches(inode); inode 721 fs/nfs/inode.c if (!S_ISDIR(inode->i_mode)) inode 722 fs/nfs/inode.c set_bit(NFS_INO_STALE, &NFS_I(inode)->flags); inode 727 fs/nfs/inode.c spin_lock(&inode->i_lock); inode 728 fs/nfs/inode.c status = nfs_update_inode(inode, &fattr); inode 730 fs/nfs/inode.c spin_unlock(&inode->i_lock); inode 732 fs/nfs/inode.c inode->i_sb->s_id, inode 733 fs/nfs/inode.c (long long)NFS_FILEID(inode), status); inode 736 fs/nfs/inode.c spin_unlock(&inode->i_lock); inode 739 fs/nfs/inode.c nfs_zap_acl_cache(inode); inode 742 fs/nfs/inode.c inode->i_sb->s_id, inode 743 fs/nfs/inode.c (long long)NFS_FILEID(inode)); inode 746 fs/nfs/inode.c nfs_wake_up_inode(inode); inode 754 fs/nfs/inode.c struct nfs_inode *nfsi = NFS_I(inode); inode 756 fs/nfs/inode.c if (nfs_have_delegation(inode, FMODE_READ)) inode 777 fs/nfs/inode.c if (!(NFS_I(inode)->cache_validity & NFS_INO_INVALID_ATTR) inode 778 fs/nfs/inode.c && !nfs_attribute_timeout(inode)) inode 779 fs/nfs/inode.c return NFS_STALE(inode) ? -ESTALE : 0; inode 780 fs/nfs/inode.c return __nfs_revalidate_inode(server, inode); inode 785 fs/nfs/inode.c struct nfs_inode *nfsi = NFS_I(inode); inode 792 fs/nfs/inode.c spin_lock(&inode->i_lock); inode 794 fs/nfs/inode.c if (S_ISDIR(inode->i_mode)) inode 796 fs/nfs/inode.c spin_unlock(&inode->i_lock); inode 797 fs/nfs/inode.c nfs_inc_stats(inode, NFSIOS_DATAINVALIDATE); inode 799 fs/nfs/inode.c inode->i_sb->s_id, (long long)NFS_FILEID(inode)); inode 807 fs/nfs/inode.c mutex_lock(&inode->i_mutex); inode 808 fs/nfs/inode.c if (NFS_I(inode)->cache_validity & NFS_INO_INVALID_DATA) { inode 811 fs/nfs/inode.c ret = nfs_invalidate_mapping_nolock(inode, mapping); inode 813 fs/nfs/inode.c mutex_unlock(&inode->i_mutex); inode 824 fs/nfs/inode.c struct nfs_inode *nfsi = NFS_I(inode); inode 828 fs/nfs/inode.c || nfs_attribute_timeout(inode) || NFS_STALE(inode)) { inode 829 fs/nfs/inode.c ret = __nfs_revalidate_inode(NFS_SERVER(inode), inode); inode 834 fs/nfs/inode.c ret = nfs_invalidate_mapping_nolock(inode, mapping); inode 849 fs/nfs/inode.c struct nfs_inode *nfsi = NFS_I(inode); inode 853 fs/nfs/inode.c || nfs_attribute_timeout(inode) || NFS_STALE(inode)) { inode 854 fs/nfs/inode.c ret = __nfs_revalidate_inode(NFS_SERVER(inode), inode); inode 859 fs/nfs/inode.c ret = nfs_invalidate_mapping(inode, mapping); inode 866 fs/nfs/inode.c struct nfs_inode *nfsi = NFS_I(inode); inode 871 fs/nfs/inode.c if (S_ISDIR(inode->i_mode)) inode 876 fs/nfs/inode.c if (timespec_equal(&inode->i_ctime, &fattr->pre_ctime)) inode 877 fs/nfs/inode.c memcpy(&inode->i_ctime, &fattr->ctime, sizeof(inode->i_ctime)); inode 878 fs/nfs/inode.c if (timespec_equal(&inode->i_mtime, &fattr->pre_mtime)) { inode 879 fs/nfs/inode.c memcpy(&inode->i_mtime, &fattr->mtime, sizeof(inode->i_mtime)); inode 880 fs/nfs/inode.c if (S_ISDIR(inode->i_mode)) inode 883 fs/nfs/inode.c if (i_size_read(inode) == nfs_size_to_loff_t(fattr->pre_size) && inode 885 fs/nfs/inode.c i_size_write(inode, nfs_size_to_loff_t(fattr->size)); inode 900 fs/nfs/inode.c struct nfs_inode *nfsi = NFS_I(inode); inode 907 fs/nfs/inode.c || (inode->i_mode & S_IFMT) != (fattr->mode & S_IFMT)) { inode 912 fs/nfs/inode.c nfs_wcc_update_inode(inode, fattr); inode 919 fs/nfs/inode.c if (!timespec_equal(&inode->i_mtime, &fattr->mtime)) inode 922 fs/nfs/inode.c cur_size = i_size_read(inode); inode 928 fs/nfs/inode.c if ((inode->i_mode & S_IALLUGO) != (fattr->mode & S_IALLUGO) inode 929 fs/nfs/inode.c || inode->i_uid != fattr->uid inode 930 fs/nfs/inode.c || inode->i_gid != fattr->gid) inode 934 fs/nfs/inode.c if (inode->i_nlink != fattr->nlink) inode 937 fs/nfs/inode.c if (!timespec_equal(&inode->i_atime, &fattr->atime)) inode 963 fs/nfs/inode.c struct nfs_inode *nfsi = NFS_I(inode); inode 968 fs/nfs/inode.c spin_lock(&inode->i_lock); inode 970 fs/nfs/inode.c status = nfs_update_inode(inode, fattr); inode 972 fs/nfs/inode.c status = nfs_check_inode_attributes(inode, fattr); inode 974 fs/nfs/inode.c spin_unlock(&inode->i_lock); inode 994 fs/nfs/inode.c struct nfs_inode *nfsi = NFS_I(inode); inode 996 fs/nfs/inode.c spin_lock(&inode->i_lock); inode 998 fs/nfs/inode.c if (S_ISDIR(inode->i_mode)) inode 1000 fs/nfs/inode.c spin_unlock(&inode->i_lock); inode 1001 fs/nfs/inode.c return nfs_refresh_inode(inode, fattr); inode 1019 fs/nfs/inode.c fattr->pre_change_attr = NFS_I(inode)->change_attr; inode 1024 fs/nfs/inode.c memcpy(&fattr->pre_ctime, &inode->i_ctime, sizeof(fattr->pre_ctime)); inode 1025 fs/nfs/inode.c memcpy(&fattr->pre_mtime, &inode->i_mtime, sizeof(fattr->pre_mtime)); inode 1026 fs/nfs/inode.c fattr->pre_size = i_size_read(inode); inode 1029 fs/nfs/inode.c return nfs_post_op_update_inode(inode, fattr); inode 1047 fs/nfs/inode.c struct nfs_inode *nfsi = NFS_I(inode); inode 1053 fs/nfs/inode.c __func__, inode->i_sb->s_id, inode->i_ino, inode 1054 fs/nfs/inode.c atomic_read(&inode->i_count), fattr->valid); inode 1062 fs/nfs/inode.c if ((inode->i_mode & S_IFMT) != (fattr->mode & S_IFMT)) inode 1065 fs/nfs/inode.c server = NFS_SERVER(inode); inode 1067 fs/nfs/inode.c if (S_ISDIR(inode->i_mode) && inode 1081 fs/nfs/inode.c nfs_wcc_update_inode(inode, fattr); inode 1086 fs/nfs/inode.c if (!timespec_equal(&inode->i_mtime, &fattr->mtime)) { inode 1088 fs/nfs/inode.c inode->i_sb->s_id, inode->i_ino); inode 1090 fs/nfs/inode.c if (S_ISDIR(inode->i_mode)) inode 1091 fs/nfs/inode.c nfs_force_lookup_revalidate(inode); inode 1094 fs/nfs/inode.c if (!timespec_equal(&inode->i_ctime, &fattr->ctime)) inode 1098 fs/nfs/inode.c inode->i_sb->s_id, inode->i_ino); inode 1100 fs/nfs/inode.c if (S_ISDIR(inode->i_mode)) inode 1101 fs/nfs/inode.c nfs_force_lookup_revalidate(inode); inode 1106 fs/nfs/inode.c cur_isize = i_size_read(inode); inode 1111 fs/nfs/inode.c i_size_write(inode, new_isize); inode 1115 fs/nfs/inode.c inode->i_sb->s_id, inode->i_ino); inode 1119 fs/nfs/inode.c memcpy(&inode->i_mtime, &fattr->mtime, sizeof(inode->i_mtime)); inode 1120 fs/nfs/inode.c memcpy(&inode->i_ctime, &fattr->ctime, sizeof(inode->i_ctime)); inode 1121 fs/nfs/inode.c memcpy(&inode->i_atime, &fattr->atime, sizeof(inode->i_atime)); inode 1124 fs/nfs/inode.c if ((inode->i_mode & S_IALLUGO) != (fattr->mode & S_IALLUGO) || inode 1125 fs/nfs/inode.c inode->i_uid != fattr->uid || inode 1126 fs/nfs/inode.c inode->i_gid != fattr->gid) inode 1129 fs/nfs/inode.c inode->i_mode = fattr->mode; inode 1130 fs/nfs/inode.c inode->i_nlink = fattr->nlink; inode 1131 fs/nfs/inode.c inode->i_uid = fattr->uid; inode 1132 fs/nfs/inode.c inode->i_gid = fattr->gid; inode 1138 fs/nfs/inode.c inode->i_blocks = nfs_calc_block_size(fattr->du.nfs3.used); inode 1140 fs/nfs/inode.c inode->i_blocks = fattr->du.nfs2.blocks; inode 1145 fs/nfs/inode.c nfs_inc_stats(inode, NFSIOS_ATTRINVALIDATE); inode 1146 fs/nfs/inode.c nfsi->attrtimeo = NFS_MINATTRTIMEO(inode); inode 1151 fs/nfs/inode.c if ((nfsi->attrtimeo <<= 1) > NFS_MAXATTRTIMEO(inode)) inode 1152 fs/nfs/inode.c nfsi->attrtimeo = NFS_MAXATTRTIMEO(inode); inode 1163 fs/nfs/inode.c if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) inode 1164 fs/nfs/inode.c || S_ISLNK(inode->i_mode))) inode 1166 fs/nfs/inode.c if (!nfs_have_delegation(inode, FMODE_READ) || inode 1177 fs/nfs/inode.c __func__, inode->i_ino, inode->i_mode, fattr->mode); inode 1184 fs/nfs/inode.c nfs_invalidate_inode(inode); inode 1190 fs/nfs/inode.c NFS_SERVER(inode)->nfs_client->cl_hostname, inode->i_sb->s_id, inode 1206 fs/nfs/inode.c nfs_inode_return_delegation_noreclaim(inode); inode 1208 fs/nfs/inode.c nfs_clear_inode(inode); inode 1212 fs/nfs/inode.c struct inode *nfs_alloc_inode(struct super_block *sb) inode 1232 fs/nfs/inode.c kmem_cache_free(nfs_inode_cachep, NFS_I(inode)); inode 146 fs/nfs/internal.h extern struct inode *nfs_alloc_inode(struct super_block *sb); inode 37 fs/nfs/iostat.h nfs_inc_server_stats(NFS_SERVER(inode), stat); inode 57 fs/nfs/iostat.h nfs_add_server_stats(NFS_SERVER(inode), stat, addend); inode 14 fs/nfs/nfs3acl.c struct inode *inode = dentry->d_inode; inode 26 fs/nfs/nfs3acl.c acl = nfs3_proc_getacl(inode, ACL_TYPE_ACCESS); inode 34 fs/nfs/nfs3acl.c if (S_ISDIR(inode->i_mode)) { inode 35 fs/nfs/nfs3acl.c acl = nfs3_proc_getacl(inode, ACL_TYPE_DEFAULT); inode 54 fs/nfs/nfs3acl.c struct inode *inode = dentry->d_inode; inode 65 fs/nfs/nfs3acl.c acl = nfs3_proc_getacl(inode, type); inode 83 fs/nfs/nfs3acl.c struct inode *inode = dentry->d_inode; inode 97 fs/nfs/nfs3acl.c error = nfs3_proc_setacl(inode, type, acl); inode 105 fs/nfs/nfs3acl.c struct inode *inode = dentry->d_inode; inode 115 fs/nfs/nfs3acl.c return nfs3_proc_setacl(inode, type, NULL); inode 132 fs/nfs/nfs3acl.c dprintk("NFS: nfs3_forget_cached_acls(%s/%ld)\n", inode->i_sb->s_id, inode 133 fs/nfs/nfs3acl.c inode->i_ino); inode 134 fs/nfs/nfs3acl.c spin_lock(&inode->i_lock); inode 135 fs/nfs/nfs3acl.c __nfs3_forget_cached_acls(NFS_I(inode)); inode 136 fs/nfs/nfs3acl.c spin_unlock(&inode->i_lock); inode 141 fs/nfs/nfs3acl.c struct nfs_inode *nfsi = NFS_I(inode); inode 144 fs/nfs/nfs3acl.c spin_lock(&inode->i_lock); inode 162 fs/nfs/nfs3acl.c spin_unlock(&inode->i_lock); inode 163 fs/nfs/nfs3acl.c dprintk("NFS: nfs3_get_cached_acl(%s/%ld, %d) = %p\n", inode->i_sb->s_id, inode 164 fs/nfs/nfs3acl.c inode->i_ino, type, acl); inode 171 fs/nfs/nfs3acl.c struct nfs_inode *nfsi = NFS_I(inode); inode 173 fs/nfs/nfs3acl.c dprintk("nfs3_cache_acls(%s/%ld, %p, %p)\n", inode->i_sb->s_id, inode 174 fs/nfs/nfs3acl.c inode->i_ino, acl, dfacl); inode 175 fs/nfs/nfs3acl.c spin_lock(&inode->i_lock); inode 176 fs/nfs/nfs3acl.c __nfs3_forget_cached_acls(NFS_I(inode)); inode 181 fs/nfs/nfs3acl.c spin_unlock(&inode->i_lock); inode 186 fs/nfs/nfs3acl.c struct nfs_server *server = NFS_SERVER(inode); inode 190 fs/nfs/nfs3acl.c .fh = NFS_FH(inode), inode 204 fs/nfs/nfs3acl.c if (!nfs_server_capable(inode, NFS_CAP_ACLS)) inode 207 fs/nfs/nfs3acl.c status = nfs_revalidate_inode(server, inode); inode 210 fs/nfs/nfs3acl.c if (NFS_I(inode)->cache_validity & NFS_INO_INVALID_ACL) inode 211 fs/nfs/nfs3acl.c nfs_zap_acl_cache(inode); inode 212 fs/nfs/nfs3acl.c acl = nfs3_get_cached_acl(inode, type); inode 225 fs/nfs/nfs3acl.c if (S_ISDIR(inode->i_mode)) inode 241 fs/nfs/nfs3acl.c status = nfs_refresh_inode(inode, &fattr); inode 263 fs/nfs/nfs3acl.c nfs3_cache_acls(inode, inode 292 fs/nfs/nfs3acl.c struct nfs_server *server = NFS_SERVER(inode); inode 296 fs/nfs/nfs3acl.c .inode = inode, inode 308 fs/nfs/nfs3acl.c if (!nfs_server_capable(inode, NFS_CAP_ACLS)) inode 318 fs/nfs/nfs3acl.c if (S_ISDIR(inode->i_mode)) { inode 326 fs/nfs/nfs3acl.c nfs_access_zap_cache(inode); inode 327 fs/nfs/nfs3acl.c nfs_zap_acl_cache(inode); inode 336 fs/nfs/nfs3acl.c status = nfs_refresh_inode(inode, &fattr); inode 337 fs/nfs/nfs3acl.c nfs3_cache_acls(inode, acl, dfacl); inode 356 fs/nfs/nfs3acl.c if (S_ISDIR(inode->i_mode)) { inode 359 fs/nfs/nfs3acl.c alloc = dfacl = nfs3_proc_getacl(inode, inode 367 fs/nfs/nfs3acl.c alloc = acl = nfs3_proc_getacl(inode, inode 380 fs/nfs/nfs3acl.c alloc = acl = posix_acl_from_mode(inode->i_mode, GFP_KERNEL); inode 384 fs/nfs/nfs3acl.c status = nfs3_proc_setacls(inode, acl, dfacl); inode 412 fs/nfs/nfs3acl.c error = nfs3_proc_setacls(inode, acl, S_ISDIR(inode->i_mode) ? inode 48 fs/nfs/nfs3proc.c nfs_inc_stats(inode, NFSIOS_DELAY); inode 119 fs/nfs/nfs3proc.c struct inode *inode = dentry->d_inode; inode 121 fs/nfs/nfs3proc.c .fh = NFS_FH(inode), inode 135 fs/nfs/nfs3proc.c status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0); inode 137 fs/nfs/nfs3proc.c nfs_setattr_update_inode(inode, sattr); inode 183 fs/nfs/nfs3proc.c .fh = NFS_FH(inode), inode 201 fs/nfs/nfs3proc.c if (S_ISDIR(inode->i_mode)) { inode 213 fs/nfs/nfs3proc.c status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0); inode 214 fs/nfs/nfs3proc.c nfs_refresh_inode(inode, &fattr); inode 233 fs/nfs/nfs3proc.c .fh = NFS_FH(inode), inode 247 fs/nfs/nfs3proc.c status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0); inode 248 fs/nfs/nfs3proc.c nfs_refresh_inode(inode, &fattr); inode 465 fs/nfs/nfs3proc.c .fromfh = NFS_FH(inode), inode 484 fs/nfs/nfs3proc.c status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0); inode 486 fs/nfs/nfs3proc.c nfs_post_op_update_inode(inode, &fattr); inode 591 fs/nfs/nfs3proc.c struct inode *dir = dentry->d_inode; inode 739 fs/nfs/nfs3proc.c if (nfs3_async_handle_jukebox(task, data->inode)) inode 742 fs/nfs/nfs3proc.c nfs_invalidate_atime(data->inode); inode 743 fs/nfs/nfs3proc.c nfs_refresh_inode(data->inode, &data->fattr); inode 754 fs/nfs/nfs3proc.c if (nfs3_async_handle_jukebox(task, data->inode)) inode 757 fs/nfs/nfs3proc.c nfs_post_op_update_inode_force_wcc(data->inode, data->res.fattr); inode 768 fs/nfs/nfs3proc.c if (nfs3_async_handle_jukebox(task, data->inode)) inode 770 fs/nfs/nfs3proc.c nfs_refresh_inode(data->inode, data->res.fattr); inode 782 fs/nfs/nfs3proc.c struct inode *inode = filp->f_path.dentry->d_inode; inode 784 fs/nfs/nfs3proc.c return nlmclnt_proc(NFS_SERVER(inode)->nlm_host, cmd, fl); inode 711 fs/nfs/nfs3xdr.c p = xdr_encode_fhandle(p, NFS_FH(args->inode)); inode 729 fs/nfs/nfs3xdr.c err = nfsacl_encode(buf, base, args->inode, inode 733 fs/nfs/nfs3xdr.c err = nfsacl_encode(buf, base + err, args->inode, inode 139 fs/nfs/nfs4_fs.h struct inode *inode; /* Pointer to the inode */ inode 255 fs/nfs/nfs4proc.c struct inode *dir = parent->d_inode; inode 416 fs/nfs/nfs4proc.c delegation = rcu_dereference(NFS_I(inode)->delegation); inode 422 fs/nfs/nfs4proc.c nfs_inode_return_delegation(inode); inode 428 fs/nfs/nfs4proc.c struct nfs_inode *nfsi = NFS_I(state->inode); inode 454 fs/nfs/nfs4proc.c ret = nfs_may_open(state->inode, state->owner->so_cred, open_mode); inode 480 fs/nfs/nfs4proc.c struct inode *inode; inode 494 fs/nfs/nfs4proc.c inode = nfs_fhget(data->dir->d_sb, &data->o_res.fh, &data->f_attr); inode 495 fs/nfs/nfs4proc.c ret = PTR_ERR(inode); inode 496 fs/nfs/nfs4proc.c if (IS_ERR(inode)) inode 499 fs/nfs/nfs4proc.c state = nfs4_get_open_state(inode, data->owner); inode 506 fs/nfs/nfs4proc.c delegation = rcu_dereference(NFS_I(inode)->delegation); inode 511 fs/nfs/nfs4proc.c nfs_inode_set_delegation(state->inode, inode 515 fs/nfs/nfs4proc.c nfs_inode_reclaim_delegation(state->inode, inode 520 fs/nfs/nfs4proc.c delegation = rcu_dereference(NFS_I(inode)->delegation); inode 525 fs/nfs/nfs4proc.c iput(inode); inode 529 fs/nfs/nfs4proc.c iput(inode); inode 536 fs/nfs/nfs4proc.c struct nfs_inode *nfsi = NFS_I(state->inode); inode 539 fs/nfs/nfs4proc.c spin_lock(&state->inode->i_lock); inode 544 fs/nfs/nfs4proc.c spin_unlock(&state->inode->i_lock); inode 547 fs/nfs/nfs4proc.c spin_unlock(&state->inode->i_lock); inode 641 fs/nfs/nfs4proc.c opendata->o_arg.fh = NFS_FH(state->inode); inode 643 fs/nfs/nfs4proc.c delegation = rcu_dereference(NFS_I(state->inode)->delegation); inode 655 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(state->inode); inode 699 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(state->inode); inode 814 fs/nfs/nfs4proc.c delegation = rcu_dereference(NFS_I(data->state->inode)->delegation); inode 896 fs/nfs/nfs4proc.c struct inode *dir = data->dir->d_inode; inode 990 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(state->inode); inode 1144 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(inode); inode 1146 fs/nfs/nfs4proc.c .fh = NFS_FH(inode), inode 1166 fs/nfs/nfs4proc.c if (nfs4_copy_delegation_stateid(&arg.stateid, inode)) { inode 1183 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(inode); inode 1188 fs/nfs/nfs4proc.c _nfs4_do_setattr(inode, cred, fattr, sattr, state), inode 1196 fs/nfs/nfs4proc.c struct inode *inode; inode 1220 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(calldata->inode); inode 1241 fs/nfs/nfs4proc.c nfs_refresh_inode(calldata->inode, calldata->res.fattr); inode 1303 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(state->inode); inode 1323 fs/nfs/nfs4proc.c calldata->inode = state->inode; inode 1325 fs/nfs/nfs4proc.c calldata->arg.fh = NFS_FH(state->inode); inode 1364 fs/nfs/nfs4proc.c ret = nfs_may_open(state->inode, inode 1422 fs/nfs/nfs4proc.c res = d_add_unique(dentry, igrab(state->inode)); inode 1459 fs/nfs/nfs4proc.c if (state->inode == dentry->d_inode) { inode 1650 fs/nfs/nfs4proc.c struct inode *inode = dentry->d_inode; inode 1666 fs/nfs/nfs4proc.c status = nfs4_do_setattr(inode, cred, fattr, sattr, state); inode 1668 fs/nfs/nfs4proc.c nfs_setattr_update_inode(inode, sattr); inode 1746 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(inode); inode 1749 fs/nfs/nfs4proc.c .fh = NFS_FH(inode), inode 1770 fs/nfs/nfs4proc.c if (S_ISDIR(inode->i_mode)) { inode 1782 fs/nfs/nfs4proc.c status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0); inode 1791 fs/nfs/nfs4proc.c nfs_refresh_inode(inode, &fattr); inode 1801 fs/nfs/nfs4proc.c err = nfs4_handle_exception(NFS_SERVER(inode), inode 1802 fs/nfs/nfs4proc.c _nfs4_proc_access(inode, entry), inode 1836 fs/nfs/nfs4proc.c .fh = NFS_FH(inode), inode 1847 fs/nfs/nfs4proc.c return rpc_call_sync(NFS_CLIENT(inode), &msg, 0); inode 1856 fs/nfs/nfs4proc.c err = nfs4_handle_exception(NFS_SERVER(inode), inode 1857 fs/nfs/nfs4proc.c _nfs4_proc_readlink(inode, page, pgbase, pglen), inode 1901 fs/nfs/nfs4proc.c d_add(dentry, igrab(state->inode)); inode 1905 fs/nfs/nfs4proc.c status = nfs4_do_setattr(state->inode, cred, &fattr, sattr, state); inode 1907 fs/nfs/nfs4proc.c nfs_setattr_update_inode(state->inode, sattr); inode 1908 fs/nfs/nfs4proc.c nfs_post_op_update_inode(state->inode, &fattr); inode 2035 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(inode); inode 2037 fs/nfs/nfs4proc.c .fh = NFS_FH(inode), inode 2061 fs/nfs/nfs4proc.c nfs_post_op_update_inode(inode, res.fattr); inode 2072 fs/nfs/nfs4proc.c err = nfs4_handle_exception(NFS_SERVER(inode), inode 2073 fs/nfs/nfs4proc.c _nfs4_proc_link(inode, dir, name), inode 2204 fs/nfs/nfs4proc.c struct inode *dir = dentry->d_inode; inode 2401 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(data->inode); inode 2408 fs/nfs/nfs4proc.c nfs_invalidate_atime(data->inode); inode 2422 fs/nfs/nfs4proc.c struct inode *inode = data->inode; inode 2424 fs/nfs/nfs4proc.c if (nfs4_async_handle_error(task, NFS_SERVER(inode)) == -EAGAIN) { inode 2429 fs/nfs/nfs4proc.c renew_lease(NFS_SERVER(inode), data->timestamp); inode 2430 fs/nfs/nfs4proc.c nfs_post_op_update_inode_force_wcc(inode, data->res.fattr); inode 2437 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(data->inode); inode 2448 fs/nfs/nfs4proc.c struct inode *inode = data->inode; inode 2450 fs/nfs/nfs4proc.c if (nfs4_async_handle_error(task, NFS_SERVER(inode)) == -EAGAIN) { inode 2454 fs/nfs/nfs4proc.c nfs_refresh_inode(inode, data->res.fattr); inode 2460 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(data->inode); inode 2561 fs/nfs/nfs4proc.c struct nfs_inode *nfsi = NFS_I(inode); inode 2563 fs/nfs/nfs4proc.c spin_lock(&inode->i_lock); inode 2566 fs/nfs/nfs4proc.c spin_unlock(&inode->i_lock); inode 2571 fs/nfs/nfs4proc.c nfs4_set_cached_acl(inode, NULL); inode 2576 fs/nfs/nfs4proc.c struct nfs_inode *nfsi = NFS_I(inode); inode 2580 fs/nfs/nfs4proc.c spin_lock(&inode->i_lock); inode 2595 fs/nfs/nfs4proc.c spin_unlock(&inode->i_lock); inode 2617 fs/nfs/nfs4proc.c nfs4_set_cached_acl(inode, acl); inode 2624 fs/nfs/nfs4proc.c .fh = NFS_FH(inode), inode 2652 fs/nfs/nfs4proc.c ret = rpc_call_sync(NFS_CLIENT(inode), &msg, 0); inode 2656 fs/nfs/nfs4proc.c nfs4_write_cached_acl(inode, NULL, resp_len); inode 2658 fs/nfs/nfs4proc.c nfs4_write_cached_acl(inode, resp_buf, resp_len); inode 2678 fs/nfs/nfs4proc.c ret = __nfs4_get_acl_uncached(inode, buf, buflen); inode 2681 fs/nfs/nfs4proc.c ret = nfs4_handle_exception(NFS_SERVER(inode), ret, &exception); inode 2688 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(inode); inode 2693 fs/nfs/nfs4proc.c ret = nfs_revalidate_inode(server, inode); inode 2696 fs/nfs/nfs4proc.c if (NFS_I(inode)->cache_validity & NFS_INO_INVALID_ACL) inode 2697 fs/nfs/nfs4proc.c nfs_zap_acl_cache(inode); inode 2698 fs/nfs/nfs4proc.c ret = nfs4_read_cached_acl(inode, buf, buflen); inode 2701 fs/nfs/nfs4proc.c return nfs4_get_acl_uncached(inode, buf, buflen); inode 2706 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(inode); inode 2709 fs/nfs/nfs4proc.c .fh = NFS_FH(inode), inode 2722 fs/nfs/nfs4proc.c nfs_inode_return_delegation(inode); inode 2724 fs/nfs/nfs4proc.c ret = rpc_call_sync(NFS_CLIENT(inode), &msg, 0); inode 2725 fs/nfs/nfs4proc.c nfs_access_zap_cache(inode); inode 2726 fs/nfs/nfs4proc.c nfs_zap_acl_cache(inode); inode 2735 fs/nfs/nfs4proc.c err = nfs4_handle_exception(NFS_SERVER(inode), inode 2736 fs/nfs/nfs4proc.c __nfs4_proc_set_acl(inode, buf, buflen), inode 2972 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(inode); inode 2992 fs/nfs/nfs4proc.c nfs_copy_fh(&data->fh, NFS_FH(inode)); inode 3014 fs/nfs/nfs4proc.c nfs_refresh_inode(inode, &data->fattr); inode 3022 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(inode); inode 3026 fs/nfs/nfs4proc.c err = _nfs4_proc_delegreturn(inode, cred, stateid, issync); inode 3056 fs/nfs/nfs4proc.c struct inode *inode = state->inode; inode 3057 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(inode); inode 3060 fs/nfs/nfs4proc.c .fh = NFS_FH(inode), inode 3102 fs/nfs/nfs4proc.c err = nfs4_handle_exception(NFS_SERVER(state->inode), inode 3141 fs/nfs/nfs4proc.c struct inode *inode = lsp->ls_state->inode; inode 3146 fs/nfs/nfs4proc.c p->arg.fh = NFS_FH(inode); inode 3156 fs/nfs/nfs4proc.c p->server = NFS_SERVER(inode); inode 3223 fs/nfs/nfs4proc.c .rpc_client = NFS_CLIENT(lsp->ls_state->inode), inode 3296 fs/nfs/nfs4proc.c struct inode *inode = lsp->ls_state->inode; inode 3297 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(inode); inode 3303 fs/nfs/nfs4proc.c p->arg.fh = NFS_FH(inode); inode 3410 fs/nfs/nfs4proc.c .rpc_client = NFS_CLIENT(state->inode), inode 3447 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(state->inode); inode 3465 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(state->inode); inode 3499 fs/nfs/nfs4proc.c struct nfs_inode *nfsi = NFS_I(state->inode); inode 3531 fs/nfs/nfs4proc.c err = nfs4_handle_exception(NFS_SERVER(state->inode), inode 3576 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(state->inode); inode 3598 fs/nfs/nfs4proc.c struct inode *inode = dentry->d_inode; inode 3603 fs/nfs/nfs4proc.c return nfs4_proc_set_acl(inode, buf, buflen); inode 3613 fs/nfs/nfs4proc.c struct inode *inode = dentry->d_inode; inode 3618 fs/nfs/nfs4proc.c return nfs4_proc_get_acl(inode, buf, buflen); inode 381 fs/nfs/nfs4state.c struct nfs_inode *nfsi = NFS_I(inode); inode 403 fs/nfs/nfs4state.c struct nfs_inode *nfsi = NFS_I(inode); inode 405 fs/nfs/nfs4state.c spin_lock(&inode->i_lock); inode 406 fs/nfs/nfs4state.c state = __nfs4_find_state_byowner(inode, owner); inode 407 fs/nfs/nfs4state.c spin_unlock(&inode->i_lock); inode 412 fs/nfs/nfs4state.c spin_lock(&inode->i_lock); inode 413 fs/nfs/nfs4state.c state = __nfs4_find_state_byowner(inode, owner); inode 419 fs/nfs/nfs4state.c state->inode = igrab(inode); inode 420 fs/nfs/nfs4state.c spin_unlock(&inode->i_lock); inode 426 fs/nfs/nfs4state.c spin_unlock(&inode->i_lock); inode 441 fs/nfs/nfs4state.c struct inode *inode = state->inode; inode 446 fs/nfs/nfs4state.c spin_lock(&inode->i_lock); inode 449 fs/nfs/nfs4state.c spin_unlock(&inode->i_lock); inode 451 fs/nfs/nfs4state.c iput(inode); inode 816 fs/nfs/nfs4state.c struct inode *inode = state->inode; inode 820 fs/nfs/nfs4state.c for (fl = inode->i_flock; fl != NULL; fl = fl->fl_next) { inode 83 fs/nfs/pagelist.c BUG_ON(page->mapping->host != inode); inode 129 fs/nfs/pagelist.c struct inode *inode = req->wb_context->path.dentry->d_inode; inode 130 fs/nfs/pagelist.c struct nfs_inode *nfsi = NFS_I(inode); inode 133 fs/nfs/pagelist.c spin_lock(&inode->i_lock); inode 136 fs/nfs/pagelist.c spin_unlock(&inode->i_lock); inode 229 fs/nfs/pagelist.c desc->pg_inode = inode; inode 116 fs/nfs/proc.c struct inode *inode = dentry->d_inode; inode 118 fs/nfs/proc.c .fh = NFS_FH(inode), inode 135 fs/nfs/proc.c status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0); inode 137 fs/nfs/proc.c nfs_setattr_update_inode(inode, sattr); inode 173 fs/nfs/proc.c .fh = NFS_FH(inode), inode 185 fs/nfs/proc.c status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0); inode 339 fs/nfs/proc.c .fromfh = NFS_FH(inode), inode 351 fs/nfs/proc.c status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0); inode 352 fs/nfs/proc.c nfs_mark_for_revalidate(inode); inode 465 fs/nfs/proc.c struct inode *dir = dentry->d_inode; inode 558 fs/nfs/proc.c nfs_invalidate_atime(data->inode); inode 560 fs/nfs/proc.c nfs_refresh_inode(data->inode, data->res.fattr); inode 578 fs/nfs/proc.c nfs_post_op_update_inode_force_wcc(data->inode, data->res.fattr); inode 598 fs/nfs/proc.c struct inode *inode = filp->f_path.dentry->d_inode; inode 600 fs/nfs/proc.c return nlmclnt_proc(NFS_SERVER(inode)->nlm_host, cmd, fl); inode 124 fs/nfs/read.c new = nfs_create_request(ctx, inode, page, 0, len); inode 133 fs/nfs/read.c if (NFS_SERVER(inode)->rsize < PAGE_CACHE_SIZE) inode 134 fs/nfs/read.c nfs_pagein_multi(inode, &one_request, 1, len, 0); inode 136 fs/nfs/read.c nfs_pagein_one(inode, &one_request, 1, len, 0); inode 160 fs/nfs/read.c struct inode *inode = req->wb_context->path.dentry->d_inode; inode 161 fs/nfs/read.c int swap_flags = IS_SWAPFILE(inode) ? NFS_RPC_SWAPFLAGS : 0; inode 170 fs/nfs/read.c .rpc_client = NFS_CLIENT(inode), inode 179 fs/nfs/read.c data->inode = inode; inode 182 fs/nfs/read.c data->args.fh = NFS_FH(inode); inode 195 fs/nfs/read.c NFS_PROTO(inode)->read_setup(data, &msg); inode 199 fs/nfs/read.c inode->i_sb->s_id, inode 200 fs/nfs/read.c (long long)NFS_FILEID(inode), inode 242 fs/nfs/read.c size_t rsize = NFS_SERVER(inode)->rsize, nbytes; inode 335 fs/nfs/read.c status = NFS_PROTO(data->inode)->read_done(task, data); inode 339 fs/nfs/read.c nfs_add_stats(data->inode, NFSIOS_SERVERREADBYTES, data->res.count); inode 342 fs/nfs/read.c set_bit(NFS_INO_STALE, &NFS_I(data->inode)->flags); inode 343 fs/nfs/read.c nfs_mark_for_revalidate(data->inode); inode 357 fs/nfs/read.c nfs_inc_stats(data->inode, NFSIOS_SHORTREAD); inode 480 fs/nfs/read.c struct inode *inode = page->mapping->host; inode 485 fs/nfs/read.c nfs_inc_stats(inode, NFSIOS_VFSREADPAGE); inode 486 fs/nfs/read.c nfs_add_stats(inode, NFSIOS_READPAGES, 1); inode 495 fs/nfs/read.c error = nfs_wb_page(inode, page); inode 502 fs/nfs/read.c if (NFS_STALE(inode)) inode 507 fs/nfs/read.c ctx = nfs_find_open_context(inode, NULL, FMODE_READ); inode 513 fs/nfs/read.c error = nfs_readpage_async(ctx, inode, page); inode 531 fs/nfs/read.c struct inode *inode = page->mapping->host; inode 536 fs/nfs/read.c error = nfs_wb_page(inode, page); inode 546 fs/nfs/read.c new = nfs_create_request(desc->ctx, inode, page, 0, len); inode 572 fs/nfs/read.c struct inode *inode = mapping->host; inode 573 fs/nfs/read.c struct nfs_server *server = NFS_SERVER(inode); inode 579 fs/nfs/read.c inode->i_sb->s_id, inode 580 fs/nfs/read.c (long long)NFS_FILEID(inode), inode 582 fs/nfs/read.c nfs_inc_stats(inode, NFSIOS_VFSREADPAGES); inode 584 fs/nfs/read.c if (NFS_STALE(inode)) inode 588 fs/nfs/read.c desc.ctx = nfs_find_open_context(inode, NULL, FMODE_READ); inode 594 fs/nfs/read.c nfs_pageio_init(&pgio, inode, nfs_pagein_multi, rsize, 0); inode 596 fs/nfs/read.c nfs_pageio_init(&pgio, inode, nfs_pagein_one, rsize, 0); inode 602 fs/nfs/read.c nfs_add_stats(inode, NFSIOS_READPAGES, npages); inode 34 fs/nfs/symlink.c error = NFS_PROTO(inode)->readlink(inode, page, 0, PAGE_SIZE); inode 49 fs/nfs/symlink.c struct inode *inode = dentry->d_inode; inode 53 fs/nfs/symlink.c err = ERR_PTR(nfs_revalidate_mapping_nolock(inode, inode->i_mapping)); inode 56 fs/nfs/symlink.c page = read_cache_page(&inode->i_data, 0, inode 57 fs/nfs/symlink.c (filler_t *)nfs_symlink_filler, inode); inode 23 fs/nfs/unlink.c struct inode *dir; inode 82 fs/nfs/unlink.c struct inode *dir = data->dir; inode 168 fs/nfs/unlink.c struct inode *dir; inode 204 fs/nfs/unlink.c struct inode *dir = dentry->d_inode; inode 282 fs/nfs/unlink.c if (data != NULL && (NFS_STALE(inode) || !nfs_call_unlink(dentry, data))) inode 123 fs/nfs/write.c struct inode *inode = page->mapping->host; inode 126 fs/nfs/write.c spin_lock(&inode->i_lock); inode 128 fs/nfs/write.c spin_unlock(&inode->i_lock); inode 135 fs/nfs/write.c struct inode *inode = page->mapping->host; inode 139 fs/nfs/write.c spin_lock(&inode->i_lock); inode 140 fs/nfs/write.c i_size = i_size_read(inode); inode 147 fs/nfs/write.c i_size_write(inode, end); inode 148 fs/nfs/write.c nfs_inc_stats(inode, NFSIOS_EXTENDWRITE); inode 150 fs/nfs/write.c spin_unlock(&inode->i_lock); inode 198 fs/nfs/write.c struct inode *inode = page->mapping->host; inode 199 fs/nfs/write.c struct nfs_server *nfss = NFS_SERVER(inode); inode 210 fs/nfs/write.c struct inode *inode = page->mapping->host; inode 211 fs/nfs/write.c struct nfs_server *nfss = NFS_SERVER(inode); inode 225 fs/nfs/write.c struct inode *inode = page->mapping->host; inode 229 fs/nfs/write.c spin_lock(&inode->i_lock); inode 233 fs/nfs/write.c spin_unlock(&inode->i_lock); inode 243 fs/nfs/write.c spin_unlock(&inode->i_lock); inode 248 fs/nfs/write.c spin_lock(&inode->i_lock); inode 251 fs/nfs/write.c spin_unlock(&inode->i_lock); inode 255 fs/nfs/write.c spin_unlock(&inode->i_lock); inode 258 fs/nfs/write.c spin_unlock(&inode->i_lock); inode 268 fs/nfs/write.c struct inode *inode = page->mapping->host; inode 270 fs/nfs/write.c nfs_inc_stats(inode, NFSIOS_VFSWRITEPAGE); inode 271 fs/nfs/write.c nfs_add_stats(inode, NFSIOS_WRITEPAGES, 1); inode 315 fs/nfs/write.c struct inode *inode = mapping->host; inode 319 fs/nfs/write.c nfs_inc_stats(inode, NFSIOS_VFSWRITEPAGES); inode 321 fs/nfs/write.c nfs_pageio_init_write(&pgio, inode, wb_priority(wbc)); inode 336 fs/nfs/write.c struct nfs_inode *nfsi = NFS_I(inode); inode 346 fs/nfs/write.c spin_lock(&inode->i_lock); inode 350 fs/nfs/write.c igrab(inode); inode 351 fs/nfs/write.c if (nfs_have_delegation(inode, FMODE_WRITE)) inode 360 fs/nfs/write.c spin_unlock(&inode->i_lock); inode 371 fs/nfs/write.c struct inode *inode = req->wb_context->path.dentry->d_inode; inode 372 fs/nfs/write.c struct nfs_inode *nfsi = NFS_I(inode); inode 376 fs/nfs/write.c spin_lock(&inode->i_lock); inode 382 fs/nfs/write.c spin_unlock(&inode->i_lock); inode 383 fs/nfs/write.c iput(inode); inode 385 fs/nfs/write.c spin_unlock(&inode->i_lock); inode 403 fs/nfs/write.c struct inode *inode = req->wb_context->path.dentry->d_inode; inode 404 fs/nfs/write.c struct nfs_inode *nfsi = NFS_I(inode); inode 406 fs/nfs/write.c spin_lock(&inode->i_lock); inode 412 fs/nfs/write.c spin_unlock(&inode->i_lock); inode 415 fs/nfs/write.c __mark_inode_dirty(inode, I_DIRTY_DATASYNC); inode 482 fs/nfs/write.c struct nfs_inode *nfsi = NFS_I(inode); inode 502 fs/nfs/write.c spin_unlock(&inode->i_lock); inode 505 fs/nfs/write.c spin_lock(&inode->i_lock); inode 540 fs/nfs/write.c struct nfs_inode *nfsi = NFS_I(inode); inode 578 fs/nfs/write.c spin_lock(&inode->i_lock); inode 600 fs/nfs/write.c spin_unlock(&inode->i_lock); inode 605 fs/nfs/write.c spin_lock(&inode->i_lock); inode 609 fs/nfs/write.c radix_tree_tag_clear(&NFS_I(inode)->nfs_page_tree, inode 622 fs/nfs/write.c spin_unlock(&inode->i_lock); inode 625 fs/nfs/write.c spin_unlock(&inode->i_lock); inode 627 fs/nfs/write.c error = nfs_wb_page(inode, page); inode 642 fs/nfs/write.c struct inode *inode = page->mapping->host; inode 646 fs/nfs/write.c req = nfs_try_to_update_request(inode, page, offset, bytes); inode 649 fs/nfs/write.c req = nfs_create_request(ctx, inode, page, offset, bytes); inode 652 fs/nfs/write.c error = nfs_inode_add_request(inode, req); inode 710 fs/nfs/write.c !(NFS_I(inode)->cache_validity & (NFS_INO_REVAL_PAGECACHE|NFS_INO_INVALID_DATA)); inode 723 fs/nfs/write.c struct inode *inode = page->mapping->host; inode 726 fs/nfs/write.c nfs_inc_stats(inode, NFSIOS_VFSUPDATEPAGE); inode 738 fs/nfs/write.c if (nfs_write_pageuptodate(page, inode) && inode 739 fs/nfs/write.c inode->i_flock == NULL && inode 752 fs/nfs/write.c status, (long long)i_size_read(inode)); inode 787 fs/nfs/write.c struct inode *inode = req->wb_context->path.dentry->d_inode; inode 797 fs/nfs/write.c .rpc_client = NFS_CLIENT(inode), inode 811 fs/nfs/write.c data->inode = inode = req->wb_context->path.dentry->d_inode; inode 814 fs/nfs/write.c data->args.fh = NFS_FH(inode); inode 823 fs/nfs/write.c if (!NFS_I(inode)->ncommit) inode 833 fs/nfs/write.c NFS_PROTO(inode)->write_setup(data, &msg); inode 838 fs/nfs/write.c inode->i_sb->s_id, inode 839 fs/nfs/write.c (long long)NFS_FILEID(inode), inode 870 fs/nfs/write.c size_t wsize = NFS_SERVER(inode)->wsize, nbytes; inode 966 fs/nfs/write.c size_t wsize = NFS_SERVER(inode)->wsize; inode 969 fs/nfs/write.c nfs_pageio_init(pgio, inode, nfs_flush_multi, wsize, ioflags); inode 971 fs/nfs/write.c nfs_pageio_init(pgio, inode, nfs_flush_one, wsize, ioflags); inode 1006 fs/nfs/write.c struct inode *inode = page->mapping->host; inode 1008 fs/nfs/write.c spin_lock(&inode->i_lock); inode 1019 fs/nfs/write.c spin_unlock(&inode->i_lock); inode 1116 fs/nfs/write.c status = NFS_PROTO(data->inode)->write_done(task, data); inode 1119 fs/nfs/write.c nfs_add_stats(data->inode, NFSIOS_SERVERWRITTENBYTES, resp->count); inode 1136 fs/nfs/write.c NFS_SERVER(data->inode)->nfs_client->cl_hostname, inode 1146 fs/nfs/write.c nfs_inc_stats(data->inode, NFSIOS_SHORTWRITE); inode 1195 fs/nfs/write.c struct inode *inode = first->wb_context->path.dentry->d_inode; inode 1206 fs/nfs/write.c .rpc_client = NFS_CLIENT(inode), inode 1220 fs/nfs/write.c data->inode = inode; inode 1223 fs/nfs/write.c data->args.fh = NFS_FH(data->inode); inode 1234 fs/nfs/write.c NFS_PROTO(inode)->commit_setup(data, &msg); inode 1285 fs/nfs/write.c if (NFS_PROTO(data->inode)->commit_done(task, data) != 0) inode 1339 fs/nfs/write.c spin_lock(&inode->i_lock); inode 1340 fs/nfs/write.c res = nfs_scan_commit(inode, &head, 0, 0); inode 1341 fs/nfs/write.c spin_unlock(&inode->i_lock); inode 1343 fs/nfs/write.c int error = nfs_commit_list(inode, &head, how); inode 1358 fs/nfs/write.c struct inode *inode = mapping->host; inode 1380 fs/nfs/write.c spin_lock(&inode->i_lock); inode 1382 fs/nfs/write.c ret = nfs_wait_on_requests_locked(inode, idx_start, npages); inode 1387 fs/nfs/write.c pages = nfs_scan_commit(inode, &head, idx_start, npages); inode 1391 fs/nfs/write.c spin_unlock(&inode->i_lock); inode 1394 fs/nfs/write.c spin_lock(&inode->i_lock); inode 1397 fs/nfs/write.c pages += nfs_scan_commit(inode, &head, 0, 0); inode 1398 fs/nfs/write.c spin_unlock(&inode->i_lock); inode 1399 fs/nfs/write.c ret = nfs_commit_list(inode, &head, how); inode 1400 fs/nfs/write.c spin_lock(&inode->i_lock); inode 1403 fs/nfs/write.c spin_unlock(&inode->i_lock); inode 1447 fs/nfs/write.c return nfs_write_mapping(inode->i_mapping, 0); inode 1452 fs/nfs/write.c return nfs_write_mapping(inode->i_mapping, FLUSH_NOCOMMIT); inode 1526 fs/nfs/write.c __mark_inode_dirty(inode, I_DIRTY_PAGES); inode 1535 fs/nfs/write.c return nfs_wb_page_priority(inode, page, FLUSH_STABLE); inode 87 fs/nfs_common/nfsacl.c .uid = inode->i_uid, inode 88 fs/nfs_common/nfsacl.c .gid = inode->i_gid, inode 369 fs/nfsd/export.c if (!S_ISDIR(inode->i_mode) && inode 370 fs/nfsd/export.c !S_ISREG(inode->i_mode)) inode 380 fs/nfsd/export.c if (!(inode->i_sb->s_type->fs_flags & FS_REQUIRES_DEV) && inode 387 fs/nfsd/export.c if (!inode->i_sb->s_export_op || inode 388 fs/nfsd/export.c !inode->i_sb->s_export_op->fh_to_dentry) { inode 967 fs/nfsd/export.c struct inode *inode = exp->ex_path.dentry->d_inode; inode 968 fs/nfsd/export.c dev_t dev = inode->i_sb->s_dev; inode 971 fs/nfsd/export.c mk_fsid(FSID_DEV, fsid, dev, inode->i_ino, 0, NULL); inode 974 fs/nfsd/export.c mk_fsid(FSID_ENCODE_DEV, fsid, dev, inode->i_ino, 0, NULL); inode 981 fs/nfsd/export.c struct inode *inode = exp->ex_path.dentry->d_inode; inode 983 fs/nfsd/export.c ek = exp_get_key(exp->ex_client, inode->i_sb->s_dev, inode->i_ino); inode 1173 fs/nfsd/export.c struct inode *inode; inode 1183 fs/nfsd/export.c inode = nd.path.dentry->d_inode; inode 1187 fs/nfsd/export.c inode->i_sb->s_id, inode->i_ino); inode 66 fs/nfsd/nfs2acl.c struct inode *inode = fh->fh_dentry->d_inode; inode 67 fs/nfsd/nfs2acl.c acl = posix_acl_from_mode(inode->i_mode, GFP_KERNEL); inode 225 fs/nfsd/nfs2acl.c struct inode *inode; inode 238 fs/nfsd/nfs2acl.c inode = dentry->d_inode; inode 255 fs/nfsd/nfs2acl.c n = nfsacl_encode(&rqstp->rq_res, base, inode, inode 259 fs/nfsd/nfs2acl.c n = nfsacl_encode(&rqstp->rq_res, base + n, inode, inode 62 fs/nfsd/nfs3acl.c struct inode *inode = fh->fh_dentry->d_inode; inode 63 fs/nfsd/nfs3acl.c acl = posix_acl_from_mode(inode->i_mode, GFP_KERNEL); inode 174 fs/nfsd/nfs3acl.c struct inode *inode = dentry->d_inode; inode 194 fs/nfsd/nfs3acl.c n = nfsacl_encode(&rqstp->rq_res, base, inode, inode 198 fs/nfsd/nfs3acl.c n = nfsacl_encode(&rqstp->rq_res, base + n, inode, inode 189 fs/nfsd/nfs3proc.c struct inode *inode = resp->fh.fh_dentry->d_inode; inode 191 fs/nfsd/nfs3proc.c resp->eof = (argp->offset + resp->count) >= inode->i_size; inode 1233 fs/nfsd/nfs4state.c struct inode *ino = current_fh->fh_dentry->d_inode; inode 1578 fs/nfsd/nfs4state.c struct inode *inode = filp->f_path.dentry->d_inode; inode 1587 fs/nfsd/nfs4state.c int err = get_write_access(inode); inode 1598 fs/nfsd/nfs4state.c put_write_access(inode); inode 1701 fs/nfsd/nfs4state.c struct inode *ino = current_fh->fh_dentry->d_inode; inode 1999 fs/nfsd/nfs4state.c && mandatory_lock(inode); inode 2031 fs/nfsd/nfs4state.c struct inode *ino = current_fh->fh_dentry->d_inode; inode 2414 fs/nfsd/nfs4state.c return (file_hashval(inode) + cl_id inode 2521 fs/nfsd/nfs4state.c unsigned int hashval = lock_ownerstr_hashval(inode, clid->cl_id, owner); inode 2778 fs/nfsd/nfs4state.c struct inode *inode; inode 2804 fs/nfsd/nfs4state.c inode = cstate->current_fh.fh_dentry->d_inode; inode 2821 fs/nfsd/nfs4state.c lockt->lt_stateowner = find_lockstateowner_str(inode, inode 2939 fs/nfsd/nfs4state.c struct inode *inode = filp->f_path.dentry->d_inode; inode 2943 fs/nfsd/nfs4state.c for (flpp = &inode->i_flock; *flpp != NULL; flpp = &(*flpp)->fl_next) { inode 395 fs/nfsd/nfsfh.c struct inode * inode = dentry->d_inode; inode 405 fs/nfsd/nfsfh.c (inode ? inode->i_ino : 0)); inode 510 fs/nfsd/nfsfh.c if (inode) inode 526 fs/nfsd/nfsfh.c if (inode) inode 209 fs/nfsd/nfsproc.c struct inode *inode; inode 257 fs/nfsd/nfsproc.c inode = newfhp->fh_dentry->d_inode; inode 266 fs/nfsd/nfsproc.c if (inode) { inode 267 fs/nfsd/nfsproc.c type = inode->i_mode & S_IFMT; inode 272 fs/nfsd/nfsproc.c rdev = inode->i_rdev; inode 292 fs/nfsd/nfsproc.c } else if (inode) { inode 293 fs/nfsd/nfsproc.c type = inode->i_mode & S_IFMT; inode 294 fs/nfsd/nfsproc.c mode = inode->i_mode & ~S_IFMT; inode 325 fs/nfsd/nfsproc.c if (inode && type != (inode->i_mode & S_IFMT)) inode 330 fs/nfsd/nfsproc.c if (!inode) { inode 263 fs/nfsd/vfs.c struct inode *inode; inode 281 fs/nfsd/vfs.c inode = dentry->d_inode; inode 284 fs/nfsd/vfs.c if (S_ISLNK(inode->i_mode)) inode 317 fs/nfsd/vfs.c inode_change_ok(inode, iap) != 0) { inode 332 fs/nfsd/vfs.c if (iap->ia_size < inode->i_size) { inode 343 fs/nfsd/vfs.c host_err = break_lease(inode, FMODE_WRITE | O_NONBLOCK); inode 349 fs/nfsd/vfs.c host_err = get_write_access(inode); inode 354 fs/nfsd/vfs.c host_err = locks_verify_truncate(inode, NULL, iap->ia_size); inode 356 fs/nfsd/vfs.c put_write_access(inode); inode 359 fs/nfsd/vfs.c DQUOT_INIT(inode); inode 365 fs/nfsd/vfs.c iap->ia_mode |= (inode->i_mode & ~S_IALLUGO); inode 369 fs/nfsd/vfs.c if (((iap->ia_valid & ATTR_UID) && iap->ia_uid != inode->i_uid) || inode 370 fs/nfsd/vfs.c ((iap->ia_valid & ATTR_GID) && iap->ia_gid != inode->i_gid)) { inode 388 fs/nfsd/vfs.c if (!check_guard || guardtime == inode->i_ctime.tv_sec) { inode 395 fs/nfsd/vfs.c put_write_access(inode); inode 398 fs/nfsd/vfs.c write_inode_now(inode, 1); inode 460 fs/nfsd/vfs.c struct inode *inode; inode 470 fs/nfsd/vfs.c inode = dentry->d_inode; inode 471 fs/nfsd/vfs.c if (S_ISDIR(inode->i_mode)) inode 484 fs/nfsd/vfs.c if (S_ISDIR(inode->i_mode)) inode 518 fs/nfsd/vfs.c struct inode *inode = dentry->d_inode; inode 525 fs/nfsd/vfs.c pacl = posix_acl_from_mode(inode->i_mode, GFP_KERNEL); inode 532 fs/nfsd/vfs.c if (S_ISDIR(inode->i_mode)) { inode 671 fs/nfsd/vfs.c struct inode *inode; inode 686 fs/nfsd/vfs.c inode = dentry->d_inode; inode 692 fs/nfsd/vfs.c if (IS_APPEND(inode) && (access & NFSD_MAY_WRITE)) inode 699 fs/nfsd/vfs.c if (S_ISREG((inode)->i_mode) && mandatory_lock(inode)) inode 702 fs/nfsd/vfs.c if (!inode->i_fop) inode 709 fs/nfsd/vfs.c host_err = break_lease(inode, O_NONBLOCK | ((access & NFSD_MAY_WRITE) ? FMODE_WRITE : 0)); inode 721 fs/nfsd/vfs.c DQUOT_INIT(inode); inode 750 fs/nfsd/vfs.c struct inode *inode = dp->d_inode; inode 754 fs/nfsd/vfs.c err = filemap_fdatawrite(inode->i_mapping); inode 758 fs/nfsd/vfs.c err = filemap_fdatawait(inode->i_mapping); inode 768 fs/nfsd/vfs.c struct inode *inode = filp->f_path.dentry->d_inode; inode 770 fs/nfsd/vfs.c mutex_lock(&inode->i_mutex); inode 772 fs/nfsd/vfs.c mutex_unlock(&inode->i_mutex); inode 890 fs/nfsd/vfs.c struct inode *inode; inode 897 fs/nfsd/vfs.c inode = file->f_path.dentry->d_inode; inode 899 fs/nfsd/vfs.c if (svc_msnfs(fhp) && !lock_may_read(inode, offset, *count)) inode 903 fs/nfsd/vfs.c ra = nfsd_get_raparms(inode->i_sb->s_dev, inode->i_ino); inode 963 fs/nfsd/vfs.c struct inode *inode; inode 978 fs/nfsd/vfs.c inode = dentry->d_inode; inode 1010 fs/nfsd/vfs.c if (host_err >= 0 && (inode->i_mode & (S_ISUID | S_ISGID))) inode 1030 fs/nfsd/vfs.c if (atomic_read(&inode->i_writecount) > 1 inode 1031 fs/nfsd/vfs.c || (last_ino == inode->i_ino && last_dev == inode->i_sb->s_dev)) { inode 1037 fs/nfsd/vfs.c if (inode->i_state & I_DIRTY) { inode 1042 fs/nfsd/vfs.c wake_up(&inode->i_wait); inode 1045 fs/nfsd/vfs.c last_ino = inode->i_ino; inode 1046 fs/nfsd/vfs.c last_dev = inode->i_sb->s_dev; inode 1189 fs/nfsd/vfs.c struct inode *dirp; inode 1321 fs/nfsd/vfs.c struct inode *dirp; inode 1467 fs/nfsd/vfs.c struct inode *inode; inode 1477 fs/nfsd/vfs.c inode = dentry->d_inode; inode 1480 fs/nfsd/vfs.c if (!inode->i_op || !inode->i_op->readlink) inode 1489 fs/nfsd/vfs.c host_err = inode->i_op->readlink(dentry, buf, *lenp); inode 1582 fs/nfsd/vfs.c struct inode *dirp, *dest; inode 1652 fs/nfsd/vfs.c struct inode *fdir, *tdir; inode 1756 fs/nfsd/vfs.c struct inode *dirp; inode 1888 fs/nfsd/vfs.c struct inode *inode = dentry->d_inode; inode 1903 fs/nfsd/vfs.c inode->i_mode, inode 1904 fs/nfsd/vfs.c IS_IMMUTABLE(inode)? " immut" : "", inode 1905 fs/nfsd/vfs.c IS_APPEND(inode)? " append" : "", inode 1908 fs/nfsd/vfs.c inode->i_uid, inode->i_gid, current->fsuid, current->fsgid); inode 1920 fs/nfsd/vfs.c if (/* (acc & NFSD_MAY_WRITE) && */ IS_IMMUTABLE(inode)) inode 1923 fs/nfsd/vfs.c if ((acc & NFSD_MAY_TRUNC) && IS_APPEND(inode)) inode 1951 fs/nfsd/vfs.c inode->i_uid == current->fsuid) inode 1955 fs/nfsd/vfs.c err = inode_permission(inode, acc & (MAY_READ|MAY_WRITE|MAY_EXEC)); inode 1958 fs/nfsd/vfs.c if (err == -EACCES && S_ISREG(inode->i_mode) && inode 1960 fs/nfsd/vfs.c err = inode_permission(inode, MAY_EXEC); inode 2030 fs/nfsd/vfs.c struct inode *inode = fhp->fh_dentry->d_inode; inode 2036 fs/nfsd/vfs.c if (!IS_POSIXACL(inode)) inode 2062 fs/nfsd/vfs.c struct inode *inode = fhp->fh_dentry->d_inode; inode 2068 fs/nfsd/vfs.c if (!IS_POSIXACL(inode) || !inode->i_op || inode 2069 fs/nfsd/vfs.c !inode->i_op->setxattr || !inode->i_op->removexattr) inode 2100 fs/nfsd/vfs.c if (!S_ISDIR(inode->i_mode) && type == ACL_TYPE_DEFAULT) inode 63 fs/ntfs/aops.c struct inode *vi; inode 190 fs/ntfs/aops.c struct inode *vi; inode 401 fs/ntfs/aops.c struct inode *vi; inode 557 fs/ntfs/aops.c struct inode *vi; inode 923 fs/ntfs/aops.c struct inode *vi = page->mapping->host; inode 1356 fs/ntfs/aops.c struct inode *vi = page->mapping->host; inode 1537 fs/ntfs/attrib.c struct inode *vi = VFS_I(ni); inode 1909 fs/ntfs/attrib.c struct inode *vi = VFS_I(ni); inode 1103 fs/ntfs/dir.c struct inode *bmp_vi, *vdir = filp->f_path.dentry->d_inode; inode 1532 fs/ntfs/dir.c struct inode *bmp_vi, *vi = dentry->d_inode; inode 119 fs/ntfs/file.c struct inode *vi = VFS_I(ni); inode 499 fs/ntfs/file.c struct inode *vi; inode 1486 fs/ntfs/file.c struct inode *vi; inode 1641 fs/ntfs/file.c struct inode *vi; inode 1788 fs/ntfs/file.c struct inode *vi = mapping->host; inode 2102 fs/ntfs/file.c struct inode *inode = mapping->host; inode 2112 fs/ntfs/file.c vfs_check_frozen(inode->i_sb, SB_FREEZE_WRITE); inode 2116 fs/ntfs/file.c err = generic_write_checks(file, &pos, &count, S_ISBLK(inode->i_mode)); inode 2140 fs/ntfs/file.c struct inode *inode = mapping->host; inode 2145 fs/ntfs/file.c mutex_lock(&inode->i_mutex); inode 2147 fs/ntfs/file.c mutex_unlock(&inode->i_mutex); inode 2148 fs/ntfs/file.c if (ret > 0 && ((file->f_flags & O_SYNC) || IS_SYNC(inode))) { inode 2149 fs/ntfs/file.c int err = sync_page_range(inode, mapping, pos, ret); inode 2166 fs/ntfs/file.c struct inode *inode = mapping->host; inode 2170 fs/ntfs/file.c mutex_lock(&inode->i_mutex); inode 2175 fs/ntfs/file.c mutex_unlock(&inode->i_mutex); inode 2176 fs/ntfs/file.c if (ret > 0 && ((file->f_flags & O_SYNC) || IS_SYNC(inode))) { inode 2177 fs/ntfs/file.c int err = sync_page_range(inode, mapping, *ppos - ret, ret); inode 2227 fs/ntfs/file.c struct inode *vi = dentry->d_inode; inode 169 fs/ntfs/inode.c struct inode *ntfs_iget(struct super_block *sb, unsigned long mft_no) inode 171 fs/ntfs/inode.c struct inode *vi; inode 226 fs/ntfs/inode.c struct inode *ntfs_attr_iget(struct inode *base_vi, ATTR_TYPE type, inode 229 fs/ntfs/inode.c struct inode *vi; inode 284 fs/ntfs/inode.c struct inode *ntfs_index_iget(struct inode *base_vi, ntfschar *name, inode 287 fs/ntfs/inode.c struct inode *vi; inode 320 fs/ntfs/inode.c struct inode *ntfs_alloc_big_inode(struct super_block *sb) inode 336 fs/ntfs/inode.c ntfs_inode *ni = NTFS_I(inode); inode 342 fs/ntfs/inode.c kmem_cache_free(ntfs_big_inode_cache, NTFS_I(inode)); inode 546 fs/ntfs/inode.c struct inode *bvi; inode 1490 fs/ntfs/inode.c struct inode *bvi; inode 2891 fs/ntfs/inode.c struct inode *vi = dentry->d_inode; inode 231 fs/ntfs/inode.h struct inode vfs_inode; /* The vfs inode structure. */ inode 242 fs/ntfs/inode.h return (ntfs_inode *)list_entry(inode, big_ntfs_inode, vfs_inode); inode 245 fs/ntfs/inode.h static inline struct inode *VFS_I(ntfs_inode *ni) inode 274 fs/ntfs/inode.h extern struct inode *ntfs_iget(struct super_block *sb, unsigned long mft_no); inode 275 fs/ntfs/inode.h extern struct inode *ntfs_attr_iget(struct inode *base_vi, ATTR_TYPE type, inode 277 fs/ntfs/inode.h extern struct inode *ntfs_index_iget(struct inode *base_vi, ntfschar *name, inode 280 fs/ntfs/inode.h extern struct inode *ntfs_alloc_big_inode(struct super_block *sb); inode 53 fs/ntfs/lcnalloc.c struct inode *lcnbmp_vi = vol->lcnbmp_ino; inode 155 fs/ntfs/lcnalloc.c struct inode *lcnbmp_vi; inode 854 fs/ntfs/lcnalloc.c struct inode *lcnbmp_vi; inode 50 fs/ntfs/mft.c struct inode *mft_vi = vol->mft_ino; inode 929 fs/ntfs/mft.c struct inode *mft_vi = vol->mft_ino; inode 930 fs/ntfs/mft.c struct inode *vi; inode 1581 fs/ntfs/mft.c struct inode *mftbmp_vi; inode 2094 fs/ntfs/mft.c struct inode *mft_vi = vol->mft_ino; inode 2248 fs/ntfs/mft.c struct inode *vi; inode 106 fs/ntfs/namei.c struct inode *dent_inode; inode 301 fs/ntfs/namei.c struct inode *vi = child_dent->d_inode; inode 307 fs/ntfs/namei.c struct inode *parent_vi; inode 368 fs/ntfs/namei.c static struct inode *ntfs_nfs_get_inode(struct super_block *sb, inode 371 fs/ntfs/namei.c struct inode *inode; inode 373 fs/ntfs/namei.c inode = ntfs_iget(sb, ino); inode 374 fs/ntfs/namei.c if (!IS_ERR(inode)) { inode 375 fs/ntfs/namei.c if (is_bad_inode(inode) || inode->i_generation != generation) { inode 376 fs/ntfs/namei.c iput(inode); inode 377 fs/ntfs/namei.c inode = ERR_PTR(-ESTALE); inode 381 fs/ntfs/namei.c return inode; inode 1007 fs/ntfs/super.c struct inode *tmp_ino; inode 1189 fs/ntfs/super.c struct inode *tmp_ino; inode 1239 fs/ntfs/super.c struct inode *vi; inode 1338 fs/ntfs/super.c struct inode *tmp_ino; inode 1414 fs/ntfs/super.c struct inode *tmp_ino; inode 1568 fs/ntfs/super.c struct inode *ino; inode 1633 fs/ntfs/super.c struct inode *ino; inode 2735 fs/ntfs/super.c struct inode *tmp_ino; inode 95 fs/ntfs/volume.h struct inode *mft_ino; /* The VFS inode of $MFT. */ inode 97 fs/ntfs/volume.h struct inode *mftbmp_ino; /* Attribute inode for $MFT/$BITMAP. */ inode 101 fs/ntfs/volume.h struct inode *mftmirr_ino; /* The VFS inode of $MFTMirr. */ inode 104 fs/ntfs/volume.h struct inode *logfile_ino; /* The VFS inode of $LogFile. */ inode 107 fs/ntfs/volume.h struct inode *lcnbmp_ino; /* The VFS inode of $Bitmap. */ inode 111 fs/ntfs/volume.h struct inode *vol_ino; /* The VFS inode of $Volume. */ inode 116 fs/ntfs/volume.h struct inode *root_ino; /* The VFS inode of the root inode 118 fs/ntfs/volume.h struct inode *secure_ino; /* The VFS inode of $Secure (NTFS3.0+ inode 120 fs/ntfs/volume.h struct inode *extend_ino; /* The VFS inode of $Extend (NTFS3.0+ inode 124 fs/ntfs/volume.h struct inode *quota_ino; /* The VFS inode of $Quota. */ inode 125 fs/ntfs/volume.h struct inode *quota_q_ino; /* Attribute inode for $Quota/$Q. */ inode 127 fs/ntfs/volume.h struct inode *usnjrnl_ino; /* The VFS inode of $UsnJrnl. */ inode 128 fs/ntfs/volume.h struct inode *usnjrnl_max_ino; /* Attribute inode for $UsnJrnl/$Max. */ inode 129 fs/ntfs/volume.h struct inode *usnjrnl_j_ino; /* Attribute inode for $UsnJrnl/$J. */ inode 79 fs/ocfs2/alloc.c void (*eo_update_clusters)(struct inode *inode, inode 87 fs/ocfs2/alloc.c int (*eo_insert_check)(struct inode *inode, inode 90 fs/ocfs2/alloc.c int (*eo_sanity_check)(struct inode *inode, struct ocfs2_extent_tree *et); inode 109 fs/ocfs2/alloc.c void (*eo_fill_max_leaf_clusters)(struct inode *inode, inode 163 fs/ocfs2/alloc.c spin_lock(&OCFS2_I(inode)->ip_lock); inode 164 fs/ocfs2/alloc.c OCFS2_I(inode)->ip_clusters = le32_to_cpu(di->i_clusters); inode 165 fs/ocfs2/alloc.c spin_unlock(&OCFS2_I(inode)->ip_lock); inode 172 fs/ocfs2/alloc.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 174 fs/ocfs2/alloc.c BUG_ON(OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL); inode 176 fs/ocfs2/alloc.c (OCFS2_I(inode)->ip_clusters != rec->e_cpos), inode 180 fs/ocfs2/alloc.c (unsigned long long)OCFS2_I(inode)->ip_blkno, inode 182 fs/ocfs2/alloc.c OCFS2_I(inode)->ip_clusters); inode 198 fs/ocfs2/alloc.c ocfs2_error(inode->i_sb, inode 200 fs/ocfs2/alloc.c (unsigned long long)OCFS2_I(inode)->ip_blkno); inode 266 fs/ocfs2/alloc.c ocfs2_clusters_for_bytes(inode->i_sb, inode 320 fs/ocfs2/alloc.c et->et_ops->eo_fill_max_leaf_clusters(inode, et); inode 327 fs/ocfs2/alloc.c __ocfs2_init_extent_tree(et, inode, bh, NULL, &ocfs2_dinode_et_ops); inode 334 fs/ocfs2/alloc.c __ocfs2_init_extent_tree(et, inode, bh, NULL, inode 343 fs/ocfs2/alloc.c __ocfs2_init_extent_tree(et, inode, bh, xv, inode 362 fs/ocfs2/alloc.c et->et_ops->eo_update_clusters(inode, et, clusters); inode 372 fs/ocfs2/alloc.c ret = et->et_ops->eo_insert_check(inode, et, rec); inode 382 fs/ocfs2/alloc.c ret = et->et_ops->eo_sanity_check(inode, et); inode 553 fs/ocfs2/alloc.c ret = ocfs2_journal_access(handle, inode, path->p_node[i].bh, inode 646 fs/ocfs2/alloc.c ocfs2_block_extent_contig(inode->i_sb, ext, blkno)) inode 651 fs/ocfs2/alloc.c ocfs2_block_extent_contig(inode->i_sb, insert_rec, blkno)) inode 708 fs/ocfs2/alloc.c retval = ocfs2_read_block(inode, last_eb_blk, inode 769 fs/ocfs2/alloc.c ocfs2_set_new_buffer_uptodate(inode, bhs[i]); inode 771 fs/ocfs2/alloc.c status = ocfs2_journal_access(handle, inode, bhs[i], inode 890 fs/ocfs2/alloc.c status = ocfs2_create_new_meta_bhs(osb, handle, inode, new_blocks, inode 912 fs/ocfs2/alloc.c OCFS2_RO_ON_INVALID_EXTENT_BLOCK(inode->i_sb, eb); inode 918 fs/ocfs2/alloc.c status = ocfs2_journal_access(handle, inode, bh, inode 958 fs/ocfs2/alloc.c status = ocfs2_journal_access(handle, inode, *last_eb_bh, inode 964 fs/ocfs2/alloc.c status = ocfs2_journal_access(handle, inode, et->et_root_bh, inode 971 fs/ocfs2/alloc.c status = ocfs2_journal_access(handle, inode, eb_bh, inode 1047 fs/ocfs2/alloc.c status = ocfs2_create_new_meta_bhs(osb, handle, inode, 1, meta_ac, inode 1056 fs/ocfs2/alloc.c OCFS2_RO_ON_INVALID_EXTENT_BLOCK(inode->i_sb, eb); inode 1064 fs/ocfs2/alloc.c status = ocfs2_journal_access(handle, inode, new_eb_bh, inode 1083 fs/ocfs2/alloc.c status = ocfs2_journal_access(handle, inode, et->et_root_bh, inode 1159 fs/ocfs2/alloc.c ocfs2_error(inode->i_sb, "Dinode %llu has empty " inode 1161 fs/ocfs2/alloc.c (unsigned long long)OCFS2_I(inode)->ip_blkno); inode 1168 fs/ocfs2/alloc.c ocfs2_error(inode->i_sb, "Dinode %llu has extent " inode 1171 fs/ocfs2/alloc.c (unsigned long long)OCFS2_I(inode)->ip_blkno, i); inode 1179 fs/ocfs2/alloc.c status = ocfs2_read_block(inode, blkno, &bh); inode 1187 fs/ocfs2/alloc.c OCFS2_RO_ON_INVALID_EXTENT_BLOCK(inode->i_sb, eb); inode 1233 fs/ocfs2/alloc.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 1238 fs/ocfs2/alloc.c shift = ocfs2_find_branch_target(osb, inode, et, &bh); inode 1255 fs/ocfs2/alloc.c ret = ocfs2_shift_tree_depth(osb, handle, inode, et, inode 1282 fs/ocfs2/alloc.c ret = ocfs2_add_branch(osb, handle, inode, et, bh, last_eb_bh, inode 1472 fs/ocfs2/alloc.c inode->i_ino, left->p_tree_depth, inode 1501 fs/ocfs2/alloc.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 1506 fs/ocfs2/alloc.c ocfs2_error(inode->i_sb, inode 1532 fs/ocfs2/alloc.c ocfs2_error(inode->i_sb, inode 1543 fs/ocfs2/alloc.c ret = ocfs2_read_block(inode, blkno, &bh); inode 1552 fs/ocfs2/alloc.c OCFS2_RO_ON_INVALID_EXTENT_BLOCK(inode->i_sb, eb); inode 1559 fs/ocfs2/alloc.c ocfs2_error(inode->i_sb, inode 1613 fs/ocfs2/alloc.c return __ocfs2_find_path(inode, path_root_el(path), cpos, inode 1644 fs/ocfs2/alloc.c ret = __ocfs2_find_path(inode, root_el, cpos, find_leaf_ins, &bh); inode 1844 fs/ocfs2/alloc.c ocfs2_error(inode->i_sb, inode 1847 fs/ocfs2/alloc.c (unsigned long long)OCFS2_I(inode)->ip_blkno, inode 1863 fs/ocfs2/alloc.c ret = ocfs2_journal_access(handle, inode, root_bh, inode 1871 fs/ocfs2/alloc.c ret = ocfs2_journal_access(handle, inode, inode 1879 fs/ocfs2/alloc.c ret = ocfs2_journal_access(handle, inode, inode 1894 fs/ocfs2/alloc.c (unsigned long long)OCFS2_I(inode)->ip_blkno, inode 1928 fs/ocfs2/alloc.c ocfs2_complete_edge_insert(inode, handle, left_path, right_path, inode 2113 fs/ocfs2/alloc.c ret = ocfs2_find_cpos_for_left_leaf(inode->i_sb, right_path, &cpos); inode 2151 fs/ocfs2/alloc.c ret = ocfs2_find_path(inode, left_path, cpos); inode 2162 fs/ocfs2/alloc.c inode->i_ino, insert_cpos, cpos, inode 2188 fs/ocfs2/alloc.c start = ocfs2_find_subtree_root(inode, left_path, right_path); inode 2202 fs/ocfs2/alloc.c ret = ocfs2_rotate_subtree_right(inode, handle, left_path, inode 2234 fs/ocfs2/alloc.c ret = ocfs2_find_cpos_for_left_leaf(inode->i_sb, right_path, inode 2302 fs/ocfs2/alloc.c (unsigned long long)OCFS2_I(inode)->ip_blkno, inode 2307 fs/ocfs2/alloc.c ocfs2_remove_from_cache(inode, bh); inode 2320 fs/ocfs2/alloc.c ocfs2_remove_from_cache(inode, bh); inode 2355 fs/ocfs2/alloc.c ocfs2_unlink_path(inode, handle, dealloc, right_path, inode 2401 fs/ocfs2/alloc.c ret = ocfs2_journal_access(handle, inode, inode 2420 fs/ocfs2/alloc.c ret = ocfs2_journal_access(handle, inode, et_root_bh, inode 2436 fs/ocfs2/alloc.c ret = ocfs2_journal_access(handle, inode, root_bh, inode 2444 fs/ocfs2/alloc.c ret = ocfs2_journal_access(handle, inode, inode 2452 fs/ocfs2/alloc.c ret = ocfs2_journal_access(handle, inode, inode 2490 fs/ocfs2/alloc.c ocfs2_unlink_subtree(inode, handle, left_path, right_path, inode 2492 fs/ocfs2/alloc.c ocfs2_update_edge_lengths(inode, handle, left_path); inode 2511 fs/ocfs2/alloc.c ocfs2_complete_edge_insert(inode, handle, left_path, right_path, inode 2607 fs/ocfs2/alloc.c ret = ocfs2_journal_access(handle, inode, bh, inode 2640 fs/ocfs2/alloc.c ret = ocfs2_find_cpos_for_right_leaf(inode->i_sb, path, inode 2666 fs/ocfs2/alloc.c ret = ocfs2_find_path(inode, right_path, right_cpos); inode 2672 fs/ocfs2/alloc.c subtree_root = ocfs2_find_subtree_root(inode, left_path, inode 2692 fs/ocfs2/alloc.c ret = ocfs2_journal_access(handle, inode, inode 2700 fs/ocfs2/alloc.c ret = ocfs2_rotate_subtree_left(inode, handle, left_path, inode 2729 fs/ocfs2/alloc.c ret = ocfs2_find_cpos_for_right_leaf(inode->i_sb, left_path, inode 2756 fs/ocfs2/alloc.c ret = ocfs2_et_sanity_check(inode, et); inode 2771 fs/ocfs2/alloc.c ret = ocfs2_journal_access_path(inode, handle, path); inode 2777 fs/ocfs2/alloc.c ret = ocfs2_find_cpos_for_left_leaf(inode->i_sb, path, &cpos); inode 2796 fs/ocfs2/alloc.c ret = ocfs2_find_path(inode, left_path, cpos); inode 2802 fs/ocfs2/alloc.c ret = ocfs2_journal_access_path(inode, handle, left_path); inode 2808 fs/ocfs2/alloc.c subtree_index = ocfs2_find_subtree_root(inode, left_path, path); inode 2810 fs/ocfs2/alloc.c ocfs2_unlink_subtree(inode, handle, left_path, path, inode 2812 fs/ocfs2/alloc.c ocfs2_update_edge_lengths(inode, handle, left_path); inode 2824 fs/ocfs2/alloc.c ocfs2_unlink_path(inode, handle, dealloc, path, 1); inode 2877 fs/ocfs2/alloc.c ret = ocfs2_rotate_rightmost_leaf_left(inode, handle, inode 2911 fs/ocfs2/alloc.c ocfs2_error(inode->i_sb, inode 2913 fs/ocfs2/alloc.c (unsigned long long)OCFS2_I(inode)->ip_blkno, inode 2927 fs/ocfs2/alloc.c ret = ocfs2_remove_rightmost_path(inode, handle, path, inode 2939 fs/ocfs2/alloc.c ret = __ocfs2_rotate_tree_left(inode, handle, orig_credits, path, inode 2950 fs/ocfs2/alloc.c ret = __ocfs2_rotate_tree_left(inode, handle, orig_credits, inode 3020 fs/ocfs2/alloc.c ret = ocfs2_find_cpos_for_right_leaf(inode->i_sb, left_path, inode 3038 fs/ocfs2/alloc.c ret = ocfs2_find_path(inode, right_path, right_cpos); inode 3081 fs/ocfs2/alloc.c ret = ocfs2_get_right_path(inode, left_path, &right_path); inode 3100 fs/ocfs2/alloc.c subtree_index = ocfs2_find_subtree_root(inode, inode 3114 fs/ocfs2/alloc.c ret = ocfs2_journal_access(handle, inode, root_bh, inode 3123 fs/ocfs2/alloc.c ret = ocfs2_journal_access(handle, inode, inode 3131 fs/ocfs2/alloc.c ret = ocfs2_journal_access(handle, inode, inode 3145 fs/ocfs2/alloc.c ret = ocfs2_journal_access(handle, inode, bh, inode 3156 fs/ocfs2/alloc.c -ocfs2_clusters_to_blocks(inode->i_sb, split_clusters)); inode 3170 fs/ocfs2/alloc.c ocfs2_complete_edge_insert(inode, handle, left_path, inode 3192 fs/ocfs2/alloc.c ret = ocfs2_find_cpos_for_left_leaf(inode->i_sb, inode 3210 fs/ocfs2/alloc.c ret = ocfs2_find_path(inode, left_path, left_cpos); inode 3256 fs/ocfs2/alloc.c ret = ocfs2_get_left_path(inode, right_path, &left_path); inode 3272 fs/ocfs2/alloc.c subtree_index = ocfs2_find_subtree_root(inode, inode 3286 fs/ocfs2/alloc.c ret = ocfs2_journal_access(handle, inode, root_bh, inode 3295 fs/ocfs2/alloc.c ret = ocfs2_journal_access(handle, inode, inode 3303 fs/ocfs2/alloc.c ret = ocfs2_journal_access(handle, inode, inode 3317 fs/ocfs2/alloc.c ret = ocfs2_journal_access(handle, inode, bh, inode 3336 fs/ocfs2/alloc.c ocfs2_clusters_to_blocks(inode->i_sb, split_clusters)); inode 3358 fs/ocfs2/alloc.c ret = ocfs2_remove_rightmost_path(inode, handle, inode 3372 fs/ocfs2/alloc.c ocfs2_complete_edge_insert(inode, handle, left_path, inode 3405 fs/ocfs2/alloc.c ret = ocfs2_rotate_tree_left(inode, handle, path, inode 3435 fs/ocfs2/alloc.c ret = ocfs2_merge_rec_right(inode, path, inode 3449 fs/ocfs2/alloc.c ret = ocfs2_rotate_tree_left(inode, handle, path, inode 3462 fs/ocfs2/alloc.c ret = ocfs2_merge_rec_left(inode, path, inode 3472 fs/ocfs2/alloc.c ret = ocfs2_rotate_tree_left(inode, handle, path, inode 3490 fs/ocfs2/alloc.c ret = ocfs2_merge_rec_left(inode, inode 3500 fs/ocfs2/alloc.c ret = ocfs2_merge_rec_right(inode, inode 3515 fs/ocfs2/alloc.c ret = ocfs2_rotate_tree_left(inode, handle, path, inode 3577 fs/ocfs2/alloc.c ocfs2_subtract_from_rec(inode->i_sb, insert->ins_split, rec, inode 3622 fs/ocfs2/alloc.c inode->i_ino, inode 3669 fs/ocfs2/alloc.c ocfs2_error(inode->i_sb, inode 3671 fs/ocfs2/alloc.c (unsigned long long)OCFS2_I(inode)->ip_blkno); inode 3719 fs/ocfs2/alloc.c ret = ocfs2_find_cpos_for_left_leaf(inode->i_sb, right_path, inode 3743 fs/ocfs2/alloc.c ret = ocfs2_find_path(inode, left_path, left_cpos); inode 3756 fs/ocfs2/alloc.c ret = ocfs2_journal_access_path(inode, handle, right_path); inode 3762 fs/ocfs2/alloc.c ocfs2_adjust_rightmost_records(inode, handle, right_path, insert_rec); inode 3846 fs/ocfs2/alloc.c ocfs2_subtract_from_rec(inode->i_sb, split, rec, split_rec); inode 3885 fs/ocfs2/alloc.c ret = ocfs2_journal_access_path(inode, handle, left_path); inode 3896 fs/ocfs2/alloc.c ret = ocfs2_journal_access_path(inode, handle, right_path); inode 3908 fs/ocfs2/alloc.c ocfs2_split_record(inode, left_path, right_path, inode 3923 fs/ocfs2/alloc.c insert, inode); inode 3936 fs/ocfs2/alloc.c subtree_index = ocfs2_find_subtree_root(inode, left_path, inode 3938 fs/ocfs2/alloc.c ocfs2_complete_edge_insert(inode, handle, left_path, inode 3961 fs/ocfs2/alloc.c ret = ocfs2_journal_access(handle, inode, et->et_root_bh, inode 3969 fs/ocfs2/alloc.c ocfs2_insert_at_leaf(insert_rec, el, type, inode); inode 3992 fs/ocfs2/alloc.c ret = ocfs2_find_path(inode, right_path, cpos); inode 4011 fs/ocfs2/alloc.c ret = ocfs2_rotate_tree_right(inode, handle, type->ins_split, inode 4023 fs/ocfs2/alloc.c ret = ocfs2_journal_access(handle, inode, et->et_root_bh, inode 4031 fs/ocfs2/alloc.c ret = ocfs2_append_rec_to_path(inode, handle, insert_rec, inode 4039 fs/ocfs2/alloc.c ret = ocfs2_insert_path(inode, handle, left_path, right_path, inode 4048 fs/ocfs2/alloc.c ocfs2_et_update_clusters(inode, et, inode 4079 fs/ocfs2/alloc.c status = ocfs2_find_cpos_for_left_leaf(inode->i_sb, inode 4090 fs/ocfs2/alloc.c status = ocfs2_find_path(inode, left_path, left_cpos); inode 4100 fs/ocfs2/alloc.c OCFS2_RO_ON_INVALID_EXTENT_BLOCK(inode->i_sb, inode 4118 fs/ocfs2/alloc.c ret = ocfs2_extent_contig(inode, rec, split_rec); inode 4127 fs/ocfs2/alloc.c status = ocfs2_find_cpos_for_right_leaf(inode->i_sb, inode 4140 fs/ocfs2/alloc.c status = ocfs2_find_path(inode, right_path, right_cpos); inode 4150 fs/ocfs2/alloc.c OCFS2_RO_ON_INVALID_EXTENT_BLOCK(inode->i_sb, inode 4161 fs/ocfs2/alloc.c contig_type = ocfs2_extent_contig(inode, rec, split_rec); inode 4190 fs/ocfs2/alloc.c contig_type = ocfs2_extent_contig(inode, &el->l_recs[i], inode 4297 fs/ocfs2/alloc.c ret = ocfs2_read_block(inode, ocfs2_et_get_last_eb_blk(et), &bh); inode 4318 fs/ocfs2/alloc.c ocfs2_figure_contig_type(inode, insert, el, insert_rec, et); inode 4336 fs/ocfs2/alloc.c ret = ocfs2_find_path(inode, path, le32_to_cpu(insert_rec->e_cpos)); inode 4352 fs/ocfs2/alloc.c ocfs2_figure_contig_type(inode, insert, el, insert_rec, et); inode 4418 fs/ocfs2/alloc.c new_clusters, cpos, (unsigned long long)OCFS2_I(inode)->ip_blkno); inode 4425 fs/ocfs2/alloc.c status = ocfs2_et_insert_check(inode, et, &rec); inode 4431 fs/ocfs2/alloc.c status = ocfs2_figure_insert_type(inode, et, &last_eb_bh, &rec, inode 4445 fs/ocfs2/alloc.c status = ocfs2_grow_tree(inode, handle, et, inode 4455 fs/ocfs2/alloc.c status = ocfs2_do_insert_extent(inode, handle, et, &rec, &insert); inode 4459 fs/ocfs2/alloc.c ocfs2_extent_map_insert_rec(inode, &rec); inode 4498 fs/ocfs2/alloc.c free_extents = ocfs2_num_free_extents(osb, inode, et); inode 4535 fs/ocfs2/alloc.c status = ocfs2_journal_access(handle, inode, et->et_root_bh, inode 4544 fs/ocfs2/alloc.c num_bits, bit_off, (unsigned long long)OCFS2_I(inode)->ip_blkno); inode 4545 fs/ocfs2/alloc.c status = ocfs2_insert_extent(osb, handle, inode, et, inode 4632 fs/ocfs2/alloc.c ret = ocfs2_grow_tree(inode, handle, et, inode 4661 fs/ocfs2/alloc.c ocfs2_make_right_split_rec(inode->i_sb, &tmprec, insert_range, inode 4670 fs/ocfs2/alloc.c ret = ocfs2_do_insert_extent(inode, handle, et, &split_rec, &insert); inode 4686 fs/ocfs2/alloc.c ret = ocfs2_find_path(inode, path, cpos); inode 4751 fs/ocfs2/alloc.c ctxt.c_contig_type = ocfs2_figure_merge_contig_type(inode, path, el, inode 4763 fs/ocfs2/alloc.c ret = ocfs2_read_block(inode, ocfs2_et_get_last_eb_blk(et), inode 4772 fs/ocfs2/alloc.c OCFS2_RO_ON_INVALID_EXTENT_BLOCK(inode->i_sb, eb); inode 4797 fs/ocfs2/alloc.c ret = ocfs2_split_and_insert(inode, handle, path, et, inode 4803 fs/ocfs2/alloc.c ret = ocfs2_try_to_merge_extent(inode, handle, path, inode 4830 fs/ocfs2/alloc.c u64 start_blkno = ocfs2_clusters_to_blocks(inode->i_sb, phys); inode 4836 fs/ocfs2/alloc.c inode->i_ino, cpos, len, phys, (unsigned long long)start_blkno); inode 4838 fs/ocfs2/alloc.c if (!ocfs2_writes_unwritten_extents(OCFS2_SB(inode->i_sb))) { inode 4839 fs/ocfs2/alloc.c ocfs2_error(inode->i_sb, "Inode %llu has unwritten extents " inode 4842 fs/ocfs2/alloc.c (unsigned long long)OCFS2_I(inode)->ip_blkno); inode 4855 fs/ocfs2/alloc.c ocfs2_extent_map_trunc(inode, 0); inode 4864 fs/ocfs2/alloc.c ret = ocfs2_find_path(inode, left_path, cpos); inode 4873 fs/ocfs2/alloc.c ocfs2_error(inode->i_sb, inode 4876 fs/ocfs2/alloc.c (unsigned long long)OCFS2_I(inode)->ip_blkno, cpos); inode 4888 fs/ocfs2/alloc.c ret = __ocfs2_mark_extent_written(inode, et, handle, left_path, inode 4917 fs/ocfs2/alloc.c ocfs2_make_right_split_rec(inode->i_sb, &split_rec, new_range, rec); inode 4921 fs/ocfs2/alloc.c ret = ocfs2_read_block(inode, ocfs2_et_get_last_eb_blk(et), inode 4943 fs/ocfs2/alloc.c ret = ocfs2_grow_tree(inode, handle, et, &depth, &last_eb_bh, inode 4957 fs/ocfs2/alloc.c ret = ocfs2_do_insert_extent(inode, handle, et, &split_rec, &insert); inode 4975 fs/ocfs2/alloc.c struct super_block *sb = inode->i_sb; inode 4982 fs/ocfs2/alloc.c ret = ocfs2_rotate_tree_left(inode, handle, path, dealloc, et); inode 5020 fs/ocfs2/alloc.c ret = ocfs2_find_cpos_for_left_leaf(inode->i_sb, path, inode 5036 fs/ocfs2/alloc.c ret = ocfs2_find_path(inode, left_path, left_cpos); inode 5052 fs/ocfs2/alloc.c ret = ocfs2_journal_access_path(inode, handle, path); inode 5058 fs/ocfs2/alloc.c ret = ocfs2_journal_access_path(inode, handle, left_path); inode 5081 fs/ocfs2/alloc.c ocfs2_adjust_rightmost_records(inode, handle, path, inode 5093 fs/ocfs2/alloc.c ocfs2_adjust_rightmost_records(inode, handle, path, rec); inode 5097 fs/ocfs2/alloc.c "(%u, %u)\n", (unsigned long long)OCFS2_I(inode)->ip_blkno, inode 5106 fs/ocfs2/alloc.c subtree_index = ocfs2_find_subtree_root(inode, left_path, path); inode 5107 fs/ocfs2/alloc.c ocfs2_complete_edge_insert(inode, handle, left_path, path, inode 5113 fs/ocfs2/alloc.c ret = ocfs2_rotate_tree_left(inode, handle, path, dealloc, et); inode 5136 fs/ocfs2/alloc.c ocfs2_extent_map_trunc(inode, 0); inode 5145 fs/ocfs2/alloc.c ret = ocfs2_find_path(inode, path, cpos); inode 5154 fs/ocfs2/alloc.c ocfs2_error(inode->i_sb, inode 5157 fs/ocfs2/alloc.c (unsigned long long)OCFS2_I(inode)->ip_blkno, cpos); inode 5186 fs/ocfs2/alloc.c (unsigned long long)OCFS2_I(inode)->ip_blkno, cpos, len, index, inode 5190 fs/ocfs2/alloc.c ret = ocfs2_truncate_rec(inode, handle, path, index, dealloc, inode 5197 fs/ocfs2/alloc.c ret = ocfs2_split_tree(inode, et, handle, path, index, inode 5210 fs/ocfs2/alloc.c ret = ocfs2_find_path(inode, path, cpos); inode 5219 fs/ocfs2/alloc.c ocfs2_error(inode->i_sb, inode 5221 fs/ocfs2/alloc.c (unsigned long long)OCFS2_I(inode)->ip_blkno, inode 5235 fs/ocfs2/alloc.c ocfs2_error(inode->i_sb, inode 5238 fs/ocfs2/alloc.c (unsigned long long)OCFS2_I(inode)->ip_blkno, inode 5245 fs/ocfs2/alloc.c ret = ocfs2_truncate_rec(inode, handle, path, index, dealloc, inode 5298 fs/ocfs2/alloc.c struct inode *tl_inode = osb->osb_tl_inode; inode 5386 fs/ocfs2/alloc.c struct inode *tl_inode = osb->osb_tl_inode; inode 5455 fs/ocfs2/alloc.c struct inode *tl_inode = osb->osb_tl_inode; inode 5456 fs/ocfs2/alloc.c struct inode *data_alloc_inode = NULL; inode 5529 fs/ocfs2/alloc.c struct inode *tl_inode = osb->osb_tl_inode; inode 5577 fs/ocfs2/alloc.c struct inode *inode = NULL; inode 5580 fs/ocfs2/alloc.c inode = ocfs2_get_system_file_inode(osb, inode 5583 fs/ocfs2/alloc.c if (!inode) { inode 5589 fs/ocfs2/alloc.c status = ocfs2_read_block(inode, OCFS2_I(inode)->ip_blkno, &bh); inode 5591 fs/ocfs2/alloc.c iput(inode); inode 5596 fs/ocfs2/alloc.c *tl_inode = inode; inode 5612 fs/ocfs2/alloc.c struct inode *tl_inode = NULL; inode 5683 fs/ocfs2/alloc.c struct inode *tl_inode = osb->osb_tl_inode; inode 5738 fs/ocfs2/alloc.c struct inode *tl_inode = osb->osb_tl_inode; inode 5760 fs/ocfs2/alloc.c struct inode *tl_inode = NULL; inode 5826 fs/ocfs2/alloc.c struct inode *inode; inode 5830 fs/ocfs2/alloc.c inode = ocfs2_get_system_file_inode(osb, sysfile_type, slot); inode 5831 fs/ocfs2/alloc.c if (!inode) { inode 5837 fs/ocfs2/alloc.c mutex_lock(&inode->i_mutex); inode 5839 fs/ocfs2/alloc.c ret = ocfs2_inode_lock(inode, &di_bh, 1); inode 5858 fs/ocfs2/alloc.c ret = ocfs2_free_suballoc_bits(handle, inode, di_bh, inode 5880 fs/ocfs2/alloc.c ocfs2_inode_unlock(inode, 1); inode 5883 fs/ocfs2/alloc.c mutex_unlock(&inode->i_mutex); inode 5884 fs/ocfs2/alloc.c iput(inode); inode 6021 fs/ocfs2/alloc.c if (OCFS2_I(inode)->ip_clusters == clusters_to_del) inode 6064 fs/ocfs2/alloc.c ret = ocfs2_find_cpos_for_left_leaf(inode->i_sb, path, &cpos); inode 6070 fs/ocfs2/alloc.c ret = ocfs2_find_leaf(inode, path_root_el(path), cpos, &bh); inode 6079 fs/ocfs2/alloc.c OCFS2_RO_ON_INVALID_EXTENT_BLOCK(inode->i_sb, eb); inode 6126 fs/ocfs2/alloc.c ocfs2_error(inode->i_sb, inode 6128 fs/ocfs2/alloc.c inode->i_ino, inode 6199 fs/ocfs2/alloc.c + ocfs2_clusters_to_blocks(inode->i_sb, inode 6272 fs/ocfs2/alloc.c ocfs2_remove_from_cache(inode, bh); inode 6311 fs/ocfs2/alloc.c status = ocfs2_find_new_last_ext_blk(inode, clusters_to_del, inode 6322 fs/ocfs2/alloc.c status = ocfs2_journal_access_path(inode, handle, path); inode 6329 fs/ocfs2/alloc.c status = ocfs2_journal_access(handle, inode, last_eb_bh, inode 6346 fs/ocfs2/alloc.c ocfs2_error(inode->i_sb, inode 6348 fs/ocfs2/alloc.c inode->i_ino, le16_to_cpu(el->l_tree_depth)); inode 6353 fs/ocfs2/alloc.c spin_lock(&OCFS2_I(inode)->ip_lock); inode 6354 fs/ocfs2/alloc.c OCFS2_I(inode)->ip_clusters = le32_to_cpu(fe->i_clusters) - inode 6356 fs/ocfs2/alloc.c spin_unlock(&OCFS2_I(inode)->ip_lock); inode 6358 fs/ocfs2/alloc.c inode->i_blocks = ocfs2_inode_sector_count(inode); inode 6360 fs/ocfs2/alloc.c status = ocfs2_trim_tree(inode, path, handle, tc, inode 6420 fs/ocfs2/alloc.c ret = ocfs2_map_page_blocks(page, phys, inode, from, to, 0); inode 6437 fs/ocfs2/alloc.c else if (ocfs2_should_order_data(inode)) { inode 6438 fs/ocfs2/alloc.c ret = ocfs2_jbd2_file_inode(handle, inode); inode 6461 fs/ocfs2/alloc.c struct super_block *sb = inode->i_sb; inode 6479 fs/ocfs2/alloc.c ocfs2_map_and_dirty_page(inode, handle, from, to, page, 1, inode 6493 fs/ocfs2/alloc.c struct super_block *sb = inode->i_sb; inode 6494 fs/ocfs2/alloc.c struct address_space *mapping = inode->i_mapping; inode 6546 fs/ocfs2/alloc.c struct super_block *sb = inode->i_sb; inode 6566 fs/ocfs2/alloc.c ret = ocfs2_extent_map_get_blocks(inode, inode 6581 fs/ocfs2/alloc.c ret = ocfs2_grab_eof_pages(inode, range_start, range_end, pages, inode 6588 fs/ocfs2/alloc.c ocfs2_zero_cluster_pages(inode, range_start, range_end, pages, inode 6596 fs/ocfs2/alloc.c ret = do_sync_mapping_range(inode->i_mapping, range_start, inode 6611 fs/ocfs2/alloc.c unsigned int blocksize = 1 << inode->i_sb->s_blocksize_bits; inode 6626 fs/ocfs2/alloc.c ocfs2_zero_dinode_id2_with_xattr(inode, di); inode 6630 fs/ocfs2/alloc.c ocfs2_extent_recs_per_inode_with_xattr(inode->i_sb, di)); inode 6635 fs/ocfs2/alloc.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 6647 fs/ocfs2/alloc.c ocfs2_zero_dinode_id2_with_xattr(inode, di); inode 6650 fs/ocfs2/alloc.c ocfs2_max_inline_data_with_xattr(inode->i_sb, di)); inode 6659 fs/ocfs2/alloc.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 6660 fs/ocfs2/alloc.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 6667 fs/ocfs2/alloc.c has_data = i_size_read(inode) ? 1 : 0; inode 6692 fs/ocfs2/alloc.c ret = ocfs2_journal_access(handle, inode, di_bh, inode 6715 fs/ocfs2/alloc.c block = phys = ocfs2_clusters_to_blocks(inode->i_sb, bit_off); inode 6725 fs/ocfs2/alloc.c ret = ocfs2_grab_eof_pages(inode, 0, end, pages, &num_pages); inode 6735 fs/ocfs2/alloc.c ret = ocfs2_read_inline_data(inode, pages[0], di_bh); inode 6746 fs/ocfs2/alloc.c ocfs2_map_and_dirty_page(inode, handle, 0, page_end, inode 6755 fs/ocfs2/alloc.c ocfs2_dinode_new_extent_list(inode, di); inode 6765 fs/ocfs2/alloc.c ocfs2_init_dinode_extent_tree(&et, inode, di_bh); inode 6766 fs/ocfs2/alloc.c ret = ocfs2_insert_extent(osb, handle, inode, &et, inode 6773 fs/ocfs2/alloc.c inode->i_blocks = ocfs2_inode_sector_count(inode); inode 6807 fs/ocfs2/alloc.c struct inode *tl_inode = osb->osb_tl_inode; inode 6814 fs/ocfs2/alloc.c i_size_read(inode)); inode 6823 fs/ocfs2/alloc.c ocfs2_extent_map_trunc(inode, new_highest_cpos); inode 6829 fs/ocfs2/alloc.c if (OCFS2_I(inode)->ip_clusters == 0) { inode 6837 fs/ocfs2/alloc.c status = ocfs2_find_path(inode, path, UINT_MAX); inode 6844 fs/ocfs2/alloc.c OCFS2_I(inode)->ip_clusters, path->p_tree_depth); inode 6859 fs/ocfs2/alloc.c ocfs2_error(inode->i_sb, inode 6861 fs/ocfs2/alloc.c (unsigned long long)OCFS2_I(inode)->ip_blkno, inode 6910 fs/ocfs2/alloc.c status = ocfs2_do_truncate(osb, clusters_to_del, inode, fe_bh, handle, inode 6971 fs/ocfs2/alloc.c i_size_read(inode)); inode 6987 fs/ocfs2/alloc.c status = ocfs2_read_block(inode, le64_to_cpu(fe->i_last_eb_blk), inode 6995 fs/ocfs2/alloc.c OCFS2_RO_ON_INVALID_EXTENT_BLOCK(inode->i_sb, eb); inode 7025 fs/ocfs2/alloc.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 7029 fs/ocfs2/alloc.c if (end > i_size_read(inode)) inode 7030 fs/ocfs2/alloc.c end = i_size_read(inode); inode 7034 fs/ocfs2/alloc.c if (!(OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) || inode 7037 fs/ocfs2/alloc.c ocfs2_error(inode->i_sb, inode 7040 fs/ocfs2/alloc.c (unsigned long long)OCFS2_I(inode)->ip_blkno, inode 7042 fs/ocfs2/alloc.c OCFS2_I(inode)->ip_dyn_features, inode 7055 fs/ocfs2/alloc.c ret = ocfs2_journal_access(handle, inode, di_bh, inode 7072 fs/ocfs2/alloc.c i_size_write(inode, start); inode 7076 fs/ocfs2/alloc.c inode->i_blocks = ocfs2_inode_sector_count(inode); inode 7077 fs/ocfs2/alloc.c inode->i_ctime = inode->i_mtime = CURRENT_TIME; inode 7079 fs/ocfs2/alloc.c di->i_ctime = di->i_mtime = cpu_to_le64(inode->i_ctime.tv_sec); inode 7080 fs/ocfs2/alloc.c di->i_ctime_nsec = di->i_mtime_nsec = cpu_to_le32(inode->i_ctime.tv_nsec); inode 57 fs/ocfs2/aops.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 60 fs/ocfs2/aops.c mlog_entry("(0x%p, %llu, 0x%p, %d)\n", inode, inode 63 fs/ocfs2/aops.c BUG_ON(ocfs2_inode_is_fast_symlink(inode)); inode 65 fs/ocfs2/aops.c if ((iblock << inode->i_sb->s_blocksize_bits) > PATH_MAX + 1) { inode 71 fs/ocfs2/aops.c status = ocfs2_read_block(inode, OCFS2_I(inode)->ip_blkno, &bh); inode 85 fs/ocfs2/aops.c if ((u64)iblock >= ocfs2_clusters_to_blocks(inode->i_sb, inode 94 fs/ocfs2/aops.c if (!buffer_uptodate(bh_result) && ocfs2_inode_is_new(inode)) { inode 108 fs/ocfs2/aops.c && ocfs2_inode_is_new(inode)) { inode 123 fs/ocfs2/aops.c map_bh(bh_result, inode->i_sb, inode 140 fs/ocfs2/aops.c u64 max_blocks = bh_result->b_size >> inode->i_blkbits; inode 142 fs/ocfs2/aops.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 144 fs/ocfs2/aops.c mlog_entry("(0x%p, %llu, 0x%p, %d)\n", inode, inode 147 fs/ocfs2/aops.c if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_SYSTEM_FILE) inode 149 fs/ocfs2/aops.c inode, inode->i_ino); inode 151 fs/ocfs2/aops.c if (S_ISLNK(inode->i_mode)) { inode 153 fs/ocfs2/aops.c err = ocfs2_symlink_get_block(inode, iblock, bh_result, create); inode 157 fs/ocfs2/aops.c err = ocfs2_extent_map_get_blocks(inode, iblock, &p_blkno, &count, inode 161 fs/ocfs2/aops.c "%llu, NULL)\n", err, inode, (unsigned long long)iblock, inode 188 fs/ocfs2/aops.c map_bh(bh_result, inode->i_sb, p_blkno); inode 190 fs/ocfs2/aops.c bh_result->b_size = count << inode->i_blkbits; inode 199 fs/ocfs2/aops.c (unsigned long long)OCFS2_I(inode)->ip_blkno); inode 200 fs/ocfs2/aops.c mlog(ML_ERROR, "Size %llu, clusters %u\n", (unsigned long long)i_size_read(inode), OCFS2_I(inode)->ip_clusters); inode 204 fs/ocfs2/aops.c past_eof = ocfs2_blocks_for_bytes(inode->i_sb, i_size_read(inode)); inode 205 fs/ocfs2/aops.c mlog(0, "Inode %lu, past_eof = %llu\n", inode->i_ino, inode 228 fs/ocfs2/aops.c ocfs2_error(inode->i_sb, "Inode %llu lost inline data flag", inode 229 fs/ocfs2/aops.c (unsigned long long)OCFS2_I(inode)->ip_blkno); inode 233 fs/ocfs2/aops.c size = i_size_read(inode); inode 236 fs/ocfs2/aops.c size > ocfs2_max_inline_data(inode->i_sb)) { inode 237 fs/ocfs2/aops.c ocfs2_error(inode->i_sb, inode 239 fs/ocfs2/aops.c (unsigned long long)OCFS2_I(inode)->ip_blkno, inode 263 fs/ocfs2/aops.c BUG_ON(!(OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL)); inode 265 fs/ocfs2/aops.c ret = ocfs2_read_block(inode, OCFS2_I(inode)->ip_blkno, &di_bh); inode 271 fs/ocfs2/aops.c ret = ocfs2_read_inline_data(inode, page, di_bh); inode 281 fs/ocfs2/aops.c struct inode *inode = page->mapping->host; inode 282 fs/ocfs2/aops.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 288 fs/ocfs2/aops.c ret = ocfs2_inode_lock_with_page(inode, NULL, 0, page); inode 311 fs/ocfs2/aops.c if (start >= i_size_read(inode)) { inode 319 fs/ocfs2/aops.c ret = ocfs2_readpage_inline(inode, page); inode 325 fs/ocfs2/aops.c up_read(&OCFS2_I(inode)->ip_alloc_sem); inode 327 fs/ocfs2/aops.c ocfs2_inode_unlock(inode, 0); inode 348 fs/ocfs2/aops.c struct inode *inode = mapping->host; inode 349 fs/ocfs2/aops.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 357 fs/ocfs2/aops.c ret = ocfs2_inode_lock_full(inode, NULL, 0, OCFS2_LOCK_NONBLOCK); inode 362 fs/ocfs2/aops.c ocfs2_inode_unlock(inode, 0); inode 379 fs/ocfs2/aops.c if (start >= i_size_read(inode)) inode 386 fs/ocfs2/aops.c ocfs2_inode_unlock(inode, 0); inode 471 fs/ocfs2/aops.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 482 fs/ocfs2/aops.c if (ocfs2_should_order_data(inode)) { inode 483 fs/ocfs2/aops.c ret = ocfs2_jbd2_file_inode(handle, inode); inode 507 fs/ocfs2/aops.c struct inode *inode = mapping->host; inode 514 fs/ocfs2/aops.c if (!INODE_JOURNAL(inode)) { inode 515 fs/ocfs2/aops.c err = ocfs2_inode_lock(inode, NULL, 0); inode 521 fs/ocfs2/aops.c down_read(&OCFS2_I(inode)->ip_alloc_sem); inode 524 fs/ocfs2/aops.c if (!(OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL)) inode 525 fs/ocfs2/aops.c err = ocfs2_extent_map_get_blocks(inode, block, &p_blkno, NULL, inode 528 fs/ocfs2/aops.c if (!INODE_JOURNAL(inode)) { inode 529 fs/ocfs2/aops.c up_read(&OCFS2_I(inode)->ip_alloc_sem); inode 530 fs/ocfs2/aops.c ocfs2_inode_unlock(inode, 0); inode 567 fs/ocfs2/aops.c unsigned char blocksize_bits = inode->i_sb->s_blocksize_bits; inode 568 fs/ocfs2/aops.c unsigned long max_blocks = bh_result->b_size >> inode->i_blkbits; inode 574 fs/ocfs2/aops.c inode_blocks = ocfs2_blocks_for_bytes(inode->i_sb, i_size_read(inode)); inode 586 fs/ocfs2/aops.c ret = ocfs2_extent_map_get_blocks(inode, iblock, &p_blkno, inode 595 fs/ocfs2/aops.c if (!ocfs2_sparse_alloc(OCFS2_SB(inode->i_sb)) && !p_blkno && create) { inode 596 fs/ocfs2/aops.c ocfs2_error(inode->i_sb, inode 598 fs/ocfs2/aops.c (unsigned long long)OCFS2_I(inode)->ip_blkno, inode 611 fs/ocfs2/aops.c map_bh(bh_result, inode->i_sb, p_blkno); inode 647 fs/ocfs2/aops.c struct inode *inode = iocb->ki_filp->f_path.dentry->d_inode; inode 657 fs/ocfs2/aops.c up_read(&inode->i_alloc_sem); inode 658 fs/ocfs2/aops.c ocfs2_rw_unlock(inode, level); inode 689 fs/ocfs2/aops.c struct inode *inode = file->f_path.dentry->d_inode->i_mapping->host; inode 698 fs/ocfs2/aops.c if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) inode 701 fs/ocfs2/aops.c ret = blockdev_direct_IO_no_locking(rw, iocb, inode, inode 702 fs/ocfs2/aops.c inode->i_sb->s_bdev, iov, offset, inode 781 fs/ocfs2/aops.c if (ocfs2_sparse_alloc(OCFS2_SB(inode->i_sb))) inode 784 fs/ocfs2/aops.c if (i_size_read(inode) > offset) inode 804 fs/ocfs2/aops.c unsigned int bsize = 1 << inode->i_blkbits; inode 834 fs/ocfs2/aops.c map_bh(bh, inode->i_sb, *p_blkno); inode 843 fs/ocfs2/aops.c ocfs2_should_read_blk(inode, page, block_start) && inode 1075 fs/ocfs2/aops.c if (ocfs2_should_order_data(inode)) { inode 1076 fs/ocfs2/aops.c ocfs2_jbd2_file_inode(wc->w_handle, inode); inode 1101 fs/ocfs2/aops.c ocfs2_figure_cluster_boundaries(OCFS2_SB(inode->i_sb), cpos, inode 1109 fs/ocfs2/aops.c ret = ocfs2_map_page_blocks(page, p_blkno, inode, inode 1113 fs/ocfs2/aops.c ret = ocfs2_map_page_blocks(page, p_blkno, inode, inode 1137 fs/ocfs2/aops.c ret = ocfs2_map_page_blocks(page, p_blkno, inode, inode 1156 fs/ocfs2/aops.c ocfs2_clear_page_regions(page, OCFS2_SB(inode->i_sb), inode 1175 fs/ocfs2/aops.c struct inode *inode = mapping->host; inode 1185 fs/ocfs2/aops.c wc->w_num_pages = ocfs2_pages_per_cluster(inode->i_sb); inode 1186 fs/ocfs2/aops.c start = ocfs2_align_clusters_to_page_index(inode->i_sb, cpos); inode 1246 fs/ocfs2/aops.c struct inode *inode = mapping->host; inode 1261 fs/ocfs2/aops.c ret = ocfs2_add_inode_data(OCFS2_SB(inode->i_sb), inode, inode 1276 fs/ocfs2/aops.c (unsigned long long)OCFS2_I(inode)->ip_blkno); inode 1282 fs/ocfs2/aops.c ocfs2_init_dinode_extent_tree(&et, inode, wc->w_di_bh); inode 1283 fs/ocfs2/aops.c ret = ocfs2_mark_extent_written(inode, &et, inode 1293 fs/ocfs2/aops.c v_blkno = ocfs2_clusters_to_blocks(inode->i_sb, cpos); inode 1295 fs/ocfs2/aops.c v_blkno = user_pos >> inode->i_sb->s_blocksize_bits; inode 1301 fs/ocfs2/aops.c ret = ocfs2_extent_map_get_blocks(inode, v_blkno, &p_blkno, NULL, inode 1304 fs/ocfs2/aops.c ocfs2_error(inode->i_sb, "Corrupting extend for inode %llu, " inode 1306 fs/ocfs2/aops.c (unsigned long long)OCFS2_I(inode)->ip_blkno, inode 1316 fs/ocfs2/aops.c tmpret = ocfs2_prepare_page_for_write(inode, &p_blkno, wc, inode 1331 fs/ocfs2/aops.c ocfs2_write_failure(inode, wc, user_pos, user_len); inode 1462 fs/ocfs2/aops.c ret = ocfs2_get_clusters(inode, desc->c_cpos, &phys, inode 1509 fs/ocfs2/aops.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 1534 fs/ocfs2/aops.c ret = ocfs2_journal_access(handle, inode, wc->w_di_bh, inode 1543 fs/ocfs2/aops.c if (!(OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL)) inode 1544 fs/ocfs2/aops.c ocfs2_set_inode_data_inline(inode, di); inode 1547 fs/ocfs2/aops.c ret = ocfs2_read_inline_data(inode, page, wc->w_di_bh); inode 1576 fs/ocfs2/aops.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 1594 fs/ocfs2/aops.c ret = ocfs2_convert_inline_data_to_extents(inode, wc->w_di_bh); inode 1603 fs/ocfs2/aops.c if (oi->ip_clusters != 0 || i_size_read(inode) != 0) inode 1609 fs/ocfs2/aops.c if (mmap_page || end > ocfs2_max_inline_data(inode->i_sb)) inode 1613 fs/ocfs2/aops.c ret = ocfs2_write_begin_inline(mapping, inode, wc); inode 1642 fs/ocfs2/aops.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 1648 fs/ocfs2/aops.c if (newsize <= i_size_read(inode)) inode 1651 fs/ocfs2/aops.c ret = ocfs2_extend_no_holes(inode, newsize, newsize - len); inode 1666 fs/ocfs2/aops.c struct inode *inode = mapping->host; inode 1667 fs/ocfs2/aops.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 1681 fs/ocfs2/aops.c ret = ocfs2_try_to_write_inline_data(mapping, inode, pos, len, inode 1693 fs/ocfs2/aops.c ret = ocfs2_expand_nonsparse_inode(inode, pos, len, wc); inode 1699 fs/ocfs2/aops.c ret = ocfs2_populate_write_desc(inode, wc, &clusters_to_alloc, inode 1722 fs/ocfs2/aops.c (unsigned long long)OCFS2_I(inode)->ip_blkno, inode 1723 fs/ocfs2/aops.c (long long)i_size_read(inode), le32_to_cpu(di->i_clusters), inode 1726 fs/ocfs2/aops.c ocfs2_init_dinode_extent_tree(&et, inode, wc->w_di_bh); inode 1727 fs/ocfs2/aops.c ret = ocfs2_lock_allocators(inode, &et, inode 1735 fs/ocfs2/aops.c credits = ocfs2_calc_extend_credits(inode->i_sb, inode 1757 fs/ocfs2/aops.c ret = ocfs2_journal_access(handle, inode, wc->w_di_bh, inode 1812 fs/ocfs2/aops.c struct inode *inode = mapping->host; inode 1814 fs/ocfs2/aops.c ret = ocfs2_inode_lock(inode, &di_bh, 1); inode 1827 fs/ocfs2/aops.c down_write(&OCFS2_I(inode)->ip_alloc_sem); inode 1841 fs/ocfs2/aops.c up_write(&OCFS2_I(inode)->ip_alloc_sem); inode 1844 fs/ocfs2/aops.c ocfs2_inode_unlock(inode, 1); inode 1880 fs/ocfs2/aops.c struct inode *inode = mapping->host; inode 1881 fs/ocfs2/aops.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 1887 fs/ocfs2/aops.c if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) { inode 1888 fs/ocfs2/aops.c ocfs2_write_end_inline(inode, pos, len, &copied, di, wc); inode 1922 fs/ocfs2/aops.c if (ocfs2_should_order_data(inode)) { inode 1923 fs/ocfs2/aops.c ocfs2_jbd2_file_inode(wc->w_handle, inode); inode 1937 fs/ocfs2/aops.c if (pos > inode->i_size) { inode 1938 fs/ocfs2/aops.c i_size_write(inode, pos); inode 1939 fs/ocfs2/aops.c mark_inode_dirty(inode); inode 1941 fs/ocfs2/aops.c inode->i_blocks = ocfs2_inode_sector_count(inode); inode 1942 fs/ocfs2/aops.c di->i_size = cpu_to_le64((u64)i_size_read(inode)); inode 1943 fs/ocfs2/aops.c inode->i_mtime = inode->i_ctime = CURRENT_TIME; inode 1944 fs/ocfs2/aops.c di->i_mtime = di->i_ctime = cpu_to_le64(inode->i_mtime.tv_sec); inode 1945 fs/ocfs2/aops.c di->i_mtime_nsec = di->i_ctime_nsec = cpu_to_le32(inode->i_mtime.tv_nsec); inode 1962 fs/ocfs2/aops.c struct inode *inode = mapping->host; inode 1966 fs/ocfs2/aops.c up_write(&OCFS2_I(inode)->ip_alloc_sem); inode 1967 fs/ocfs2/aops.c ocfs2_inode_unlock(inode, 1); inode 48 fs/ocfs2/buffer_head_io.c (unsigned long long)bh->b_blocknr, inode); inode 61 fs/ocfs2/buffer_head_io.c mutex_lock(&OCFS2_I(inode)->ip_io_mutex); inode 76 fs/ocfs2/buffer_head_io.c ocfs2_set_buffer_uptodate(inode, bh); inode 85 fs/ocfs2/buffer_head_io.c mutex_unlock(&OCFS2_I(inode)->ip_io_mutex); inode 181 fs/ocfs2/buffer_head_io.c inode, (unsigned long long)block, nr, flags); inode 183 fs/ocfs2/buffer_head_io.c BUG_ON(!inode); inode 206 fs/ocfs2/buffer_head_io.c mutex_lock(&OCFS2_I(inode)->ip_io_mutex); inode 209 fs/ocfs2/buffer_head_io.c bhs[i] = sb_getblk(inode->i_sb, block++); inode 211 fs/ocfs2/buffer_head_io.c mutex_unlock(&OCFS2_I(inode)->ip_io_mutex); inode 244 fs/ocfs2/buffer_head_io.c if (!ignore_cache && !ocfs2_buffer_uptodate(inode, bh)) { inode 248 fs/ocfs2/buffer_head_io.c (unsigned long long)OCFS2_I(inode)->ip_blkno); inode 279 fs/ocfs2/buffer_head_io.c && ocfs2_buffer_read_ahead(inode, bh)) inode 301 fs/ocfs2/buffer_head_io.c && ocfs2_buffer_uptodate(inode, bh)) { inode 343 fs/ocfs2/buffer_head_io.c ocfs2_set_buffer_uptodate(inode, bh); inode 345 fs/ocfs2/buffer_head_io.c mutex_unlock(&OCFS2_I(inode)->ip_io_mutex); inode 66 fs/ocfs2/buffer_head_io.h status = ocfs2_read_blocks(inode, off, 1, bh, 0); inode 1237 fs/ocfs2/cluster/heartbeat.c struct inode *inode = NULL; inode 1263 fs/ocfs2/cluster/heartbeat.c inode = igrab(filp->f_mapping->host); inode 1264 fs/ocfs2/cluster/heartbeat.c if (inode == NULL) inode 1267 fs/ocfs2/cluster/heartbeat.c if (!S_ISBLK(inode->i_mode)) inode 1276 fs/ocfs2/cluster/heartbeat.c inode = NULL; inode 1357 fs/ocfs2/cluster/heartbeat.c if (inode) inode 1358 fs/ocfs2/cluster/heartbeat.c iput(inode); inode 207 fs/ocfs2/cluster/netdebug.c return seq_release_private(inode, file); inode 388 fs/ocfs2/cluster/netdebug.c return seq_release_private(inode, file); inode 46 fs/ocfs2/dcache.c struct inode *inode = dentry->d_inode; inode 54 fs/ocfs2/dcache.c if (inode == NULL) { inode 62 fs/ocfs2/dcache.c if (inode == osb->root_inode || is_bad_inode(inode)) inode 65 fs/ocfs2/dcache.c spin_lock(&OCFS2_I(inode)->ip_lock); inode 67 fs/ocfs2/dcache.c if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_DELETED) { inode 68 fs/ocfs2/dcache.c spin_unlock(&OCFS2_I(inode)->ip_lock); inode 70 fs/ocfs2/dcache.c (unsigned long long)OCFS2_I(inode)->ip_blkno); inode 73 fs/ocfs2/dcache.c spin_unlock(&OCFS2_I(inode)->ip_lock); inode 79 fs/ocfs2/dcache.c if (inode->i_nlink == 0) { inode 82 fs/ocfs2/dcache.c (unsigned long long)OCFS2_I(inode)->ip_blkno, inode 83 fs/ocfs2/dcache.c S_ISDIR(inode->i_mode)); inode 99 fs/ocfs2/dcache.c struct inode *parent; inode 144 fs/ocfs2/dcache.c list_for_each(p, &inode->i_dentry) { inode 215 fs/ocfs2/dcache.c if (!inode) inode 227 fs/ocfs2/dcache.c alias = ocfs2_find_local_alias(inode, parent_blkno, 0); inode 243 fs/ocfs2/dcache.c (unsigned long long)OCFS2_I(inode)->ip_blkno); inode 271 fs/ocfs2/dcache.c dl->dl_inode = igrab(inode); inode 273 fs/ocfs2/dcache.c ocfs2_dentry_lock_res_init(dl, parent_blkno, inode); inode 355 fs/ocfs2/dcache.c if (inode) inode 356 fs/ocfs2/dcache.c ino = (unsigned long long)OCFS2_I(inode)->ip_blkno; inode 373 fs/ocfs2/dcache.c iput(inode); inode 400 fs/ocfs2/dcache.c struct inode *inode = dentry->d_inode; inode 414 fs/ocfs2/dcache.c ret = ocfs2_dentry_attach_lock(dentry, inode, OCFS2_I(new_dir)->ip_blkno); inode 40 fs/ocfs2/dcache.h struct inode *dl_inode; inode 96 fs/ocfs2/dir.c if (((u64)block << inode->i_sb->s_blocksize_bits) >= inode 97 fs/ocfs2/dir.c i_size_read(inode)) { inode 102 fs/ocfs2/dir.c down_read(&OCFS2_I(inode)->ip_alloc_sem); inode 103 fs/ocfs2/dir.c tmperr = ocfs2_extent_map_get_blocks(inode, block, &p_blkno, NULL, inode 105 fs/ocfs2/dir.c up_read(&OCFS2_I(inode)->ip_alloc_sem); inode 111 fs/ocfs2/dir.c tmperr = ocfs2_read_blocks(inode, p_blkno, 1, &bh, readflags); inode 153 fs/ocfs2/dir.c offset, (unsigned long long)le64_to_cpu(de->inode), rlen, inode 164 fs/ocfs2/dir.c if (!de->inode) inode 397 fs/ocfs2/dir.c de->inode = cpu_to_le64(OCFS2_I(new_entry_inode)->ip_blkno); inode 437 fs/ocfs2/dir.c de->inode = 0; inode 512 fs/ocfs2/dir.c if (le64_to_cpu(de->inode) == 0 && inode 591 fs/ocfs2/dir.c if (le64_to_cpu(de->inode)) { inode 602 fs/ocfs2/dir.c de->inode = cpu_to_le64(blkno); inode 603 fs/ocfs2/dir.c ocfs2_set_de_type(de, inode->i_mode); inode 605 fs/ocfs2/dir.c de->inode = 0; inode 639 fs/ocfs2/dir.c ret = ocfs2_read_block(inode, OCFS2_I(inode)->ip_blkno, &di_bh); inode 642 fs/ocfs2/dir.c (unsigned long long)OCFS2_I(inode)->ip_blkno); inode 649 fs/ocfs2/dir.c while (*f_pos < i_size_read(inode)) { inode 655 fs/ocfs2/dir.c if (*f_version != inode->i_version) { inode 656 fs/ocfs2/dir.c for (i = 0; i < i_size_read(inode) && i < offset; ) { inode 671 fs/ocfs2/dir.c *f_version = inode->i_version; inode 675 fs/ocfs2/dir.c if (!ocfs2_check_dir_entry(inode, de, di_bh, *f_pos)) { inode 677 fs/ocfs2/dir.c *f_pos = i_size_read(inode); inode 681 fs/ocfs2/dir.c if (le64_to_cpu(de->inode)) { inode 698 fs/ocfs2/dir.c le64_to_cpu(de->inode), inode 728 fs/ocfs2/dir.c struct super_block * sb = inode->i_sb; inode 736 fs/ocfs2/dir.c while (!error && !stored && *f_pos < i_size_read(inode)) { inode 738 fs/ocfs2/dir.c bh = ocfs2_bread(inode, blk, &err, 0); inode 742 fs/ocfs2/dir.c (unsigned long long)OCFS2_I(inode)->ip_blkno, inode 757 fs/ocfs2/dir.c tmp = ocfs2_bread(inode, ++blk, &err, 1); inode 769 fs/ocfs2/dir.c if (*f_version != inode->i_version) { inode 786 fs/ocfs2/dir.c *f_version = inode->i_version; inode 789 fs/ocfs2/dir.c while (!error && *f_pos < i_size_read(inode) inode 792 fs/ocfs2/dir.c if (!ocfs2_check_dir_entry(inode, de, bh, offset)) { inode 800 fs/ocfs2/dir.c if (le64_to_cpu(de->inode)) { inode 816 fs/ocfs2/dir.c le64_to_cpu(de->inode), inode 842 fs/ocfs2/dir.c if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) inode 843 fs/ocfs2/dir.c return ocfs2_dir_foreach_blk_id(inode, f_version, f_pos, priv, inode 846 fs/ocfs2/dir.c return ocfs2_dir_foreach_blk_el(inode, f_version, f_pos, priv, filldir, inode 858 fs/ocfs2/dir.c u64 version = inode->i_version; inode 860 fs/ocfs2/dir.c while (*f_pos < i_size_read(inode)) { inode 861 fs/ocfs2/dir.c ret = ocfs2_dir_foreach_blk(inode, &version, f_pos, priv, inode 880 fs/ocfs2/dir.c struct inode *inode = filp->f_path.dentry->d_inode; inode 884 fs/ocfs2/dir.c (unsigned long long)OCFS2_I(inode)->ip_blkno); inode 886 fs/ocfs2/dir.c error = ocfs2_inode_lock_atime(inode, filp->f_vfsmnt, &lock_level); inode 891 fs/ocfs2/dir.c ocfs2_inode_unlock(inode, 1); inode 893 fs/ocfs2/dir.c error = ocfs2_inode_lock(inode, NULL, 0); inode 902 fs/ocfs2/dir.c error = ocfs2_dir_foreach_blk(inode, &filp->f_version, &filp->f_pos, inode 905 fs/ocfs2/dir.c ocfs2_inode_unlock(inode, lock_level); inode 926 fs/ocfs2/dir.c namelen, name, blkno, inode, dirent_bh, dirent); inode 928 fs/ocfs2/dir.c *dirent_bh = ocfs2_find_entry(name, namelen, inode, dirent); inode 934 fs/ocfs2/dir.c *blkno = le64_to_cpu((*dirent)->inode); inode 1037 fs/ocfs2/dir.c ret = ocfs2_dir_foreach(inode, &start, &priv, ocfs2_empty_dir_filldir); inode 1043 fs/ocfs2/dir.c (unsigned long long)OCFS2_I(inode)->ip_blkno); inode 1059 fs/ocfs2/dir.c de->inode = cpu_to_le64(OCFS2_I(inode)->ip_blkno); inode 1067 fs/ocfs2/dir.c de->inode = cpu_to_le64(OCFS2_I(parent)->ip_blkno); inode 1089 fs/ocfs2/dir.c ret = ocfs2_journal_access(handle, inode, di_bh, inode 1096 fs/ocfs2/dir.c ocfs2_fill_initial_dirents(inode, parent, data->id_data, size); inode 1104 fs/ocfs2/dir.c i_size_write(inode, size); inode 1105 fs/ocfs2/dir.c inode->i_nlink = 2; inode 1106 fs/ocfs2/dir.c inode->i_blocks = ocfs2_inode_sector_count(inode); inode 1108 fs/ocfs2/dir.c ret = ocfs2_mark_inode_dirty(handle, inode, di_bh); inode 1128 fs/ocfs2/dir.c status = ocfs2_do_extend_dir(osb->sb, handle, inode, fe_bh, inode 1135 fs/ocfs2/dir.c ocfs2_set_new_buffer_uptodate(inode, new_bh); inode 1137 fs/ocfs2/dir.c status = ocfs2_journal_access(handle, inode, new_bh, inode 1145 fs/ocfs2/dir.c ocfs2_fill_initial_dirents(inode, parent, new_bh->b_data, inode 1154 fs/ocfs2/dir.c i_size_write(inode, inode->i_sb->s_blocksize); inode 1155 fs/ocfs2/dir.c inode->i_nlink = 2; inode 1156 fs/ocfs2/dir.c inode->i_blocks = ocfs2_inode_sector_count(inode); inode 1157 fs/ocfs2/dir.c status = ocfs2_mark_inode_dirty(handle, inode, fe_bh); inode 1180 fs/ocfs2/dir.c if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) inode 1181 fs/ocfs2/dir.c return ocfs2_fill_new_dir_id(osb, handle, parent, inode, fe_bh); inode 1183 fs/ocfs2/dir.c return ocfs2_fill_new_dir_el(osb, handle, parent, inode, fe_bh, inode 1580 fs/ocfs2/dir.c de->inode = 0; inode 51 fs/ocfs2/dir.h inode, blkno, parent_fe_bh, insert_bh); inode 476 fs/ocfs2/dlm/dlmdebug.c struct dlm_ctxt *dlm = inode->i_private; inode 526 fs/ocfs2/dlm/dlmdebug.c struct dlm_ctxt *dlm = inode->i_private; inode 700 fs/ocfs2/dlm/dlmdebug.c struct dlm_ctxt *dlm = inode->i_private; inode 747 fs/ocfs2/dlm/dlmdebug.c return seq_release_private(inode, file); inode 895 fs/ocfs2/dlm/dlmdebug.c struct dlm_ctxt *dlm = inode->i_private; inode 116 fs/ocfs2/dlm/dlmfs.c if (S_ISDIR(inode->i_mode)) inode 119 fs/ocfs2/dlm/dlmfs.c mlog(0, "open called on inode %lu, flags 0x%x\n", inode->i_ino, inode 137 fs/ocfs2/dlm/dlmfs.c ip = DLMFS_I(inode); inode 160 fs/ocfs2/dlm/dlmfs.c struct dlmfs_inode_private *ip = DLMFS_I(inode); inode 164 fs/ocfs2/dlm/dlmfs.c if (S_ISDIR(inode->i_mode)) inode 167 fs/ocfs2/dlm/dlmfs.c mlog(0, "close called on inode %lu\n", inode->i_ino); inode 190 fs/ocfs2/dlm/dlmfs.c struct inode *inode = filp->f_path.dentry->d_inode; inode 193 fs/ocfs2/dlm/dlmfs.c inode->i_ino, count, *ppos); inode 195 fs/ocfs2/dlm/dlmfs.c if (*ppos >= i_size_read(inode)) inode 205 fs/ocfs2/dlm/dlmfs.c if ((count + *ppos) > i_size_read(inode)) inode 206 fs/ocfs2/dlm/dlmfs.c readlen = i_size_read(inode) - *ppos; inode 214 fs/ocfs2/dlm/dlmfs.c user_dlm_read_lvb(inode, lvb_buf, readlen); inode 234 fs/ocfs2/dlm/dlmfs.c struct inode *inode = filp->f_path.dentry->d_inode; inode 237 fs/ocfs2/dlm/dlmfs.c inode->i_ino, count, *ppos); inode 239 fs/ocfs2/dlm/dlmfs.c if (*ppos >= i_size_read(inode)) inode 249 fs/ocfs2/dlm/dlmfs.c if ((count + *ppos) > i_size_read(inode)) inode 250 fs/ocfs2/dlm/dlmfs.c writelen = i_size_read(inode) - *ppos; inode 261 fs/ocfs2/dlm/dlmfs.c user_dlm_write_lvb(inode, lvb_buf, writelen); inode 281 fs/ocfs2/dlm/dlmfs.c static struct inode *dlmfs_alloc_inode(struct super_block *sb) inode 294 fs/ocfs2/dlm/dlmfs.c kmem_cache_free(dlmfs_inode_cache, DLMFS_I(inode)); inode 302 fs/ocfs2/dlm/dlmfs.c if (!inode) inode 305 fs/ocfs2/dlm/dlmfs.c mlog(0, "inode %lu\n", inode->i_ino); inode 307 fs/ocfs2/dlm/dlmfs.c ip = DLMFS_I(inode); inode 309 fs/ocfs2/dlm/dlmfs.c if (S_ISREG(inode->i_mode)) { inode 332 fs/ocfs2/dlm/dlmfs.c static struct inode *dlmfs_get_root_inode(struct super_block *sb) inode 334 fs/ocfs2/dlm/dlmfs.c struct inode *inode = new_inode(sb); inode 338 fs/ocfs2/dlm/dlmfs.c if (inode) { inode 339 fs/ocfs2/dlm/dlmfs.c ip = DLMFS_I(inode); inode 341 fs/ocfs2/dlm/dlmfs.c inode->i_mode = mode; inode 342 fs/ocfs2/dlm/dlmfs.c inode->i_uid = current->fsuid; inode 343 fs/ocfs2/dlm/dlmfs.c inode->i_gid = current->fsgid; inode 344 fs/ocfs2/dlm/dlmfs.c inode->i_blocks = 0; inode 345 fs/ocfs2/dlm/dlmfs.c inode->i_mapping->backing_dev_info = &dlmfs_backing_dev_info; inode 346 fs/ocfs2/dlm/dlmfs.c inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; inode 347 fs/ocfs2/dlm/dlmfs.c inc_nlink(inode); inode 349 fs/ocfs2/dlm/dlmfs.c inode->i_fop = &simple_dir_operations; inode 350 fs/ocfs2/dlm/dlmfs.c inode->i_op = &dlmfs_root_inode_operations; inode 353 fs/ocfs2/dlm/dlmfs.c return inode; inode 356 fs/ocfs2/dlm/dlmfs.c static struct inode *dlmfs_get_inode(struct inode *parent, inode 361 fs/ocfs2/dlm/dlmfs.c struct inode * inode = new_inode(sb); inode 364 fs/ocfs2/dlm/dlmfs.c if (!inode) inode 367 fs/ocfs2/dlm/dlmfs.c inode->i_mode = mode; inode 368 fs/ocfs2/dlm/dlmfs.c inode->i_uid = current->fsuid; inode 369 fs/ocfs2/dlm/dlmfs.c inode->i_gid = current->fsgid; inode 370 fs/ocfs2/dlm/dlmfs.c inode->i_blocks = 0; inode 371 fs/ocfs2/dlm/dlmfs.c inode->i_mapping->backing_dev_info = &dlmfs_backing_dev_info; inode 372 fs/ocfs2/dlm/dlmfs.c inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; inode 374 fs/ocfs2/dlm/dlmfs.c ip = DLMFS_I(inode); inode 384 fs/ocfs2/dlm/dlmfs.c inode->i_op = &dlmfs_file_inode_operations; inode 385 fs/ocfs2/dlm/dlmfs.c inode->i_fop = &dlmfs_file_operations; inode 387 fs/ocfs2/dlm/dlmfs.c i_size_write(inode, DLM_LVB_LEN); inode 399 fs/ocfs2/dlm/dlmfs.c inode->i_op = &dlmfs_dir_inode_operations; inode 400 fs/ocfs2/dlm/dlmfs.c inode->i_fop = &simple_dir_operations; inode 404 fs/ocfs2/dlm/dlmfs.c inc_nlink(inode); inode 409 fs/ocfs2/dlm/dlmfs.c inode->i_gid = parent->i_gid; inode 411 fs/ocfs2/dlm/dlmfs.c inode->i_mode |= S_ISGID; inode 414 fs/ocfs2/dlm/dlmfs.c return inode; inode 426 fs/ocfs2/dlm/dlmfs.c struct inode *inode = NULL; inode 441 fs/ocfs2/dlm/dlmfs.c inode = dlmfs_get_inode(dir, dentry, mode | S_IFDIR); inode 442 fs/ocfs2/dlm/dlmfs.c if (!inode) { inode 448 fs/ocfs2/dlm/dlmfs.c ip = DLMFS_I(inode); inode 460 fs/ocfs2/dlm/dlmfs.c d_instantiate(dentry, inode); inode 466 fs/ocfs2/dlm/dlmfs.c iput(inode); inode 476 fs/ocfs2/dlm/dlmfs.c struct inode *inode; inode 491 fs/ocfs2/dlm/dlmfs.c inode = dlmfs_get_inode(dir, dentry, mode | S_IFREG); inode 492 fs/ocfs2/dlm/dlmfs.c if (!inode) { inode 498 fs/ocfs2/dlm/dlmfs.c d_instantiate(dentry, inode); inode 508 fs/ocfs2/dlm/dlmfs.c struct inode *inode = dentry->d_inode; inode 510 fs/ocfs2/dlm/dlmfs.c mlog(0, "unlink inode %lu\n", inode->i_ino); inode 514 fs/ocfs2/dlm/dlmfs.c status = user_dlm_destroy_lock(&DLMFS_I(inode)->ip_lockres); inode 529 fs/ocfs2/dlm/dlmfs.c struct inode * inode; inode 537 fs/ocfs2/dlm/dlmfs.c inode = dlmfs_get_root_inode(sb); inode 538 fs/ocfs2/dlm/dlmfs.c if (!inode) inode 541 fs/ocfs2/dlm/dlmfs.c root = d_alloc_root(inode); inode 543 fs/ocfs2/dlm/dlmfs.c iput(inode); inode 87 fs/ocfs2/dlm/userdlm.c static struct inode * inode 168 fs/ocfs2/dlm/userdlm.c struct inode *inode; inode 169 fs/ocfs2/dlm/userdlm.c inode = user_dlm_inode_from_user_lockres(lockres); inode 170 fs/ocfs2/dlm/userdlm.c if (!igrab(inode)) inode 276 fs/ocfs2/dlm/userdlm.c struct inode *inode; inode 277 fs/ocfs2/dlm/userdlm.c inode = user_dlm_inode_from_user_lockres(lockres); inode 278 fs/ocfs2/dlm/userdlm.c iput(inode); inode 542 fs/ocfs2/dlm/userdlm.c struct user_lock_res *lockres = &DLMFS_I(inode)->ip_lockres; inode 559 fs/ocfs2/dlm/userdlm.c struct user_lock_res *lockres = &DLMFS_I(inode)->ip_lockres; inode 94 fs/ocfs2/dlm/userdlm.h struct inode *ip_parent; inode 96 fs/ocfs2/dlm/userdlm.h struct inode ip_vfs_inode; inode 102 fs/ocfs2/dlm/userdlm.h return container_of(inode, inode 268 fs/ocfs2/dlmglue.c static inline struct inode *ocfs2_lock_res_inode(struct ocfs2_lock_res *lockres) inode 272 fs/ocfs2/dlmglue.c return (struct inode *) lockres->l_priv; inode 498 fs/ocfs2/dlmglue.c ocfs2_build_lock_name(type, OCFS2_I(inode)->ip_blkno, inode 500 fs/ocfs2/dlmglue.c ocfs2_lock_res_init_common(OCFS2_SB(inode->i_sb), res, type, ops, inode); inode 505 fs/ocfs2/dlmglue.c struct inode *inode = ocfs2_lock_res_inode(lockres); inode 507 fs/ocfs2/dlmglue.c return OCFS2_SB(inode->i_sb); inode 538 fs/ocfs2/dlmglue.c u64 inode_blkno = OCFS2_I(inode)->ip_blkno; inode 569 fs/ocfs2/dlmglue.c ocfs2_lock_res_init_common(OCFS2_SB(inode->i_sb), lockres, inode 600 fs/ocfs2/dlmglue.c struct inode *inode = fp->fp_file->f_mapping->host; inode 601 fs/ocfs2/dlmglue.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 605 fs/ocfs2/dlmglue.c inode->i_generation, lockres->l_name); inode 606 fs/ocfs2/dlmglue.c ocfs2_lock_res_init_common(OCFS2_SB(inode->i_sb), lockres, inode 1379 fs/ocfs2/dlmglue.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 1381 fs/ocfs2/dlmglue.c BUG_ON(!inode); inode 1382 fs/ocfs2/dlmglue.c BUG_ON(!ocfs2_inode_is_new(inode)); inode 1386 fs/ocfs2/dlmglue.c mlog(0, "Inode %llu\n", (unsigned long long)OCFS2_I(inode)->ip_blkno); inode 1396 fs/ocfs2/dlmglue.c ret = ocfs2_create_new_lock(osb, &OCFS2_I(inode)->ip_rw_lockres, 1, 1); inode 1406 fs/ocfs2/dlmglue.c ret = ocfs2_create_new_lock(osb, &OCFS2_I(inode)->ip_inode_lockres, 1, 0); inode 1412 fs/ocfs2/dlmglue.c ret = ocfs2_create_new_lock(osb, &OCFS2_I(inode)->ip_open_lockres, 0, 0); inode 1427 fs/ocfs2/dlmglue.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 1429 fs/ocfs2/dlmglue.c BUG_ON(!inode); inode 1434 fs/ocfs2/dlmglue.c (unsigned long long)OCFS2_I(inode)->ip_blkno, inode 1440 fs/ocfs2/dlmglue.c lockres = &OCFS2_I(inode)->ip_rw_lockres; inode 1444 fs/ocfs2/dlmglue.c status = ocfs2_cluster_lock(OCFS2_SB(inode->i_sb), lockres, level, 0, inode 1456 fs/ocfs2/dlmglue.c struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_rw_lockres; inode 1457 fs/ocfs2/dlmglue.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 1462 fs/ocfs2/dlmglue.c (unsigned long long)OCFS2_I(inode)->ip_blkno, inode 1466 fs/ocfs2/dlmglue.c ocfs2_cluster_unlock(OCFS2_SB(inode->i_sb), lockres, level); inode 1478 fs/ocfs2/dlmglue.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 1480 fs/ocfs2/dlmglue.c BUG_ON(!inode); inode 1485 fs/ocfs2/dlmglue.c (unsigned long long)OCFS2_I(inode)->ip_blkno); inode 1490 fs/ocfs2/dlmglue.c lockres = &OCFS2_I(inode)->ip_open_lockres; inode 1492 fs/ocfs2/dlmglue.c status = ocfs2_cluster_lock(OCFS2_SB(inode->i_sb), lockres, inode 1506 fs/ocfs2/dlmglue.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 1508 fs/ocfs2/dlmglue.c BUG_ON(!inode); inode 1513 fs/ocfs2/dlmglue.c (unsigned long long)OCFS2_I(inode)->ip_blkno, inode 1519 fs/ocfs2/dlmglue.c lockres = &OCFS2_I(inode)->ip_open_lockres; inode 1529 fs/ocfs2/dlmglue.c status = ocfs2_cluster_lock(OCFS2_SB(inode->i_sb), lockres, inode 1542 fs/ocfs2/dlmglue.c struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_open_lockres; inode 1543 fs/ocfs2/dlmglue.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 1548 fs/ocfs2/dlmglue.c (unsigned long long)OCFS2_I(inode)->ip_blkno); inode 1554 fs/ocfs2/dlmglue.c ocfs2_cluster_unlock(OCFS2_SB(inode->i_sb), lockres, inode 1557 fs/ocfs2/dlmglue.c ocfs2_cluster_unlock(OCFS2_SB(inode->i_sb), lockres, inode 1826 fs/ocfs2/dlmglue.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 1845 fs/ocfs2/dlmglue.c lvb->lvb_isize = cpu_to_be64(i_size_read(inode)); inode 1847 fs/ocfs2/dlmglue.c lvb->lvb_iuid = cpu_to_be32(inode->i_uid); inode 1848 fs/ocfs2/dlmglue.c lvb->lvb_igid = cpu_to_be32(inode->i_gid); inode 1849 fs/ocfs2/dlmglue.c lvb->lvb_imode = cpu_to_be16(inode->i_mode); inode 1850 fs/ocfs2/dlmglue.c lvb->lvb_inlink = cpu_to_be16(inode->i_nlink); inode 1852 fs/ocfs2/dlmglue.c cpu_to_be64(ocfs2_pack_timespec(&inode->i_atime)); inode 1854 fs/ocfs2/dlmglue.c cpu_to_be64(ocfs2_pack_timespec(&inode->i_ctime)); inode 1856 fs/ocfs2/dlmglue.c cpu_to_be64(ocfs2_pack_timespec(&inode->i_mtime)); inode 1859 fs/ocfs2/dlmglue.c lvb->lvb_igeneration = cpu_to_be32(inode->i_generation); inode 1876 fs/ocfs2/dlmglue.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 1889 fs/ocfs2/dlmglue.c i_size_write(inode, be64_to_cpu(lvb->lvb_isize)); inode 1893 fs/ocfs2/dlmglue.c ocfs2_set_inode_flags(inode); inode 1896 fs/ocfs2/dlmglue.c if (S_ISLNK(inode->i_mode) && !oi->ip_clusters) inode 1897 fs/ocfs2/dlmglue.c inode->i_blocks = 0; inode 1899 fs/ocfs2/dlmglue.c inode->i_blocks = ocfs2_inode_sector_count(inode); inode 1901 fs/ocfs2/dlmglue.c inode->i_uid = be32_to_cpu(lvb->lvb_iuid); inode 1902 fs/ocfs2/dlmglue.c inode->i_gid = be32_to_cpu(lvb->lvb_igid); inode 1903 fs/ocfs2/dlmglue.c inode->i_mode = be16_to_cpu(lvb->lvb_imode); inode 1904 fs/ocfs2/dlmglue.c inode->i_nlink = be16_to_cpu(lvb->lvb_inlink); inode 1905 fs/ocfs2/dlmglue.c ocfs2_unpack_timespec(&inode->i_atime, inode 1907 fs/ocfs2/dlmglue.c ocfs2_unpack_timespec(&inode->i_mtime, inode 1909 fs/ocfs2/dlmglue.c ocfs2_unpack_timespec(&inode->i_ctime, inode 1923 fs/ocfs2/dlmglue.c && be32_to_cpu(lvb->lvb_igeneration) == inode->i_generation) inode 1990 fs/ocfs2/dlmglue.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 1993 fs/ocfs2/dlmglue.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 2016 fs/ocfs2/dlmglue.c ocfs2_metadata_cache_purge(inode); inode 2018 fs/ocfs2/dlmglue.c ocfs2_extent_map_trunc(inode, 0); inode 2020 fs/ocfs2/dlmglue.c if (ocfs2_meta_lvb_is_trustable(inode, lockres)) { inode 2023 fs/ocfs2/dlmglue.c ocfs2_refresh_inode_from_lvb(inode); inode 2027 fs/ocfs2/dlmglue.c status = ocfs2_read_block(inode, oi->ip_blkno, bh); inode 2043 fs/ocfs2/dlmglue.c OCFS2_RO_ON_INVALID_DINODE(inode->i_sb, fe); inode 2047 fs/ocfs2/dlmglue.c mlog_bug_on_msg(inode->i_generation != inode 2053 fs/ocfs2/dlmglue.c inode->i_generation); inode 2061 fs/ocfs2/dlmglue.c ocfs2_refresh_inode(inode, fe); inode 2088 fs/ocfs2/dlmglue.c status = ocfs2_read_block(inode, OCFS2_I(inode)->ip_blkno, ret_bh); inode 2107 fs/ocfs2/dlmglue.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 2110 fs/ocfs2/dlmglue.c BUG_ON(!inode); inode 2115 fs/ocfs2/dlmglue.c (unsigned long long)OCFS2_I(inode)->ip_blkno, inode 2134 fs/ocfs2/dlmglue.c lockres = &OCFS2_I(inode)->ip_inode_lockres; inode 2164 fs/ocfs2/dlmglue.c if (inode->i_state & I_NEW) { inode 2176 fs/ocfs2/dlmglue.c status = ocfs2_inode_lock_update(inode, &local_bh); inode 2184 fs/ocfs2/dlmglue.c status = ocfs2_assign_bh(inode, ret_bh, local_bh); inode 2198 fs/ocfs2/dlmglue.c ocfs2_inode_unlock(inode, ex); inode 2237 fs/ocfs2/dlmglue.c ret = ocfs2_inode_lock_full(inode, ret_bh, ex, OCFS2_LOCK_NONBLOCK); inode 2240 fs/ocfs2/dlmglue.c if (ocfs2_inode_lock(inode, ret_bh, ex) == 0) inode 2241 fs/ocfs2/dlmglue.c ocfs2_inode_unlock(inode, ex); inode 2255 fs/ocfs2/dlmglue.c ret = ocfs2_inode_lock(inode, NULL, 0); inode 2265 fs/ocfs2/dlmglue.c if (ocfs2_should_update_atime(inode, vfsmnt)) { inode 2268 fs/ocfs2/dlmglue.c ocfs2_inode_unlock(inode, 0); inode 2269 fs/ocfs2/dlmglue.c ret = ocfs2_inode_lock(inode, &bh, 1); inode 2275 fs/ocfs2/dlmglue.c if (ocfs2_should_update_atime(inode, vfsmnt)) inode 2276 fs/ocfs2/dlmglue.c ocfs2_update_inode_atime(inode, bh); inode 2290 fs/ocfs2/dlmglue.c struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_inode_lockres; inode 2291 fs/ocfs2/dlmglue.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 2296 fs/ocfs2/dlmglue.c (unsigned long long)OCFS2_I(inode)->ip_blkno, inode 2299 fs/ocfs2/dlmglue.c if (!ocfs2_is_hard_readonly(OCFS2_SB(inode->i_sb)) && inode 2301 fs/ocfs2/dlmglue.c ocfs2_cluster_unlock(OCFS2_SB(inode->i_sb), lockres, level); inode 2640 fs/ocfs2/dlmglue.c return seq_release_private(inode, file); inode 2656 fs/ocfs2/dlmglue.c osb = inode->i_private; inode 2992 fs/ocfs2/dlmglue.c err = ocfs2_drop_lock(OCFS2_SB(inode->i_sb), inode 2993 fs/ocfs2/dlmglue.c &OCFS2_I(inode)->ip_open_lockres); inode 2999 fs/ocfs2/dlmglue.c err = ocfs2_drop_lock(OCFS2_SB(inode->i_sb), inode 3000 fs/ocfs2/dlmglue.c &OCFS2_I(inode)->ip_inode_lockres); inode 3006 fs/ocfs2/dlmglue.c err = ocfs2_drop_lock(OCFS2_SB(inode->i_sb), inode 3007 fs/ocfs2/dlmglue.c &OCFS2_I(inode)->ip_rw_lockres); inode 3270 fs/ocfs2/dlmglue.c struct inode *inode; inode 3273 fs/ocfs2/dlmglue.c inode = ocfs2_lock_res_inode(lockres); inode 3274 fs/ocfs2/dlmglue.c mapping = inode->i_mapping; inode 3276 fs/ocfs2/dlmglue.c if (!S_ISREG(inode->i_mode)) inode 3290 fs/ocfs2/dlmglue.c (unsigned long long)OCFS2_I(inode)->ip_blkno); inode 3311 fs/ocfs2/dlmglue.c struct inode *inode = ocfs2_lock_res_inode(lockres); inode 3312 fs/ocfs2/dlmglue.c int checkpointed = ocfs2_inode_fully_checkpointed(inode); inode 3320 fs/ocfs2/dlmglue.c ocfs2_start_checkpoint(OCFS2_SB(inode->i_sb)); inode 3326 fs/ocfs2/dlmglue.c struct inode *inode = ocfs2_lock_res_inode(lockres); inode 3328 fs/ocfs2/dlmglue.c __ocfs2_stuff_meta_lvb(inode); inode 51 fs/ocfs2/export.c struct inode *inode; inode 61 fs/ocfs2/export.c inode = ocfs2_iget(OCFS2_SB(sb), handle->ih_blkno, 0, 0); inode 63 fs/ocfs2/export.c if (IS_ERR(inode)) inode 64 fs/ocfs2/export.c return (void *)inode; inode 66 fs/ocfs2/export.c if (handle->ih_generation != inode->i_generation) { inode 67 fs/ocfs2/export.c iput(inode); inode 71 fs/ocfs2/export.c result = d_alloc_anon(inode); inode 74 fs/ocfs2/export.c iput(inode); inode 89 fs/ocfs2/export.c struct inode *inode; inode 90 fs/ocfs2/export.c struct inode *dir = child->d_inode; inode 112 fs/ocfs2/export.c inode = ocfs2_iget(OCFS2_SB(dir->i_sb), blkno, 0, 0); inode 113 fs/ocfs2/export.c if (IS_ERR(inode)) { inode 120 fs/ocfs2/export.c parent = d_alloc_anon(inode); inode 122 fs/ocfs2/export.c iput(inode); inode 140 fs/ocfs2/export.c struct inode *inode = dentry->d_inode; inode 157 fs/ocfs2/export.c blkno = OCFS2_I(inode)->ip_blkno; inode 158 fs/ocfs2/export.c generation = inode->i_generation; inode 168 fs/ocfs2/export.c if (connectable && !S_ISDIR(inode->i_mode)) { inode 169 fs/ocfs2/export.c struct inode *parent; inode 54 fs/ocfs2/extent_map.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 86 fs/ocfs2/extent_map.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 115 fs/ocfs2/extent_map.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 228 fs/ocfs2/extent_map.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 234 fs/ocfs2/extent_map.c ins.ei_phys = ocfs2_blocks_to_clusters(inode->i_sb, inode 296 fs/ocfs2/extent_map.c ret = ocfs2_read_block(inode, last_eb_blk, &eb_bh); inode 307 fs/ocfs2/extent_map.c OCFS2_RO_ON_INVALID_EXTENT_BLOCK(inode->i_sb, eb); inode 312 fs/ocfs2/extent_map.c ocfs2_error(inode->i_sb, inode 314 fs/ocfs2/extent_map.c "leaf block %llu\n", inode->i_ino, inode 384 fs/ocfs2/extent_map.c ret = ocfs2_read_block(inode, inode 395 fs/ocfs2/extent_map.c OCFS2_RO_ON_INVALID_EXTENT_BLOCK(inode->i_sb, next_eb); inode 444 fs/ocfs2/extent_map.c ret = ocfs2_find_leaf(inode, el, v_cluster, &eb_bh); inode 454 fs/ocfs2/extent_map.c ocfs2_error(inode->i_sb, inode 456 fs/ocfs2/extent_map.c "leaf block %llu\n", inode->i_ino, inode 471 fs/ocfs2/extent_map.c ret = ocfs2_figure_hole_clusters(inode, el, eb_bh, inode 488 fs/ocfs2/extent_map.c ocfs2_error(inode->i_sb, "Inode %lu has bad extent " inode 489 fs/ocfs2/extent_map.c "record (%u, %u, 0)", inode->i_ino, inode 520 fs/ocfs2/extent_map.c ret = ocfs2_last_eb_is_empty(inode, di); inode 564 fs/ocfs2/extent_map.c ret = ocfs2_find_leaf(inode, el, v_cluster, &eb_bh); inode 574 fs/ocfs2/extent_map.c ocfs2_error(inode->i_sb, inode 576 fs/ocfs2/extent_map.c "xattr leaf block %llu\n", inode->i_ino, inode 593 fs/ocfs2/extent_map.c ocfs2_error(inode->i_sb, "Inode %lu has bad extent " inode 594 fs/ocfs2/extent_map.c "record (%u, %u, 0) in xattr", inode->i_ino, inode 601 fs/ocfs2/extent_map.c *p_cluster = ocfs2_blocks_to_clusters(inode->i_sb, inode 622 fs/ocfs2/extent_map.c if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) { inode 628 fs/ocfs2/extent_map.c ret = ocfs2_extent_map_lookup(inode, v_cluster, p_cluster, inode 633 fs/ocfs2/extent_map.c ret = ocfs2_read_block(inode, OCFS2_I(inode)->ip_blkno, &di_bh); inode 639 fs/ocfs2/extent_map.c ret = ocfs2_get_clusters_nocache(inode, di_bh, v_cluster, &hole_len, inode 657 fs/ocfs2/extent_map.c ocfs2_relative_extent_offsets(inode->i_sb, v_cluster, &rec, inode 661 fs/ocfs2/extent_map.c ocfs2_extent_map_insert_rec(inode, &rec); inode 680 fs/ocfs2/extent_map.c int bpc = ocfs2_clusters_to_blocks(inode->i_sb, 1); inode 684 fs/ocfs2/extent_map.c cpos = ocfs2_blocks_to_clusters(inode->i_sb, v_blkno); inode 686 fs/ocfs2/extent_map.c ret = ocfs2_get_clusters(inode, cpos, &p_cluster, &num_clusters, inode 697 fs/ocfs2/extent_map.c boff = ocfs2_clusters_to_blocks(inode->i_sb, p_cluster); inode 704 fs/ocfs2/extent_map.c *ret_count = ocfs2_clusters_to_blocks(inode->i_sb, num_clusters); inode 721 fs/ocfs2/extent_map.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 727 fs/ocfs2/extent_map.c phys = oi->ip_blkno << inode->i_sb->s_blocksize_bits; inode 747 fs/ocfs2/extent_map.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 756 fs/ocfs2/extent_map.c ret = ocfs2_inode_lock(inode, &di_bh, 0); inode 762 fs/ocfs2/extent_map.c down_read(&OCFS2_I(inode)->ip_alloc_sem); inode 767 fs/ocfs2/extent_map.c if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) { inode 768 fs/ocfs2/extent_map.c ret = ocfs2_fiemap_inline(inode, di_bh, fieinfo, map_start); inode 773 fs/ocfs2/extent_map.c mapping_end = ocfs2_clusters_for_bytes(inode->i_sb, inode 780 fs/ocfs2/extent_map.c ret = ocfs2_get_clusters_nocache(inode, di_bh, cpos, inode 815 fs/ocfs2/extent_map.c up_read(&OCFS2_I(inode)->ip_alloc_sem); inode 817 fs/ocfs2/extent_map.c ocfs2_inode_unlock(inode, 0); inode 64 fs/ocfs2/file.c filemap_fdatawrite(inode->i_mapping); inode 65 fs/ocfs2/file.c return sync_mapping_buffers(inode->i_mapping); inode 87 fs/ocfs2/file.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 101 fs/ocfs2/file.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 103 fs/ocfs2/file.c mlog_entry("(0x%p, 0x%p, '%.*s')\n", inode, file, inode 111 fs/ocfs2/file.c if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_DELETED) { inode 124 fs/ocfs2/file.c status = ocfs2_init_file_private(inode, file); inode 142 fs/ocfs2/file.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 144 fs/ocfs2/file.c mlog_entry("(0x%p, 0x%p, '%.*s')\n", inode, file, inode 153 fs/ocfs2/file.c ocfs2_free_file_private(inode, file); inode 162 fs/ocfs2/file.c return ocfs2_init_file_private(inode, file); inode 167 fs/ocfs2/file.c ocfs2_free_file_private(inode, file); inode 177 fs/ocfs2/file.c struct inode *inode = dentry->d_inode; inode 178 fs/ocfs2/file.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 200 fs/ocfs2/file.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 205 fs/ocfs2/file.c if ((inode->i_flags & S_NOATIME) || inode 206 fs/ocfs2/file.c ((inode->i_sb->s_flags & MS_NODIRATIME) && S_ISDIR(inode->i_mode))) inode 221 fs/ocfs2/file.c ((vfsmnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode))) inode 225 fs/ocfs2/file.c if ((timespec_compare(&inode->i_atime, &inode->i_mtime) <= 0) || inode 226 fs/ocfs2/file.c (timespec_compare(&inode->i_atime, &inode->i_ctime) <= 0)) inode 233 fs/ocfs2/file.c if ((now.tv_sec - inode->i_atime.tv_sec <= osb->s_atime_quantum)) inode 243 fs/ocfs2/file.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 256 fs/ocfs2/file.c ret = ocfs2_journal_access(handle, inode, bh, inode 268 fs/ocfs2/file.c inode->i_atime = CURRENT_TIME; inode 269 fs/ocfs2/file.c di->i_atime = cpu_to_le64(inode->i_atime.tv_sec); inode 270 fs/ocfs2/file.c di->i_atime_nsec = cpu_to_le32(inode->i_atime.tv_nsec); inode 277 fs/ocfs2/file.c ocfs2_commit_trans(OCFS2_SB(inode->i_sb), handle); inode 291 fs/ocfs2/file.c i_size_write(inode, new_i_size); inode 292 fs/ocfs2/file.c inode->i_blocks = ocfs2_inode_sector_count(inode); inode 293 fs/ocfs2/file.c inode->i_ctime = inode->i_mtime = CURRENT_TIME; inode 295 fs/ocfs2/file.c status = ocfs2_mark_inode_dirty(handle, inode, fe_bh); inode 311 fs/ocfs2/file.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 321 fs/ocfs2/file.c ret = ocfs2_set_inode_size(handle, inode, di_bh, inode 353 fs/ocfs2/file.c status = ocfs2_journal_access(handle, inode, fe_bh, inode 363 fs/ocfs2/file.c cluster_bytes = ocfs2_align_bytes_to_clusters(inode->i_sb, new_i_size); inode 364 fs/ocfs2/file.c status = ocfs2_zero_range_for_truncate(inode, handle, new_i_size, inode 371 fs/ocfs2/file.c i_size_write(inode, new_i_size); inode 372 fs/ocfs2/file.c inode->i_ctime = inode->i_mtime = CURRENT_TIME; inode 376 fs/ocfs2/file.c di->i_ctime = di->i_mtime = cpu_to_le64(inode->i_ctime.tv_sec); inode 377 fs/ocfs2/file.c di->i_ctime_nsec = di->i_mtime_nsec = cpu_to_le32(inode->i_ctime.tv_nsec); inode 397 fs/ocfs2/file.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 401 fs/ocfs2/file.c (unsigned long long)OCFS2_I(inode)->ip_blkno, inode 406 fs/ocfs2/file.c OCFS2_RO_ON_INVALID_DINODE(inode->i_sb, fe); inode 411 fs/ocfs2/file.c mlog_bug_on_msg(le64_to_cpu(fe->i_size) != i_size_read(inode), inode 414 fs/ocfs2/file.c (unsigned long long)OCFS2_I(inode)->ip_blkno, inode 415 fs/ocfs2/file.c i_size_read(inode), inode 438 fs/ocfs2/file.c down_write(&OCFS2_I(inode)->ip_alloc_sem); inode 447 fs/ocfs2/file.c unmap_mapping_range(inode->i_mapping, new_i_size + PAGE_SIZE - 1, 0, 1); inode 448 fs/ocfs2/file.c truncate_inode_pages(inode->i_mapping, new_i_size); inode 450 fs/ocfs2/file.c if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) { inode 451 fs/ocfs2/file.c status = ocfs2_truncate_inline(inode, di_bh, new_i_size, inode 452 fs/ocfs2/file.c i_size_read(inode), 1); inode 463 fs/ocfs2/file.c status = ocfs2_orphan_for_truncate(osb, inode, di_bh, new_i_size); inode 469 fs/ocfs2/file.c status = ocfs2_prepare_truncate(osb, inode, di_bh, &tc); inode 475 fs/ocfs2/file.c status = ocfs2_commit_truncate(osb, inode, di_bh, tc); inode 483 fs/ocfs2/file.c up_write(&OCFS2_I(inode)->ip_alloc_sem); inode 515 fs/ocfs2/file.c ocfs2_init_dinode_extent_tree(&et, inode, fe_bh); inode 516 fs/ocfs2/file.c ret = ocfs2_add_clusters_in_btree(osb, inode, logical_offset, inode 537 fs/ocfs2/file.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 548 fs/ocfs2/file.c status = ocfs2_read_block(inode, OCFS2_I(inode)->ip_blkno, &bh); inode 556 fs/ocfs2/file.c OCFS2_RO_ON_INVALID_DINODE(inode->i_sb, fe); inode 562 fs/ocfs2/file.c BUG_ON(le32_to_cpu(fe->i_clusters) != OCFS2_I(inode)->ip_clusters); inode 566 fs/ocfs2/file.c (unsigned long long)OCFS2_I(inode)->ip_blkno, inode 567 fs/ocfs2/file.c (long long)i_size_read(inode), le32_to_cpu(fe->i_clusters), inode 569 fs/ocfs2/file.c ocfs2_init_dinode_extent_tree(&et, inode, bh); inode 570 fs/ocfs2/file.c status = ocfs2_lock_allocators(inode, &et, clusters_to_add, 0, inode 591 fs/ocfs2/file.c status = ocfs2_journal_access(handle, inode, bh, inode 598 fs/ocfs2/file.c prev_clusters = OCFS2_I(inode)->ip_clusters; inode 601 fs/ocfs2/file.c inode, inode 622 fs/ocfs2/file.c spin_lock(&OCFS2_I(inode)->ip_lock); inode 623 fs/ocfs2/file.c clusters_to_add -= (OCFS2_I(inode)->ip_clusters - prev_clusters); inode 624 fs/ocfs2/file.c spin_unlock(&OCFS2_I(inode)->ip_lock); inode 654 fs/ocfs2/file.c OCFS2_I(inode)->ip_clusters, (long long)i_size_read(inode)); inode 687 fs/ocfs2/file.c struct address_space *mapping = inode->i_mapping; inode 699 fs/ocfs2/file.c if ((offset & (inode->i_sb->s_blocksize - 1)) == 0) { inode 711 fs/ocfs2/file.c ret = ocfs2_prepare_write_nolock(inode, page, offset, offset); inode 717 fs/ocfs2/file.c if (ocfs2_should_order_data(inode)) { inode 718 fs/ocfs2/file.c handle = ocfs2_start_walk_page_trans(inode, page, offset, inode 735 fs/ocfs2/file.c ocfs2_commit_trans(OCFS2_SB(inode->i_sb), handle); inode 748 fs/ocfs2/file.c struct super_block *sb = inode->i_sb; inode 750 fs/ocfs2/file.c start_off = ocfs2_align_bytes_to_blocks(sb, i_size_read(inode)); inode 752 fs/ocfs2/file.c ret = ocfs2_write_zero_page(inode, start_off); inode 775 fs/ocfs2/file.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 777 fs/ocfs2/file.c clusters_to_add = ocfs2_clusters_for_bytes(inode->i_sb, new_i_size); inode 784 fs/ocfs2/file.c ret = __ocfs2_extend_allocation(inode, oi->ip_clusters, inode 797 fs/ocfs2/file.c ret = ocfs2_zero_extend(inode, zero_to); inode 810 fs/ocfs2/file.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 818 fs/ocfs2/file.c if (i_size_read(inode) == new_i_size) inode 820 fs/ocfs2/file.c BUG_ON(new_i_size < i_size_read(inode)); inode 832 fs/ocfs2/file.c && ocfs2_sparse_alloc(OCFS2_SB(inode->i_sb))) inode 853 fs/ocfs2/file.c ret = ocfs2_convert_inline_data_to_extents(inode, di_bh); inode 862 fs/ocfs2/file.c if (!ocfs2_sparse_alloc(OCFS2_SB(inode->i_sb))) inode 863 fs/ocfs2/file.c ret = ocfs2_extend_no_holes(inode, new_i_size, new_i_size); inode 873 fs/ocfs2/file.c ret = ocfs2_simple_size_update(inode, di_bh, new_i_size); inode 884 fs/ocfs2/file.c struct inode *inode = dentry->d_inode; inode 885 fs/ocfs2/file.c struct super_block *sb = inode->i_sb; inode 894 fs/ocfs2/file.c if (S_ISLNK(inode->i_mode)) inode 915 fs/ocfs2/file.c status = inode_change_ok(inode, attr); inode 919 fs/ocfs2/file.c size_change = S_ISREG(inode->i_mode) && attr->ia_valid & ATTR_SIZE; inode 921 fs/ocfs2/file.c status = ocfs2_rw_lock(inode, 1); inode 928 fs/ocfs2/file.c status = ocfs2_inode_lock(inode, &bh, 1); inode 935 fs/ocfs2/file.c if (size_change && attr->ia_size != i_size_read(inode)) { inode 941 fs/ocfs2/file.c if (i_size_read(inode) > attr->ia_size) { inode 942 fs/ocfs2/file.c if (ocfs2_should_order_data(inode)) { inode 943 fs/ocfs2/file.c status = ocfs2_begin_ordered_truncate(inode, inode 948 fs/ocfs2/file.c status = ocfs2_truncate_file(inode, bh, attr->ia_size); inode 950 fs/ocfs2/file.c status = ocfs2_extend_file(inode, bh, attr->ia_size); inode 973 fs/ocfs2/file.c status = inode_setattr(inode, attr); inode 979 fs/ocfs2/file.c status = ocfs2_mark_inode_dirty(handle, inode, bh); inode 986 fs/ocfs2/file.c ocfs2_inode_unlock(inode, 1); inode 989 fs/ocfs2/file.c ocfs2_rw_unlock(inode, 1); inode 1001 fs/ocfs2/file.c struct inode *inode = dentry->d_inode; inode 1015 fs/ocfs2/file.c generic_fillattr(inode, stat); inode 1032 fs/ocfs2/file.c ret = ocfs2_inode_lock(inode, NULL, 0); inode 1039 fs/ocfs2/file.c ret = generic_permission(inode, mask, NULL); inode 1041 fs/ocfs2/file.c ocfs2_inode_unlock(inode, 0); inode 1052 fs/ocfs2/file.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 1056 fs/ocfs2/file.c (unsigned long long)OCFS2_I(inode)->ip_blkno, inode->i_mode); inode 1065 fs/ocfs2/file.c ret = ocfs2_journal_access(handle, inode, bh, inode 1072 fs/ocfs2/file.c inode->i_mode &= ~S_ISUID; inode 1073 fs/ocfs2/file.c if ((inode->i_mode & S_ISGID) && (inode->i_mode & S_IXGRP)) inode 1074 fs/ocfs2/file.c inode->i_mode &= ~S_ISGID; inode 1077 fs/ocfs2/file.c di->i_mode = cpu_to_le16(inode->i_mode); inode 1100 fs/ocfs2/file.c struct super_block *sb = inode->i_sb; inode 1106 fs/ocfs2/file.c ret = ocfs2_get_clusters(inode, cpos, &phys_cpos, &extent_len, inode 1132 fs/ocfs2/file.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 1134 fs/ocfs2/file.c ret = ocfs2_read_block(inode, oi->ip_blkno, &bh); inode 1140 fs/ocfs2/file.c ret = __ocfs2_write_remove_suid(inode, bh); inode 1159 fs/ocfs2/file.c if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) { inode 1160 fs/ocfs2/file.c ret = ocfs2_read_block(inode, OCFS2_I(inode)->ip_blkno, inode 1174 fs/ocfs2/file.c ret = ocfs2_convert_inline_data_to_extents(inode, di_bh); inode 1184 fs/ocfs2/file.c cpos = start >> OCFS2_SB(inode->i_sb)->s_clustersize_bits; inode 1185 fs/ocfs2/file.c clusters = ocfs2_clusters_for_bytes(inode->i_sb, start + len); inode 1189 fs/ocfs2/file.c ret = ocfs2_get_clusters(inode, cpos, &phys_cpos, inode 1211 fs/ocfs2/file.c ret = __ocfs2_extend_allocation(inode, cpos, alloc_size, 1); inode 1236 fs/ocfs2/file.c u64 phys_blkno = ocfs2_clusters_to_blocks(inode->i_sb, phys_cpos); inode 1237 fs/ocfs2/file.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 1238 fs/ocfs2/file.c struct inode *tl_inode = osb->osb_tl_inode; inode 1244 fs/ocfs2/file.c ocfs2_init_dinode_extent_tree(&et, inode, di_bh); inode 1246 fs/ocfs2/file.c ret = ocfs2_lock_allocators(inode, &et, 0, 1, NULL, &meta_ac); inode 1269 fs/ocfs2/file.c ret = ocfs2_journal_access(handle, inode, di_bh, inode 1276 fs/ocfs2/file.c ret = ocfs2_remove_extent(inode, &et, cpos, len, handle, meta_ac, inode 1283 fs/ocfs2/file.c OCFS2_I(inode)->ip_clusters -= len; inode 1284 fs/ocfs2/file.c di->i_clusters = cpu_to_le32(OCFS2_I(inode)->ip_clusters); inode 1314 fs/ocfs2/file.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 1316 fs/ocfs2/file.c struct address_space *mapping = inode->i_mapping; inode 1318 fs/ocfs2/file.c start = (loff_t)ocfs2_align_bytes_to_clusters(inode->i_sb, byte_start); inode 1333 fs/ocfs2/file.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 1372 fs/ocfs2/file.c ret = ocfs2_zero_range_for_truncate(inode, handle, start, tmpend); inode 1387 fs/ocfs2/file.c ret = ocfs2_zero_range_for_truncate(inode, handle, start, end); inode 1403 fs/ocfs2/file.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 1405 fs/ocfs2/file.c struct address_space *mapping = inode->i_mapping; inode 1412 fs/ocfs2/file.c if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) { inode 1413 fs/ocfs2/file.c ret = ocfs2_truncate_inline(inode, di_bh, byte_start, inode 1438 fs/ocfs2/file.c (unsigned long long)OCFS2_I(inode)->ip_blkno, inode 1442 fs/ocfs2/file.c ret = ocfs2_zero_partial_clusters(inode, byte_start, byte_len); inode 1450 fs/ocfs2/file.c ret = ocfs2_get_clusters(inode, cpos, &phys_cpos, inode 1462 fs/ocfs2/file.c ret = __ocfs2_remove_inode_range(inode, di_bh, cpos, inode 1475 fs/ocfs2/file.c ocfs2_truncate_cluster_pages(inode, byte_start, byte_len); inode 1495 fs/ocfs2/file.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 1498 fs/ocfs2/file.c unsigned long long max_off = inode->i_sb->s_maxbytes; inode 1503 fs/ocfs2/file.c mutex_lock(&inode->i_mutex); inode 1508 fs/ocfs2/file.c ret = ocfs2_rw_lock(inode, 1); inode 1514 fs/ocfs2/file.c ret = ocfs2_inode_lock(inode, &di_bh, 1); inode 1520 fs/ocfs2/file.c if (inode->i_flags & (S_IMMUTABLE|S_APPEND)) { inode 1532 fs/ocfs2/file.c sr->l_start += i_size_read(inode); inode 1559 fs/ocfs2/file.c ret = __ocfs2_write_remove_suid(inode, di_bh); inode 1566 fs/ocfs2/file.c down_write(&OCFS2_I(inode)->ip_alloc_sem); inode 1574 fs/ocfs2/file.c ret = ocfs2_allocate_unwritten_extents(inode, sr->l_start, inode 1579 fs/ocfs2/file.c ret = ocfs2_remove_inode_range(inode, di_bh, sr->l_start, inode 1585 fs/ocfs2/file.c up_write(&OCFS2_I(inode)->ip_alloc_sem); inode 1601 fs/ocfs2/file.c if (change_size && i_size_read(inode) < size) inode 1602 fs/ocfs2/file.c i_size_write(inode, size); inode 1604 fs/ocfs2/file.c inode->i_ctime = inode->i_mtime = CURRENT_TIME; inode 1605 fs/ocfs2/file.c ret = ocfs2_mark_inode_dirty(handle, inode, di_bh); inode 1613 fs/ocfs2/file.c ocfs2_inode_unlock(inode, 1); inode 1615 fs/ocfs2/file.c ocfs2_rw_unlock(inode, 1); inode 1618 fs/ocfs2/file.c mutex_unlock(&inode->i_mutex); inode 1625 fs/ocfs2/file.c struct inode *inode = file->f_path.dentry->d_inode; inode 1626 fs/ocfs2/file.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);; inode 1635 fs/ocfs2/file.c if (!S_ISREG(inode->i_mode)) inode 1641 fs/ocfs2/file.c return __ocfs2_change_file_space(file, inode, file->f_pos, cmd, sr, 0); inode 1647 fs/ocfs2/file.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 1654 fs/ocfs2/file.c if (S_ISDIR(inode->i_mode)) inode 1664 fs/ocfs2/file.c return __ocfs2_change_file_space(NULL, inode, offset, inode 1675 fs/ocfs2/file.c struct inode *inode = dentry->d_inode; inode 1683 fs/ocfs2/file.c ret = ocfs2_inode_lock(inode, NULL, meta_level); inode 1701 fs/ocfs2/file.c ocfs2_inode_unlock(inode, meta_level); inode 1706 fs/ocfs2/file.c ret = ocfs2_write_remove_suid(inode); inode 1716 fs/ocfs2/file.c saved_pos = i_size_read(inode); inode 1735 fs/ocfs2/file.c if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) { inode 1746 fs/ocfs2/file.c if (end > i_size_read(inode)) { inode 1757 fs/ocfs2/file.c ret = ocfs2_check_range_for_holes(inode, saved_pos, count); inode 1770 fs/ocfs2/file.c ocfs2_inode_unlock(inode, meta_level); inode 1789 fs/ocfs2/file.c struct inode *inode = file->f_path.dentry->d_inode; inode 1790 fs/ocfs2/file.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 1800 fs/ocfs2/file.c vfs_check_frozen(inode->i_sb, SB_FREEZE_WRITE); inode 1805 fs/ocfs2/file.c mutex_lock(&inode->i_mutex); inode 1810 fs/ocfs2/file.c down_read(&inode->i_alloc_sem); inode 1816 fs/ocfs2/file.c ret = ocfs2_rw_lock(inode, rw_level); inode 1836 fs/ocfs2/file.c ocfs2_rw_unlock(inode, rw_level); inode 1837 fs/ocfs2/file.c up_read(&inode->i_alloc_sem); inode 1850 fs/ocfs2/file.c old_size = i_size_read(inode); inode 1851 fs/ocfs2/file.c old_clusters = OCFS2_I(inode)->ip_clusters; inode 1863 fs/ocfs2/file.c S_ISBLK(inode->i_mode)); inode 1882 fs/ocfs2/file.c if ((file->f_flags & O_SYNC && !direct_io) || IS_SYNC(inode)) { inode 1889 fs/ocfs2/file.c if (old_size != i_size_read(inode) || inode 1890 fs/ocfs2/file.c old_clusters != OCFS2_I(inode)->ip_clusters) { inode 1914 fs/ocfs2/file.c ocfs2_rw_unlock(inode, rw_level); inode 1918 fs/ocfs2/file.c up_read(&inode->i_alloc_sem); inode 1920 fs/ocfs2/file.c mutex_unlock(&inode->i_mutex); inode 1933 fs/ocfs2/file.c struct inode *inode = out->f_path.dentry->d_inode; inode 1940 fs/ocfs2/file.c inode_double_lock(inode, pipe->inode); inode 1942 fs/ocfs2/file.c ret = ocfs2_rw_lock(inode, 1); inode 1958 fs/ocfs2/file.c ocfs2_rw_unlock(inode, 1); inode 1960 fs/ocfs2/file.c inode_double_unlock(inode, pipe->inode); inode 1973 fs/ocfs2/file.c struct inode *inode = in->f_path.dentry->d_inode; inode 1983 fs/ocfs2/file.c ret = ocfs2_inode_lock(inode, NULL, 0); inode 1988 fs/ocfs2/file.c ocfs2_inode_unlock(inode, 0); inode 2004 fs/ocfs2/file.c struct inode *inode = filp->f_path.dentry->d_inode; inode 2011 fs/ocfs2/file.c if (!inode) { inode 2022 fs/ocfs2/file.c down_read(&inode->i_alloc_sem); inode 2025 fs/ocfs2/file.c ret = ocfs2_rw_lock(inode, 0); inode 2044 fs/ocfs2/file.c ret = ocfs2_inode_lock_atime(inode, filp->f_vfsmnt, &lock_level); inode 2049 fs/ocfs2/file.c ocfs2_inode_unlock(inode, lock_level); inode 2066 fs/ocfs2/file.c up_read(&inode->i_alloc_sem); inode 2068 fs/ocfs2/file.c ocfs2_rw_unlock(inode, rw_level); inode 76 fs/ocfs2/inode.c unsigned int flags = OCFS2_I(inode)->ip_attr; inode 78 fs/ocfs2/inode.c inode->i_flags &= ~(S_IMMUTABLE | inode 82 fs/ocfs2/inode.c inode->i_flags |= S_IMMUTABLE; inode 85 fs/ocfs2/inode.c inode->i_flags |= S_SYNC; inode 87 fs/ocfs2/inode.c inode->i_flags |= S_APPEND; inode 89 fs/ocfs2/inode.c inode->i_flags |= S_NOATIME; inode 91 fs/ocfs2/inode.c inode->i_flags |= S_DIRSYNC; inode 113 fs/ocfs2/inode.c struct inode *ocfs2_iget(struct ocfs2_super *osb, u64 blkno, unsigned flags, inode 116 fs/ocfs2/inode.c struct inode *inode = NULL; inode 126 fs/ocfs2/inode.c inode = ERR_PTR(-EINVAL); inode 127 fs/ocfs2/inode.c mlog_errno(PTR_ERR(inode)); inode 136 fs/ocfs2/inode.c inode = iget5_locked(sb, args.fi_ino, ocfs2_find_actor, inode 141 fs/ocfs2/inode.c if (inode && inode->i_state & I_NEW) { inode 143 fs/ocfs2/inode.c ocfs2_read_locked_inode(inode, &args); inode 144 fs/ocfs2/inode.c unlock_new_inode(inode); inode 146 fs/ocfs2/inode.c if (inode == NULL) { inode 147 fs/ocfs2/inode.c inode = ERR_PTR(-ENOMEM); inode 148 fs/ocfs2/inode.c mlog_errno(PTR_ERR(inode)); inode 151 fs/ocfs2/inode.c if (is_bad_inode(inode)) { inode 152 fs/ocfs2/inode.c iput(inode); inode 153 fs/ocfs2/inode.c inode = ERR_PTR(-ESTALE); inode 158 fs/ocfs2/inode.c if (!IS_ERR(inode)) { inode 160 fs/ocfs2/inode.c (unsigned long long)OCFS2_I(inode)->ip_blkno); inode 161 fs/ocfs2/inode.c mlog_exit_ptr(inode); inode 164 fs/ocfs2/inode.c return inode; inode 178 fs/ocfs2/inode.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 181 fs/ocfs2/inode.c mlog_entry("(0x%p, %lu, 0x%p)\n", inode, inode->i_ino, opaque); inode 185 fs/ocfs2/inode.c mlog_bug_on_msg(!inode, "No inode in find actor!\n"); inode 205 fs/ocfs2/inode.c mlog_entry("inode = %p, opaque = %p\n", inode, opaque); inode 207 fs/ocfs2/inode.c inode->i_ino = args->fi_ino; inode 208 fs/ocfs2/inode.c OCFS2_I(inode)->ip_blkno = args->fi_blkno; inode 210 fs/ocfs2/inode.c lockdep_set_class(&inode->i_mutex, inode 225 fs/ocfs2/inode.c mlog_entry("(0x%p, size:%llu)\n", inode, inode 228 fs/ocfs2/inode.c sb = inode->i_sb; inode 241 fs/ocfs2/inode.c inode->i_ino, inode 255 fs/ocfs2/inode.c OCFS2_I(inode)->ip_clusters = le32_to_cpu(fe->i_clusters); inode 256 fs/ocfs2/inode.c OCFS2_I(inode)->ip_attr = le32_to_cpu(fe->i_attr); inode 257 fs/ocfs2/inode.c OCFS2_I(inode)->ip_dyn_features = le16_to_cpu(fe->i_dyn_features); inode 259 fs/ocfs2/inode.c inode->i_version = 1; inode 260 fs/ocfs2/inode.c inode->i_generation = le32_to_cpu(fe->i_generation); inode 261 fs/ocfs2/inode.c inode->i_rdev = huge_decode_dev(le64_to_cpu(fe->id1.dev1.i_rdev)); inode 262 fs/ocfs2/inode.c inode->i_mode = le16_to_cpu(fe->i_mode); inode 263 fs/ocfs2/inode.c inode->i_uid = le32_to_cpu(fe->i_uid); inode 264 fs/ocfs2/inode.c inode->i_gid = le32_to_cpu(fe->i_gid); inode 267 fs/ocfs2/inode.c if (S_ISLNK(inode->i_mode) && !fe->i_clusters) inode 268 fs/ocfs2/inode.c inode->i_blocks = 0; inode 270 fs/ocfs2/inode.c inode->i_blocks = ocfs2_inode_sector_count(inode); inode 271 fs/ocfs2/inode.c inode->i_mapping->a_ops = &ocfs2_aops; inode 272 fs/ocfs2/inode.c inode->i_atime.tv_sec = le64_to_cpu(fe->i_atime); inode 273 fs/ocfs2/inode.c inode->i_atime.tv_nsec = le32_to_cpu(fe->i_atime_nsec); inode 274 fs/ocfs2/inode.c inode->i_mtime.tv_sec = le64_to_cpu(fe->i_mtime); inode 275 fs/ocfs2/inode.c inode->i_mtime.tv_nsec = le32_to_cpu(fe->i_mtime_nsec); inode 276 fs/ocfs2/inode.c inode->i_ctime.tv_sec = le64_to_cpu(fe->i_ctime); inode 277 fs/ocfs2/inode.c inode->i_ctime.tv_nsec = le32_to_cpu(fe->i_ctime_nsec); inode 279 fs/ocfs2/inode.c if (OCFS2_I(inode)->ip_blkno != le64_to_cpu(fe->i_blkno)) inode 282 fs/ocfs2/inode.c (unsigned long long)OCFS2_I(inode)->ip_blkno, inode 285 fs/ocfs2/inode.c inode->i_nlink = le16_to_cpu(fe->i_links_count); inode 288 fs/ocfs2/inode.c OCFS2_I(inode)->ip_flags |= OCFS2_INODE_SYSTEM_FILE; inode 291 fs/ocfs2/inode.c OCFS2_I(inode)->ip_flags |= OCFS2_INODE_BITMAP; inode 292 fs/ocfs2/inode.c mlog(0, "local alloc inode: i_ino=%lu\n", inode->i_ino); inode 294 fs/ocfs2/inode.c OCFS2_I(inode)->ip_flags |= OCFS2_INODE_BITMAP; inode 296 fs/ocfs2/inode.c mlog(0, "superblock inode: i_ino=%lu\n", inode->i_ino); inode 302 fs/ocfs2/inode.c switch (inode->i_mode & S_IFMT) { inode 305 fs/ocfs2/inode.c inode->i_fop = &ocfs2_fops; inode 307 fs/ocfs2/inode.c inode->i_fop = &ocfs2_fops_no_plocks; inode 308 fs/ocfs2/inode.c inode->i_op = &ocfs2_file_iops; inode 309 fs/ocfs2/inode.c i_size_write(inode, le64_to_cpu(fe->i_size)); inode 312 fs/ocfs2/inode.c inode->i_op = &ocfs2_dir_iops; inode 314 fs/ocfs2/inode.c inode->i_fop = &ocfs2_dops; inode 316 fs/ocfs2/inode.c inode->i_fop = &ocfs2_dops_no_plocks; inode 317 fs/ocfs2/inode.c i_size_write(inode, le64_to_cpu(fe->i_size)); inode 320 fs/ocfs2/inode.c if (ocfs2_inode_is_fast_symlink(inode)) inode 321 fs/ocfs2/inode.c inode->i_op = &ocfs2_fast_symlink_inode_operations; inode 323 fs/ocfs2/inode.c inode->i_op = &ocfs2_symlink_inode_operations; inode 324 fs/ocfs2/inode.c i_size_write(inode, le64_to_cpu(fe->i_size)); inode 327 fs/ocfs2/inode.c inode->i_op = &ocfs2_special_file_iops; inode 328 fs/ocfs2/inode.c init_special_inode(inode, inode->i_mode, inode 329 fs/ocfs2/inode.c inode->i_rdev); inode 334 fs/ocfs2/inode.c inode->i_ino = ino_from_blkno(inode->i_sb, inode 344 fs/ocfs2/inode.c ocfs2_inode_lock_res_init(&OCFS2_I(inode)->ip_inode_lockres, inode 345 fs/ocfs2/inode.c OCFS2_LOCK_TYPE_META, 0, inode); inode 347 fs/ocfs2/inode.c ocfs2_inode_lock_res_init(&OCFS2_I(inode)->ip_open_lockres, inode 348 fs/ocfs2/inode.c OCFS2_LOCK_TYPE_OPEN, 0, inode); inode 351 fs/ocfs2/inode.c ocfs2_inode_lock_res_init(&OCFS2_I(inode)->ip_rw_lockres, inode 352 fs/ocfs2/inode.c OCFS2_LOCK_TYPE_RW, inode->i_generation, inode 353 fs/ocfs2/inode.c inode); inode 355 fs/ocfs2/inode.c ocfs2_set_inode_flags(inode); inode 373 fs/ocfs2/inode.c mlog_entry("(0x%p, 0x%p)\n", inode, args); inode 376 fs/ocfs2/inode.c if (inode == NULL || inode->i_sb == NULL) { inode 380 fs/ocfs2/inode.c sb = inode->i_sb; inode 385 fs/ocfs2/inode.c make_bad_inode(inode); inode 432 fs/ocfs2/inode.c ocfs2_inode_lock_res_init(&OCFS2_I(inode)->ip_inode_lockres, inode 434 fs/ocfs2/inode.c generation, inode); inode 436 fs/ocfs2/inode.c ocfs2_inode_lock_res_init(&OCFS2_I(inode)->ip_open_lockres, inode 438 fs/ocfs2/inode.c 0, inode); inode 441 fs/ocfs2/inode.c status = ocfs2_open_lock(inode); inode 443 fs/ocfs2/inode.c make_bad_inode(inode); inode 447 fs/ocfs2/inode.c status = ocfs2_inode_lock(inode, NULL, 0); inode 449 fs/ocfs2/inode.c make_bad_inode(inode); inode 456 fs/ocfs2/inode.c status = ocfs2_try_open_lock(inode, 0); inode 458 fs/ocfs2/inode.c make_bad_inode(inode); inode 464 fs/ocfs2/inode.c status = ocfs2_read_blocks(inode, args->fi_blkno, 1, &bh, inode 494 fs/ocfs2/inode.c inode->i_rdev = huge_decode_dev(le64_to_cpu(fe->id1.dev1.i_rdev)); inode 496 fs/ocfs2/inode.c if (ocfs2_populate_inode(inode, fe, 0) < 0) inode 505 fs/ocfs2/inode.c ocfs2_inode_unlock(inode, 0); inode 508 fs/ocfs2/inode.c make_bad_inode(inode); inode 540 fs/ocfs2/inode.c if (ocfs2_should_order_data(inode)) inode 541 fs/ocfs2/inode.c ocfs2_begin_ordered_truncate(inode, 0); inode 550 fs/ocfs2/inode.c status = ocfs2_journal_access(handle, inode, fe_bh, inode 557 fs/ocfs2/inode.c i_size_write(inode, 0); inode 559 fs/ocfs2/inode.c status = ocfs2_mark_inode_dirty(handle, inode, fe_bh); inode 568 fs/ocfs2/inode.c status = ocfs2_prepare_truncate(osb, inode, fe_bh, &tc); inode 574 fs/ocfs2/inode.c status = ocfs2_commit_truncate(osb, inode, fe_bh, tc); inode 594 fs/ocfs2/inode.c struct inode *inode_alloc_inode = NULL; inode 597 fs/ocfs2/inode.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 625 fs/ocfs2/inode.c status = ocfs2_orphan_del(osb, handle, orphan_dir_inode, inode, inode 633 fs/ocfs2/inode.c status = ocfs2_journal_access(handle, inode, di_bh, inode 649 fs/ocfs2/inode.c ocfs2_remove_from_cache(inode, di_bh); inode 708 fs/ocfs2/inode.c struct inode *orphan_dir_inode = NULL; inode 710 fs/ocfs2/inode.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 745 fs/ocfs2/inode.c status = ocfs2_truncate_for_delete(osb, inode, di_bh); inode 752 fs/ocfs2/inode.c status = ocfs2_xattr_remove(inode, di_bh); inode 758 fs/ocfs2/inode.c status = ocfs2_remove_inode(inode, di_bh, orphan_dir_inode, inode 779 fs/ocfs2/inode.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 780 fs/ocfs2/inode.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 784 fs/ocfs2/inode.c if (inode == osb->root_inode) { inode 796 fs/ocfs2/inode.c "in downconvert\n", inode->i_ino); inode 815 fs/ocfs2/inode.c "has done this for us.\n", inode->i_ino); inode 835 fs/ocfs2/inode.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 843 fs/ocfs2/inode.c if (!ocfs2_inode_is_valid_to_delete(inode)) { inode 851 fs/ocfs2/inode.c if (inode->i_nlink) { inode 853 fs/ocfs2/inode.c (unsigned long long)oi->ip_blkno, inode->i_nlink); inode 890 fs/ocfs2/inode.c status = ocfs2_try_open_lock(inode, 1); inode 918 fs/ocfs2/inode.c (unsigned long long)OCFS2_I(inode)->ip_blkno, sync_data); inode 920 fs/ocfs2/inode.c write_inode_now(inode, 1); inode 921 fs/ocfs2/inode.c truncate_inode_pages(&inode->i_data, 0); inode 930 fs/ocfs2/inode.c mlog_entry("(inode->i_ino = %lu)\n", inode->i_ino); inode 932 fs/ocfs2/inode.c if (is_bad_inode(inode)) { inode 937 fs/ocfs2/inode.c if (!ocfs2_inode_is_valid_to_delete(inode)) { inode 941 fs/ocfs2/inode.c ocfs2_cleanup_delete_inode(inode, 0); inode 953 fs/ocfs2/inode.c ocfs2_cleanup_delete_inode(inode, 1); inode 965 fs/ocfs2/inode.c status = ocfs2_inode_lock(inode, &di_bh, 1); inode 969 fs/ocfs2/inode.c ocfs2_cleanup_delete_inode(inode, 0); inode 975 fs/ocfs2/inode.c status = ocfs2_query_inode_wipe(inode, di_bh, &wipe); inode 986 fs/ocfs2/inode.c ocfs2_cleanup_delete_inode(inode, 1); inode 990 fs/ocfs2/inode.c ocfs2_cleanup_delete_inode(inode, 0); inode 992 fs/ocfs2/inode.c status = ocfs2_wipe_inode(inode, di_bh); inode 1008 fs/ocfs2/inode.c OCFS2_I(inode)->ip_flags |= OCFS2_INODE_DELETED; inode 1011 fs/ocfs2/inode.c ocfs2_inode_unlock(inode, 1); inode 1018 fs/ocfs2/inode.c clear_inode(inode); inode 1025 fs/ocfs2/inode.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 1029 fs/ocfs2/inode.c if (!inode) inode 1033 fs/ocfs2/inode.c (unsigned long long)OCFS2_I(inode)->ip_blkno, inode->i_nlink); inode 1035 fs/ocfs2/inode.c mlog_bug_on_msg(OCFS2_SB(inode->i_sb) == NULL, inode 1036 fs/ocfs2/inode.c "Inode=%lu\n", inode->i_ino); inode 1040 fs/ocfs2/inode.c ocfs2_open_unlock(inode); inode 1054 fs/ocfs2/inode.c if (!(OCFS2_I(inode)->ip_flags & OCFS2_INODE_DELETED)) inode 1055 fs/ocfs2/inode.c ocfs2_checkpoint_inode(inode); inode 1061 fs/ocfs2/inode.c ocfs2_extent_map_trunc(inode, 0); inode 1063 fs/ocfs2/inode.c status = ocfs2_drop_inode_locks(inode); inode 1071 fs/ocfs2/inode.c ocfs2_metadata_cache_purge(inode); inode 1109 fs/ocfs2/inode.c jbd2_journal_release_jbd_inode(OCFS2_SB(inode->i_sb)->journal->j_journal, inode 1121 fs/ocfs2/inode.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 1126 fs/ocfs2/inode.c (unsigned long long)oi->ip_blkno, inode->i_nlink, oi->ip_flags); inode 1129 fs/ocfs2/inode.c generic_delete_inode(inode); inode 1131 fs/ocfs2/inode.c generic_drop_inode(inode); inode 1141 fs/ocfs2/inode.c struct inode *inode = dentry->d_inode; inode 1144 fs/ocfs2/inode.c mlog_entry("(inode = 0x%p, ino = %llu)\n", inode, inode 1145 fs/ocfs2/inode.c inode ? (unsigned long long)OCFS2_I(inode)->ip_blkno : 0ULL); inode 1147 fs/ocfs2/inode.c if (!inode) { inode 1153 fs/ocfs2/inode.c spin_lock(&OCFS2_I(inode)->ip_lock); inode 1154 fs/ocfs2/inode.c if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_DELETED) { inode 1155 fs/ocfs2/inode.c spin_unlock(&OCFS2_I(inode)->ip_lock); inode 1160 fs/ocfs2/inode.c spin_unlock(&OCFS2_I(inode)->ip_lock); inode 1164 fs/ocfs2/inode.c status = ocfs2_inode_lock(inode, NULL, 0); inode 1170 fs/ocfs2/inode.c ocfs2_inode_unlock(inode, 0); inode 1190 fs/ocfs2/inode.c (unsigned long long)OCFS2_I(inode)->ip_blkno); inode 1192 fs/ocfs2/inode.c status = ocfs2_journal_access(handle, inode, bh, inode 1199 fs/ocfs2/inode.c spin_lock(&OCFS2_I(inode)->ip_lock); inode 1200 fs/ocfs2/inode.c fe->i_clusters = cpu_to_le32(OCFS2_I(inode)->ip_clusters); inode 1201 fs/ocfs2/inode.c ocfs2_get_inode_flags(OCFS2_I(inode)); inode 1202 fs/ocfs2/inode.c fe->i_attr = cpu_to_le32(OCFS2_I(inode)->ip_attr); inode 1203 fs/ocfs2/inode.c fe->i_dyn_features = cpu_to_le16(OCFS2_I(inode)->ip_dyn_features); inode 1204 fs/ocfs2/inode.c spin_unlock(&OCFS2_I(inode)->ip_lock); inode 1206 fs/ocfs2/inode.c fe->i_size = cpu_to_le64(i_size_read(inode)); inode 1207 fs/ocfs2/inode.c fe->i_links_count = cpu_to_le16(inode->i_nlink); inode 1208 fs/ocfs2/inode.c fe->i_uid = cpu_to_le32(inode->i_uid); inode 1209 fs/ocfs2/inode.c fe->i_gid = cpu_to_le32(inode->i_gid); inode 1210 fs/ocfs2/inode.c fe->i_mode = cpu_to_le16(inode->i_mode); inode 1211 fs/ocfs2/inode.c fe->i_atime = cpu_to_le64(inode->i_atime.tv_sec); inode 1212 fs/ocfs2/inode.c fe->i_atime_nsec = cpu_to_le32(inode->i_atime.tv_nsec); inode 1213 fs/ocfs2/inode.c fe->i_ctime = cpu_to_le64(inode->i_ctime.tv_sec); inode 1214 fs/ocfs2/inode.c fe->i_ctime_nsec = cpu_to_le32(inode->i_ctime.tv_nsec); inode 1215 fs/ocfs2/inode.c fe->i_mtime = cpu_to_le64(inode->i_mtime.tv_sec); inode 1216 fs/ocfs2/inode.c fe->i_mtime_nsec = cpu_to_le32(inode->i_mtime.tv_nsec); inode 1237 fs/ocfs2/inode.c spin_lock(&OCFS2_I(inode)->ip_lock); inode 1239 fs/ocfs2/inode.c OCFS2_I(inode)->ip_clusters = le32_to_cpu(fe->i_clusters); inode 1240 fs/ocfs2/inode.c OCFS2_I(inode)->ip_attr = le32_to_cpu(fe->i_attr); inode 1241 fs/ocfs2/inode.c OCFS2_I(inode)->ip_dyn_features = le16_to_cpu(fe->i_dyn_features); inode 1242 fs/ocfs2/inode.c ocfs2_set_inode_flags(inode); inode 1243 fs/ocfs2/inode.c i_size_write(inode, le64_to_cpu(fe->i_size)); inode 1244 fs/ocfs2/inode.c inode->i_nlink = le16_to_cpu(fe->i_links_count); inode 1245 fs/ocfs2/inode.c inode->i_uid = le32_to_cpu(fe->i_uid); inode 1246 fs/ocfs2/inode.c inode->i_gid = le32_to_cpu(fe->i_gid); inode 1247 fs/ocfs2/inode.c inode->i_mode = le16_to_cpu(fe->i_mode); inode 1248 fs/ocfs2/inode.c if (S_ISLNK(inode->i_mode) && le32_to_cpu(fe->i_clusters) == 0) inode 1249 fs/ocfs2/inode.c inode->i_blocks = 0; inode 1251 fs/ocfs2/inode.c inode->i_blocks = ocfs2_inode_sector_count(inode); inode 1252 fs/ocfs2/inode.c inode->i_atime.tv_sec = le64_to_cpu(fe->i_atime); inode 1253 fs/ocfs2/inode.c inode->i_atime.tv_nsec = le32_to_cpu(fe->i_atime_nsec); inode 1254 fs/ocfs2/inode.c inode->i_mtime.tv_sec = le64_to_cpu(fe->i_mtime); inode 1255 fs/ocfs2/inode.c inode->i_mtime.tv_nsec = le32_to_cpu(fe->i_mtime_nsec); inode 1256 fs/ocfs2/inode.c inode->i_ctime.tv_sec = le64_to_cpu(fe->i_ctime); inode 1257 fs/ocfs2/inode.c inode->i_ctime.tv_nsec = le32_to_cpu(fe->i_ctime_nsec); inode 1259 fs/ocfs2/inode.c spin_unlock(&OCFS2_I(inode)->ip_lock); inode 59 fs/ocfs2/inode.h struct inode *ip_next_orphan; inode 73 fs/ocfs2/inode.h struct inode vfs_inode; inode 110 fs/ocfs2/inode.h return container_of(inode, struct ocfs2_inode_info, vfs_inode); inode 127 fs/ocfs2/inode.h struct inode *ocfs2_iget(struct ocfs2_super *osb, u64 feoff, unsigned flags, inode 151 fs/ocfs2/inode.h int c_to_s_bits = OCFS2_SB(inode->i_sb)->s_clustersize_bits - 9; inode 153 fs/ocfs2/inode.h return (blkcnt_t)(OCFS2_I(inode)->ip_clusters << c_to_s_bits); inode 32 fs/ocfs2/ioctl.c status = ocfs2_inode_lock(inode, NULL, 0); inode 37 fs/ocfs2/ioctl.c ocfs2_get_inode_flags(OCFS2_I(inode)); inode 38 fs/ocfs2/ioctl.c *flags = OCFS2_I(inode)->ip_attr; inode 39 fs/ocfs2/ioctl.c ocfs2_inode_unlock(inode, 0); inode 48 fs/ocfs2/ioctl.c struct ocfs2_inode_info *ocfs2_inode = OCFS2_I(inode); inode 49 fs/ocfs2/ioctl.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 55 fs/ocfs2/ioctl.c mutex_lock(&inode->i_mutex); inode 57 fs/ocfs2/ioctl.c status = ocfs2_inode_lock(inode, &bh, 1); inode 64 fs/ocfs2/ioctl.c if (!is_owner_or_cap(inode)) inode 67 fs/ocfs2/ioctl.c if (!S_ISDIR(inode->i_mode)) inode 93 fs/ocfs2/ioctl.c ocfs2_set_inode_flags(inode); inode 95 fs/ocfs2/ioctl.c status = ocfs2_mark_inode_dirty(handle, inode, bh); inode 101 fs/ocfs2/ioctl.c ocfs2_inode_unlock(inode, 1); inode 103 fs/ocfs2/ioctl.c mutex_unlock(&inode->i_mutex); inode 113 fs/ocfs2/ioctl.c struct inode *inode = filp->f_path.dentry->d_inode; inode 122 fs/ocfs2/ioctl.c status = ocfs2_get_inode_attr(inode, &flags); inode 135 fs/ocfs2/ioctl.c status = ocfs2_set_inode_attr(inode, flags, inode 154 fs/ocfs2/ioctl.c return ocfs2_group_extend(inode, new_clusters); inode 163 fs/ocfs2/ioctl.c return ocfs2_group_add(inode, &input); inode 367 fs/ocfs2/journal.c BUG_ON(!inode); inode 392 fs/ocfs2/journal.c ocfs2_set_inode_lock_trans(OCFS2_SB(inode->i_sb)->journal, inode); inode 394 fs/ocfs2/journal.c mutex_lock(&OCFS2_I(inode)->ip_io_mutex); inode 409 fs/ocfs2/journal.c mutex_unlock(&OCFS2_I(inode)->ip_io_mutex); inode 473 fs/ocfs2/journal.c struct inode *inode = NULL; /* the journal inode */ inode 487 fs/ocfs2/journal.c inode = ocfs2_get_system_file_inode(osb, JOURNAL_SYSTEM_INODE, inode 489 fs/ocfs2/journal.c if (inode == NULL) { inode 494 fs/ocfs2/journal.c if (is_bad_inode(inode)) { inode 496 fs/ocfs2/journal.c iput(inode); inode 497 fs/ocfs2/journal.c inode = NULL; inode 502 fs/ocfs2/journal.c SET_INODE_JOURNAL(inode); inode 503 fs/ocfs2/journal.c OCFS2_I(inode)->ip_open_count++; inode 508 fs/ocfs2/journal.c status = ocfs2_inode_lock_full(inode, &bh, 1, OCFS2_META_LOCK_RECOVERY); inode 518 fs/ocfs2/journal.c if (inode->i_size < OCFS2_MIN_JOURNAL_SIZE) { inode 520 fs/ocfs2/journal.c inode->i_size); inode 525 fs/ocfs2/journal.c mlog(0, "inode->i_size = %lld\n", inode->i_size); inode 527 fs/ocfs2/journal.c (unsigned long long)inode->i_blocks); inode 528 fs/ocfs2/journal.c mlog(0, "inode->ip_clusters = %u\n", OCFS2_I(inode)->ip_clusters); inode 531 fs/ocfs2/journal.c j_journal = jbd2_journal_init_inode(inode); inode 545 fs/ocfs2/journal.c journal->j_inode = inode; inode 556 fs/ocfs2/journal.c ocfs2_inode_unlock(inode, 1); inode 558 fs/ocfs2/journal.c if (inode) { inode 559 fs/ocfs2/journal.c OCFS2_I(inode)->ip_open_count--; inode 560 fs/ocfs2/journal.c iput(inode); inode 629 fs/ocfs2/journal.c struct inode *inode = NULL; inode 640 fs/ocfs2/journal.c inode = journal->j_inode; inode 646 fs/ocfs2/journal.c if (!igrab(inode)) inode 694 fs/ocfs2/journal.c OCFS2_I(inode)->ip_open_count--; inode 697 fs/ocfs2/journal.c ocfs2_inode_unlock(inode, 1); inode 706 fs/ocfs2/journal.c if (inode) inode 707 fs/ocfs2/journal.c iput(inode); inode 838 fs/ocfs2/journal.c num_blocks = ocfs2_blocks_for_bytes(inode->i_sb, inode->i_size); inode 841 fs/ocfs2/journal.c status = ocfs2_extent_map_get_blocks(inode, v_blkno, inode 853 fs/ocfs2/journal.c status = ocfs2_read_blocks_sync(OCFS2_SB(inode->i_sb), inode 1125 fs/ocfs2/journal.c struct inode *inode = NULL; inode 1129 fs/ocfs2/journal.c inode = ocfs2_get_system_file_inode(osb, JOURNAL_SYSTEM_INODE, inode 1131 fs/ocfs2/journal.c if (!inode || is_bad_inode(inode)) { inode 1135 fs/ocfs2/journal.c SET_INODE_JOURNAL(inode); inode 1137 fs/ocfs2/journal.c status = ocfs2_read_blocks(inode, OCFS2_I(inode)->ip_blkno, 1, bh, inode 1147 fs/ocfs2/journal.c if (inode) { inode 1149 fs/ocfs2/journal.c iput(inode); inode 1151 fs/ocfs2/journal.c *ret_inode = inode; inode 1165 fs/ocfs2/journal.c struct inode *inode = NULL; inode 1171 fs/ocfs2/journal.c status = ocfs2_read_journal_inode(osb, slot_num, &bh, &inode); inode 1200 fs/ocfs2/journal.c status = ocfs2_inode_lock_full(inode, &bh, 1, OCFS2_META_LOCK_RECOVERY); inode 1225 fs/ocfs2/journal.c OCFS2_I(inode)->ip_clusters = le32_to_cpu(fe->i_clusters); inode 1227 fs/ocfs2/journal.c status = ocfs2_force_read_journal(inode); inode 1234 fs/ocfs2/journal.c journal = jbd2_journal_init_inode(inode); inode 1244 fs/ocfs2/journal.c if (!igrab(inode)) inode 1270 fs/ocfs2/journal.c status = ocfs2_write_block(osb, bh, inode); inode 1274 fs/ocfs2/journal.c if (!igrab(inode)) inode 1282 fs/ocfs2/journal.c ocfs2_inode_unlock(inode, 1); inode 1284 fs/ocfs2/journal.c if (inode) inode 1285 fs/ocfs2/journal.c iput(inode); inode 1382 fs/ocfs2/journal.c struct inode *inode = NULL; inode 1384 fs/ocfs2/journal.c inode = ocfs2_get_system_file_inode(osb, JOURNAL_SYSTEM_INODE, inode 1386 fs/ocfs2/journal.c if (inode == NULL) { inode 1391 fs/ocfs2/journal.c if (is_bad_inode(inode)) { inode 1393 fs/ocfs2/journal.c iput(inode); inode 1394 fs/ocfs2/journal.c inode = NULL; inode 1398 fs/ocfs2/journal.c SET_INODE_JOURNAL(inode); inode 1401 fs/ocfs2/journal.c status = ocfs2_inode_lock_full(inode, NULL, 1, flags); inode 1408 fs/ocfs2/journal.c ocfs2_inode_unlock(inode, 1); inode 1410 fs/ocfs2/journal.c if (inode) inode 1411 fs/ocfs2/journal.c iput(inode); inode 1486 fs/ocfs2/journal.c struct inode *head; inode 1494 fs/ocfs2/journal.c struct inode *iter; inode 1522 fs/ocfs2/journal.c struct inode *orphan_dir_inode = NULL; inode 1620 fs/ocfs2/journal.c struct inode *inode = NULL; inode 1621 fs/ocfs2/journal.c struct inode *iter; inode 1627 fs/ocfs2/journal.c ret = ocfs2_queue_orphans(osb, slot, &inode); inode 1635 fs/ocfs2/journal.c while (inode) { inode 1636 fs/ocfs2/journal.c oi = OCFS2_I(inode); inode 1653 fs/ocfs2/journal.c iput(inode); inode 1655 fs/ocfs2/journal.c inode = iter; inode 50 fs/ocfs2/journal.h struct inode *j_inode; /* Kernel inode pointing to inode 91 fs/ocfs2/journal.h OCFS2_I(inode)->ip_last_trans = journal->j_trans_id; inode 103 fs/ocfs2/journal.h struct ocfs2_journal *journal = OCFS2_SB(inode->i_sb)->journal; inode 106 fs/ocfs2/journal.h ret = time_after(journal->j_trans_id, OCFS2_I(inode)->ip_last_trans); inode 121 fs/ocfs2/journal.h if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_SYSTEM_FILE) inode 124 fs/ocfs2/journal.h ret = !(time_after(OCFS2_SB(inode->i_sb)->journal->j_trans_id, inode 125 fs/ocfs2/journal.h OCFS2_I(inode)->ip_created_trans)); inode 127 fs/ocfs2/journal.h OCFS2_I(inode)->ip_created_trans = 0; inode 136 fs/ocfs2/journal.h OCFS2_I(inode)->ip_created_trans = osb->journal->j_trans_id; inode 185 fs/ocfs2/journal.h struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 190 fs/ocfs2/journal.h if (!ocfs2_inode_fully_checkpointed(inode)) { inode 200 fs/ocfs2/journal.h ocfs2_inode_fully_checkpointed(inode)); inode 442 fs/ocfs2/journal.h return jbd2_journal_file_inode(handle, &OCFS2_I(inode)->ip_jinode); inode 448 fs/ocfs2/journal.h return jbd2_journal_begin_ordered_truncate(&OCFS2_I(inode)->ip_jinode, inode 81 fs/ocfs2/localalloc.c file->private_data = inode->i_private; inode 223 fs/ocfs2/localalloc.c struct inode *inode = NULL; inode 243 fs/ocfs2/localalloc.c inode = ocfs2_get_system_file_inode(osb, LOCAL_ALLOC_SYSTEM_INODE, inode 245 fs/ocfs2/localalloc.c if (!inode) { inode 251 fs/ocfs2/localalloc.c status = ocfs2_read_blocks(inode, OCFS2_I(inode)->ip_blkno, 1, inode 264 fs/ocfs2/localalloc.c (unsigned long long)OCFS2_I(inode)->ip_blkno); inode 270 fs/ocfs2/localalloc.c (le16_to_cpu(la->la_size) > ocfs2_local_alloc_size(inode->i_sb))) { inode 298 fs/ocfs2/localalloc.c if (inode) inode 299 fs/ocfs2/localalloc.c iput(inode); inode 321 fs/ocfs2/localalloc.c struct inode *local_alloc_inode = NULL; inode 324 fs/ocfs2/localalloc.c struct inode *main_bm_inode = NULL; inode 444 fs/ocfs2/localalloc.c struct inode *inode = NULL; inode 451 fs/ocfs2/localalloc.c inode = ocfs2_get_system_file_inode(osb, inode 454 fs/ocfs2/localalloc.c if (!inode) { inode 460 fs/ocfs2/localalloc.c mutex_lock(&inode->i_mutex); inode 462 fs/ocfs2/localalloc.c status = ocfs2_read_blocks(inode, OCFS2_I(inode)->ip_blkno, 1, inode 479 fs/ocfs2/localalloc.c status = ocfs2_write_block(osb, alloc_bh, inode); inode 491 fs/ocfs2/localalloc.c if (inode) { inode 492 fs/ocfs2/localalloc.c mutex_unlock(&inode->i_mutex); inode 493 fs/ocfs2/localalloc.c iput(inode); inode 512 fs/ocfs2/localalloc.c struct inode *main_bm_inode; inode 573 fs/ocfs2/localalloc.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 596 fs/ocfs2/localalloc.c block_off = ocfs2_clusters_to_blocks(inode->i_sb, inode 621 fs/ocfs2/localalloc.c struct inode *local_alloc_inode; inode 739 fs/ocfs2/localalloc.c struct inode *local_alloc_inode; inode 1199 fs/ocfs2/localalloc.c struct inode *main_bm_inode = NULL; inode 111 fs/ocfs2/locks.c struct inode *inode = file->f_mapping->host; inode 112 fs/ocfs2/locks.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 116 fs/ocfs2/locks.c if (__mandatory_lock(inode)) inode 126 fs/ocfs2/locks.c return ocfs2_do_flock(file, inode, cmd, fl); inode 131 fs/ocfs2/locks.c struct inode *inode = file->f_mapping->host; inode 132 fs/ocfs2/locks.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 136 fs/ocfs2/locks.c if (__mandatory_lock(inode)) inode 139 fs/ocfs2/locks.c return ocfs2_plock(osb->cconn, OCFS2_I(inode)->ip_blkno, file, cmd, fl); inode 91 fs/ocfs2/mmap.c struct address_space *mapping = inode->i_mapping; inode 97 fs/ocfs2/mmap.c loff_t size = i_size_read(inode); inode 115 fs/ocfs2/mmap.c if (!PageUptodate(page) || page->mapping != inode->i_mapping) { inode 155 fs/ocfs2/mmap.c struct inode *inode = vma->vm_file->f_path.dentry->d_inode; inode 171 fs/ocfs2/mmap.c ret = ocfs2_inode_lock(inode, &di_bh, 1); inode 182 fs/ocfs2/mmap.c down_write(&OCFS2_I(inode)->ip_alloc_sem); inode 184 fs/ocfs2/mmap.c ret = __ocfs2_page_mkwrite(inode, di_bh, page); inode 186 fs/ocfs2/mmap.c up_write(&OCFS2_I(inode)->ip_alloc_sem); inode 189 fs/ocfs2/mmap.c ocfs2_inode_unlock(inode, 1); inode 104 fs/ocfs2/namei.c struct inode *inode = NULL; inode 132 fs/ocfs2/namei.c inode = ocfs2_iget(OCFS2_SB(dir->i_sb), blkno, 0, 0); inode 133 fs/ocfs2/namei.c if (IS_ERR(inode)) { inode 138 fs/ocfs2/namei.c oi = OCFS2_I(inode); inode 150 fs/ocfs2/namei.c ret = d_splice_alias(inode, dentry); inode 152 fs/ocfs2/namei.c if (inode) { inode 166 fs/ocfs2/namei.c status = ocfs2_dentry_attach_lock(dentry, inode, inode 201 fs/ocfs2/namei.c struct inode *inode = NULL; inode 274 fs/ocfs2/namei.c &inode, inode_ac); inode 281 fs/ocfs2/namei.c status = ocfs2_fill_new_dir(osb, handle, dir, inode, inode 303 fs/ocfs2/namei.c status = ocfs2_add_entry(handle, dentry, inode, inode 304 fs/ocfs2/namei.c OCFS2_I(inode)->ip_blkno, parent_fe_bh, inode 311 fs/ocfs2/namei.c status = ocfs2_dentry_attach_lock(dentry, inode, inode 318 fs/ocfs2/namei.c insert_inode_hash(inode); inode 320 fs/ocfs2/namei.c d_instantiate(dentry, inode); inode 335 fs/ocfs2/namei.c if ((status < 0) && inode) inode 336 fs/ocfs2/namei.c iput(inode); inode 364 fs/ocfs2/namei.c struct inode *inode = NULL; inode 380 fs/ocfs2/namei.c inode = new_inode(dir->i_sb); inode 381 fs/ocfs2/namei.c if (IS_ERR(inode)) { inode 382 fs/ocfs2/namei.c status = PTR_ERR(inode); inode 390 fs/ocfs2/namei.c inode->i_ino = ino_from_blkno(osb->sb, fe_blkno); inode 391 fs/ocfs2/namei.c OCFS2_I(inode)->ip_blkno = fe_blkno; inode 393 fs/ocfs2/namei.c inode->i_nlink = 2; inode 395 fs/ocfs2/namei.c inode->i_nlink = 1; inode 396 fs/ocfs2/namei.c inode->i_mode = mode; inode 398 fs/ocfs2/namei.c inode->i_generation = osb->s_next_generation++; inode 407 fs/ocfs2/namei.c ocfs2_set_new_buffer_uptodate(inode, *new_fe_bh); inode 409 fs/ocfs2/namei.c status = ocfs2_journal_access(handle, inode, *new_fe_bh, inode 419 fs/ocfs2/namei.c fe->i_generation = cpu_to_le32(inode->i_generation); inode 435 fs/ocfs2/namei.c fe->i_links_count = cpu_to_le16(inode->i_nlink); inode 468 fs/ocfs2/namei.c if (ocfs2_populate_inode(inode, fe, 1) < 0) { inode 473 fs/ocfs2/namei.c inode->i_ino); inode 477 fs/ocfs2/namei.c ocfs2_inode_set_new(osb, inode); inode 479 fs/ocfs2/namei.c status = ocfs2_create_new_inode_locks(inode); inode 487 fs/ocfs2/namei.c *ret_inode = inode; inode 494 fs/ocfs2/namei.c if (inode) inode 495 fs/ocfs2/namei.c iput(inode); inode 536 fs/ocfs2/namei.c struct inode *inode = old_dentry->d_inode; inode 544 fs/ocfs2/namei.c mlog_entry("(inode=%lu, old='%.*s' new='%.*s')\n", inode->i_ino, inode 548 fs/ocfs2/namei.c if (S_ISDIR(inode->i_mode)) inode 576 fs/ocfs2/namei.c err = ocfs2_inode_lock(inode, &fe_bh, 1); inode 597 fs/ocfs2/namei.c err = ocfs2_journal_access(handle, inode, fe_bh, inode 604 fs/ocfs2/namei.c inc_nlink(inode); inode 605 fs/ocfs2/namei.c inode->i_ctime = CURRENT_TIME; inode 606 fs/ocfs2/namei.c fe->i_links_count = cpu_to_le16(inode->i_nlink); inode 607 fs/ocfs2/namei.c fe->i_ctime = cpu_to_le64(inode->i_ctime.tv_sec); inode 608 fs/ocfs2/namei.c fe->i_ctime_nsec = cpu_to_le32(inode->i_ctime.tv_nsec); inode 613 fs/ocfs2/namei.c drop_nlink(inode); inode 618 fs/ocfs2/namei.c err = ocfs2_add_entry(handle, dentry, inode, inode 619 fs/ocfs2/namei.c OCFS2_I(inode)->ip_blkno, inode 623 fs/ocfs2/namei.c drop_nlink(inode); inode 628 fs/ocfs2/namei.c err = ocfs2_dentry_attach_lock(dentry, inode, OCFS2_I(dir)->ip_blkno); inode 634 fs/ocfs2/namei.c atomic_inc(&inode->i_count); inode 636 fs/ocfs2/namei.c d_instantiate(dentry, inode); inode 641 fs/ocfs2/namei.c ocfs2_inode_unlock(inode, 1); inode 674 fs/ocfs2/namei.c if (S_ISDIR(inode->i_mode)) { inode 675 fs/ocfs2/namei.c if (inode->i_nlink == 2) inode 680 fs/ocfs2/namei.c if (inode->i_nlink == 1) inode 690 fs/ocfs2/namei.c struct inode *inode = dentry->d_inode; inode 691 fs/ocfs2/namei.c struct inode *orphan_dir = NULL; inode 708 fs/ocfs2/namei.c mlog(0, "ino = %llu\n", (unsigned long long)OCFS2_I(inode)->ip_blkno); inode 710 fs/ocfs2/namei.c if (inode == osb->root_inode) { inode 731 fs/ocfs2/namei.c if (OCFS2_I(inode)->ip_blkno != blkno) { inode 735 fs/ocfs2/namei.c (unsigned long long)OCFS2_I(inode)->ip_blkno, inode 736 fs/ocfs2/namei.c (unsigned long long)blkno, OCFS2_I(inode)->ip_flags); inode 740 fs/ocfs2/namei.c status = ocfs2_inode_lock(inode, &fe_bh, 1); inode 748 fs/ocfs2/namei.c if (S_ISDIR(inode->i_mode)) { inode 749 fs/ocfs2/namei.c if (!ocfs2_empty_dir(inode)) { inode 752 fs/ocfs2/namei.c } else if (inode->i_nlink != 2) { inode 766 fs/ocfs2/namei.c if (inode_is_unlinkable(inode)) { inode 767 fs/ocfs2/namei.c status = ocfs2_prepare_orphan_dir(osb, &orphan_dir, inode, inode 784 fs/ocfs2/namei.c status = ocfs2_journal_access(handle, inode, fe_bh, inode 793 fs/ocfs2/namei.c if (inode_is_unlinkable(inode)) { inode 794 fs/ocfs2/namei.c status = ocfs2_orphan_add(osb, handle, inode, fe, orphan_name, inode 809 fs/ocfs2/namei.c if (S_ISDIR(inode->i_mode)) inode 810 fs/ocfs2/namei.c drop_nlink(inode); inode 811 fs/ocfs2/namei.c drop_nlink(inode); inode 812 fs/ocfs2/namei.c fe->i_links_count = cpu_to_le16(inode->i_nlink); inode 821 fs/ocfs2/namei.c if (S_ISDIR(inode->i_mode)) inode 827 fs/ocfs2/namei.c if (S_ISDIR(inode->i_mode)) inode 836 fs/ocfs2/namei.c ocfs2_inode_unlock(inode, 1); inode 871 fs/ocfs2/namei.c struct inode *tmpinode; inode 938 fs/ocfs2/namei.c struct inode *old_inode = old_dentry->d_inode; inode 939 fs/ocfs2/namei.c struct inode *new_inode = new_dentry->d_inode; inode 940 fs/ocfs2/namei.c struct inode *orphan_dir = NULL; inode 1391 fs/ocfs2/namei.c bytes_left = i_size_read(inode) + 1; inode 1397 fs/ocfs2/namei.c (unsigned long long)inode->i_blocks, inode 1398 fs/ocfs2/namei.c i_size_read(inode), blocks); inode 1402 fs/ocfs2/namei.c ocfs2_clusters_to_bytes(sb, OCFS2_I(inode)->ip_clusters)) { inode 1415 fs/ocfs2/namei.c status = ocfs2_extent_map_get_blocks(inode, 0, &p_blkno, &p_blocks, inode 1441 fs/ocfs2/namei.c ocfs2_set_new_buffer_uptodate(inode, bhs[virtual]); inode 1443 fs/ocfs2/namei.c status = ocfs2_journal_access(handle, inode, bhs[virtual], inode 1487 fs/ocfs2/namei.c struct inode *inode = NULL; inode 1564 fs/ocfs2/namei.c &inode, inode_ac); inode 1571 fs/ocfs2/namei.c inode->i_rdev = 0; inode 1576 fs/ocfs2/namei.c inode->i_op = &ocfs2_symlink_inode_operations; inode 1577 fs/ocfs2/namei.c status = ocfs2_add_inode_data(osb, inode, &offset, 1, 0, inode 1591 fs/ocfs2/namei.c i_size_write(inode, newsize); inode 1592 fs/ocfs2/namei.c inode->i_blocks = ocfs2_inode_sector_count(inode); inode 1594 fs/ocfs2/namei.c inode->i_op = &ocfs2_fast_symlink_inode_operations; inode 1596 fs/ocfs2/namei.c i_size_write(inode, newsize); inode 1597 fs/ocfs2/namei.c inode->i_blocks = 0; inode 1600 fs/ocfs2/namei.c status = ocfs2_mark_inode_dirty(handle, inode, new_fe_bh); inode 1606 fs/ocfs2/namei.c if (!ocfs2_inode_is_fast_symlink(inode)) { inode 1607 fs/ocfs2/namei.c status = ocfs2_create_symlink_data(osb, handle, inode, inode 1615 fs/ocfs2/namei.c status = ocfs2_add_entry(handle, dentry, inode, inode 1623 fs/ocfs2/namei.c status = ocfs2_dentry_attach_lock(dentry, inode, OCFS2_I(dir)->ip_blkno); inode 1629 fs/ocfs2/namei.c insert_inode_hash(inode); inode 1631 fs/ocfs2/namei.c d_instantiate(dentry, inode); inode 1645 fs/ocfs2/namei.c if ((status < 0) && inode) inode 1646 fs/ocfs2/namei.c iput(inode); inode 1690 fs/ocfs2/namei.c struct inode *orphan_dir_inode; inode 1694 fs/ocfs2/namei.c status = ocfs2_blkno_stringify(OCFS2_I(inode)->ip_blkno, name); inode 1753 fs/ocfs2/namei.c mlog_entry("(inode->i_ino = %lu)\n", inode->i_ino); inode 1773 fs/ocfs2/namei.c if (S_ISDIR(inode->i_mode)) inode 1784 fs/ocfs2/namei.c OCFS2_ORPHAN_NAMELEN, inode, inode 1785 fs/ocfs2/namei.c OCFS2_I(inode)->ip_blkno, inode 1800 fs/ocfs2/namei.c (unsigned long long)OCFS2_I(inode)->ip_blkno, osb->slot_num); inode 1824 fs/ocfs2/namei.c status = ocfs2_blkno_stringify(OCFS2_I(inode)->ip_blkno, name); inode 1860 fs/ocfs2/namei.c if (S_ISDIR(inode->i_mode)) inode 212 fs/ocfs2/ocfs2.h struct inode *root_inode; inode 213 fs/ocfs2/ocfs2.h struct inode *sys_root_inode; inode 214 fs/ocfs2/ocfs2.h struct inode *system_inodes[NUM_SYSTEM_INODES]; inode 325 fs/ocfs2/ocfs2.h struct inode *osb_tl_inode; inode 338 fs/ocfs2/ocfs2.h if (!S_ISREG(inode->i_mode)) inode 340 fs/ocfs2/ocfs2.h if (OCFS2_SB(inode->i_sb)->s_mount_opt & OCFS2_MOUNT_DATA_WRITEBACK) inode 703 fs/ocfs2/ocfs2_fs.h /*00*/ __le64 inode; /* Inode number */ inode 67 fs/ocfs2/resize.c blkno = ocfs2_backup_super_blkno(inode->i_sb, i); inode 68 fs/ocfs2/resize.c cluster = ocfs2_blocks_to_clusters(inode->i_sb, blkno); inode 70 fs/ocfs2/resize.c gd_blkno = ocfs2_which_cluster_group(inode, cluster); inode 194 fs/ocfs2/resize.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 198 fs/ocfs2/resize.c blkno = ocfs2_backup_super_blkno(inode->i_sb, i); inode 199 fs/ocfs2/resize.c cluster = ocfs2_blocks_to_clusters(inode->i_sb, blkno); inode 209 fs/ocfs2/resize.c memcpy(backup->b_data, data, inode->i_sb->s_blocksize); inode 233 fs/ocfs2/resize.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 257 fs/ocfs2/resize.c ret = update_backups(inode, clusters, super_bh->b_data); inode 280 fs/ocfs2/resize.c struct inode *main_bm_inode = NULL; inode 283 fs/ocfs2/resize.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 343 fs/ocfs2/resize.c ret = ocfs2_check_group_descriptor(inode->i_sb, fe, group); inode 465 fs/ocfs2/resize.c u32 cluster = ocfs2_blocks_to_clusters(inode->i_sb, input->group); inode 485 fs/ocfs2/resize.c else if (input->group != ocfs2_which_cluster_group(inode, cluster)) inode 487 fs/ocfs2/resize.c else if ((ret = ocfs2_check_new_group(inode, di, input, group_bh))) inode 501 fs/ocfs2/resize.c struct inode *main_bm_inode = NULL; inode 503 fs/ocfs2/resize.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 549 fs/ocfs2/resize.c ocfs2_set_new_buffer_uptodate(inode, group_bh); inode 54 fs/ocfs2/slot_map.c struct inode *si_inode; inode 239 fs/ocfs2/slot_map.c if (bytes_needed > i_size_read(inode)) { inode 242 fs/ocfs2/slot_map.c i_size_read(inode), bytes_needed); inode 424 fs/ocfs2/slot_map.c struct inode *inode = NULL; inode 441 fs/ocfs2/slot_map.c inode = ocfs2_get_system_file_inode(osb, SLOT_MAP_SYSTEM_INODE, inode 443 fs/ocfs2/slot_map.c if (!inode) { inode 449 fs/ocfs2/slot_map.c si->si_inode = inode; inode 122 fs/ocfs2/suballoc.c struct inode *inode = ac->ac_inode; inode 124 fs/ocfs2/suballoc.c if (inode) { inode 126 fs/ocfs2/suballoc.c ocfs2_inode_unlock(inode, 1); inode 128 fs/ocfs2/suballoc.c mutex_unlock(&inode->i_mutex); inode 130 fs/ocfs2/suballoc.c iput(inode); inode 416 fs/ocfs2/suballoc.c struct inode *alloc_inode; inode 1034 fs/ocfs2/suballoc.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 1038 fs/ocfs2/suballoc.c BUG_ON(!ocfs2_is_cluster_bitmap(inode)); inode 1049 fs/ocfs2/suballoc.c gd_cluster_off = ocfs2_blocks_to_clusters(inode->i_sb, inode 1052 fs/ocfs2/suballoc.c OCFS2_I(inode)->ip_clusters) { inode 1053 fs/ocfs2/suballoc.c max_bits = OCFS2_I(inode)->ip_clusters - gd_cluster_off; inode 1057 fs/ocfs2/suballoc.c OCFS2_I(inode)->ip_clusters, max_bits); inode 1060 fs/ocfs2/suballoc.c ret = ocfs2_block_group_find_clear_bits(OCFS2_SB(inode->i_sb), inode 1068 fs/ocfs2/suballoc.c blkoff = ocfs2_clusters_to_blocks(inode->i_sb, inode 1109 fs/ocfs2/suballoc.c BUG_ON(ocfs2_is_cluster_bitmap(inode)); inode 1112 fs/ocfs2/suballoc.c ret = ocfs2_block_group_find_clear_bits(OCFS2_SB(inode->i_sb), inode 1141 fs/ocfs2/suballoc.c ret = ocfs2_journal_access(handle, inode, di_bh, inode 1173 fs/ocfs2/suballoc.c struct inode *alloc_inode = ac->ac_inode; inode 1232 fs/ocfs2/suballoc.c struct inode *alloc_inode = ac->ac_inode; inode 1574 fs/ocfs2/suballoc.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 1577 fs/ocfs2/suballoc.c BUG_ON(!ocfs2_is_cluster_bitmap(inode)); inode 1580 fs/ocfs2/suballoc.c cluster = ocfs2_blocks_to_clusters(inode->i_sb, bg_blkno); inode 1589 fs/ocfs2/suballoc.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 1592 fs/ocfs2/suballoc.c BUG_ON(!ocfs2_is_cluster_bitmap(inode)); inode 1597 fs/ocfs2/suballoc.c return ocfs2_clusters_to_blocks(inode->i_sb, inode 1608 fs/ocfs2/suballoc.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 1611 fs/ocfs2/suballoc.c BUG_ON(!ocfs2_is_cluster_bitmap(inode)); inode 1613 fs/ocfs2/suballoc.c *bg_blkno = ocfs2_which_cluster_group(inode, inode 1968 fs/ocfs2/suballoc.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 1976 fs/ocfs2/suballoc.c num_free_extents = ocfs2_num_free_extents(osb, inode, et); inode 38 fs/ocfs2/suballoc.h struct inode *ac_inode; /* which bitmap are we allocating from? */ inode 153 fs/ocfs2/suballoc.h struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 154 fs/ocfs2/suballoc.h return osb->bitmap_blkno == OCFS2_I(inode)->ip_blkno; inode 125 fs/ocfs2/super.c static struct inode *ocfs2_alloc_inode(struct super_block *sb); inode 226 fs/ocfs2/super.c struct inode *new = NULL; inode 271 fs/ocfs2/super.c struct inode *new = NULL; inode 300 fs/ocfs2/super.c struct inode *inode; inode 305 fs/ocfs2/super.c inode = osb->system_inodes[i]; inode 306 fs/ocfs2/super.c if (inode) { inode 307 fs/ocfs2/super.c iput(inode); inode 312 fs/ocfs2/super.c inode = osb->sys_root_inode; inode 313 fs/ocfs2/super.c if (inode) { inode 314 fs/ocfs2/super.c iput(inode); inode 318 fs/ocfs2/super.c inode = osb->root_inode; inode 319 fs/ocfs2/super.c if (inode) { inode 320 fs/ocfs2/super.c iput(inode); inode 328 fs/ocfs2/super.c static struct inode *ocfs2_alloc_inode(struct super_block *sb) inode 342 fs/ocfs2/super.c kmem_cache_free(ocfs2_inode_cachep, OCFS2_I(inode)); inode 627 fs/ocfs2/super.c struct inode *inode = NULL; inode 725 fs/ocfs2/super.c inode = igrab(osb->root_inode); inode 730 fs/ocfs2/super.c if (!inode) { inode 736 fs/ocfs2/super.c root = d_alloc_root(inode); inode 767 fs/ocfs2/super.c if (inode) inode 768 fs/ocfs2/super.c iput(inode); inode 1108 fs/ocfs2/super.c struct inode *inode = NULL; inode 1114 fs/ocfs2/super.c inode = ocfs2_get_system_file_inode(osb, inode 1117 fs/ocfs2/super.c if (!inode) { inode 1123 fs/ocfs2/super.c status = ocfs2_inode_lock(inode, &bh, 0); inode 1147 fs/ocfs2/super.c ocfs2_inode_unlock(inode, 0); inode 1150 fs/ocfs2/super.c if (inode) inode 1151 fs/ocfs2/super.c iput(inode); inode 1399 fs/ocfs2/super.c struct inode *inode = NULL; inode 1640 fs/ocfs2/super.c inode = ocfs2_get_system_file_inode(osb, GLOBAL_BITMAP_SYSTEM_INODE, inode 1642 fs/ocfs2/super.c if (!inode) { inode 1648 fs/ocfs2/super.c osb->bitmap_blkno = OCFS2_I(inode)->ip_blkno; inode 1649 fs/ocfs2/super.c iput(inode); inode 87 fs/ocfs2/symlink.c status = ocfs2_read_block(inode, OCFS2_I(inode)->ip_blkno, bh); inode 109 fs/ocfs2/symlink.c struct inode *inode = dentry->d_inode; inode 113 fs/ocfs2/symlink.c link = ocfs2_fast_symlink_getlink(inode, &bh); inode 136 fs/ocfs2/symlink.c struct inode *inode = dentry->d_inode; inode 140 fs/ocfs2/symlink.c if (ocfs2_inode_is_fast_symlink(inode)) inode 141 fs/ocfs2/symlink.c link = ocfs2_fast_symlink_getlink(inode, &bh); inode 37 fs/ocfs2/symlink.h return (S_ISLNK(inode->i_mode) && inode 38 fs/ocfs2/symlink.h inode->i_blocks == 0); inode 44 fs/ocfs2/sysfile.c static struct inode * _ocfs2_get_system_file_inode(struct ocfs2_super *osb, inode 66 fs/ocfs2/sysfile.c struct inode *ocfs2_get_system_file_inode(struct ocfs2_super *osb, inode 70 fs/ocfs2/sysfile.c struct inode *inode = NULL; inode 71 fs/ocfs2/sysfile.c struct inode **arr = NULL; inode 77 fs/ocfs2/sysfile.c if (arr && ((inode = *arr) != NULL)) { inode 79 fs/ocfs2/sysfile.c inode = igrab(inode); inode 80 fs/ocfs2/sysfile.c BUG_ON(!inode); inode 82 fs/ocfs2/sysfile.c return inode; inode 86 fs/ocfs2/sysfile.c inode = _ocfs2_get_system_file_inode(osb, type, slot); inode 89 fs/ocfs2/sysfile.c if (arr && inode) { inode 90 fs/ocfs2/sysfile.c *arr = igrab(inode); inode 93 fs/ocfs2/sysfile.c return inode; inode 96 fs/ocfs2/sysfile.c static struct inode * _ocfs2_get_system_file_inode(struct ocfs2_super *osb, inode 101 fs/ocfs2/sysfile.c struct inode *inode = NULL; inode 115 fs/ocfs2/sysfile.c inode = ocfs2_iget(osb, blkno, OCFS2_FI_FLAG_SYSFILE, type); inode 116 fs/ocfs2/sysfile.c if (IS_ERR(inode)) { inode 117 fs/ocfs2/sysfile.c mlog_errno(PTR_ERR(inode)); inode 118 fs/ocfs2/sysfile.c inode = NULL; inode 123 fs/ocfs2/sysfile.c return inode; inode 29 fs/ocfs2/sysfile.h struct inode * ocfs2_get_system_file_inode(struct ocfs2_super *osb, inode 80 fs/ocfs2/uptodate.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 117 fs/ocfs2/uptodate.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 135 fs/ocfs2/uptodate.c ocfs2_metadata_cache_init(inode); inode 233 fs/ocfs2/uptodate.c return ocfs2_buffer_cached(OCFS2_I(inode), bh); inode 243 fs/ocfs2/uptodate.c return buffer_locked(bh) && ocfs2_buffer_cached(OCFS2_I(inode), bh); inode 432 fs/ocfs2/uptodate.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 471 fs/ocfs2/uptodate.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 479 fs/ocfs2/uptodate.c ocfs2_set_buffer_uptodate(inode, bh); inode 523 fs/ocfs2/uptodate.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 557 fs/ocfs2/uptodate.c ocfs2_remove_block_from_cache(inode, block); inode 565 fs/ocfs2/uptodate.c unsigned int i, b_len = ocfs2_clusters_to_blocks(inode->i_sb, 1) * c_len; inode 568 fs/ocfs2/uptodate.c ocfs2_remove_block_from_cache(inode, block); inode 155 fs/ocfs2/xattr.c u32 hash = OCFS2_SB(inode->i_sb)->uuid_hash; inode 180 fs/ocfs2/xattr.c hash = ocfs2_xattr_name_hash(inode, name, entry->xe_name_len); inode 198 fs/ocfs2/xattr.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 204 fs/ocfs2/xattr.c ocfs2_init_xattr_value_extent_tree(&et, inode, xattr_bh, xv); inode 208 fs/ocfs2/xattr.c status = ocfs2_lock_allocators(inode, &et, clusters_to_add, 0, inode 226 fs/ocfs2/xattr.c status = ocfs2_journal_access(handle, inode, xattr_bh, inode 235 fs/ocfs2/xattr.c inode, inode 310 fs/ocfs2/xattr.c u64 phys_blkno = ocfs2_clusters_to_blocks(inode->i_sb, phys_cpos); inode 311 fs/ocfs2/xattr.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 312 fs/ocfs2/xattr.c struct inode *tl_inode = osb->osb_tl_inode; inode 317 fs/ocfs2/xattr.c ocfs2_init_xattr_value_extent_tree(&et, inode, root_bh, xv); inode 319 fs/ocfs2/xattr.c ret = ocfs2_lock_allocators(inode, &et, 0, 1, NULL, &meta_ac); inode 342 fs/ocfs2/xattr.c ret = ocfs2_journal_access(handle, inode, root_bh, inode 349 fs/ocfs2/xattr.c ret = ocfs2_remove_extent(inode, &et, cpos, len, handle, meta_ac, inode 388 fs/ocfs2/xattr.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 399 fs/ocfs2/xattr.c ret = ocfs2_xattr_get_clusters(inode, cpos, &phys_cpos, inode 409 fs/ocfs2/xattr.c ret = __ocfs2_remove_xattr_range(inode, root_bh, xv, cpos, inode 417 fs/ocfs2/xattr.c block = ocfs2_clusters_to_blocks(inode->i_sb, phys_cpos); inode 418 fs/ocfs2/xattr.c ocfs2_remove_xattr_clusters_from_cache(inode, block, inode 437 fs/ocfs2/xattr.c u32 new_clusters = ocfs2_clusters_for_bytes(inode->i_sb, len); inode 444 fs/ocfs2/xattr.c ret = ocfs2_xattr_extend_allocation(inode, inode 448 fs/ocfs2/xattr.c ret = ocfs2_xattr_shrink_size(inode, inode 513 fs/ocfs2/xattr.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 520 fs/ocfs2/xattr.c ((void *)di + inode->i_sb->s_blocksize - inode 523 fs/ocfs2/xattr.c ret = ocfs2_xattr_list_entries(inode, header, buffer, buffer_size); inode 540 fs/ocfs2/xattr.c ret = ocfs2_read_block(inode, le64_to_cpu(di->i_xattr_loc), &blk_bh); inode 556 fs/ocfs2/xattr.c ret = ocfs2_xattr_list_entries(inode, header, inode 560 fs/ocfs2/xattr.c ret = ocfs2_xattr_tree_list_index_block(inode, xt, inode 658 fs/ocfs2/xattr.c bpc = ocfs2_clusters_to_blocks(inode->i_sb, 1); inode 659 fs/ocfs2/xattr.c blocksize = inode->i_sb->s_blocksize; inode 663 fs/ocfs2/xattr.c ret = ocfs2_xattr_get_clusters(inode, cpos, &p_cluster, inode 670 fs/ocfs2/xattr.c blkno = ocfs2_clusters_to_blocks(inode->i_sb, p_cluster); inode 673 fs/ocfs2/xattr.c ret = ocfs2_read_block(inode, blkno, &bh); inode 702 fs/ocfs2/xattr.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 711 fs/ocfs2/xattr.c xs->end = (void *)di + inode->i_sb->s_blocksize; inode 733 fs/ocfs2/xattr.c ret = ocfs2_xattr_get_value_outside(inode, xv, inode 764 fs/ocfs2/xattr.c ret = ocfs2_read_block(inode, le64_to_cpu(di->i_xattr_loc), &blk_bh); inode 787 fs/ocfs2/xattr.c ret = ocfs2_xattr_index_block_find(inode, blk_bh, inode 804 fs/ocfs2/xattr.c ret = ocfs2_xattr_bucket_get_name_value(inode, inode 817 fs/ocfs2/xattr.c ret = ocfs2_xattr_get_value_outside(inode, xv, inode 849 fs/ocfs2/xattr.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 857 fs/ocfs2/xattr.c if (!ocfs2_supports_xattr(OCFS2_SB(inode->i_sb))) inode 863 fs/ocfs2/xattr.c ret = ocfs2_inode_lock(inode, &di_bh, 0); inode 872 fs/ocfs2/xattr.c ret = ocfs2_xattr_ibody_get(inode, name_index, name, buffer, inode 875 fs/ocfs2/xattr.c ret = ocfs2_xattr_block_get(inode, name_index, name, buffer, inode 878 fs/ocfs2/xattr.c ocfs2_inode_unlock(inode, 0); inode 891 fs/ocfs2/xattr.c u16 blocksize = inode->i_sb->s_blocksize; inode 893 fs/ocfs2/xattr.c u32 cpos = 0, bpc = ocfs2_clusters_to_blocks(inode->i_sb, 1); inode 894 fs/ocfs2/xattr.c u32 clusters = ocfs2_clusters_for_bytes(inode->i_sb, value_len); inode 902 fs/ocfs2/xattr.c handle = ocfs2_start_trans(OCFS2_SB(inode->i_sb), credits); inode 910 fs/ocfs2/xattr.c ret = ocfs2_xattr_get_clusters(inode, cpos, &p_cluster, inode 917 fs/ocfs2/xattr.c blkno = ocfs2_clusters_to_blocks(inode->i_sb, p_cluster); inode 920 fs/ocfs2/xattr.c ret = ocfs2_read_block(inode, blkno, &bh); inode 927 fs/ocfs2/xattr.c inode, inode 961 fs/ocfs2/xattr.c ocfs2_commit_trans(OCFS2_SB(inode->i_sb), handle); inode 979 fs/ocfs2/xattr.c handle = ocfs2_start_trans((OCFS2_SB(inode->i_sb)), inode 986 fs/ocfs2/xattr.c ret = ocfs2_journal_access(handle, inode, xs->xattr_bh, inode 1002 fs/ocfs2/xattr.c ocfs2_commit_trans(OCFS2_SB(inode->i_sb), handle); inode 1015 fs/ocfs2/xattr.c handle = ocfs2_start_trans((OCFS2_SB(inode->i_sb)), inode 1022 fs/ocfs2/xattr.c ret = ocfs2_journal_access(handle, inode, xs->xattr_bh, inode 1035 fs/ocfs2/xattr.c ocfs2_xattr_hash_entry(inode, xs->header, xs->here); inode 1041 fs/ocfs2/xattr.c ocfs2_commit_trans(OCFS2_SB(inode->i_sb), handle); inode 1072 fs/ocfs2/xattr.c ret = ocfs2_xattr_value_truncate(inode, xs->xattr_bh, xv, inode 1078 fs/ocfs2/xattr.c ret = __ocfs2_xattr_set_value_outside(inode, xv, xi->value, inode 1084 fs/ocfs2/xattr.c ret = ocfs2_xattr_update_entry(inode, xi, xs, offs); inode 1186 fs/ocfs2/xattr.c ocfs2_xattr_hash_entry(inode, xs->header, xs->here); inode 1207 fs/ocfs2/xattr.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 1273 fs/ocfs2/xattr.c ret = ocfs2_xattr_set_value_outside(inode, xi, xs, inode 1290 fs/ocfs2/xattr.c ret = ocfs2_xattr_value_truncate(inode, inode 1299 fs/ocfs2/xattr.c ret = __ocfs2_xattr_set_value_outside(inode, inode 1308 fs/ocfs2/xattr.c ret = ocfs2_xattr_update_entry(inode, inode 1320 fs/ocfs2/xattr.c ret = ocfs2_xattr_value_truncate(inode, inode 1330 fs/ocfs2/xattr.c handle = ocfs2_start_trans((OCFS2_SB(inode->i_sb)), inode 1338 fs/ocfs2/xattr.c ret = ocfs2_journal_access(handle, inode, xs->inode_bh, inode 1354 fs/ocfs2/xattr.c ret = ocfs2_journal_access(handle, inode, xs->xattr_bh, inode 1366 fs/ocfs2/xattr.c ocfs2_xattr_set_entry_local(inode, &xi_l, xs, last, min_offs); inode 1378 fs/ocfs2/xattr.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 1388 fs/ocfs2/xattr.c } else if (!(ocfs2_inode_is_fast_symlink(inode))) { inode 1401 fs/ocfs2/xattr.c inode->i_ctime = CURRENT_TIME; inode 1402 fs/ocfs2/xattr.c di->i_ctime = cpu_to_le64(inode->i_ctime.tv_sec); inode 1403 fs/ocfs2/xattr.c di->i_ctime_nsec = cpu_to_le32(inode->i_ctime.tv_nsec); inode 1410 fs/ocfs2/xattr.c ocfs2_commit_trans(OCFS2_SB(inode->i_sb), handle); inode 1418 fs/ocfs2/xattr.c ret = ocfs2_xattr_set_value_outside(inode, xi, xs, offs); inode 1427 fs/ocfs2/xattr.c ret2 = ocfs2_xattr_cleanup(inode, xi, xs, offs); inode 1454 fs/ocfs2/xattr.c ret = ocfs2_xattr_value_truncate(inode, bh, xv, 0); inode 1474 fs/ocfs2/xattr.c ((void *)di + inode->i_sb->s_blocksize - inode 1477 fs/ocfs2/xattr.c ret = ocfs2_remove_value_outside(inode, di_bh, header); inode 1491 fs/ocfs2/xattr.c ret = ocfs2_remove_value_outside(inode, blk_bh, header); inode 1493 fs/ocfs2/xattr.c ret = ocfs2_delete_xattr_index_block(inode, blk_bh); inode 1501 fs/ocfs2/xattr.c struct inode *xb_alloc_inode; inode 1505 fs/ocfs2/xattr.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 1511 fs/ocfs2/xattr.c ret = ocfs2_read_block(inode, block, &blk_bh); inode 1524 fs/ocfs2/xattr.c ret = ocfs2_xattr_block_remove(inode, blk_bh); inode 1582 fs/ocfs2/xattr.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 1587 fs/ocfs2/xattr.c if (!ocfs2_supports_xattr(OCFS2_SB(inode->i_sb))) inode 1594 fs/ocfs2/xattr.c ret = ocfs2_xattr_ibody_remove(inode, di_bh); inode 1602 fs/ocfs2/xattr.c ret = ocfs2_xattr_free_block(inode, inode 1610 fs/ocfs2/xattr.c handle = ocfs2_start_trans((OCFS2_SB(inode->i_sb)), inode 1617 fs/ocfs2/xattr.c ret = ocfs2_journal_access(handle, inode, di_bh, inode 1635 fs/ocfs2/xattr.c ocfs2_commit_trans(OCFS2_SB(inode->i_sb), handle); inode 1643 fs/ocfs2/xattr.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 1644 fs/ocfs2/xattr.c unsigned int xattrsize = OCFS2_SB(inode->i_sb)->s_xattr_inline_size; inode 1653 fs/ocfs2/xattr.c } else if (ocfs2_inode_is_fast_symlink(inode)) { inode 1654 fs/ocfs2/xattr.c free = ocfs2_fast_symlink_chars(inode->i_sb) - inode 1679 fs/ocfs2/xattr.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 1684 fs/ocfs2/xattr.c if (inode->i_sb->s_blocksize == OCFS2_MIN_BLOCKSIZE) inode 1689 fs/ocfs2/xattr.c has_space = ocfs2_xattr_has_space_inline(inode, di); inode 1696 fs/ocfs2/xattr.c xs->end = (void *)di + inode->i_sb->s_blocksize; inode 1702 fs/ocfs2/xattr.c (xs->end - OCFS2_SB(inode->i_sb)->s_xattr_inline_size); inode 1727 fs/ocfs2/xattr.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 1731 fs/ocfs2/xattr.c if (inode->i_sb->s_blocksize == OCFS2_MIN_BLOCKSIZE) inode 1736 fs/ocfs2/xattr.c if (!ocfs2_xattr_has_space_inline(inode, di)) { inode 1742 fs/ocfs2/xattr.c ret = ocfs2_xattr_set_entry(inode, xi, xs, inode 1769 fs/ocfs2/xattr.c ret = ocfs2_read_block(inode, le64_to_cpu(di->i_xattr_loc), &blk_bh); inode 1792 fs/ocfs2/xattr.c ret = ocfs2_xattr_index_block_find(inode, blk_bh, inode 1818 fs/ocfs2/xattr.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 1834 fs/ocfs2/xattr.c ret = ocfs2_journal_access(handle, inode, xs->xattr_bh, inode 1841 fs/ocfs2/xattr.c memset(&xb->xb_attrs, 0, inode->i_sb->s_blocksize - inode 1865 fs/ocfs2/xattr.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 1892 fs/ocfs2/xattr.c ret = ocfs2_journal_access(handle, inode, xs->inode_bh, inode 1907 fs/ocfs2/xattr.c new_bh = sb_getblk(inode->i_sb, first_blkno); inode 1908 fs/ocfs2/xattr.c ocfs2_set_new_buffer_uptodate(inode, new_bh); inode 1910 fs/ocfs2/xattr.c ret = ocfs2_journal_access(handle, inode, new_bh, inode 1920 fs/ocfs2/xattr.c memset(xblk, 0, inode->i_sb->s_blocksize); inode 1929 fs/ocfs2/xattr.c xs->end = (void *)xblk + inode->i_sb->s_blocksize; inode 1954 fs/ocfs2/xattr.c ret = ocfs2_xattr_set_entry(inode, xi, xs, OCFS2_HAS_XATTR_FL); inode 1958 fs/ocfs2/xattr.c ret = ocfs2_xattr_create_index_block(inode, xs); inode 1963 fs/ocfs2/xattr.c ret = ocfs2_xattr_set_entry_index_block(inode, xi, xs); inode 1965 fs/ocfs2/xattr.c ret = ocfs2_restore_xattr_block(inode, xs); inode 1989 fs/ocfs2/xattr.c u16 i, blk_per_bucket = ocfs2_blocks_per_xattr_bucket(inode->i_sb); inode 2006 fs/ocfs2/xattr.c if (!ocfs2_supports_xattr(OCFS2_SB(inode->i_sb))) inode 2009 fs/ocfs2/xattr.c ret = ocfs2_inode_lock(inode, &di_bh, 1); inode 2017 fs/ocfs2/xattr.c down_write(&OCFS2_I(inode)->ip_xattr_sem); inode 2022 fs/ocfs2/xattr.c ret = ocfs2_xattr_ibody_find(inode, name_index, name, &xis); inode 2026 fs/ocfs2/xattr.c ret = ocfs2_xattr_block_find(inode, name_index, name, &xbs); inode 2047 fs/ocfs2/xattr.c ret = ocfs2_xattr_ibody_set(inode, &xi, &xis); inode 2049 fs/ocfs2/xattr.c ret = ocfs2_xattr_block_set(inode, &xi, &xbs); inode 2052 fs/ocfs2/xattr.c ret = ocfs2_xattr_ibody_set(inode, &xi, &xis); inode 2060 fs/ocfs2/xattr.c ret = ocfs2_xattr_block_set(inode, &xi, &xbs); inode 2063 fs/ocfs2/xattr.c ret = ocfs2_xattr_block_find(inode, name_index, inode 2072 fs/ocfs2/xattr.c ret = ocfs2_xattr_block_set(inode, &xi, &xbs); inode 2082 fs/ocfs2/xattr.c ret = ocfs2_xattr_ibody_set(inode, &xi, &xis); inode 2087 fs/ocfs2/xattr.c up_write(&OCFS2_I(inode)->ip_xattr_sem); inode 2088 fs/ocfs2/xattr.c ocfs2_inode_unlock(inode, 1); inode 2116 fs/ocfs2/xattr.c ret = ocfs2_find_leaf(inode, el, name_hash, &eb_bh); inode 2126 fs/ocfs2/xattr.c ocfs2_error(inode->i_sb, inode 2128 fs/ocfs2/xattr.c "xattr tree block %llu\n", inode->i_ino, inode 2145 fs/ocfs2/xattr.c ocfs2_error(inode->i_sb, "Inode %lu has bad extent " inode 2146 fs/ocfs2/xattr.c "record (%u, %u, 0) in xattr", inode->i_ino, inode 2200 fs/ocfs2/xattr.c ret = ocfs2_xattr_bucket_get_name_value(inode, inode 2210 fs/ocfs2/xattr.c ret = ocfs2_read_block(inode, header_bh->b_blocknr + block_off, inode 2257 fs/ocfs2/xattr.c u16 blk_per_bucket = ocfs2_blocks_per_xattr_bucket(inode->i_sb); inode 2262 fs/ocfs2/xattr.c ret = ocfs2_read_block(inode, p_blkno, &bh); inode 2278 fs/ocfs2/xattr.c ret = ocfs2_read_block(inode, blkno, &bh); inode 2312 fs/ocfs2/xattr.c ret = ocfs2_find_xe_in_bucket(inode, lower_bh, inode 2343 fs/ocfs2/xattr.c xs->end = xs->base + inode->i_sb->s_blocksize; inode 2350 fs/ocfs2/xattr.c ret = ocfs2_read_blocks(inode, xs->bucket.bhs[0]->b_blocknr + 1, inode 2383 fs/ocfs2/xattr.c u32 name_hash = ocfs2_xattr_name_hash(inode, name, strlen(name)); inode 2391 fs/ocfs2/xattr.c ret = ocfs2_xattr_get_rec(inode, name_hash, &p_blkno, &first_hash, inode 2403 fs/ocfs2/xattr.c ret = ocfs2_xattr_bucket_find(inode, name_index, name, name_hash, inode 2417 fs/ocfs2/xattr.c int blk_per_bucket = ocfs2_blocks_per_xattr_bucket(inode->i_sb); inode 2418 fs/ocfs2/xattr.c u32 bpc = ocfs2_xattr_buckets_per_cluster(OCFS2_SB(inode->i_sb)); inode 2428 fs/ocfs2/xattr.c ret = ocfs2_read_blocks(inode, blkno, blk_per_bucket, inode 2446 fs/ocfs2/xattr.c ret = func(inode, &bucket, para); inode 2484 fs/ocfs2/xattr.c *block_off = name_offset >> inode->i_sb->s_blocksize_bits; inode 2485 fs/ocfs2/xattr.c *new_offset = name_offset % inode->i_sb->s_blocksize; inode 2505 fs/ocfs2/xattr.c ret = ocfs2_xattr_bucket_get_name_value(inode, inode 2547 fs/ocfs2/xattr.c ret = ocfs2_xattr_get_rec(inode, name_hash, &p_blkno, inode 2554 fs/ocfs2/xattr.c ret = ocfs2_iterate_xattr_buckets(inode, p_blkno, num_clusters, inode 2606 fs/ocfs2/xattr.c int i, blocksize = inode->i_sb->s_blocksize; inode 2681 fs/ocfs2/xattr.c int i, blocksize = inode->i_sb->s_blocksize; inode 2682 fs/ocfs2/xattr.c u16 blk_per_bucket = ocfs2_blocks_per_xattr_bucket(inode->i_sb); inode 2690 fs/ocfs2/xattr.c xs->end = xs->base + inode->i_sb->s_blocksize; inode 2694 fs/ocfs2/xattr.c ret = ocfs2_read_blocks(inode, inode 2718 fs/ocfs2/xattr.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 2719 fs/ocfs2/xattr.c struct ocfs2_inode_info *oi = OCFS2_I(inode); inode 2727 fs/ocfs2/xattr.c u16 bpb = ocfs2_blocks_per_xattr_bucket(inode->i_sb); inode 2759 fs/ocfs2/xattr.c ret = ocfs2_journal_access(handle, inode, xb_bh, inode 2777 fs/ocfs2/xattr.c blkno = ocfs2_clusters_to_blocks(inode->i_sb, bit_off); inode 2781 fs/ocfs2/xattr.c xh_bh = sb_getblk(inode->i_sb, blkno); inode 2788 fs/ocfs2/xattr.c ocfs2_set_new_buffer_uptodate(inode, xh_bh); inode 2790 fs/ocfs2/xattr.c ret = ocfs2_journal_access(handle, inode, xh_bh, inode 2798 fs/ocfs2/xattr.c data_bh = sb_getblk(inode->i_sb, blkno + bpb - 1); inode 2805 fs/ocfs2/xattr.c ocfs2_set_new_buffer_uptodate(inode, data_bh); inode 2807 fs/ocfs2/xattr.c ret = ocfs2_journal_access(handle, inode, data_bh, inode 2815 fs/ocfs2/xattr.c ocfs2_cp_xattr_block_to_bucket(inode, xb_bh, xh_bh, data_bh); inode 2821 fs/ocfs2/xattr.c ocfs2_xattr_update_xattr_search(inode, xs, xb_bh, xh_bh); inode 2824 fs/ocfs2/xattr.c memset(&xb->xb_attrs, 0, inode->i_sb->s_blocksize - inode 2831 fs/ocfs2/xattr.c xr->xt_list.l_count = cpu_to_le16(ocfs2_xattr_recs_per_xb(inode->i_sb)); inode 2889 fs/ocfs2/xattr.c u16 blk_per_bucket = ocfs2_blocks_per_xattr_bucket(inode->i_sb); inode 2891 fs/ocfs2/xattr.c size_t blocksize = inode->i_sb->s_blocksize; inode 2901 fs/ocfs2/xattr.c ret = ocfs2_read_blocks(inode, blkno, blk_per_bucket, bhs, 0); inode 2921 fs/ocfs2/xattr.c handle = ocfs2_start_trans((OCFS2_SB(inode->i_sb)), blk_per_bucket); inode 2930 fs/ocfs2/xattr.c ret = ocfs2_journal_access(handle, inode, bhs[i], inode 3010 fs/ocfs2/xattr.c ocfs2_commit_trans(OCFS2_SB(inode->i_sb), handle); inode 3042 fs/ocfs2/xattr.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 3043 fs/ocfs2/xattr.c int bpc = ocfs2_clusters_to_blocks(inode->i_sb, 1); inode 3045 fs/ocfs2/xattr.c int blocksize = inode->i_sb->s_blocksize; inode 3075 fs/ocfs2/xattr.c ret = ocfs2_journal_access(handle, inode, prev_bh, inode 3084 fs/ocfs2/xattr.c new_bh = sb_getblk(inode->i_sb, new_blkno); inode 3091 fs/ocfs2/xattr.c ocfs2_set_new_buffer_uptodate(inode, new_bh); inode 3093 fs/ocfs2/xattr.c ret = ocfs2_journal_access(handle, inode, new_bh, inode 3101 fs/ocfs2/xattr.c ret = ocfs2_read_block(inode, prev_blkno, &old_bh); inode 3151 fs/ocfs2/xattr.c u16 i, blk_per_bucket = ocfs2_blocks_per_xattr_bucket(inode->i_sb); inode 3154 fs/ocfs2/xattr.c return ocfs2_read_blocks(inode, blkno, inode 3158 fs/ocfs2/xattr.c bhs[i] = sb_getblk(inode->i_sb, blkno + i); inode 3164 fs/ocfs2/xattr.c ocfs2_set_new_buffer_uptodate(inode, bhs[i]); inode 3183 fs/ocfs2/xattr.c u16 blk_per_bucket = ocfs2_blocks_per_xattr_bucket(inode->i_sb); inode 3187 fs/ocfs2/xattr.c int blocksize = inode->i_sb->s_blocksize; inode 3196 fs/ocfs2/xattr.c ret = ocfs2_read_xattr_bucket(inode, blk, s_bhs, 0); inode 3202 fs/ocfs2/xattr.c ret = ocfs2_journal_access(handle, inode, s_bhs[0], inode 3215 fs/ocfs2/xattr.c ret = ocfs2_read_xattr_bucket(inode, new_blk, t_bhs, new_bucket_head); inode 3222 fs/ocfs2/xattr.c ret = ocfs2_journal_access(handle, inode, t_bhs[i], inode 3354 fs/ocfs2/xattr.c int blk_per_bucket = ocfs2_blocks_per_xattr_bucket(inode->i_sb); inode 3355 fs/ocfs2/xattr.c int blocksize = inode->i_sb->s_blocksize; inode 3368 fs/ocfs2/xattr.c ret = ocfs2_read_xattr_bucket(inode, s_blkno, s_bhs, 0); inode 3379 fs/ocfs2/xattr.c ret = ocfs2_read_xattr_bucket(inode, t_blkno, t_bhs, t_is_new); inode 3384 fs/ocfs2/xattr.c ret = ocfs2_journal_access(handle, inode, t_bhs[i], inode 3424 fs/ocfs2/xattr.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 3425 fs/ocfs2/xattr.c int bpc = ocfs2_clusters_to_blocks(inode->i_sb, 1); inode 3444 fs/ocfs2/xattr.c ret = ocfs2_journal_access(handle, inode, first_bh, inode 3452 fs/ocfs2/xattr.c ret = ocfs2_cp_xattr_bucket(inode, handle, inode 3459 fs/ocfs2/xattr.c src_blk += ocfs2_blocks_per_xattr_bucket(inode->i_sb); inode 3460 fs/ocfs2/xattr.c to_blk += ocfs2_blocks_per_xattr_bucket(inode->i_sb); inode 3470 fs/ocfs2/xattr.c ret = ocfs2_read_block(inode, to_blk_start, &bh); inode 3476 fs/ocfs2/xattr.c ret = ocfs2_journal_access(handle, inode, bh, inode 3506 fs/ocfs2/xattr.c u16 blk_per_bucket = ocfs2_blocks_per_xattr_bucket(inode->i_sb); inode 3509 fs/ocfs2/xattr.c BUG_ON(OCFS2_XATTR_BUCKET_SIZE < OCFS2_SB(inode->i_sb)->s_clustersize); inode 3518 fs/ocfs2/xattr.c return ocfs2_half_xattr_bucket(inode, handle, prev_blk, inode 3559 fs/ocfs2/xattr.c int bpc = ocfs2_clusters_to_blocks(inode->i_sb, 1); inode 3564 fs/ocfs2/xattr.c if (ocfs2_xattr_buckets_per_cluster(OCFS2_SB(inode->i_sb)) > 1) inode 3565 fs/ocfs2/xattr.c ret = ocfs2_mv_xattr_bucket_cross_cluster(inode, inode 3577 fs/ocfs2/xattr.c ret = ocfs2_cp_xattr_cluster(inode, handle, *first_bh, inode 3581 fs/ocfs2/xattr.c ret = ocfs2_half_xattr_cluster(inode, handle, inode 3619 fs/ocfs2/xattr.c u16 bpc = ocfs2_clusters_to_blocks(inode->i_sb, 1); inode 3626 fs/ocfs2/xattr.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 3631 fs/ocfs2/xattr.c (unsigned long long)OCFS2_I(inode)->ip_blkno, inode 3634 fs/ocfs2/xattr.c ocfs2_init_xattr_tree_extent_tree(&et, inode, root_bh); inode 3636 fs/ocfs2/xattr.c ret = ocfs2_lock_allocators(inode, &et, clusters_to_add, 0, inode 3653 fs/ocfs2/xattr.c ret = ocfs2_journal_access(handle, inode, root_bh, inode 3672 fs/ocfs2/xattr.c num_bits, bit_off, (unsigned long long)OCFS2_I(inode)->ip_blkno); inode 3691 fs/ocfs2/xattr.c ret = ocfs2_adjust_xattr_cross_cluster(inode, inode 3720 fs/ocfs2/xattr.c ret = ocfs2_insert_extent(osb, handle, inode, &et, v_start, block, inode 3754 fs/ocfs2/xattr.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 3755 fs/ocfs2/xattr.c u16 blk_per_bucket = ocfs2_blocks_per_xattr_bucket(inode->i_sb); inode 3784 fs/ocfs2/xattr.c ret = ocfs2_journal_access(handle, inode, first_bh, inode 3792 fs/ocfs2/xattr.c ret = ocfs2_cp_xattr_bucket(inode, handle, end_blk, inode 3800 fs/ocfs2/xattr.c ret = ocfs2_half_xattr_bucket(inode, handle, start_blk, inode 3834 fs/ocfs2/xattr.c struct super_block *sb = inode->i_sb; inode 3850 fs/ocfs2/xattr.c ret = ocfs2_xattr_get_rec(inode, name_hash, &p_blkno, &e_cpos, inode 3857 fs/ocfs2/xattr.c ret = ocfs2_read_block(inode, p_blkno, &first_bh); inode 3867 fs/ocfs2/xattr.c ret = ocfs2_add_new_xattr_cluster(inode, inode 3882 fs/ocfs2/xattr.c ret = ocfs2_extend_xattr_bucket(inode, inode 3898 fs/ocfs2/xattr.c int block_off = offs >> inode->i_sb->s_blocksize_bits; inode 3900 fs/ocfs2/xattr.c offs = offs % inode->i_sb->s_blocksize; inode 3920 fs/ocfs2/xattr.c size_t blocksize = inode->i_sb->s_blocksize; inode 3955 fs/ocfs2/xattr.c val = ocfs2_xattr_bucket_get_val(inode, inode 4028 fs/ocfs2/xattr.c if (start >> inode->i_sb->s_blocksize_bits != inode 4029 fs/ocfs2/xattr.c (offs - 1) >> inode->i_sb->s_blocksize_bits) { inode 4034 fs/ocfs2/xattr.c val = ocfs2_xattr_bucket_get_val(inode, inode 4070 fs/ocfs2/xattr.c block_off = off >> inode->i_sb->s_blocksize_bits; inode 4091 fs/ocfs2/xattr.c u16 blk_per_bucket = ocfs2_blocks_per_xattr_bucket(inode->i_sb); inode 4092 fs/ocfs2/xattr.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 4099 fs/ocfs2/xattr.c ret = ocfs2_read_blocks(inode, inode 4118 fs/ocfs2/xattr.c ret = ocfs2_journal_access(handle, inode, xs->bucket.bhs[i], inode 4126 fs/ocfs2/xattr.c ocfs2_xattr_set_entry_normal(inode, xi, xs, name_hash, local); inode 4129 fs/ocfs2/xattr.c ret = ocfs2_xattr_bucket_handle_journal(inode, handle, xs, inode 4145 fs/ocfs2/xattr.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 4155 fs/ocfs2/xattr.c ret = ocfs2_journal_access(handle, inode, xe_bh, inode 4193 fs/ocfs2/xattr.c size_t blocksize = inode->i_sb->s_blocksize; inode 4208 fs/ocfs2/xattr.c ret = ocfs2_read_block(inode, value_blk, &value_bh); inode 4219 fs/ocfs2/xattr.c ret = ocfs2_xattr_value_truncate(inode, value_bh, xv, len); inode 4225 fs/ocfs2/xattr.c ret = ocfs2_xattr_value_update_size(inode, header_bh, xe, len); inode 4247 fs/ocfs2/xattr.c ret = ocfs2_xattr_bucket_value_truncate(inode, xs->bucket.bhs[0], inode 4271 fs/ocfs2/xattr.c return __ocfs2_xattr_set_value_outside(inode, xv, val, value_len); inode 4281 fs/ocfs2/xattr.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 4282 fs/ocfs2/xattr.c struct inode *tl_inode = osb->osb_tl_inode; inode 4290 fs/ocfs2/xattr.c ocfs2_init_xattr_tree_extent_tree(&et, inode, root_bh); inode 4297 fs/ocfs2/xattr.c ocfs2_remove_xattr_clusters_from_cache(inode, blkno, len); inode 4299 fs/ocfs2/xattr.c ret = ocfs2_lock_allocators(inode, &et, 0, 1, NULL, &meta_ac); inode 4322 fs/ocfs2/xattr.c ret = ocfs2_journal_access(handle, inode, root_bh, inode 4329 fs/ocfs2/xattr.c ret = ocfs2_remove_extent(inode, &et, cpos, len, handle, meta_ac, inode 4372 fs/ocfs2/xattr.c handle = ocfs2_start_trans((OCFS2_SB(inode->i_sb)), 1); inode 4379 fs/ocfs2/xattr.c ret = ocfs2_journal_access(handle, inode, xs->bucket.bhs[0], inode 4396 fs/ocfs2/xattr.c ocfs2_commit_trans(OCFS2_SB(inode->i_sb), handle); inode 4418 fs/ocfs2/xattr.c u32 name_hash = ocfs2_xattr_name_hash(inode, xi->name, inode 4439 fs/ocfs2/xattr.c ret = ocfs2_xattr_bucket_value_truncate_xs(inode, xs, inode 4460 fs/ocfs2/xattr.c ret = ocfs2_xattr_set_entry_in_bucket(inode, xi, xs, name_hash, local); inode 4470 fs/ocfs2/xattr.c ret = ocfs2_xattr_bucket_value_truncate_xs(inode, xs, inode 4481 fs/ocfs2/xattr.c ocfs2_xattr_bucket_remove_xs(inode, xs); inode 4487 fs/ocfs2/xattr.c ret = ocfs2_xattr_bucket_set_value_outside(inode, xs, val, value_len); inode 4519 fs/ocfs2/xattr.c size_t blocksize = inode->i_sb->s_blocksize; inode 4521 fs/ocfs2/xattr.c u16 blk_per_bucket = ocfs2_blocks_per_xattr_bucket(inode->i_sb); inode 4580 fs/ocfs2/xattr.c if (free < need || count == ocfs2_xattr_max_xe_in_bucket(inode->i_sb)) { inode 4582 fs/ocfs2/xattr.c count < ocfs2_xattr_max_xe_in_bucket(inode->i_sb)) { inode 4588 fs/ocfs2/xattr.c ret = ocfs2_defrag_xattr_bucket(inode, &xs->bucket); inode 4619 fs/ocfs2/xattr.c ret = ocfs2_check_xattr_bucket_collision(inode, &xs->bucket); inode 4625 fs/ocfs2/xattr.c ret = ocfs2_add_new_xattr_bucket(inode, inode 4638 fs/ocfs2/xattr.c ret = ocfs2_xattr_index_block_find(inode, xs->xattr_bh, inode 4649 fs/ocfs2/xattr.c ret = ocfs2_xattr_set_in_bucket(inode, xi, xs); inode 4669 fs/ocfs2/xattr.c ret = ocfs2_xattr_bucket_value_truncate(inode, inode 4695 fs/ocfs2/xattr.c ret = ocfs2_xattr_get_rec(inode, name_hash, &p_blkno, inode 4702 fs/ocfs2/xattr.c ret = ocfs2_iterate_xattr_buckets(inode, p_blkno, num_clusters, inode 4710 fs/ocfs2/xattr.c ret = ocfs2_rm_xattr_cluster(inode, xb_bh, inode 4753 fs/ocfs2/xattr.c return ocfs2_xattr_get(inode, OCFS2_XATTR_INDEX_TRUSTED, name, inode 4763 fs/ocfs2/xattr.c return ocfs2_xattr_set(inode, OCFS2_XATTR_INDEX_TRUSTED, name, value, inode 4787 fs/ocfs2/xattr.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 4803 fs/ocfs2/xattr.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 4809 fs/ocfs2/xattr.c return ocfs2_xattr_get(inode, OCFS2_XATTR_INDEX_USER, name, inode 4816 fs/ocfs2/xattr.c struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); inode 4823 fs/ocfs2/xattr.c return ocfs2_xattr_set(inode, OCFS2_XATTR_INDEX_USER, name, value, inode 89 fs/omfs/dir.c int block = clus_to_blk(sbi, inode->i_ino); inode 99 fs/omfs/dir.c if (inode->i_mode & S_IFDIR) { inode 106 fs/omfs/dir.c oi->i_head.h_self = cpu_to_be64(inode->i_ino); inode 116 fs/omfs/dir.c struct inode *dir = dentry->d_parent->d_inode; inode 132 fs/omfs/dir.c *entry = cpu_to_be64(inode->i_ino); inode 137 fs/omfs/dir.c bh = sb_bread(dir->i_sb, clus_to_blk(OMFS_SB(dir->i_sb), inode->i_ino)); inode 153 fs/omfs/dir.c mark_inode_dirty(inode); inode 161 fs/omfs/dir.c struct inode *dir = dentry->d_parent->d_inode; inode 162 fs/omfs/dir.c struct inode *dirty; inode 222 fs/omfs/dir.c int nbuckets = (inode->i_size - OMFS_DIR_START) / 8; inode 227 fs/omfs/dir.c bh = sb_bread(inode->i_sb, clus_to_blk(OMFS_SB(inode->i_sb), inode 228 fs/omfs/dir.c inode->i_ino)); inode 246 fs/omfs/dir.c struct inode *inode = dentry->d_inode; inode 252 fs/omfs/dir.c inode_dec_link_count(inode); inode 262 fs/omfs/dir.c struct inode *inode = dentry->d_inode; inode 264 fs/omfs/dir.c if (omfs_dir_is_empty(inode)) { inode 267 fs/omfs/dir.c inode_dec_link_count(inode); inode 275 fs/omfs/dir.c struct inode *inode = omfs_new_inode(dir, mode); inode 277 fs/omfs/dir.c if (IS_ERR(inode)) inode 278 fs/omfs/dir.c return PTR_ERR(inode); inode 280 fs/omfs/dir.c err = omfs_make_empty(inode, dir->i_sb); inode 284 fs/omfs/dir.c err = omfs_add_link(dentry, inode); inode 288 fs/omfs/dir.c d_instantiate(dentry, inode); inode 292 fs/omfs/dir.c iput(inode); inode 311 fs/omfs/dir.c struct inode *inode = NULL; inode 321 fs/omfs/dir.c inode = omfs_iget(dir->i_sb, ino); inode 322 fs/omfs/dir.c if (IS_ERR(inode)) inode 323 fs/omfs/dir.c return ERR_CAST(inode); inode 325 fs/omfs/dir.c d_add(dentry, inode); inode 347 fs/omfs/dir.c struct inode *dir = filp->f_dentry->d_inode; inode 392 fs/omfs/dir.c struct inode *new_inode = new_dentry->d_inode; inode 393 fs/omfs/dir.c struct inode *old_inode = old_dentry->d_inode; inode 438 fs/omfs/dir.c struct inode *dir = filp->f_dentry->d_inode; inode 17 fs/omfs/file.c struct inode *inode = dentry->d_inode; inode 20 fs/omfs/file.c err = sync_mapping_buffers(inode->i_mapping); inode 21 fs/omfs/file.c if (!(inode->i_state & I_DIRTY)) inode 23 fs/omfs/file.c if (datasync && !(inode->i_state & I_DIRTY_DATASYNC)) inode 25 fs/omfs/file.c err |= omfs_sync_inode(inode); inode 49 fs/omfs/file.c struct omfs_sb_info *sbi = OMFS_SB(inode->i_sb); inode 61 fs/omfs/file.c next = inode->i_ino; inode 65 fs/omfs/file.c if (inode->i_size != 0) inode 68 fs/omfs/file.c bh = sb_bread(inode->i_sb, clus_to_blk(sbi, next)); inode 95 fs/omfs/file.c omfs_clear_range(inode->i_sb, start, (int) count); inode 102 fs/omfs/file.c if (last != inode->i_ino) inode 103 fs/omfs/file.c omfs_clear_range(inode->i_sb, last, sbi->s_mirrors); inode 108 fs/omfs/file.c bh = sb_bread(inode->i_sb, clus_to_blk(sbi, next)); inode 124 fs/omfs/file.c omfs_shrink_inode(inode); inode 125 fs/omfs/file.c mark_inode_dirty(inode); inode 137 fs/omfs/file.c struct omfs_sb_info *sbi = OMFS_SB(inode->i_sb); inode 164 fs/omfs/file.c if (omfs_allocate_block(inode->i_sb, new_block)) { inode 179 fs/omfs/file.c ret = omfs_allocate_range(inode->i_sb, 1, sbi->s_clustersize, inode 214 fs/omfs/file.c int numblocks = clus_to_blk(OMFS_SB(inode->i_sb), inode 224 fs/omfs/file.c return clus_to_blk(OMFS_SB(inode->i_sb), inode 245 fs/omfs/file.c struct omfs_sb_info *sbi = OMFS_SB(inode->i_sb); inode 246 fs/omfs/file.c int max_blocks = bh_result->b_size >> inode->i_blkbits; inode 250 fs/omfs/file.c bh = sb_bread(inode->i_sb, clus_to_blk(sbi, inode->i_ino)); inode 256 fs/omfs/file.c next = inode->i_ino; inode 270 fs/omfs/file.c offset = find_block(inode, entry, block, extent_count, &remain); inode 273 fs/omfs/file.c map_bh(bh_result, inode->i_sb, offset); inode 276 fs/omfs/file.c bh_result->b_size = (remain << inode->i_blkbits); inode 283 fs/omfs/file.c bh = sb_bread(inode->i_sb, clus_to_blk(sbi, next)); inode 290 fs/omfs/file.c ret = omfs_grow_extent(inode, oe, &new_block); inode 293 fs/omfs/file.c mark_inode_dirty(inode); inode 294 fs/omfs/file.c map_bh(bh_result, inode->i_sb, inode 21 fs/omfs/inode.c struct inode *omfs_new_inode(struct inode *dir, int mode) inode 23 fs/omfs/inode.c struct inode *inode; inode 29 fs/omfs/inode.c inode = new_inode(dir->i_sb); inode 30 fs/omfs/inode.c if (!inode) inode 38 fs/omfs/inode.c inode->i_ino = new_block; inode 39 fs/omfs/inode.c inode->i_mode = mode; inode 40 fs/omfs/inode.c inode->i_uid = current->fsuid; inode 41 fs/omfs/inode.c inode->i_gid = current->fsgid; inode 42 fs/omfs/inode.c inode->i_blocks = 0; inode 43 fs/omfs/inode.c inode->i_mapping->a_ops = &omfs_aops; inode 45 fs/omfs/inode.c inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; inode 48 fs/omfs/inode.c inode->i_op = &omfs_dir_inops; inode 49 fs/omfs/inode.c inode->i_fop = &omfs_dir_operations; inode 50 fs/omfs/inode.c inode->i_size = sbi->s_sys_blocksize; inode 51 fs/omfs/inode.c inc_nlink(inode); inode 54 fs/omfs/inode.c inode->i_op = &omfs_file_inops; inode 55 fs/omfs/inode.c inode->i_fop = &omfs_file_operations; inode 56 fs/omfs/inode.c inode->i_size = 0; inode 60 fs/omfs/inode.c insert_inode_hash(inode); inode 61 fs/omfs/inode.c mark_inode_dirty(inode); inode 62 fs/omfs/inode.c return inode; inode 64 fs/omfs/inode.c make_bad_inode(inode); inode 65 fs/omfs/inode.c iput(inode); inode 96 fs/omfs/inode.c struct omfs_sb_info *sbi = OMFS_SB(inode->i_sb); inode 105 fs/omfs/inode.c block = clus_to_blk(sbi, inode->i_ino); inode 106 fs/omfs/inode.c bh = sb_bread(inode->i_sb, block); inode 112 fs/omfs/inode.c oi->i_head.h_self = cpu_to_be64(inode->i_ino); inode 113 fs/omfs/inode.c if (S_ISDIR(inode->i_mode)) inode 115 fs/omfs/inode.c else if (S_ISREG(inode->i_mode)) inode 119 fs/omfs/inode.c inode->i_mode); inode 128 fs/omfs/inode.c oi->i_size = cpu_to_be64(inode->i_size); inode 130 fs/omfs/inode.c ctime = inode->i_ctime.tv_sec * 1000LL + inode 131 fs/omfs/inode.c ((inode->i_ctime.tv_nsec + 999)/1000); inode 145 fs/omfs/inode.c bh2 = sb_bread(inode->i_sb, block + i * inode 168 fs/omfs/inode.c return omfs_write_inode(inode, 1); inode 177 fs/omfs/inode.c truncate_inode_pages(&inode->i_data, 0); inode 179 fs/omfs/inode.c if (S_ISREG(inode->i_mode)) { inode 180 fs/omfs/inode.c inode->i_size = 0; inode 181 fs/omfs/inode.c omfs_shrink_inode(inode); inode 184 fs/omfs/inode.c omfs_clear_range(inode->i_sb, inode->i_ino, 2); inode 185 fs/omfs/inode.c clear_inode(inode); inode 188 fs/omfs/inode.c struct inode *omfs_iget(struct super_block *sb, ino_t ino) inode 196 fs/omfs/inode.c struct inode *inode; inode 198 fs/omfs/inode.c inode = iget_locked(sb, ino); inode 199 fs/omfs/inode.c if (!inode) inode 201 fs/omfs/inode.c if (!(inode->i_state & I_NEW)) inode 202 fs/omfs/inode.c return inode; inode 205 fs/omfs/inode.c bh = sb_bread(inode->i_sb, block); inode 215 fs/omfs/inode.c inode->i_uid = sbi->s_uid; inode 216 fs/omfs/inode.c inode->i_gid = sbi->s_gid; inode 221 fs/omfs/inode.c inode->i_atime.tv_sec = ctime; inode 222 fs/omfs/inode.c inode->i_mtime.tv_sec = ctime; inode 223 fs/omfs/inode.c inode->i_ctime.tv_sec = ctime; inode 224 fs/omfs/inode.c inode->i_atime.tv_nsec = nsecs; inode 225 fs/omfs/inode.c inode->i_mtime.tv_nsec = nsecs; inode 226 fs/omfs/inode.c inode->i_ctime.tv_nsec = nsecs; inode 228 fs/omfs/inode.c inode->i_mapping->a_ops = &omfs_aops; inode 232 fs/omfs/inode.c inode->i_mode = S_IFDIR | (S_IRWXUGO & ~sbi->s_dmask); inode 233 fs/omfs/inode.c inode->i_op = &omfs_dir_inops; inode 234 fs/omfs/inode.c inode->i_fop = &omfs_dir_operations; inode 235 fs/omfs/inode.c inode->i_size = sbi->s_sys_blocksize; inode 236 fs/omfs/inode.c inc_nlink(inode); inode 239 fs/omfs/inode.c inode->i_mode = S_IFREG | (S_IRWXUGO & ~sbi->s_fmask); inode 240 fs/omfs/inode.c inode->i_fop = &omfs_file_operations; inode 241 fs/omfs/inode.c inode->i_size = be64_to_cpu(oi->i_size); inode 245 fs/omfs/inode.c unlock_new_inode(inode); inode 246 fs/omfs/inode.c return inode; inode 250 fs/omfs/inode.c iget_failed(inode); inode 411 fs/omfs/inode.c struct inode *root; inode 61 fs/omfs/omfs.h extern struct inode *omfs_iget(struct super_block *sb, ino_t inode); inode 62 fs/omfs/omfs.h extern struct inode *omfs_new_inode(struct inode *dir, int mode); inode 229 fs/open.c struct inode *inode; inode 239 fs/open.c inode = path.dentry->d_inode; inode 243 fs/open.c if (S_ISDIR(inode->i_mode)) inode 247 fs/open.c if (!S_ISREG(inode->i_mode)) inode 254 fs/open.c error = inode_permission(inode, MAY_WRITE); inode 259 fs/open.c if (IS_APPEND(inode)) inode 262 fs/open.c error = get_write_access(inode); inode 270 fs/open.c error = break_lease(inode, FMODE_WRITE); inode 274 fs/open.c error = locks_verify_truncate(inode, NULL, length); inode 276 fs/open.c DQUOT_INIT(inode); inode 281 fs/open.c put_write_access(inode); inode 298 fs/open.c struct inode * inode; inode 316 fs/open.c inode = dentry->d_inode; inode 318 fs/open.c if (!S_ISREG(inode->i_mode) || !(file->f_mode & FMODE_WRITE)) inode 327 fs/open.c if (IS_APPEND(inode)) inode 330 fs/open.c error = locks_verify_truncate(inode, file, length); inode 366 fs/open.c struct inode *inode; inode 391 fs/open.c inode = file->f_path.dentry->d_inode; inode 394 fs/open.c if (S_ISFIFO(inode->i_mode)) inode 402 fs/open.c if (!S_ISREG(inode->i_mode) && !S_ISDIR(inode->i_mode)) inode 407 fs/open.c if (((offset + len) > inode->i_sb->s_maxbytes) || ((offset + len) < 0)) inode 410 fs/open.c if (inode->i_op && inode->i_op->fallocate) inode 411 fs/open.c ret = inode->i_op->fallocate(inode, mode, offset, len); inode 429 fs/open.c struct inode *inode; inode 465 fs/open.c inode = path.dentry->d_inode; inode 467 fs/open.c if ((mode & MAY_EXEC) && S_ISREG(inode->i_mode)) { inode 477 fs/open.c res = inode_permission(inode, mode | MAY_ACCESS); inode 479 fs/open.c if (res || !(mode & S_IWOTH) || special_file(inode->i_mode)) inode 535 fs/open.c struct inode *inode; inode 543 fs/open.c inode = file->f_path.dentry->d_inode; inode 546 fs/open.c if (!S_ISDIR(inode->i_mode)) inode 549 fs/open.c error = inode_permission(inode, MAY_EXEC | MAY_ACCESS); inode 585 fs/open.c struct inode * inode; inode 596 fs/open.c inode = dentry->d_inode; inode 603 fs/open.c mutex_lock(&inode->i_mutex); inode 605 fs/open.c mode = inode->i_mode; inode 606 fs/open.c newattrs.ia_mode = (mode & S_IALLUGO) | (inode->i_mode & ~S_IALLUGO); inode 609 fs/open.c mutex_unlock(&inode->i_mutex); inode 621 fs/open.c struct inode *inode; inode 628 fs/open.c inode = path.dentry->d_inode; inode 633 fs/open.c mutex_lock(&inode->i_mutex); inode 635 fs/open.c mode = inode->i_mode; inode 636 fs/open.c newattrs.ia_mode = (mode & S_IALLUGO) | (inode->i_mode & ~S_IALLUGO); inode 639 fs/open.c mutex_unlock(&inode->i_mutex); inode 654 fs/open.c struct inode *inode = dentry->d_inode; inode 667 fs/open.c if (!S_ISDIR(inode->i_mode)) inode 670 fs/open.c mutex_lock(&inode->i_mutex); inode 672 fs/open.c mutex_unlock(&inode->i_mutex); inode 774 fs/open.c error = get_write_access(inode); inode 782 fs/open.c if (!special_file(inode->i_mode)) { inode 788 fs/open.c put_write_access(inode); inode 797 fs/open.c struct inode *inode; inode 803 fs/open.c inode = dentry->d_inode; inode 805 fs/open.c error = __get_file_write_access(inode, mnt); inode 808 fs/open.c if (!special_file(inode->i_mode)) inode 812 fs/open.c f->f_mapping = inode->i_mapping; inode 816 fs/open.c f->f_op = fops_get(inode->i_fop); inode 817 fs/open.c file_move(f, &inode->i_sb->s_files); inode 826 fs/open.c error = open(inode, f); inode 850 fs/open.c put_write_access(inode); inode 851 fs/open.c if (!special_file(inode->i_mode)) { inode 1158 fs/open.c if (!(filp->f_flags & O_LARGEFILE) && i_size_read(inode) > MAX_NON_LFS) inode 36 fs/openpromfs/inode.c struct inode vfs_inode; inode 41 fs/openpromfs/inode.c static struct inode *openprom_iget(struct super_block *sb, ino_t ino); inode 45 fs/openpromfs/inode.c return container_of(inode, struct op_inode_info, vfs_inode); inode 145 fs/openpromfs/inode.c struct op_inode_info *oi = OP_I(inode); inode 186 fs/openpromfs/inode.c struct inode *inode; inode 231 fs/openpromfs/inode.c inode = openprom_iget(dir->i_sb, ino); inode 233 fs/openpromfs/inode.c if (IS_ERR(inode)) inode 234 fs/openpromfs/inode.c return ERR_CAST(inode); inode 235 fs/openpromfs/inode.c ent_oi = OP_I(inode); inode 241 fs/openpromfs/inode.c inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO; inode 242 fs/openpromfs/inode.c inode->i_op = &openprom_inode_operations; inode 243 fs/openpromfs/inode.c inode->i_fop = &openprom_operations; inode 244 fs/openpromfs/inode.c inode->i_nlink = 2; inode 249 fs/openpromfs/inode.c inode->i_mode = S_IFREG | S_IRUSR | S_IWUSR; inode 251 fs/openpromfs/inode.c inode->i_mode = S_IFREG | S_IRUGO; inode 252 fs/openpromfs/inode.c inode->i_fop = &openpromfs_prop_ops; inode 253 fs/openpromfs/inode.c inode->i_nlink = 1; inode 254 fs/openpromfs/inode.c inode->i_size = ent_oi->u.prop->length; inode 258 fs/openpromfs/inode.c inode->i_gid = 0; inode 259 fs/openpromfs/inode.c inode->i_uid = 0; inode 261 fs/openpromfs/inode.c d_add(dentry, inode); inode 267 fs/openpromfs/inode.c struct inode *inode = filp->f_path.dentry->d_inode; inode 268 fs/openpromfs/inode.c struct op_inode_info *oi = OP_I(inode); inode 277 fs/openpromfs/inode.c ino = inode->i_ino; inode 337 fs/openpromfs/inode.c static struct inode *openprom_alloc_inode(struct super_block *sb) inode 350 fs/openpromfs/inode.c kmem_cache_free(op_inode_cachep, OP_I(inode)); inode 353 fs/openpromfs/inode.c static struct inode *openprom_iget(struct super_block *sb, ino_t ino) inode 355 fs/openpromfs/inode.c struct inode *inode; inode 357 fs/openpromfs/inode.c inode = iget_locked(sb, ino); inode 358 fs/openpromfs/inode.c if (!inode) inode 360 fs/openpromfs/inode.c if (inode->i_state & I_NEW) { inode 361 fs/openpromfs/inode.c inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; inode 362 fs/openpromfs/inode.c if (inode->i_ino == OPENPROM_ROOT_INO) { inode 363 fs/openpromfs/inode.c inode->i_op = &openprom_inode_operations; inode 364 fs/openpromfs/inode.c inode->i_fop = &openprom_operations; inode 365 fs/openpromfs/inode.c inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO; inode 367 fs/openpromfs/inode.c unlock_new_inode(inode); inode 369 fs/openpromfs/inode.c return inode; inode 387 fs/openpromfs/inode.c struct inode *root_inode; inode 50 fs/pipe.c if (pipe->inode) inode 51 fs/pipe.c mutex_unlock(&pipe->inode->i_mutex); inode 54 fs/pipe.c if (pipe->inode) inode 55 fs/pipe.c mutex_lock(&pipe->inode->i_mutex); inode 286 fs/pipe.c struct inode *inode = filp->f_path.dentry->d_inode; inode 300 fs/pipe.c mutex_lock(&inode->i_mutex); inode 301 fs/pipe.c pipe = inode->i_pipe; inode 382 fs/pipe.c mutex_unlock(&inode->i_mutex); inode 399 fs/pipe.c struct inode *inode = filp->f_path.dentry->d_inode; inode 414 fs/pipe.c mutex_lock(&inode->i_mutex); inode 415 fs/pipe.c pipe = inode->i_pipe; inode 557 fs/pipe.c mutex_unlock(&inode->i_mutex); inode 582 fs/pipe.c struct inode *inode = filp->f_path.dentry->d_inode; inode 588 fs/pipe.c mutex_lock(&inode->i_mutex); inode 589 fs/pipe.c pipe = inode->i_pipe; inode 597 fs/pipe.c mutex_unlock(&inode->i_mutex); inode 610 fs/pipe.c struct inode *inode = filp->f_path.dentry->d_inode; inode 611 fs/pipe.c struct pipe_inode_info *pipe = inode->i_pipe; inode 643 fs/pipe.c mutex_lock(&inode->i_mutex); inode 644 fs/pipe.c pipe = inode->i_pipe; inode 649 fs/pipe.c free_pipe_info(inode); inode 655 fs/pipe.c mutex_unlock(&inode->i_mutex); inode 663 fs/pipe.c struct inode *inode = filp->f_path.dentry->d_inode; inode 666 fs/pipe.c mutex_lock(&inode->i_mutex); inode 667 fs/pipe.c retval = fasync_helper(fd, filp, on, &inode->i_pipe->fasync_readers); inode 668 fs/pipe.c mutex_unlock(&inode->i_mutex); inode 680 fs/pipe.c struct inode *inode = filp->f_path.dentry->d_inode; inode 683 fs/pipe.c mutex_lock(&inode->i_mutex); inode 684 fs/pipe.c retval = fasync_helper(fd, filp, on, &inode->i_pipe->fasync_writers); inode 685 fs/pipe.c mutex_unlock(&inode->i_mutex); inode 697 fs/pipe.c struct inode *inode = filp->f_path.dentry->d_inode; inode 698 fs/pipe.c struct pipe_inode_info *pipe = inode->i_pipe; inode 701 fs/pipe.c mutex_lock(&inode->i_mutex); inode 708 fs/pipe.c mutex_unlock(&inode->i_mutex); inode 721 fs/pipe.c return pipe_release(inode, 1, 0); inode 728 fs/pipe.c return pipe_release(inode, 0, 1); inode 739 fs/pipe.c return pipe_release(inode, decr, decw); inode 747 fs/pipe.c mutex_lock(&inode->i_mutex); inode 748 fs/pipe.c inode->i_pipe->readers++; inode 749 fs/pipe.c mutex_unlock(&inode->i_mutex); inode 757 fs/pipe.c mutex_lock(&inode->i_mutex); inode 758 fs/pipe.c inode->i_pipe->writers++; inode 759 fs/pipe.c mutex_unlock(&inode->i_mutex); inode 767 fs/pipe.c mutex_lock(&inode->i_mutex); inode 769 fs/pipe.c inode->i_pipe->readers++; inode 771 fs/pipe.c inode->i_pipe->writers++; inode 772 fs/pipe.c mutex_unlock(&inode->i_mutex); inode 828 fs/pipe.c pipe->inode = inode; inode 850 fs/pipe.c __free_pipe_info(inode->i_pipe); inode 851 fs/pipe.c inode->i_pipe = NULL; inode 881 fs/pipe.c static struct inode * get_pipe_inode(void) inode 883 fs/pipe.c struct inode *inode = new_inode(pipe_mnt->mnt_sb); inode 886 fs/pipe.c if (!inode) inode 889 fs/pipe.c pipe = alloc_pipe_info(inode); inode 892 fs/pipe.c inode->i_pipe = pipe; inode 895 fs/pipe.c inode->i_fop = &rdwr_pipefifo_fops; inode 903 fs/pipe.c inode->i_state = I_DIRTY; inode 904 fs/pipe.c inode->i_mode = S_IFIFO | S_IRUSR | S_IWUSR; inode 905 fs/pipe.c inode->i_uid = current->fsuid; inode 906 fs/pipe.c inode->i_gid = current->fsgid; inode 907 fs/pipe.c inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; inode 909 fs/pipe.c return inode; inode 912 fs/pipe.c iput(inode); inode 921 fs/pipe.c struct inode *inode; inode 927 fs/pipe.c inode = get_pipe_inode(); inode 928 fs/pipe.c if (!inode) inode 943 fs/pipe.c d_instantiate(dentry, inode); inode 949 fs/pipe.c f->f_mapping = inode->i_mapping; inode 957 fs/pipe.c free_pipe_info(inode); inode 962 fs/pipe.c free_pipe_info(inode); inode 963 fs/pipe.c iput(inode); inode 220 fs/posix_acl.c if (inode->i_uid == current->fsuid) inode 228 fs/posix_acl.c if (in_group_p(inode->i_gid)) { inode 176 fs/proc/base.c struct task_struct *task = get_proc_task(inode); inode 197 fs/proc/base.c struct task_struct *task = get_proc_task(inode); inode 360 fs/proc/base.c struct inode *inode = m->private; inode 361 fs/proc/base.c struct task_struct *task = get_proc_task(inode); inode 396 fs/proc/base.c return single_open(file, lstats_show_proc, inode); inode 538 fs/proc/base.c task = get_proc_task(inode); inode 549 fs/proc/base.c struct inode *inode = dentry->d_inode; inode 554 fs/proc/base.c error = inode_change_ok(inode, attr); inode 556 fs/proc/base.c error = inode_setattr(inode, attr); inode 567 fs/proc/base.c struct task_struct *task = get_proc_task(inode); inode 632 fs/proc/base.c return seq_release(inode, file); inode 655 fs/proc/base.c return mounts_open_common(inode, file, &mounts_op); inode 668 fs/proc/base.c return mounts_open_common(inode, file, &mountinfo_op); inode 681 fs/proc/base.c return mounts_open_common(inode, file, &mountstats_op); inode 696 fs/proc/base.c struct inode * inode = file->f_path.dentry->d_inode; inode 699 fs/proc/base.c struct task_struct *task = get_proc_task(inode); inode 712 fs/proc/base.c length = PROC_I(inode)->op.proc_read(task, (char*)page); inode 729 fs/proc/base.c struct inode *inode = m->private; inode 735 fs/proc/base.c ns = inode->i_sb->s_fs_info; inode 736 fs/proc/base.c pid = proc_pid(inode); inode 741 fs/proc/base.c ret = PROC_I(inode)->op.proc_show(m, ns, pid, task); inode 754 fs/proc/base.c m->private = inode; inode 1044 fs/proc/base.c struct inode * inode = file->f_path.dentry->d_inode; inode 1045 fs/proc/base.c struct task_struct *task = get_proc_task(inode); inode 1060 fs/proc/base.c struct inode * inode = file->f_path.dentry->d_inode; inode 1068 fs/proc/base.c if (current != pid_task(proc_pid(inode), PIDTYPE_PID)) inode 1109 fs/proc/base.c struct inode * inode = file->f_path.dentry->d_inode; inode 1110 fs/proc/base.c struct task_struct *task = get_proc_task(inode); inode 1186 fs/proc/base.c struct inode *inode = m->private; inode 1189 fs/proc/base.c WARN_ON(!inode); inode 1191 fs/proc/base.c p = get_proc_task(inode); inode 1205 fs/proc/base.c struct inode *inode = file->f_path.dentry->d_inode; inode 1208 fs/proc/base.c WARN_ON(!inode); inode 1210 fs/proc/base.c p = get_proc_task(inode); inode 1228 fs/proc/base.c m->private = inode; inode 1300 fs/proc/base.c task = get_proc_task(inode); inode 1320 fs/proc/base.c struct inode *inode = dentry->d_inode; inode 1327 fs/proc/base.c if (!proc_fd_access_allowed(inode)) inode 1330 fs/proc/base.c error = PROC_I(inode)->op.proc_get_link(inode, &nd->path); inode 1363 fs/proc/base.c struct inode *inode = dentry->d_inode; inode 1367 fs/proc/base.c if (!proc_fd_access_allowed(inode)) inode 1370 fs/proc/base.c error = PROC_I(inode)->op.proc_get_link(inode, &path); inode 1405 fs/proc/base.c static struct inode *proc_pid_make_inode(struct super_block * sb, struct task_struct *task) inode 1407 fs/proc/base.c struct inode * inode; inode 1412 fs/proc/base.c inode = new_inode(sb); inode 1413 fs/proc/base.c if (!inode) inode 1417 fs/proc/base.c ei = PROC_I(inode); inode 1418 fs/proc/base.c inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; inode 1419 fs/proc/base.c inode->i_op = &proc_def_inode_operations; inode 1428 fs/proc/base.c inode->i_uid = 0; inode 1429 fs/proc/base.c inode->i_gid = 0; inode 1431 fs/proc/base.c inode->i_uid = task->euid; inode 1432 fs/proc/base.c inode->i_gid = task->egid; inode 1434 fs/proc/base.c security_task_to_inode(task, inode); inode 1437 fs/proc/base.c return inode; inode 1440 fs/proc/base.c iput(inode); inode 1446 fs/proc/base.c struct inode *inode = dentry->d_inode; inode 1448 fs/proc/base.c generic_fillattr(inode, stat); inode 1453 fs/proc/base.c task = pid_task(proc_pid(inode), PIDTYPE_PID); inode 1455 fs/proc/base.c if ((inode->i_mode == (S_IFDIR|S_IRUGO|S_IXUGO)) || inode 1484 fs/proc/base.c struct inode *inode = dentry->d_inode; inode 1485 fs/proc/base.c struct task_struct *task = get_proc_task(inode); inode 1487 fs/proc/base.c if ((inode->i_mode == (S_IFDIR|S_IRUGO|S_IXUGO)) || inode 1489 fs/proc/base.c inode->i_uid = task->euid; inode 1490 fs/proc/base.c inode->i_gid = task->egid; inode 1492 fs/proc/base.c inode->i_uid = 0; inode 1493 fs/proc/base.c inode->i_gid = 0; inode 1495 fs/proc/base.c inode->i_mode &= ~(S_ISUID | S_ISGID); inode 1496 fs/proc/base.c security_task_to_inode(task, inode); inode 1541 fs/proc/base.c struct inode *inode; inode 1564 fs/proc/base.c inode = child->d_inode; inode 1565 fs/proc/base.c if (inode) { inode 1566 fs/proc/base.c ino = inode->i_ino; inode 1567 fs/proc/base.c type = inode->i_mode >> 12; inode 1604 fs/proc/base.c struct task_struct *task = get_proc_task(inode); inode 1607 fs/proc/base.c int fd = proc_fd(inode); inode 1643 fs/proc/base.c return proc_fd_info(inode, path, NULL); inode 1648 fs/proc/base.c struct inode *inode = dentry->d_inode; inode 1649 fs/proc/base.c struct task_struct *task = get_proc_task(inode); inode 1650 fs/proc/base.c int fd = proc_fd(inode); inode 1661 fs/proc/base.c inode->i_uid = task->euid; inode 1662 fs/proc/base.c inode->i_gid = task->egid; inode 1664 fs/proc/base.c inode->i_uid = 0; inode 1665 fs/proc/base.c inode->i_gid = 0; inode 1667 fs/proc/base.c inode->i_mode &= ~(S_ISUID | S_ISGID); inode 1668 fs/proc/base.c security_task_to_inode(task, inode); inode 1693 fs/proc/base.c struct inode *inode; inode 1697 fs/proc/base.c inode = proc_pid_make_inode(dir->i_sb, task); inode 1698 fs/proc/base.c if (!inode) inode 1700 fs/proc/base.c ei = PROC_I(inode); inode 1705 fs/proc/base.c inode->i_mode = S_IFLNK; inode 1716 fs/proc/base.c inode->i_mode |= S_IRUSR | S_IXUSR; inode 1718 fs/proc/base.c inode->i_mode |= S_IWUSR | S_IXUSR; inode 1722 fs/proc/base.c inode->i_op = &proc_pid_link_inode_operations; inode 1723 fs/proc/base.c inode->i_size = 64; inode 1726 fs/proc/base.c d_add(dentry, inode); inode 1737 fs/proc/base.c iput(inode); inode 1765 fs/proc/base.c struct inode *inode = dentry->d_inode; inode 1766 fs/proc/base.c struct task_struct *p = get_proc_task(inode); inode 1779 fs/proc/base.c if (filldir(dirent, ".", 1, 0, inode->i_ino, DT_DIR) < 0) inode 1859 fs/proc/base.c rv = generic_permission(inode, mask, NULL); inode 1862 fs/proc/base.c if (task_pid(current) == proc_pid(inode)) inode 1880 fs/proc/base.c struct inode *inode; inode 1884 fs/proc/base.c inode = proc_pid_make_inode(dir->i_sb, task); inode 1885 fs/proc/base.c if (!inode) inode 1887 fs/proc/base.c ei = PROC_I(inode); inode 1889 fs/proc/base.c inode->i_mode = S_IFREG | S_IRUSR; inode 1890 fs/proc/base.c inode->i_fop = &proc_fdinfo_file_operations; inode 1892 fs/proc/base.c d_add(dentry, inode); inode 1932 fs/proc/base.c struct inode *inode; inode 1936 fs/proc/base.c inode = proc_pid_make_inode(dir->i_sb, task); inode 1937 fs/proc/base.c if (!inode) inode 1940 fs/proc/base.c ei = PROC_I(inode); inode 1941 fs/proc/base.c inode->i_mode = p->mode; inode 1942 fs/proc/base.c if (S_ISDIR(inode->i_mode)) inode 1943 fs/proc/base.c inode->i_nlink = 2; /* Use getattr to fix if necessary */ inode 1945 fs/proc/base.c inode->i_op = p->iop; inode 1947 fs/proc/base.c inode->i_fop = p->fop; inode 1950 fs/proc/base.c d_add(dentry, inode); inode 1963 fs/proc/base.c struct inode *inode; inode 1969 fs/proc/base.c inode = NULL; inode 2008 fs/proc/base.c struct inode *inode = dentry->d_inode; inode 2009 fs/proc/base.c struct task_struct *task = get_proc_task(inode); inode 2022 fs/proc/base.c ino = inode->i_ino; inode 2062 fs/proc/base.c struct inode * inode = file->f_path.dentry->d_inode; inode 2065 fs/proc/base.c struct task_struct *task = get_proc_task(inode); inode 2083 fs/proc/base.c struct inode * inode = file->f_path.dentry->d_inode; inode 2086 fs/proc/base.c struct task_struct *task = get_proc_task(inode); inode 2295 fs/proc/base.c struct inode *inode = dentry->d_inode; inode 2296 fs/proc/base.c struct task_struct *task = get_proc_task(inode); inode 2315 fs/proc/base.c struct inode *inode; inode 2321 fs/proc/base.c inode = new_inode(dir->i_sb); inode 2322 fs/proc/base.c if (!inode) inode 2326 fs/proc/base.c ei = PROC_I(inode); inode 2327 fs/proc/base.c inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; inode 2336 fs/proc/base.c inode->i_uid = 0; inode 2337 fs/proc/base.c inode->i_gid = 0; inode 2338 fs/proc/base.c inode->i_mode = p->mode; inode 2339 fs/proc/base.c if (S_ISDIR(inode->i_mode)) inode 2340 fs/proc/base.c inode->i_nlink = 2; inode 2341 fs/proc/base.c if (S_ISLNK(inode->i_mode)) inode 2342 fs/proc/base.c inode->i_size = 64; inode 2344 fs/proc/base.c inode->i_op = p->iop; inode 2346 fs/proc/base.c inode->i_fop = p->fop; inode 2349 fs/proc/base.c d_add(dentry, inode); inode 2354 fs/proc/base.c iput(inode); inode 2644 fs/proc/base.c struct inode *inode; inode 2646 fs/proc/base.c inode = proc_pid_make_inode(dir->i_sb, task); inode 2647 fs/proc/base.c if (!inode) inode 2650 fs/proc/base.c inode->i_mode = S_IFDIR|S_IRUGO|S_IXUGO; inode 2651 fs/proc/base.c inode->i_op = &proc_tgid_base_inode_operations; inode 2652 fs/proc/base.c inode->i_fop = &proc_tgid_base_operations; inode 2653 fs/proc/base.c inode->i_flags|=S_IMMUTABLE; inode 2655 fs/proc/base.c inode->i_nlink = 2 + pid_entry_count_dirs(tgid_base_stuff, inode 2660 fs/proc/base.c d_add(dentry, inode); inode 2882 fs/proc/base.c struct inode *inode; inode 2883 fs/proc/base.c inode = proc_pid_make_inode(dir->i_sb, task); inode 2885 fs/proc/base.c if (!inode) inode 2887 fs/proc/base.c inode->i_mode = S_IFDIR|S_IRUGO|S_IXUGO; inode 2888 fs/proc/base.c inode->i_op = &proc_tid_base_inode_operations; inode 2889 fs/proc/base.c inode->i_fop = &proc_tid_base_operations; inode 2890 fs/proc/base.c inode->i_flags|=S_IMMUTABLE; inode 2892 fs/proc/base.c inode->i_nlink = 2 + pid_entry_count_dirs(tid_base_stuff, inode 2897 fs/proc/base.c d_add(dentry, inode); inode 3022 fs/proc/base.c struct inode *inode = dentry->d_inode; inode 3031 fs/proc/base.c task = get_proc_task(inode); inode 3047 fs/proc/base.c ino = inode->i_ino; inode 3087 fs/proc/base.c struct inode *inode = dentry->d_inode; inode 3088 fs/proc/base.c struct task_struct *p = get_proc_task(inode); inode 3089 fs/proc/base.c generic_fillattr(inode, stat); inode 44 fs/proc/generic.c struct inode * inode = file->f_path.dentry->d_inode; inode 64 fs/proc/generic.c dp = PDE(inode); inode 190 fs/proc/generic.c struct inode *inode = file->f_path.dentry->d_inode; inode 193 fs/proc/generic.c dp = PDE(inode); inode 227 fs/proc/generic.c struct inode *inode = dentry->d_inode; inode 228 fs/proc/generic.c struct proc_dir_entry *de = PDE(inode); inode 231 fs/proc/generic.c error = inode_change_ok(inode, iattr); inode 235 fs/proc/generic.c error = inode_setattr(inode, iattr); inode 239 fs/proc/generic.c de->uid = inode->i_uid; inode 240 fs/proc/generic.c de->gid = inode->i_gid; inode 241 fs/proc/generic.c de->mode = inode->i_mode; inode 249 fs/proc/generic.c struct inode *inode = dentry->d_inode; inode 250 fs/proc/generic.c struct proc_dir_entry *de = PROC_I(inode)->pde; inode 252 fs/proc/generic.c inode->i_nlink = de->nlink; inode 254 fs/proc/generic.c generic_fillattr(inode, stat); inode 379 fs/proc/generic.c struct inode *inode = NULL; inode 394 fs/proc/generic.c inode = proc_get_inode(dir->i_sb, ino, de); inode 402 fs/proc/generic.c if (inode) { inode 404 fs/proc/generic.c d_add(dentry, inode); inode 432 fs/proc/generic.c struct inode *inode = filp->f_path.dentry->d_inode; inode 437 fs/proc/generic.c ino = inode->i_ino; inode 496 fs/proc/generic.c struct inode *inode = filp->f_path.dentry->d_inode; inode 498 fs/proc/generic.c return proc_readdir_de(PDE(inode), filp, dirent, filldir); inode 798 fs/proc/generic.c pdeo->release(pdeo->inode, pdeo->file); inode 57 fs/proc/inode.c truncate_inode_pages(&inode->i_data, 0); inode 60 fs/proc/inode.c put_pid(PROC_I(inode)->pid); inode 63 fs/proc/inode.c de = PROC_I(inode)->pde; inode 69 fs/proc/inode.c if (PROC_I(inode)->sysctl) inode 70 fs/proc/inode.c sysctl_head_put(PROC_I(inode)->sysctl); inode 71 fs/proc/inode.c clear_inode(inode); inode 78 fs/proc/inode.c static struct inode *proc_alloc_inode(struct super_block *sb) inode 81 fs/proc/inode.c struct inode *inode; inode 92 fs/proc/inode.c inode = &ei->vfs_inode; inode 93 fs/proc/inode.c inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; inode 94 fs/proc/inode.c return inode; inode 99 fs/proc/inode.c kmem_cache_free(proc_inode_cachep, PROC_I(inode)); inode 247 fs/proc/inode.c int (*ioctl)(struct inode *, struct file *, unsigned int, unsigned long); inode 321 fs/proc/inode.c struct proc_dir_entry *pde = PDE(inode); inode 323 fs/proc/inode.c int (*open)(struct inode *, struct file *); inode 324 fs/proc/inode.c int (*release)(struct inode *, struct file *); inode 353 fs/proc/inode.c rv = open(inode, file); inode 358 fs/proc/inode.c pdeo->inode = inode; inode 376 fs/proc/inode.c if (pdeo->inode == inode && pdeo->file == file) inode 384 fs/proc/inode.c struct proc_dir_entry *pde = PDE(inode); inode 386 fs/proc/inode.c int (*release)(struct inode *, struct file *); inode 390 fs/proc/inode.c pdeo = find_pde_opener(pde, inode, file); inode 403 fs/proc/inode.c rv = pdeo->release(inode, file); inode 418 fs/proc/inode.c rv = release(inode, file); inode 451 fs/proc/inode.c struct inode *proc_get_inode(struct super_block *sb, unsigned int ino, inode 454 fs/proc/inode.c struct inode * inode; inode 459 fs/proc/inode.c inode = iget_locked(sb, ino); inode 460 fs/proc/inode.c if (!inode) inode 462 fs/proc/inode.c if (inode->i_state & I_NEW) { inode 463 fs/proc/inode.c inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; inode 464 fs/proc/inode.c PROC_I(inode)->fd = 0; inode 465 fs/proc/inode.c PROC_I(inode)->pde = de; inode 468 fs/proc/inode.c inode->i_mode = de->mode; inode 469 fs/proc/inode.c inode->i_uid = de->uid; inode 470 fs/proc/inode.c inode->i_gid = de->gid; inode 473 fs/proc/inode.c inode->i_size = de->size; inode 475 fs/proc/inode.c inode->i_nlink = de->nlink; inode 477 fs/proc/inode.c inode->i_op = de->proc_iops; inode 479 fs/proc/inode.c if (S_ISREG(inode->i_mode)) { inode 482 fs/proc/inode.c inode->i_fop = inode 486 fs/proc/inode.c inode->i_fop = &proc_reg_file_ops; inode 488 fs/proc/inode.c inode->i_fop = de->proc_fops; inode 491 fs/proc/inode.c unlock_new_inode(inode); inode 494 fs/proc/inode.c return inode; inode 504 fs/proc/inode.c struct inode * root_inode; inode 73 fs/proc/internal.h return PROC_I(inode)->pid; inode 78 fs/proc/internal.h return get_pid_task(proc_pid(inode), PIDTYPE_PID); inode 83 fs/proc/internal.h return PROC_I(inode)->fd; inode 92 fs/proc/internal.h struct inode *inode; inode 94 fs/proc/internal.h int (*release)(struct inode *, struct file *); inode 49 fs/proc/nommu.c struct inode *inode = vma->vm_file->f_path.dentry->d_inode; inode 50 fs/proc/nommu.c dev = inode->i_sb->s_dev; inode 51 fs/proc/nommu.c ino = inode->i_ino; inode 243 fs/proc/proc_misc.c (void)inode; inode 32 fs/proc/proc_net.c return maybe_get_net(PDE_NET(PDE(inode))); inode 66 fs/proc/proc_net.c net = get_proc_net(inode); inode 139 fs/proc/proc_net.c struct inode *inode = dentry->d_inode; inode 142 fs/proc/proc_net.c net = get_proc_task_net(inode); inode 144 fs/proc/proc_net.c generic_fillattr(inode, stat); inode 16 fs/proc/proc_sysctl.c static struct inode *proc_sys_make_inode(struct super_block *sb, inode 19 fs/proc/proc_sysctl.c struct inode *inode; inode 22 fs/proc/proc_sysctl.c inode = new_inode(sb); inode 23 fs/proc/proc_sysctl.c if (!inode) inode 27 fs/proc/proc_sysctl.c ei = PROC_I(inode); inode 31 fs/proc/proc_sysctl.c inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; inode 32 fs/proc/proc_sysctl.c inode->i_flags |= S_PRIVATE; /* tell selinux to ignore this inode */ inode 33 fs/proc/proc_sysctl.c inode->i_mode = table->mode; inode 35 fs/proc/proc_sysctl.c inode->i_mode |= S_IFREG; inode 36 fs/proc/proc_sysctl.c inode->i_op = &proc_sys_inode_operations; inode 37 fs/proc/proc_sysctl.c inode->i_fop = &proc_sys_file_operations; inode 39 fs/proc/proc_sysctl.c inode->i_mode |= S_IFDIR; inode 40 fs/proc/proc_sysctl.c inode->i_nlink = 0; inode 41 fs/proc/proc_sysctl.c inode->i_op = &proc_sys_dir_operations; inode 42 fs/proc/proc_sysctl.c inode->i_fop = &proc_sys_dir_file_operations; inode 45 fs/proc/proc_sysctl.c return inode; inode 71 fs/proc/proc_sysctl.c if (PROC_I(inode)->sysctl) inode 72 fs/proc/proc_sysctl.c return sysctl_head_grab(PROC_I(inode)->sysctl); inode 85 fs/proc/proc_sysctl.c struct inode *inode; inode 113 fs/proc/proc_sysctl.c inode = proc_sys_make_inode(dir->i_sb, h ? h : head, p); inode 117 fs/proc/proc_sysctl.c if (!inode) inode 122 fs/proc/proc_sysctl.c d_add(dentry, inode); inode 132 fs/proc/proc_sysctl.c struct inode *inode = filp->f_path.dentry->d_inode; inode 133 fs/proc/proc_sysctl.c struct ctl_table_header *head = grab_header(inode); inode 134 fs/proc/proc_sysctl.c struct ctl_table *table = PROC_I(inode)->sysctl_entry; inode 184 fs/proc/proc_sysctl.c struct inode *inode; inode 197 fs/proc/proc_sysctl.c inode = proc_sys_make_inode(dir->d_sb, head, table); inode 198 fs/proc/proc_sysctl.c if (!inode) { inode 203 fs/proc/proc_sysctl.c d_add(child, inode); inode 209 fs/proc/proc_sysctl.c inode = child->d_inode; inode 210 fs/proc/proc_sysctl.c ino = inode->i_ino; inode 211 fs/proc/proc_sysctl.c type = inode->i_mode >> 12; inode 243 fs/proc/proc_sysctl.c struct inode *inode = dentry->d_inode; inode 244 fs/proc/proc_sysctl.c struct ctl_table_header *head = grab_header(inode); inode 245 fs/proc/proc_sysctl.c struct ctl_table *table = PROC_I(inode)->sysctl_entry; inode 264 fs/proc/proc_sysctl.c inode->i_ino, DT_DIR) < 0) inode 301 fs/proc/proc_sysctl.c struct ctl_table_header *head = grab_header(inode); inode 302 fs/proc/proc_sysctl.c struct ctl_table *table = PROC_I(inode)->sysctl_entry; inode 319 fs/proc/proc_sysctl.c struct inode *inode = dentry->d_inode; inode 325 fs/proc/proc_sysctl.c error = inode_change_ok(inode, attr); inode 327 fs/proc/proc_sysctl.c error = inode_setattr(inode, attr); inode 334 fs/proc/proc_sysctl.c struct inode *inode = dentry->d_inode; inode 335 fs/proc/proc_sysctl.c struct ctl_table_header *head = grab_header(inode); inode 336 fs/proc/proc_sysctl.c struct ctl_table *table = PROC_I(inode)->sysctl_entry; inode 341 fs/proc/proc_sysctl.c generic_fillattr(inode, stat); inode 189 fs/proc/task_mmu.c priv->pid = proc_pid(inode); inode 214 fs/proc/task_mmu.c struct inode *inode = vma->vm_file->f_path.dentry->d_inode; inode 215 fs/proc/task_mmu.c dev = inode->i_sb->s_dev; inode 216 fs/proc/task_mmu.c ino = inode->i_ino; inode 272 fs/proc/task_mmu.c return do_maps_open(inode, file, &proc_pid_maps_op); inode 417 fs/proc/task_mmu.c return do_maps_open(inode, file, &proc_pid_smaps_op); inode 751 fs/proc/task_mmu.c return do_maps_open(inode, file, &proc_pid_numa_maps_op); inode 177 fs/proc/task_nommu.c priv->pid = proc_pid(inode); inode 147 fs/qnx4/bitmap.c struct qnx4_inode_entry *qnx4_ino = qnx4_raw_inode(inode); inode 158 fs/qnx4/bitmap.c if (inode->i_ino < 1) { inode 162 fs/qnx4/bitmap.c qnx4_clear_inode(inode); inode 163 fs/qnx4/bitmap.c clear_inode(inode); inode 25 fs/qnx4/dir.c struct inode *inode = filp->f_path.dentry->d_inode; inode 34 fs/qnx4/dir.c QNX4DEBUG(("qnx4_readdir:i_size = %ld\n", (long) inode->i_size)); inode 39 fs/qnx4/dir.c while (filp->f_pos < inode->i_size) { inode 40 fs/qnx4/dir.c blknum = qnx4_block_map( inode, filp->f_pos >> QNX4_BLOCK_SIZE_BITS ); inode 41 fs/qnx4/dir.c bh = sb_bread(inode->i_sb, blknum); inode 39 fs/qnx4/fsync.c bh = sb_find_get_block(inode->i_sb, *block); inode 70 fs/qnx4/fsync.c rc = sync_block(inode, iblock, wait); inode 73 fs/qnx4/fsync.c *bh = sb_bread(inode->i_sb, tmp); inode 91 fs/qnx4/fsync.c rc = sync_block(inode, inode 92 fs/qnx4/fsync.c (unsigned short *) qnx4_raw_inode(inode)->di_first_xtnt.xtnt_blk + i, wait); inode 108 fs/qnx4/fsync.c rc = sync_iblock(inode, iblock, &ind_bh, wait); inode 113 fs/qnx4/fsync.c rc = sync_block(inode, inode 132 fs/qnx4/fsync.c rc = sync_iblock(inode, diblock, &dind_bh, wait); inode 137 fs/qnx4/fsync.c rc = sync_indirect(inode, inode 152 fs/qnx4/fsync.c struct inode *inode = dentry->d_inode; inode 156 fs/qnx4/fsync.c if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || inode 157 fs/qnx4/fsync.c S_ISLNK(inode->i_mode))) inode 162 fs/qnx4/fsync.c err |= sync_direct(inode, wait); inode 164 fs/qnx4/fsync.c err |= qnx4_sync_inode(inode); inode 43 fs/qnx4/inode.c bh = qnx4_update_inode(inode); inode 50 fs/qnx4/inode.c inode->i_sb->s_id, inode->i_ino); inode 64 fs/qnx4/inode.c QNX4DEBUG(("qnx4: deleting inode [%lu]\n", (unsigned long) inode->i_ino)); inode 65 fs/qnx4/inode.c truncate_inode_pages(&inode->i_data, 0); inode 66 fs/qnx4/inode.c inode->i_size = 0; inode 67 fs/qnx4/inode.c qnx4_truncate(inode); inode 69 fs/qnx4/inode.c qnx4_free_inode(inode); inode 86 fs/qnx4/inode.c ino = inode->i_ino; inode 89 fs/qnx4/inode.c if (inode->i_nlink == 0) { inode 94 fs/qnx4/inode.c inode->i_sb->s_id, ino); inode 100 fs/qnx4/inode.c if (!(bh = sb_bread(inode->i_sb, block))) { inode 102 fs/qnx4/inode.c "%s\n", inode->i_sb->s_id); inode 108 fs/qnx4/inode.c raw_inode->di_mode = cpu_to_le16(inode->i_mode); inode 109 fs/qnx4/inode.c raw_inode->di_uid = cpu_to_le16(fs_high2lowuid(inode->i_uid)); inode 110 fs/qnx4/inode.c raw_inode->di_gid = cpu_to_le16(fs_high2lowgid(inode->i_gid)); inode 111 fs/qnx4/inode.c raw_inode->di_nlink = cpu_to_le16(inode->i_nlink); inode 112 fs/qnx4/inode.c raw_inode->di_size = cpu_to_le32(inode->i_size); inode 113 fs/qnx4/inode.c raw_inode->di_mtime = cpu_to_le32(inode->i_mtime.tv_sec); inode 114 fs/qnx4/inode.c raw_inode->di_atime = cpu_to_le32(inode->i_atime.tv_sec); inode 115 fs/qnx4/inode.c raw_inode->di_ctime = cpu_to_le32(inode->i_ctime.tv_sec); inode 116 fs/qnx4/inode.c raw_inode->di_first_xtnt.xtnt_size = cpu_to_le32(inode->i_blocks); inode 126 fs/qnx4/inode.c static struct inode *qnx4_alloc_inode(struct super_block *sb); inode 169 fs/qnx4/inode.c nr = qnx4_block_map( inode, nr ); inode 171 fs/qnx4/inode.c result = sb_getblk(inode->i_sb, nr); inode 178 fs/qnx4/inode.c tmp = qnx4_new_block(inode->i_sb); inode 182 fs/qnx4/inode.c result = sb_getblk(inode->i_sb, tmp); inode 184 fs/qnx4/inode.c qnx4_free_block(inode->i_sb, tmp); inode 190 fs/qnx4/inode.c inode->i_ctime = CURRENT_TIME_SEC; inode 191 fs/qnx4/inode.c mark_inode_dirty(inode); inode 199 fs/qnx4/inode.c bh = qnx4_getblk(inode, block, create); inode 217 fs/qnx4/inode.c QNX4DEBUG(("qnx4: qnx4_get_block inode=[%ld] iblock=[%ld]\n",inode->i_ino,iblock)); inode 219 fs/qnx4/inode.c phys = qnx4_block_map( inode, iblock ); inode 222 fs/qnx4/inode.c map_bh(bh, inode->i_sb, phys); inode 236 fs/qnx4/inode.c struct qnx4_inode_entry *qnx4_inode = qnx4_raw_inode(inode); inode 250 fs/qnx4/inode.c bh = sb_bread(inode->i_sb, i_xblk - 1); inode 278 fs/qnx4/inode.c QNX4DEBUG(("qnx4: mapping block %ld of inode %ld = %ld\n",iblock,inode->i_ino,block)); inode 355 fs/qnx4/inode.c struct inode *root; inode 466 fs/qnx4/inode.c struct inode *qnx4_iget(struct super_block *sb, unsigned long ino) inode 472 fs/qnx4/inode.c struct inode *inode; inode 474 fs/qnx4/inode.c inode = iget_locked(sb, ino); inode 475 fs/qnx4/inode.c if (!inode) inode 477 fs/qnx4/inode.c if (!(inode->i_state & I_NEW)) inode 478 fs/qnx4/inode.c return inode; inode 480 fs/qnx4/inode.c qnx4_inode = qnx4_raw_inode(inode); inode 481 fs/qnx4/inode.c inode->i_mode = 0; inode 488 fs/qnx4/inode.c iget_failed(inode); inode 496 fs/qnx4/inode.c iget_failed(inode); inode 502 fs/qnx4/inode.c inode->i_mode = le16_to_cpu(raw_inode->di_mode); inode 503 fs/qnx4/inode.c inode->i_uid = (uid_t)le16_to_cpu(raw_inode->di_uid); inode 504 fs/qnx4/inode.c inode->i_gid = (gid_t)le16_to_cpu(raw_inode->di_gid); inode 505 fs/qnx4/inode.c inode->i_nlink = le16_to_cpu(raw_inode->di_nlink); inode 506 fs/qnx4/inode.c inode->i_size = le32_to_cpu(raw_inode->di_size); inode 507 fs/qnx4/inode.c inode->i_mtime.tv_sec = le32_to_cpu(raw_inode->di_mtime); inode 508 fs/qnx4/inode.c inode->i_mtime.tv_nsec = 0; inode 509 fs/qnx4/inode.c inode->i_atime.tv_sec = le32_to_cpu(raw_inode->di_atime); inode 510 fs/qnx4/inode.c inode->i_atime.tv_nsec = 0; inode 511 fs/qnx4/inode.c inode->i_ctime.tv_sec = le32_to_cpu(raw_inode->di_ctime); inode 512 fs/qnx4/inode.c inode->i_ctime.tv_nsec = 0; inode 513 fs/qnx4/inode.c inode->i_blocks = le32_to_cpu(raw_inode->di_first_xtnt.xtnt_size); inode 516 fs/qnx4/inode.c if (S_ISREG(inode->i_mode)) { inode 517 fs/qnx4/inode.c inode->i_op = &qnx4_file_inode_operations; inode 518 fs/qnx4/inode.c inode->i_fop = &qnx4_file_operations; inode 519 fs/qnx4/inode.c inode->i_mapping->a_ops = &qnx4_aops; inode 520 fs/qnx4/inode.c qnx4_i(inode)->mmu_private = inode->i_size; inode 521 fs/qnx4/inode.c } else if (S_ISDIR(inode->i_mode)) { inode 522 fs/qnx4/inode.c inode->i_op = &qnx4_dir_inode_operations; inode 523 fs/qnx4/inode.c inode->i_fop = &qnx4_dir_operations; inode 524 fs/qnx4/inode.c } else if (S_ISLNK(inode->i_mode)) { inode 525 fs/qnx4/inode.c inode->i_op = &page_symlink_inode_operations; inode 526 fs/qnx4/inode.c inode->i_mapping->a_ops = &qnx4_aops; inode 527 fs/qnx4/inode.c qnx4_i(inode)->mmu_private = inode->i_size; inode 531 fs/qnx4/inode.c iget_failed(inode); inode 536 fs/qnx4/inode.c unlock_new_inode(inode); inode 537 fs/qnx4/inode.c return inode; inode 542 fs/qnx4/inode.c static struct inode *qnx4_alloc_inode(struct super_block *sb) inode 553 fs/qnx4/inode.c kmem_cache_free(qnx4_inode_cachep, qnx4_i(inode)); inode 117 fs/qnx4/namei.c struct inode *foundinode = NULL; inode 160 fs/qnx4/namei.c struct inode *inode; inode 172 fs/qnx4/namei.c inode = dentry->d_inode; inode 173 fs/qnx4/namei.c if (inode->i_ino != ino) { inode 178 fs/qnx4/namei.c if (!empty_dir(inode)) { inode 183 fs/qnx4/namei.c if (inode->i_nlink != 2) { inode 184 fs/qnx4/namei.c QNX4DEBUG(("empty directory has nlink!=2 (%d)\n", inode->i_nlink)); inode 191 fs/qnx4/namei.c clear_nlink(inode); inode 192 fs/qnx4/namei.c mark_inode_dirty(inode); inode 193 fs/qnx4/namei.c inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME_SEC; inode 208 fs/qnx4/namei.c struct inode *inode; inode 220 fs/qnx4/namei.c inode = dentry->d_inode; inode 221 fs/qnx4/namei.c if (inode->i_ino != ino) { inode 226 fs/qnx4/namei.c if (!inode->i_nlink) { inode 228 fs/qnx4/namei.c inode->i_sb->s_id, inode 229 fs/qnx4/namei.c inode->i_ino, inode->i_nlink)); inode 230 fs/qnx4/namei.c inode->i_nlink = 1; inode 238 fs/qnx4/namei.c inode->i_ctime = dir->i_ctime; inode 239 fs/qnx4/namei.c inode_dec_link_count(inode); inode 24 fs/qnx4/truncate.c if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || inode 25 fs/qnx4/truncate.c S_ISLNK(inode->i_mode))) { inode 29 fs/qnx4/truncate.c if (!(S_ISDIR(inode->i_mode))) { inode 33 fs/qnx4/truncate.c inode->i_mtime = inode->i_ctime = CURRENT_TIME_SEC; inode 34 fs/qnx4/truncate.c mark_inode_dirty(inode); inode 106 fs/quota_v1.c struct inode *inode = sb_dqopt(sb)->files[type]; inode 114 fs/quota_v1.c isize = i_size_read(inode); inode 79 fs/ramfs/file-nommu.c if (newsize > inode->i_sb->s_maxbytes) inode 82 fs/ramfs/file-nommu.c i_size_write(inode, newsize); inode 86 fs/ramfs/file-nommu.c pages = alloc_pages(mapping_gfp_mask(inode->i_mapping), order); inode 110 fs/ramfs/file-nommu.c ret = add_to_page_cache(page, inode->i_mapping, loop, GFP_KERNEL); inode 146 fs/ramfs/file-nommu.c vma_prio_tree_foreach(vma, &iter, &inode->i_mapping->i_mmap, inode 173 fs/ramfs/file-nommu.c return ramfs_nommu_expand_for_mapping(inode, newsize); inode 178 fs/ramfs/file-nommu.c ret = ramfs_nommu_check_mappings(inode, newsize, size); inode 183 fs/ramfs/file-nommu.c ret = vmtruncate(inode, newsize); inode 195 fs/ramfs/file-nommu.c struct inode *inode = dentry->d_inode; inode 200 fs/ramfs/file-nommu.c ret = inode_change_ok(inode, ia); inode 205 fs/ramfs/file-nommu.c if ((old_ia_valid & ATTR_UID && ia->ia_uid != inode->i_uid) || inode 206 fs/ramfs/file-nommu.c (old_ia_valid & ATTR_GID && ia->ia_gid != inode->i_gid)) inode 207 fs/ramfs/file-nommu.c ret = DQUOT_TRANSFER(inode, ia) ? -EDQUOT : 0; inode 211 fs/ramfs/file-nommu.c loff_t size = i_size_read(inode); inode 213 fs/ramfs/file-nommu.c ret = ramfs_nommu_resize(inode, ia->ia_size, size); inode 224 fs/ramfs/file-nommu.c ret = inode_setattr(inode, ia); inode 242 fs/ramfs/file-nommu.c struct inode *inode = file->f_path.dentry->d_inode; inode 251 fs/ramfs/file-nommu.c isize = i_size_read(inode); inode 267 fs/ramfs/file-nommu.c nr = find_get_pages(inode->i_mapping, pgoff, lpages, pages); inode 52 fs/ramfs/inode.c struct inode *ramfs_get_inode(struct super_block *sb, int mode, dev_t dev) inode 54 fs/ramfs/inode.c struct inode * inode = new_inode(sb); inode 56 fs/ramfs/inode.c if (inode) { inode 57 fs/ramfs/inode.c inode->i_mode = mode; inode 58 fs/ramfs/inode.c inode->i_uid = current->fsuid; inode 59 fs/ramfs/inode.c inode->i_gid = current->fsgid; inode 60 fs/ramfs/inode.c inode->i_blocks = 0; inode 61 fs/ramfs/inode.c inode->i_mapping->a_ops = &ramfs_aops; inode 62 fs/ramfs/inode.c inode->i_mapping->backing_dev_info = &ramfs_backing_dev_info; inode 63 fs/ramfs/inode.c mapping_set_gfp_mask(inode->i_mapping, GFP_HIGHUSER); inode 64 fs/ramfs/inode.c inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; inode 67 fs/ramfs/inode.c init_special_inode(inode, mode, dev); inode 70 fs/ramfs/inode.c inode->i_op = &ramfs_file_inode_operations; inode 71 fs/ramfs/inode.c inode->i_fop = &ramfs_file_operations; inode 74 fs/ramfs/inode.c inode->i_op = &ramfs_dir_inode_operations; inode 75 fs/ramfs/inode.c inode->i_fop = &simple_dir_operations; inode 78 fs/ramfs/inode.c inc_nlink(inode); inode 81 fs/ramfs/inode.c inode->i_op = &page_symlink_inode_operations; inode 85 fs/ramfs/inode.c return inode; inode 95 fs/ramfs/inode.c struct inode * inode = ramfs_get_inode(dir->i_sb, mode, dev); inode 98 fs/ramfs/inode.c if (inode) { inode 100 fs/ramfs/inode.c inode->i_gid = dir->i_gid; inode 102 fs/ramfs/inode.c inode->i_mode |= S_ISGID; inode 104 fs/ramfs/inode.c d_instantiate(dentry, inode); inode 127 fs/ramfs/inode.c struct inode *inode; inode 130 fs/ramfs/inode.c inode = ramfs_get_inode(dir->i_sb, S_IFLNK|S_IRWXUGO, 0); inode 131 fs/ramfs/inode.c if (inode) { inode 133 fs/ramfs/inode.c error = page_symlink(inode, symname, l); inode 136 fs/ramfs/inode.c inode->i_gid = dir->i_gid; inode 137 fs/ramfs/inode.c d_instantiate(dentry, inode); inode 141 fs/ramfs/inode.c iput(inode); inode 165 fs/ramfs/inode.c struct inode * inode; inode 174 fs/ramfs/inode.c inode = ramfs_get_inode(sb, S_IFDIR | 0755, 0); inode 175 fs/ramfs/inode.c if (!inode) inode 178 fs/ramfs/inode.c root = d_alloc_root(inode); inode 180 fs/ramfs/inode.c iput(inode); inode 38 fs/read_write.c struct inode *inode = file->f_mapping->host; inode 42 fs/read_write.c offset += inode->i_size; inode 48 fs/read_write.c if (offset>=0 && offset<=inode->i_sb->s_maxbytes) { inode 182 fs/read_write.c struct inode *inode; inode 186 fs/read_write.c inode = file->f_path.dentry->d_inode; inode 193 fs/read_write.c if (unlikely(inode->i_flock && mandatory_lock(inode))) { inode 196 fs/read_write.c inode, file, pos, count); inode 686 fs/read_write.c struct inode * in_inode, * out_inode; inode 24 fs/readdir.c struct inode *inode = file->f_path.dentry->d_inode; inode 33 fs/readdir.c res = mutex_lock_killable(&inode->i_mutex); inode 38 fs/readdir.c if (!IS_DEADDIR(inode)) { inode 42 fs/readdir.c mutex_unlock(&inode->i_mutex); inode 433 fs/reiserfs/bitmap.c DQUOT_FREE_BLOCK_NODIRTY(inode, 1); inode 456 fs/reiserfs/bitmap.c _reiserfs_free_block(th, inode, block, for_unformatted); inode 468 fs/reiserfs/bitmap.c _reiserfs_free_block(th, inode, block, 1); inode 476 fs/reiserfs/bitmap.c struct inode *inode = &ei->vfs_inode; inode 485 fs/reiserfs/bitmap.c reiserfs_free_prealloc_block(th, inode, ei->i_prealloc_block); inode 491 fs/reiserfs/bitmap.c reiserfs_update_sd(th, inode); inode 500 fs/reiserfs/bitmap.c struct reiserfs_inode_info *ei = REISERFS_I(inode); inode 649 fs/reiserfs/bitmap.c if (!hint->inode) { inode 654 fs/reiserfs/bitmap.c hash_in = (char *)(&INODE_PKEY(hint->inode)->k_dir_id); inode 657 fs/reiserfs/bitmap.c (char *)(&INODE_PKEY(hint->inode)->k_objectid); inode 674 fs/reiserfs/bitmap.c if (hint->inode) inode 675 fs/reiserfs/bitmap.c dirid = le32_to_cpu(INODE_PKEY(hint->inode)->k_dir_id); inode 683 fs/reiserfs/bitmap.c if (hint->inode) inode 695 fs/reiserfs/bitmap.c if (hint->inode) { inode 701 fs/reiserfs/bitmap.c dirid = le32_to_cpu(INODE_PKEY(hint->inode)->k_dir_id); inode 707 fs/reiserfs/bitmap.c hash = (hint->inode->i_sb->s_blocksize << 3); inode 709 fs/reiserfs/bitmap.c oid = le32_to_cpu(INODE_PKEY(hint->inode)->k_objectid); inode 710 fs/reiserfs/bitmap.c bm = bmap_hash_id(hint->inode->i_sb, oid); inode 711 fs/reiserfs/bitmap.c hash = bm * (hint->inode->i_sb->s_blocksize << 3); inode 784 fs/reiserfs/bitmap.c keyed_hash((char *)(&INODE_PKEY(hint->inode)->k_dir_id), inode 789 fs/reiserfs/bitmap.c keyed_hash((char *)(&INODE_PKEY(hint->inode)->k_objectid), inode 797 fs/reiserfs/bitmap.c if (!hint->inode) inode 800 fs/reiserfs/bitmap.c hash_in = (char *)(&INODE_PKEY(hint->inode)->k_dir_id); inode 802 fs/reiserfs/bitmap.c hash_in = (char *)(&INODE_PKEY(hint->inode)->k_objectid); inode 833 fs/reiserfs/bitmap.c if (hint->formatted_node || hint->inode == NULL) { inode 837 fs/reiserfs/bitmap.c hash_in = le32_to_cpu((INODE_PKEY(hint->inode))->k_dir_id); inode 851 fs/reiserfs/bitmap.c if (hint->formatted_node || hint->inode == NULL) { inode 857 fs/reiserfs/bitmap.c le32_to_cpu(INODE_PKEY(hint->inode)->k_dir_id) % (hint->end - inode 934 fs/reiserfs/bitmap.c if (hint->inode inode 936 fs/reiserfs/bitmap.c REISERFS_I(hint->inode)->i_prealloc_block) inode 938 fs/reiserfs/bitmap.c REISERFS_I(hint->inode)->i_prealloc_block; inode 986 fs/reiserfs/bitmap.c if (S_ISREG(hint->inode->i_mode) inode 987 fs/reiserfs/bitmap.c && hint->inode->i_size >= inode 989 fs/reiserfs/bitmap.c preallocmin * hint->inode->i_sb->s_blocksize) inode 1027 fs/reiserfs/bitmap.c list_add(&REISERFS_I(hint->inode)->i_prealloc_list, inode 1030 fs/reiserfs/bitmap.c REISERFS_I(hint->inode)->i_prealloc_block = start; inode 1031 fs/reiserfs/bitmap.c REISERFS_I(hint->inode)->i_prealloc_count = inode 1055 fs/reiserfs/bitmap.c amount_needed, hint->inode->i_uid); inode 1058 fs/reiserfs/bitmap.c DQUOT_ALLOC_BLOCK_NODIRTY(hint->inode, amount_needed); inode 1065 fs/reiserfs/bitmap.c hint->prealloc_size, hint->inode->i_uid); inode 1068 fs/reiserfs/bitmap.c DQUOT_PREALLOC_BLOCK_NODIRTY(hint->inode, inode 1099 fs/reiserfs/bitmap.c hint->inode->i_uid); inode 1101 fs/reiserfs/bitmap.c DQUOT_FREE_BLOCK_NODIRTY(hint->inode, amount_needed + hint->prealloc_size - nr_allocated); /* Free not allocated blocks */ inode 1104 fs/reiserfs/bitmap.c reiserfs_free_block(hint->th, hint->inode, inode 1122 fs/reiserfs/bitmap.c nr_allocated + REISERFS_I(hint->inode)->i_prealloc_count) { inode 1129 fs/reiserfs/bitmap.c REISERFS_I(hint->inode)->i_prealloc_count, inode 1130 fs/reiserfs/bitmap.c hint->inode->i_uid); inode 1132 fs/reiserfs/bitmap.c DQUOT_FREE_BLOCK_NODIRTY(hint->inode, amount_needed + inode 1134 fs/reiserfs/bitmap.c REISERFS_I(hint->inode)-> inode 1147 fs/reiserfs/bitmap.c struct inode *inode = hint->inode; inode 1149 fs/reiserfs/bitmap.c if (REISERFS_I(inode)->i_prealloc_count > 0) { inode 1152 fs/reiserfs/bitmap.c *new_blocknrs++ = REISERFS_I(inode)->i_prealloc_block++; inode 1153 fs/reiserfs/bitmap.c REISERFS_I(inode)->i_prealloc_count--; inode 1157 fs/reiserfs/bitmap.c if (REISERFS_I(inode)->i_prealloc_count <= 0) { inode 1158 fs/reiserfs/bitmap.c list_del(&REISERFS_I(inode)->i_prealloc_list); inode 1208 fs/reiserfs/bitmap.c reiserfs_free_block(hint->th, hint->inode, inode 32 fs/reiserfs/dir.c struct inode *inode = dentry->d_inode; inode 34 fs/reiserfs/dir.c reiserfs_write_lock(inode->i_sb); inode 35 fs/reiserfs/dir.c err = reiserfs_commit_for_inode(inode); inode 36 fs/reiserfs/dir.c reiserfs_write_unlock(inode->i_sb); inode 47 fs/reiserfs/dir.c struct inode *inode = filp->f_path.dentry->d_inode; inode 61 fs/reiserfs/dir.c reiserfs_write_lock(inode->i_sb); inode 63 fs/reiserfs/dir.c reiserfs_check_lock_depth(inode->i_sb, "readdir"); inode 67 fs/reiserfs/dir.c make_cpu_key(&pos_key, inode, inode 79 fs/reiserfs/dir.c search_by_entry_key(inode->i_sb, &pos_key, &path_to_entry, inode 138 fs/reiserfs/dir.c REISERFS_MAX_NAME(inode->i_sb-> inode 145 fs/reiserfs/dir.c if (reiserfs_xattrs(inode->i_sb) && inode 146 fs/reiserfs/dir.c !old_format_only(inode->i_sb) && inode 147 fs/reiserfs/dir.c filp->f_path.dentry == inode->i_sb->s_root && inode 148 fs/reiserfs/dir.c REISERFS_SB(inode->i_sb)->priv_root && inode 149 fs/reiserfs/dir.c REISERFS_SB(inode->i_sb)->priv_root->d_inode inode 152 fs/reiserfs/dir.c (REISERFS_SB(inode->i_sb)-> inode 207 fs/reiserfs/dir.c rkey = get_rkey(&path_to_entry, inode->i_sb); inode 231 fs/reiserfs/dir.c reiserfs_write_unlock(inode->i_sb); inode 39 fs/reiserfs/file.c BUG_ON(!S_ISREG(inode->i_mode)); inode 42 fs/reiserfs/file.c if ((atomic_read(&inode->i_count) > 1 || inode 43 fs/reiserfs/file.c !(REISERFS_I(inode)->i_flags & i_pack_on_close_mask) || inode 44 fs/reiserfs/file.c !tail_has_to_be_packed(inode)) && inode 45 fs/reiserfs/file.c REISERFS_I(inode)->i_prealloc_count <= 0) { inode 49 fs/reiserfs/file.c mutex_lock(&inode->i_mutex); inode 51 fs/reiserfs/file.c mutex_lock(&(REISERFS_I(inode)->i_mmap)); inode 52 fs/reiserfs/file.c if (REISERFS_I(inode)->i_flags & i_ever_mapped) inode 53 fs/reiserfs/file.c REISERFS_I(inode)->i_flags &= ~i_pack_on_close_mask; inode 55 fs/reiserfs/file.c reiserfs_write_lock(inode->i_sb); inode 61 fs/reiserfs/file.c err = journal_begin(&th, inode->i_sb, 1); inode 68 fs/reiserfs/file.c err = journal_join_abort(&th, inode->i_sb, 1); inode 78 fs/reiserfs/file.c igrab(inode); inode 79 fs/reiserfs/file.c reiserfs_warning(inode->i_sb, inode 82 fs/reiserfs/file.c inode->i_ino); inode 86 fs/reiserfs/file.c reiserfs_update_inode_transaction(inode); inode 89 fs/reiserfs/file.c reiserfs_discard_prealloc(&th, inode); inode 91 fs/reiserfs/file.c err = journal_end(&th, inode->i_sb, 1); inode 97 fs/reiserfs/file.c if (!err && atomic_read(&inode->i_count) <= 1 && inode 98 fs/reiserfs/file.c (REISERFS_I(inode)->i_flags & i_pack_on_close_mask) && inode 99 fs/reiserfs/file.c tail_has_to_be_packed(inode)) { inode 104 fs/reiserfs/file.c err = reiserfs_truncate_file(inode, 0); inode 107 fs/reiserfs/file.c mutex_unlock(&(REISERFS_I(inode)->i_mmap)); inode 108 fs/reiserfs/file.c mutex_unlock(&inode->i_mutex); inode 109 fs/reiserfs/file.c reiserfs_write_unlock(inode->i_sb); inode 115 fs/reiserfs/file.c struct inode *inode; inode 117 fs/reiserfs/file.c inode = file->f_path.dentry->d_inode; inode 118 fs/reiserfs/file.c mutex_lock(&(REISERFS_I(inode)->i_mmap)); inode 119 fs/reiserfs/file.c REISERFS_I(inode)->i_flags |= i_ever_mapped; inode 120 fs/reiserfs/file.c mutex_unlock(&(REISERFS_I(inode)->i_mmap)); inode 127 fs/reiserfs/file.c reiserfs_truncate_file(inode, 1); inode 140 fs/reiserfs/file.c struct inode *p_s_inode = p_s_dentry->d_inode; inode 164 fs/reiserfs/file.c unsigned long i_size_index = inode->i_size >> PAGE_CACHE_SHIFT; inode 166 fs/reiserfs/file.c int logit = reiserfs_file_data_log(inode); inode 167 fs/reiserfs/file.c struct super_block *s = inode->i_sb; inode 173 fs/reiserfs/file.c blocksize = 1 << inode->i_blkbits; inode 180 fs/reiserfs/file.c reiserfs_update_inode_transaction(inode); inode 202 fs/reiserfs/file.c if (reiserfs_data_ordered(inode->i_sb) && inode 204 fs/reiserfs/file.c reiserfs_add_ordered_list(inode, bh); inode 259 fs/reiserfs/file.c struct inode *inode = file->f_path.dentry->d_inode; // Inode of the file that we are writing to. inode 272 fs/reiserfs/file.c if (get_inode_item_key_version (inode) == KEY_FORMAT_3_5 && inode 32 fs/reiserfs/inode.c 2 * REISERFS_QUOTA_INIT_BLOCKS(inode->i_sb); inode 36 fs/reiserfs/inode.c truncate_inode_pages(&inode->i_data, 0); inode 38 fs/reiserfs/inode.c reiserfs_write_lock(inode->i_sb); inode 41 fs/reiserfs/inode.c if (!(inode->i_state & I_NEW) && INODE_PKEY(inode)->k_objectid != 0) { /* also handles bad_inode case */ inode 42 fs/reiserfs/inode.c reiserfs_delete_xattrs(inode); inode 44 fs/reiserfs/inode.c if (journal_begin(&th, inode->i_sb, jbegin_count)) inode 46 fs/reiserfs/inode.c reiserfs_update_inode_transaction(inode); inode 48 fs/reiserfs/inode.c reiserfs_discard_prealloc(&th, inode); inode 50 fs/reiserfs/inode.c err = reiserfs_delete_object(&th, inode); inode 56 fs/reiserfs/inode.c DQUOT_FREE_INODE(inode); inode 58 fs/reiserfs/inode.c if (journal_end(&th, inode->i_sb, jbegin_count)) inode 68 fs/reiserfs/inode.c remove_save_link(inode, 0 /* not truncate */ ); /* we can't do anything inode 75 fs/reiserfs/inode.c clear_inode(inode); /* note this must go after the journal_end to prevent deadlock */ inode 76 fs/reiserfs/inode.c inode->i_blocks = 0; inode 77 fs/reiserfs/inode.c reiserfs_write_unlock(inode->i_sb); inode 97 fs/reiserfs/inode.c _make_cpu_key(key, get_inode_item_key_version(inode), inode 98 fs/reiserfs/inode.c le32_to_cpu(INODE_PKEY(inode)->k_dir_id), inode 99 fs/reiserfs/inode.c le32_to_cpu(INODE_PKEY(inode)->k_objectid), offset, type, inode 197 fs/reiserfs/inode.c map_bh(bh, inode->i_sb, block); inode 206 fs/reiserfs/inode.c if (get_inode_item_key_version(inode) != KEY_FORMAT_3_5 || // it is new file. inode 207 fs/reiserfs/inode.c block < (1 << (31 - inode->i_sb->s_blocksize_bits))) // old file, but 'block' is inside of 2gb inode 229 fs/reiserfs/inode.c reiserfs_update_sd(th, inode); inode 234 fs/reiserfs/inode.c reiserfs_update_inode_transaction(inode); inode 264 fs/reiserfs/inode.c make_cpu_key(&key, inode, inode 265 fs/reiserfs/inode.c (loff_t) block * inode->i_sb->s_blocksize + 1, TYPE_ANY, inode 269 fs/reiserfs/inode.c result = search_for_position_by_key(inode->i_sb, &key, &path); inode 296 fs/reiserfs/inode.c map_bh(bh_result, inode->i_sb, blocknr); inode 343 fs/reiserfs/inode.c fs_gen = get_generation(inode->i_sb); inode 353 fs/reiserfs/inode.c if (fs_changed(fs_gen, inode->i_sb) inode 359 fs/reiserfs/inode.c memset(p, 0, inode->i_sb->s_blocksize); inode 369 fs/reiserfs/inode.c if ((le_ih_k_offset(ih) + path.pos_in_item) > inode->i_size) inode 371 fs/reiserfs/inode.c if ((le_ih_k_offset(ih) - 1 + ih_item_len(ih)) > inode->i_size) { inode 373 fs/reiserfs/inode.c inode->i_size - (le_ih_k_offset(ih) - 1) - inode 395 fs/reiserfs/inode.c result = search_for_position_by_key(inode->i_sb, &key, &path); inode 415 fs/reiserfs/inode.c map_bh(bh_result, inode->i_sb, 0); inode 425 fs/reiserfs/inode.c if (!file_capable(inode, block)) inode 428 fs/reiserfs/inode.c reiserfs_write_lock(inode->i_sb); inode 430 fs/reiserfs/inode.c _get_block_create_0(inode, block, bh_result, 0); inode 431 fs/reiserfs/inode.c reiserfs_write_unlock(inode->i_sb); inode 456 fs/reiserfs/inode.c return reiserfs_get_block(inode, block, bh_result, GET_BLOCK_NO_HOLE); inode 473 fs/reiserfs/inode.c bh_result->b_size = (1 << inode->i_blkbits); inode 475 fs/reiserfs/inode.c ret = reiserfs_get_block(inode, iblock, bh_result, inode 490 fs/reiserfs/inode.c if (REISERFS_I(inode)->i_flags & i_pack_on_close_mask) { inode 493 fs/reiserfs/inode.c err = reiserfs_commit_for_inode(inode); inode 494 fs/reiserfs/inode.c REISERFS_I(inode)->i_flags &= ~i_pack_on_close_mask; inode 536 fs/reiserfs/inode.c tail_page = grab_cache_page(inode->i_mapping, index); inode 583 fs/reiserfs/inode.c return reiserfs_new_unf_blocknrs2(th, inode, allocated_block_nr, inode 587 fs/reiserfs/inode.c return reiserfs_new_unf_blocknrs(th, inode, allocated_block_nr, path, inode 613 fs/reiserfs/inode.c 2 * REISERFS_QUOTA_TRANS_BLOCKS(inode->i_sb); inode 617 fs/reiserfs/inode.c (((loff_t) block) << inode->i_sb->s_blocksize_bits) + 1; inode 620 fs/reiserfs/inode.c reiserfs_write_lock(inode->i_sb); inode 621 fs/reiserfs/inode.c version = get_inode_item_key_version(inode); inode 623 fs/reiserfs/inode.c if (!file_capable(inode, block)) { inode 624 fs/reiserfs/inode.c reiserfs_write_unlock(inode->i_sb); inode 634 fs/reiserfs/inode.c ret = _get_block_create_0(inode, block, bh_result, inode 636 fs/reiserfs/inode.c reiserfs_write_unlock(inode->i_sb); inode 644 fs/reiserfs/inode.c reiserfs_transaction_running(inode->i_sb)) inode 650 fs/reiserfs/inode.c if ((have_large_tails(inode->i_sb) inode 651 fs/reiserfs/inode.c && inode->i_size < i_block_size(inode) * 4) inode 652 fs/reiserfs/inode.c || (have_small_tails(inode->i_sb) inode 653 fs/reiserfs/inode.c && inode->i_size < i_block_size(inode))) inode 654 fs/reiserfs/inode.c REISERFS_I(inode)->i_flags |= i_pack_on_close_mask; inode 657 fs/reiserfs/inode.c make_cpu_key(&key, inode, new_offset, TYPE_ANY, 3 /*key length */ ); inode 658 fs/reiserfs/inode.c if ((new_offset + inode->i_sb->s_blocksize - 1) > inode->i_size) { inode 660 fs/reiserfs/inode.c th = reiserfs_persistent_transaction(inode->i_sb, jbegin_count); inode 665 fs/reiserfs/inode.c reiserfs_update_inode_transaction(inode); inode 669 fs/reiserfs/inode.c retval = search_for_position_by_key(inode->i_sb, &key, &path); inode 680 fs/reiserfs/inode.c fs_gen = get_generation(inode->i_sb); inode 692 fs/reiserfs/inode.c _allocate_block(th, block, inode, &allocated_block_nr, inode 700 fs/reiserfs/inode.c SB_JOURNAL(inode->i_sb)->j_next_async_flush = 1; inode 701 fs/reiserfs/inode.c retval = restart_transaction(th, inode, &path); inode 705 fs/reiserfs/inode.c _allocate_block(th, block, inode, inode 718 fs/reiserfs/inode.c if (fs_changed(fs_gen, inode->i_sb) inode 732 fs/reiserfs/inode.c reiserfs_prepare_for_journal(inode->i_sb, bh, 1); inode 733 fs/reiserfs/inode.c if (fs_changed(fs_gen, inode->i_sb) inode 735 fs/reiserfs/inode.c reiserfs_restore_prepared_buffer(inode->i_sb, inode 741 fs/reiserfs/inode.c && reiserfs_data_ordered(inode->i_sb)) inode 742 fs/reiserfs/inode.c reiserfs_add_ordered_list(inode, bh_result); inode 745 fs/reiserfs/inode.c journal_mark_dirty(th, inode->i_sb, bh); inode 746 fs/reiserfs/inode.c reiserfs_update_sd(th, inode); inode 748 fs/reiserfs/inode.c set_block_dev_mapped(bh_result, unfm_ptr, inode); inode 754 fs/reiserfs/inode.c reiserfs_write_unlock(inode->i_sb); inode 787 fs/reiserfs/inode.c allocated_block_nr, inode); inode 797 fs/reiserfs/inode.c inode, (char *)&unp); inode 799 fs/reiserfs/inode.c reiserfs_free_block(th, inode, inode 810 fs/reiserfs/inode.c 1) & ~(inode->i_sb->s_blocksize - 1)) + 1; inode 816 fs/reiserfs/inode.c allocated_block_nr, inode); inode 840 fs/reiserfs/inode.c convert_tail_for_hole(inode, bh_result, inode 844 fs/reiserfs/inode.c reiserfs_warning(inode->i_sb, inode 846 fs/reiserfs/inode.c inode->i_ino, inode 851 fs/reiserfs/inode.c th = reiserfs_persistent_transaction(inode->i_sb, 3); inode 854 fs/reiserfs/inode.c inode, inode 863 fs/reiserfs/inode.c direct2indirect(th, inode, &path, unbh, inode 867 fs/reiserfs/inode.c reiserfs_free_block(th, inode, inode 888 fs/reiserfs/inode.c reiserfs_add_tail_list(inode, unbh); inode 910 fs/reiserfs/inode.c MAX_ITEM_LEN(inode->i_sb->s_blocksize) / inode 917 fs/reiserfs/inode.c make_cpu_key(&tmp_key, inode, inode 921 fs/reiserfs/inode.c inode->i_sb->s_blocksize), inode 930 fs/reiserfs/inode.c cpu_key_k_offset(&tmp_key)) >> inode->i_sb-> inode 949 fs/reiserfs/inode.c allocated_block_nr, inode); inode 960 fs/reiserfs/inode.c reiserfs_paste_into_item(th, &path, &tmp_key, inode, inode 969 fs/reiserfs/inode.c reiserfs_free_block(th, inode, inode 977 fs/reiserfs/inode.c inode->i_size += inode 978 fs/reiserfs/inode.c inode->i_sb->s_blocksize * blocks_needed; inode 994 fs/reiserfs/inode.c retval = restart_transaction(th, inode, &path); inode 1003 fs/reiserfs/inode.c retval = search_for_position_by_key(inode->i_sb, &key, &path); inode 1009 fs/reiserfs/inode.c reiserfs_warning(inode->i_sb, inode 1014 fs/reiserfs/inode.c reiserfs_free_block(th, inode, inode 1031 fs/reiserfs/inode.c reiserfs_update_sd(th, inode); inode 1037 fs/reiserfs/inode.c reiserfs_write_unlock(inode->i_sb); inode 1055 fs/reiserfs/inode.c loff_t blocksize = inode->i_sb->s_blocksize; inode 1057 fs/reiserfs/inode.c if (S_ISLNK(inode->i_mode) || S_ISDIR(inode->i_mode)) inode 1069 fs/reiserfs/inode.c ((inode->i_size + inode 1070 fs/reiserfs/inode.c (blocksize - 1)) >> inode->i_sb->s_blocksize_bits) * UNFM_P_SIZE + inode 1078 fs/reiserfs/inode.c if (S_ISLNK(inode->i_mode) || S_ISDIR(inode->i_mode)) { inode 1079 fs/reiserfs/inode.c return inode->i_size + inode 1080 fs/reiserfs/inode.c (loff_t) (real_space_diff(inode, sd_size)); inode 1082 fs/reiserfs/inode.c return ((loff_t) real_space_diff(inode, sd_size)) + inode 1089 fs/reiserfs/inode.c loff_t bytes = inode_get_bytes(inode); inode 1090 fs/reiserfs/inode.c loff_t real_space = real_space_diff(inode, sd_size); inode 1093 fs/reiserfs/inode.c if (S_ISLNK(inode->i_mode) || S_ISDIR(inode->i_mode)) { inode 1124 fs/reiserfs/inode.c copy_key(INODE_PKEY(inode), &(ih->ih_key)); inode 1126 fs/reiserfs/inode.c INIT_LIST_HEAD(&(REISERFS_I(inode)->i_prealloc_list)); inode 1127 fs/reiserfs/inode.c REISERFS_I(inode)->i_flags = 0; inode 1128 fs/reiserfs/inode.c REISERFS_I(inode)->i_prealloc_block = 0; inode 1129 fs/reiserfs/inode.c REISERFS_I(inode)->i_prealloc_count = 0; inode 1130 fs/reiserfs/inode.c REISERFS_I(inode)->i_trans_id = 0; inode 1131 fs/reiserfs/inode.c REISERFS_I(inode)->i_jl = NULL; inode 1132 fs/reiserfs/inode.c mutex_init(&(REISERFS_I(inode)->i_mmap)); inode 1133 fs/reiserfs/inode.c reiserfs_init_acl_access(inode); inode 1134 fs/reiserfs/inode.c reiserfs_init_acl_default(inode); inode 1135 fs/reiserfs/inode.c reiserfs_init_xattr_rwsem(inode); inode 1142 fs/reiserfs/inode.c set_inode_item_key_version(inode, KEY_FORMAT_3_5); inode 1143 fs/reiserfs/inode.c set_inode_sd_version(inode, STAT_DATA_V1); inode 1144 fs/reiserfs/inode.c inode->i_mode = sd_v1_mode(sd); inode 1145 fs/reiserfs/inode.c inode->i_nlink = sd_v1_nlink(sd); inode 1146 fs/reiserfs/inode.c inode->i_uid = sd_v1_uid(sd); inode 1147 fs/reiserfs/inode.c inode->i_gid = sd_v1_gid(sd); inode 1148 fs/reiserfs/inode.c inode->i_size = sd_v1_size(sd); inode 1149 fs/reiserfs/inode.c inode->i_atime.tv_sec = sd_v1_atime(sd); inode 1150 fs/reiserfs/inode.c inode->i_mtime.tv_sec = sd_v1_mtime(sd); inode 1151 fs/reiserfs/inode.c inode->i_ctime.tv_sec = sd_v1_ctime(sd); inode 1152 fs/reiserfs/inode.c inode->i_atime.tv_nsec = 0; inode 1153 fs/reiserfs/inode.c inode->i_ctime.tv_nsec = 0; inode 1154 fs/reiserfs/inode.c inode->i_mtime.tv_nsec = 0; inode 1156 fs/reiserfs/inode.c inode->i_blocks = sd_v1_blocks(sd); inode 1157 fs/reiserfs/inode.c inode->i_generation = le32_to_cpu(INODE_PKEY(inode)->k_dir_id); inode 1158 fs/reiserfs/inode.c blocks = (inode->i_size + 511) >> 9; inode 1159 fs/reiserfs/inode.c blocks = _ROUND_UP(blocks, inode->i_sb->s_blocksize >> 9); inode 1160 fs/reiserfs/inode.c if (inode->i_blocks > blocks) { inode 1166 fs/reiserfs/inode.c inode->i_blocks = blocks; inode 1170 fs/reiserfs/inode.c REISERFS_I(inode)->i_first_direct_byte = inode 1175 fs/reiserfs/inode.c if (inode->i_blocks & 1) { inode 1176 fs/reiserfs/inode.c inode->i_blocks++; inode 1178 fs/reiserfs/inode.c inode_set_bytes(inode, inode 1179 fs/reiserfs/inode.c to_real_used_space(inode, inode->i_blocks, inode 1183 fs/reiserfs/inode.c REISERFS_I(inode)->i_flags &= ~i_nopack_mask; inode 1189 fs/reiserfs/inode.c inode->i_mode = sd_v2_mode(sd); inode 1190 fs/reiserfs/inode.c inode->i_nlink = sd_v2_nlink(sd); inode 1191 fs/reiserfs/inode.c inode->i_uid = sd_v2_uid(sd); inode 1192 fs/reiserfs/inode.c inode->i_size = sd_v2_size(sd); inode 1193 fs/reiserfs/inode.c inode->i_gid = sd_v2_gid(sd); inode 1194 fs/reiserfs/inode.c inode->i_mtime.tv_sec = sd_v2_mtime(sd); inode 1195 fs/reiserfs/inode.c inode->i_atime.tv_sec = sd_v2_atime(sd); inode 1196 fs/reiserfs/inode.c inode->i_ctime.tv_sec = sd_v2_ctime(sd); inode 1197 fs/reiserfs/inode.c inode->i_ctime.tv_nsec = 0; inode 1198 fs/reiserfs/inode.c inode->i_mtime.tv_nsec = 0; inode 1199 fs/reiserfs/inode.c inode->i_atime.tv_nsec = 0; inode 1200 fs/reiserfs/inode.c inode->i_blocks = sd_v2_blocks(sd); inode 1202 fs/reiserfs/inode.c if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) inode 1203 fs/reiserfs/inode.c inode->i_generation = inode 1204 fs/reiserfs/inode.c le32_to_cpu(INODE_PKEY(inode)->k_dir_id); inode 1206 fs/reiserfs/inode.c inode->i_generation = sd_v2_generation(sd); inode 1208 fs/reiserfs/inode.c if (S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode)) inode 1209 fs/reiserfs/inode.c set_inode_item_key_version(inode, KEY_FORMAT_3_5); inode 1211 fs/reiserfs/inode.c set_inode_item_key_version(inode, KEY_FORMAT_3_6); inode 1212 fs/reiserfs/inode.c REISERFS_I(inode)->i_first_direct_byte = 0; inode 1213 fs/reiserfs/inode.c set_inode_sd_version(inode, STAT_DATA_V2); inode 1214 fs/reiserfs/inode.c inode_set_bytes(inode, inode 1215 fs/reiserfs/inode.c to_real_used_space(inode, inode->i_blocks, inode 1219 fs/reiserfs/inode.c REISERFS_I(inode)->i_attrs = sd_v2_attrs(sd); inode 1220 fs/reiserfs/inode.c sd_attrs_to_i_attrs(sd_v2_attrs(sd), inode); inode 1224 fs/reiserfs/inode.c if (S_ISREG(inode->i_mode)) { inode 1225 fs/reiserfs/inode.c inode->i_op = &reiserfs_file_inode_operations; inode 1226 fs/reiserfs/inode.c inode->i_fop = &reiserfs_file_operations; inode 1227 fs/reiserfs/inode.c inode->i_mapping->a_ops = &reiserfs_address_space_operations; inode 1228 fs/reiserfs/inode.c } else if (S_ISDIR(inode->i_mode)) { inode 1229 fs/reiserfs/inode.c inode->i_op = &reiserfs_dir_inode_operations; inode 1230 fs/reiserfs/inode.c inode->i_fop = &reiserfs_dir_operations; inode 1231 fs/reiserfs/inode.c } else if (S_ISLNK(inode->i_mode)) { inode 1232 fs/reiserfs/inode.c inode->i_op = &reiserfs_symlink_inode_operations; inode 1233 fs/reiserfs/inode.c inode->i_mapping->a_ops = &reiserfs_address_space_operations; inode 1235 fs/reiserfs/inode.c inode->i_blocks = 0; inode 1236 fs/reiserfs/inode.c inode->i_op = &reiserfs_special_inode_operations; inode 1237 fs/reiserfs/inode.c init_special_inode(inode, inode->i_mode, new_decode_dev(rdev)); inode 1247 fs/reiserfs/inode.c set_sd_v2_mode(sd_v2, inode->i_mode); inode 1248 fs/reiserfs/inode.c set_sd_v2_nlink(sd_v2, inode->i_nlink); inode 1249 fs/reiserfs/inode.c set_sd_v2_uid(sd_v2, inode->i_uid); inode 1251 fs/reiserfs/inode.c set_sd_v2_gid(sd_v2, inode->i_gid); inode 1252 fs/reiserfs/inode.c set_sd_v2_mtime(sd_v2, inode->i_mtime.tv_sec); inode 1253 fs/reiserfs/inode.c set_sd_v2_atime(sd_v2, inode->i_atime.tv_sec); inode 1254 fs/reiserfs/inode.c set_sd_v2_ctime(sd_v2, inode->i_ctime.tv_sec); inode 1255 fs/reiserfs/inode.c set_sd_v2_blocks(sd_v2, to_fake_used_blocks(inode, SD_V2_SIZE)); inode 1256 fs/reiserfs/inode.c if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) inode 1257 fs/reiserfs/inode.c set_sd_v2_rdev(sd_v2, new_encode_dev(inode->i_rdev)); inode 1259 fs/reiserfs/inode.c set_sd_v2_generation(sd_v2, inode->i_generation); inode 1260 fs/reiserfs/inode.c flags = REISERFS_I(inode)->i_attrs; inode 1261 fs/reiserfs/inode.c i_attrs_to_sd_attrs(inode, &flags); inode 1270 fs/reiserfs/inode.c set_sd_v1_mode(sd_v1, inode->i_mode); inode 1271 fs/reiserfs/inode.c set_sd_v1_uid(sd_v1, inode->i_uid); inode 1272 fs/reiserfs/inode.c set_sd_v1_gid(sd_v1, inode->i_gid); inode 1273 fs/reiserfs/inode.c set_sd_v1_nlink(sd_v1, inode->i_nlink); inode 1275 fs/reiserfs/inode.c set_sd_v1_atime(sd_v1, inode->i_atime.tv_sec); inode 1276 fs/reiserfs/inode.c set_sd_v1_ctime(sd_v1, inode->i_ctime.tv_sec); inode 1277 fs/reiserfs/inode.c set_sd_v1_mtime(sd_v1, inode->i_mtime.tv_sec); inode 1279 fs/reiserfs/inode.c if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) inode 1280 fs/reiserfs/inode.c set_sd_v1_rdev(sd_v1, new_encode_dev(inode->i_rdev)); inode 1282 fs/reiserfs/inode.c set_sd_v1_blocks(sd_v1, to_fake_used_blocks(inode, SD_V1_SIZE)); inode 1286 fs/reiserfs/inode.c REISERFS_I(inode)->i_first_direct_byte); inode 1302 fs/reiserfs/inode.c reiserfs_panic(inode->i_sb, inode 1304 fs/reiserfs/inode.c INODE_PKEY(inode), ih); inode 1308 fs/reiserfs/inode.c inode2sd_v1(B_I_PITEM(bh, ih), inode, size); inode 1310 fs/reiserfs/inode.c inode2sd(B_I_PITEM(bh, ih), inode, size); inode 1328 fs/reiserfs/inode.c make_cpu_key(&key, inode, SD_OFFSET, TYPE_STAT_DATA, 3); //key type is unimportant inode 1333 fs/reiserfs/inode.c retval = search_item(inode->i_sb, &key, &path); inode 1335 fs/reiserfs/inode.c reiserfs_warning(inode->i_sb, inode 1344 fs/reiserfs/inode.c if (inode->i_nlink == 0) { inode 1348 fs/reiserfs/inode.c reiserfs_warning(inode->i_sb, inode 1351 fs/reiserfs/inode.c INODE_PKEY(inode), inode->i_nlink, inode 1364 fs/reiserfs/inode.c fs_gen = get_generation(inode->i_sb); inode 1365 fs/reiserfs/inode.c reiserfs_prepare_for_journal(inode->i_sb, bh, 1); inode 1366 fs/reiserfs/inode.c if (fs_changed(fs_gen, inode->i_sb) inode 1368 fs/reiserfs/inode.c reiserfs_restore_prepared_buffer(inode->i_sb, bh); inode 1373 fs/reiserfs/inode.c update_stat_data(&path, inode, size); inode 1387 fs/reiserfs/inode.c memset(INODE_PKEY(inode), 0, KEY_SIZE); inode 1388 fs/reiserfs/inode.c make_bad_inode(inode); inode 1399 fs/reiserfs/inode.c inode->i_ino = args->objectid; inode 1400 fs/reiserfs/inode.c INODE_PKEY(inode)->k_dir_id = cpu_to_le32(args->dirid); inode 1420 fs/reiserfs/inode.c key.on_disk_key.k_objectid = inode->i_ino; inode 1425 fs/reiserfs/inode.c retval = search_item(inode->i_sb, &key, &path_to_sd); inode 1427 fs/reiserfs/inode.c reiserfs_warning(inode->i_sb, inode 1431 fs/reiserfs/inode.c reiserfs_make_bad_inode(inode); inode 1437 fs/reiserfs/inode.c reiserfs_make_bad_inode(inode); inode 1438 fs/reiserfs/inode.c inode->i_nlink = 0; inode 1442 fs/reiserfs/inode.c init_inode(inode, &path_to_sd); inode 1458 fs/reiserfs/inode.c if ((inode->i_nlink == 0) && inode 1459 fs/reiserfs/inode.c !REISERFS_SB(inode->i_sb)->s_is_unlinked_ok) { inode 1460 fs/reiserfs/inode.c reiserfs_warning(inode->i_sb, inode 1465 fs/reiserfs/inode.c reiserfs_make_bad_inode(inode); inode 1490 fs/reiserfs/inode.c return (inode->i_ino == args->objectid) && inode 1491 fs/reiserfs/inode.c (le32_to_cpu(INODE_PKEY(inode)->k_dir_id) == args->dirid); inode 1494 fs/reiserfs/inode.c struct inode *reiserfs_iget(struct super_block *s, const struct cpu_key *key) inode 1496 fs/reiserfs/inode.c struct inode *inode; inode 1501 fs/reiserfs/inode.c inode = iget5_locked(s, key->on_disk_key.k_objectid, inode 1504 fs/reiserfs/inode.c if (!inode) inode 1507 fs/reiserfs/inode.c if (inode->i_state & I_NEW) { inode 1508 fs/reiserfs/inode.c reiserfs_read_locked_inode(inode, &args); inode 1509 fs/reiserfs/inode.c unlock_new_inode(inode); inode 1512 fs/reiserfs/inode.c if (comp_short_keys(INODE_PKEY(inode), key) || is_bad_inode(inode)) { inode 1514 fs/reiserfs/inode.c iput(inode); inode 1515 fs/reiserfs/inode.c inode = NULL; inode 1517 fs/reiserfs/inode.c return inode; inode 1526 fs/reiserfs/inode.c struct inode *inode; inode 1531 fs/reiserfs/inode.c inode = reiserfs_iget(sb, &key); inode 1532 fs/reiserfs/inode.c if (inode && !IS_ERR(inode) && generation != 0 && inode 1533 fs/reiserfs/inode.c generation != inode->i_generation) { inode 1534 fs/reiserfs/inode.c iput(inode); inode 1535 fs/reiserfs/inode.c inode = NULL; inode 1538 fs/reiserfs/inode.c if (!inode) inode 1539 fs/reiserfs/inode.c inode = ERR_PTR(-ESTALE); inode 1540 fs/reiserfs/inode.c if (IS_ERR(inode)) inode 1541 fs/reiserfs/inode.c return ERR_CAST(inode); inode 1542 fs/reiserfs/inode.c result = d_alloc_anon(inode); inode 1544 fs/reiserfs/inode.c iput(inode); inode 1592 fs/reiserfs/inode.c struct inode *inode = dentry->d_inode; inode 1598 fs/reiserfs/inode.c data[0] = inode->i_ino; inode 1599 fs/reiserfs/inode.c data[1] = le32_to_cpu(INODE_PKEY(inode)->k_dir_id); inode 1600 fs/reiserfs/inode.c data[2] = inode->i_generation; inode 1607 fs/reiserfs/inode.c inode = dentry->d_parent->d_inode; inode 1608 fs/reiserfs/inode.c data[3] = inode->i_ino; inode 1609 fs/reiserfs/inode.c data[4] = le32_to_cpu(INODE_PKEY(inode)->k_dir_id); inode 1612 fs/reiserfs/inode.c data[5] = inode->i_generation; inode 1631 fs/reiserfs/inode.c if (inode->i_sb->s_flags & MS_RDONLY) inode 1639 fs/reiserfs/inode.c reiserfs_write_lock(inode->i_sb); inode 1640 fs/reiserfs/inode.c if (!journal_begin(&th, inode->i_sb, jbegin_count)) { inode 1641 fs/reiserfs/inode.c reiserfs_update_sd(&th, inode); inode 1642 fs/reiserfs/inode.c journal_end_sync(&th, inode->i_sb, jbegin_count); inode 1644 fs/reiserfs/inode.c reiserfs_write_unlock(inode->i_sb); inode 1705 fs/reiserfs/inode.c return reiserfs_insert_item(th, path, &key, ih, inode, body); inode 1745 fs/reiserfs/inode.c return reiserfs_insert_item(th, path, &key, ih, inode, symname); inode 1774 fs/reiserfs/inode.c if (DQUOT_ALLOC_INODE(inode)) { inode 1798 fs/reiserfs/inode.c inode->i_generation = le32_to_cpu(INODE_PKEY(dir)->k_objectid); inode 1801 fs/reiserfs/inode.c inode->i_generation = inode 1804 fs/reiserfs/inode.c inode->i_generation = ++event; inode 1808 fs/reiserfs/inode.c inode->i_nlink = (S_ISDIR(mode) ? 2 : 1); inode 1813 fs/reiserfs/inode.c if (S_ISLNK(inode->i_mode)) inode 1814 fs/reiserfs/inode.c inode->i_flags &= ~(S_IMMUTABLE | S_APPEND); inode 1816 fs/reiserfs/inode.c inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; inode 1817 fs/reiserfs/inode.c inode->i_size = i_size; inode 1818 fs/reiserfs/inode.c inode->i_blocks = 0; inode 1819 fs/reiserfs/inode.c inode->i_bytes = 0; inode 1820 fs/reiserfs/inode.c REISERFS_I(inode)->i_first_direct_byte = S_ISLNK(mode) ? 1 : inode 1823 fs/reiserfs/inode.c INIT_LIST_HEAD(&(REISERFS_I(inode)->i_prealloc_list)); inode 1824 fs/reiserfs/inode.c REISERFS_I(inode)->i_flags = 0; inode 1825 fs/reiserfs/inode.c REISERFS_I(inode)->i_prealloc_block = 0; inode 1826 fs/reiserfs/inode.c REISERFS_I(inode)->i_prealloc_count = 0; inode 1827 fs/reiserfs/inode.c REISERFS_I(inode)->i_trans_id = 0; inode 1828 fs/reiserfs/inode.c REISERFS_I(inode)->i_jl = NULL; inode 1829 fs/reiserfs/inode.c REISERFS_I(inode)->i_attrs = inode 1831 fs/reiserfs/inode.c sd_attrs_to_i_attrs(REISERFS_I(inode)->i_attrs, inode); inode 1832 fs/reiserfs/inode.c mutex_init(&(REISERFS_I(inode)->i_mmap)); inode 1833 fs/reiserfs/inode.c reiserfs_init_acl_access(inode); inode 1834 fs/reiserfs/inode.c reiserfs_init_acl_default(inode); inode 1835 fs/reiserfs/inode.c reiserfs_init_xattr_rwsem(inode); inode 1861 fs/reiserfs/inode.c if (inode->i_uid & ~0xffff || inode->i_gid & ~0xffff) { inode 1867 fs/reiserfs/inode.c inode2sd_v1(&sd, inode, inode->i_size); inode 1869 fs/reiserfs/inode.c inode2sd(&sd, inode, inode->i_size); inode 1872 fs/reiserfs/inode.c inode->i_ino = le32_to_cpu(ih.ih_key.k_objectid); inode 1877 fs/reiserfs/inode.c memcpy(INODE_PKEY(inode), &(ih.ih_key), KEY_SIZE); inode 1879 fs/reiserfs/inode.c set_inode_item_key_version(inode, KEY_FORMAT_3_5); inode 1881 fs/reiserfs/inode.c set_inode_item_key_version(inode, KEY_FORMAT_3_6); inode 1883 fs/reiserfs/inode.c set_inode_sd_version(inode, STAT_DATA_V1); inode 1885 fs/reiserfs/inode.c set_inode_sd_version(inode, STAT_DATA_V2); inode 1893 fs/reiserfs/inode.c reiserfs_insert_item(th, &path_to_key, &key, &ih, inode, inode 1907 fs/reiserfs/inode.c reiserfs_new_directory(th, inode, &ih, &path_to_key, dir); inode 1915 fs/reiserfs/inode.c reiserfs_new_symlink(th, inode, &ih, &path_to_key, symname, inode 1926 fs/reiserfs/inode.c if (reiserfs_posixacl(inode->i_sb)) { inode 1927 fs/reiserfs/inode.c retval = reiserfs_inherit_default_acl(dir, dentry, inode); inode 1934 fs/reiserfs/inode.c } else if (inode->i_sb->s_flags & MS_POSIXACL) { inode 1935 fs/reiserfs/inode.c reiserfs_warning(inode->i_sb, "ACLs aren't enabled in the fs, " inode 1938 fs/reiserfs/inode.c reiserfs_mark_inode_private(inode); inode 1941 fs/reiserfs/inode.c insert_inode_hash(inode); inode 1942 fs/reiserfs/inode.c reiserfs_update_sd(th, inode); inode 1953 fs/reiserfs/inode.c INODE_PKEY(inode)->k_objectid = 0; inode 1956 fs/reiserfs/inode.c DQUOT_FREE_INODE(inode); inode 1961 fs/reiserfs/inode.c DQUOT_DROP(inode); inode 1962 fs/reiserfs/inode.c inode->i_flags |= S_NOQUOTA; inode 1963 fs/reiserfs/inode.c make_bad_inode(inode); inode 1966 fs/reiserfs/inode.c inode->i_nlink = 0; inode 1976 fs/reiserfs/inode.c iput(inode); inode 1980 fs/reiserfs/inode.c iput(inode); inode 2182 fs/reiserfs/inode.c loff_t byte_offset = ((loff_t)block << inode->i_sb->s_blocksize_bits)+1; inode 2198 fs/reiserfs/inode.c reiserfs_write_lock(inode->i_sb); inode 2199 fs/reiserfs/inode.c make_cpu_key(&key, inode, byte_offset, TYPE_ANY, 3); inode 2202 fs/reiserfs/inode.c retval = search_for_position_by_key(inode->i_sb, &key, &path); inode 2216 fs/reiserfs/inode.c reiserfs_warning(inode->i_sb, inode 2226 fs/reiserfs/inode.c get_block_num(item, pos_in_item), inode); inode 2233 fs/reiserfs/inode.c fs_gen = get_generation(inode->i_sb); inode 2238 fs/reiserfs/inode.c retval = journal_begin(&th, inode->i_sb, jbegin_count); inode 2241 fs/reiserfs/inode.c reiserfs_update_inode_transaction(inode); inode 2243 fs/reiserfs/inode.c if (fs_changed(fs_gen, inode->i_sb) inode 2245 fs/reiserfs/inode.c reiserfs_restore_prepared_buffer(inode->i_sb, inode 2251 fs/reiserfs/inode.c reiserfs_prepare_for_journal(inode->i_sb, bh, 1); inode 2253 fs/reiserfs/inode.c if (fs_changed(fs_gen, inode->i_sb) inode 2255 fs/reiserfs/inode.c reiserfs_restore_prepared_buffer(inode->i_sb, bh); inode 2262 fs/reiserfs/inode.c journal_mark_dirty(&th, inode->i_sb, bh); inode 2264 fs/reiserfs/inode.c set_block_dev_mapped(bh_result, 0, inode); inode 2268 fs/reiserfs/inode.c (byte_offset + bytes_copied) < inode->i_size) { inode 2275 fs/reiserfs/inode.c reiserfs_warning(inode->i_sb, inode 2277 fs/reiserfs/inode.c inode->i_ino, reiserfs_bdevname(inode->i_sb)); inode 2286 fs/reiserfs/inode.c int err = journal_end(&th, inode->i_sb, jbegin_count); inode 2291 fs/reiserfs/inode.c reiserfs_write_unlock(inode->i_sb); inode 2295 fs/reiserfs/inode.c retval = reiserfs_get_block(inode, block, bh_result, inode 2328 fs/reiserfs/inode.c struct inode *inode = page->mapping->host; inode 2329 fs/reiserfs/inode.c unsigned long end_index = inode->i_size >> PAGE_CACHE_SHIFT; inode 2338 fs/reiserfs/inode.c struct super_block *s = inode->i_sb; inode 2366 fs/reiserfs/inode.c last_offset = inode->i_size & (PAGE_CACHE_SIZE - 1); inode 2376 fs/reiserfs/inode.c last_block = (i_size_read(inode) - 1) >> inode->i_blkbits; inode 2395 fs/reiserfs/inode.c if ((error = map_block_for_writepage(inode, bh, block))) { inode 2417 fs/reiserfs/inode.c reiserfs_update_inode_transaction(inode); inode 2543 fs/reiserfs/inode.c struct inode *inode = page->mapping->host; inode 2544 fs/reiserfs/inode.c reiserfs_wait_on_write_block(inode->i_sb); inode 2553 fs/reiserfs/inode.c struct inode *inode; inode 2559 fs/reiserfs/inode.c inode = mapping->host; inode 2562 fs/reiserfs/inode.c (pos & (inode->i_sb->s_blocksize - 1)) == 0) { inode 2573 fs/reiserfs/inode.c reiserfs_wait_on_write_block(inode->i_sb); inode 2575 fs/reiserfs/inode.c if (reiserfs_transaction_running(inode->i_sb)) { inode 2586 fs/reiserfs/inode.c if (ret && reiserfs_transaction_running(inode->i_sb)) { inode 2603 fs/reiserfs/inode.c reiserfs_write_lock(inode->i_sb); inode 2605 fs/reiserfs/inode.c reiserfs_write_unlock(inode->i_sb); inode 2621 fs/reiserfs/inode.c struct inode *inode = page->mapping->host; inode 2625 fs/reiserfs/inode.c reiserfs_wait_on_write_block(inode->i_sb); inode 2627 fs/reiserfs/inode.c if (reiserfs_transaction_running(inode->i_sb)) { inode 2638 fs/reiserfs/inode.c if (ret && reiserfs_transaction_running(inode->i_sb)) { inode 2655 fs/reiserfs/inode.c reiserfs_write_lock(inode->i_sb); inode 2657 fs/reiserfs/inode.c reiserfs_write_unlock(inode->i_sb); inode 2676 fs/reiserfs/inode.c struct inode *inode = page->mapping->host; inode 2685 fs/reiserfs/inode.c reiserfs_wait_on_write_block(inode->i_sb); inode 2686 fs/reiserfs/inode.c if (reiserfs_transaction_running(inode->i_sb)) inode 2700 fs/reiserfs/inode.c reiserfs_commit_page(inode, page, start, start + copied); inode 2707 fs/reiserfs/inode.c if (pos > inode->i_size) { inode 2709 fs/reiserfs/inode.c reiserfs_write_lock(inode->i_sb); inode 2713 fs/reiserfs/inode.c if ((have_large_tails(inode->i_sb) inode 2714 fs/reiserfs/inode.c && inode->i_size > i_block_size(inode) * 4) inode 2715 fs/reiserfs/inode.c || (have_small_tails(inode->i_sb) inode 2716 fs/reiserfs/inode.c && inode->i_size > i_block_size(inode))) inode 2717 fs/reiserfs/inode.c REISERFS_I(inode)->i_flags &= ~i_pack_on_close_mask; inode 2719 fs/reiserfs/inode.c ret = journal_begin(&myth, inode->i_sb, 1); inode 2721 fs/reiserfs/inode.c reiserfs_write_unlock(inode->i_sb); inode 2724 fs/reiserfs/inode.c reiserfs_update_inode_transaction(inode); inode 2725 fs/reiserfs/inode.c inode->i_size = pos; inode 2731 fs/reiserfs/inode.c mark_inode_dirty(inode); inode 2732 fs/reiserfs/inode.c reiserfs_update_sd(&myth, inode); inode 2734 fs/reiserfs/inode.c ret = journal_end(&myth, inode->i_sb, 1); inode 2735 fs/reiserfs/inode.c reiserfs_write_unlock(inode->i_sb); inode 2740 fs/reiserfs/inode.c reiserfs_write_lock(inode->i_sb); inode 2742 fs/reiserfs/inode.c mark_inode_dirty(inode); inode 2744 fs/reiserfs/inode.c reiserfs_write_unlock(inode->i_sb); inode 2756 fs/reiserfs/inode.c reiserfs_write_lock(inode->i_sb); inode 2758 fs/reiserfs/inode.c reiserfs_update_sd(th, inode); inode 2760 fs/reiserfs/inode.c reiserfs_write_unlock(inode->i_sb); inode 2769 fs/reiserfs/inode.c struct inode *inode = page->mapping->host; inode 2775 fs/reiserfs/inode.c reiserfs_wait_on_write_block(inode->i_sb); inode 2776 fs/reiserfs/inode.c if (reiserfs_transaction_running(inode->i_sb)) { inode 2779 fs/reiserfs/inode.c reiserfs_commit_page(inode, page, from, to); inode 2785 fs/reiserfs/inode.c if (pos > inode->i_size) { inode 2787 fs/reiserfs/inode.c reiserfs_write_lock(inode->i_sb); inode 2791 fs/reiserfs/inode.c if ((have_large_tails(inode->i_sb) inode 2792 fs/reiserfs/inode.c && inode->i_size > i_block_size(inode) * 4) inode 2793 fs/reiserfs/inode.c || (have_small_tails(inode->i_sb) inode 2794 fs/reiserfs/inode.c && inode->i_size > i_block_size(inode))) inode 2795 fs/reiserfs/inode.c REISERFS_I(inode)->i_flags &= ~i_pack_on_close_mask; inode 2797 fs/reiserfs/inode.c ret = journal_begin(&myth, inode->i_sb, 1); inode 2799 fs/reiserfs/inode.c reiserfs_write_unlock(inode->i_sb); inode 2802 fs/reiserfs/inode.c reiserfs_update_inode_transaction(inode); inode 2803 fs/reiserfs/inode.c inode->i_size = pos; inode 2809 fs/reiserfs/inode.c mark_inode_dirty(inode); inode 2810 fs/reiserfs/inode.c reiserfs_update_sd(&myth, inode); inode 2812 fs/reiserfs/inode.c ret = journal_end(&myth, inode->i_sb, 1); inode 2813 fs/reiserfs/inode.c reiserfs_write_unlock(inode->i_sb); inode 2818 fs/reiserfs/inode.c reiserfs_write_lock(inode->i_sb); inode 2820 fs/reiserfs/inode.c mark_inode_dirty(inode); inode 2822 fs/reiserfs/inode.c reiserfs_write_unlock(inode->i_sb); inode 2832 fs/reiserfs/inode.c reiserfs_write_lock(inode->i_sb); inode 2834 fs/reiserfs/inode.c reiserfs_update_sd(th, inode); inode 2836 fs/reiserfs/inode.c reiserfs_write_unlock(inode->i_sb); inode 2844 fs/reiserfs/inode.c if (reiserfs_attrs(inode->i_sb)) { inode 2846 fs/reiserfs/inode.c inode->i_flags |= S_SYNC; inode 2848 fs/reiserfs/inode.c inode->i_flags &= ~S_SYNC; inode 2850 fs/reiserfs/inode.c inode->i_flags |= S_IMMUTABLE; inode 2852 fs/reiserfs/inode.c inode->i_flags &= ~S_IMMUTABLE; inode 2854 fs/reiserfs/inode.c inode->i_flags |= S_APPEND; inode 2856 fs/reiserfs/inode.c inode->i_flags &= ~S_APPEND; inode 2858 fs/reiserfs/inode.c inode->i_flags |= S_NOATIME; inode 2860 fs/reiserfs/inode.c inode->i_flags &= ~S_NOATIME; inode 2862 fs/reiserfs/inode.c REISERFS_I(inode)->i_flags |= i_nopack_mask; inode 2864 fs/reiserfs/inode.c REISERFS_I(inode)->i_flags &= ~i_nopack_mask; inode 2870 fs/reiserfs/inode.c if (reiserfs_attrs(inode->i_sb)) { inode 2871 fs/reiserfs/inode.c if (inode->i_flags & S_IMMUTABLE) inode 2875 fs/reiserfs/inode.c if (inode->i_flags & S_SYNC) inode 2879 fs/reiserfs/inode.c if (inode->i_flags & S_NOATIME) inode 2883 fs/reiserfs/inode.c if (REISERFS_I(inode)->i_flags & i_nopack_mask) inode 2896 fs/reiserfs/inode.c struct reiserfs_journal *j = SB_JOURNAL(inode->i_sb); inode 2906 fs/reiserfs/inode.c if (reiserfs_file_data_log(inode)) { inode 2932 fs/reiserfs/inode.c && jl != SB_JOURNAL(inode->i_sb)->j_current_jl) inode 2948 fs/reiserfs/inode.c struct inode *inode = page->mapping->host; inode 2970 fs/reiserfs/inode.c if (invalidatepage_can_drop(inode, bh)) inode 2994 fs/reiserfs/inode.c struct inode *inode = page->mapping->host; inode 2995 fs/reiserfs/inode.c if (reiserfs_file_data_log(inode)) { inode 3013 fs/reiserfs/inode.c struct inode *inode = page->mapping->host; inode 3014 fs/reiserfs/inode.c struct reiserfs_journal *j = SB_JOURNAL(inode->i_sb); inode 3047 fs/reiserfs/inode.c struct inode *inode = file->f_mapping->host; inode 3049 fs/reiserfs/inode.c return blockdev_direct_IO(rw, iocb, inode, inode->i_sb->s_bdev, iov, inode 3056 fs/reiserfs/inode.c struct inode *inode = dentry->d_inode; inode 3063 fs/reiserfs/inode.c reiserfs_write_lock(inode->i_sb); inode 3068 fs/reiserfs/inode.c if (get_inode_item_key_version(inode) == KEY_FORMAT_3_5 && inode 3074 fs/reiserfs/inode.c if (attr->ia_size > inode->i_size) { inode 3075 fs/reiserfs/inode.c error = generic_cont_expand_simple(inode, attr->ia_size); inode 3076 fs/reiserfs/inode.c if (REISERFS_I(inode)->i_prealloc_count > 0) { inode 3080 fs/reiserfs/inode.c err = journal_begin(&th, inode->i_sb, 4); inode 3082 fs/reiserfs/inode.c reiserfs_discard_prealloc(&th, inode); inode 3083 fs/reiserfs/inode.c err = journal_end(&th, inode->i_sb, 4); inode 3100 fs/reiserfs/inode.c (get_inode_sd_version(inode) == STAT_DATA_V1)) { inode 3106 fs/reiserfs/inode.c error = inode_change_ok(inode, attr); inode 3108 fs/reiserfs/inode.c if ((ia_valid & ATTR_UID && attr->ia_uid != inode->i_uid) || inode 3109 fs/reiserfs/inode.c (ia_valid & ATTR_GID && attr->ia_gid != inode->i_gid)) { inode 3110 fs/reiserfs/inode.c error = reiserfs_chown_xattrs(inode, attr); inode 3116 fs/reiserfs/inode.c (REISERFS_QUOTA_INIT_BLOCKS(inode->i_sb) + inode 3117 fs/reiserfs/inode.c REISERFS_QUOTA_DEL_BLOCKS(inode->i_sb)) + inode 3122 fs/reiserfs/inode.c journal_begin(&th, inode->i_sb, inode 3127 fs/reiserfs/inode.c DQUOT_TRANSFER(inode, attr) ? -EDQUOT : 0; inode 3129 fs/reiserfs/inode.c journal_end(&th, inode->i_sb, inode 3136 fs/reiserfs/inode.c inode->i_uid = attr->ia_uid; inode 3138 fs/reiserfs/inode.c inode->i_gid = attr->ia_gid; inode 3139 fs/reiserfs/inode.c mark_inode_dirty(inode); inode 3141 fs/reiserfs/inode.c journal_end(&th, inode->i_sb, jbegin_count); inode 3145 fs/reiserfs/inode.c error = inode_setattr(inode, attr); inode 3148 fs/reiserfs/inode.c if (!error && reiserfs_posixacl(inode->i_sb)) { inode 3150 fs/reiserfs/inode.c error = reiserfs_acl_chmod(inode); inode 3154 fs/reiserfs/inode.c reiserfs_write_unlock(inode->i_sb); inode 31 fs/reiserfs/ioctl.c if (S_ISREG(inode->i_mode)) { inode 33 fs/reiserfs/ioctl.c return reiserfs_unpack(inode, filp); inode 41 fs/reiserfs/ioctl.c if (!reiserfs_attrs(inode->i_sb)) inode 44 fs/reiserfs/ioctl.c flags = REISERFS_I(inode)->i_attrs; inode 45 fs/reiserfs/ioctl.c i_attrs_to_sd_attrs(inode, (__u16 *) & flags); inode 48 fs/reiserfs/ioctl.c if (!reiserfs_attrs(inode->i_sb)) inode 55 fs/reiserfs/ioctl.c if (!is_owner_or_cap(inode)) { inode 66 fs/reiserfs/ioctl.c if (IS_NOQUOTA(inode)) { inode 70 fs/reiserfs/ioctl.c if (((flags ^ REISERFS_I(inode)-> inode 78 fs/reiserfs/ioctl.c S_ISREG(inode->i_mode)) { inode 81 fs/reiserfs/ioctl.c result = reiserfs_unpack(inode, filp); inode 87 fs/reiserfs/ioctl.c sd_attrs_to_i_attrs(flags, inode); inode 88 fs/reiserfs/ioctl.c REISERFS_I(inode)->i_attrs = flags; inode 89 fs/reiserfs/ioctl.c inode->i_ctime = CURRENT_TIME_SEC; inode 90 fs/reiserfs/ioctl.c mark_inode_dirty(inode); inode 96 fs/reiserfs/ioctl.c return put_user(inode->i_generation, (int __user *)arg); inode 98 fs/reiserfs/ioctl.c if (!is_owner_or_cap(inode)) inode 103 fs/reiserfs/ioctl.c if (get_user(inode->i_generation, (int __user *)arg)) { inode 107 fs/reiserfs/ioctl.c inode->i_ctime = CURRENT_TIME_SEC; inode 108 fs/reiserfs/ioctl.c mark_inode_dirty(inode); inode 121 fs/reiserfs/ioctl.c struct inode *inode = file->f_path.dentry->d_inode; inode 145 fs/reiserfs/ioctl.c ret = reiserfs_ioctl(inode, file, cmd, (unsigned long) compat_ptr(arg)); inode 167 fs/reiserfs/ioctl.c unsigned long blocksize = inode->i_sb->s_blocksize; inode 169 fs/reiserfs/ioctl.c if (inode->i_size == 0) { inode 170 fs/reiserfs/ioctl.c REISERFS_I(inode)->i_flags |= i_nopack_mask; inode 174 fs/reiserfs/ioctl.c if (REISERFS_I(inode)->i_flags & i_nopack_mask) { inode 181 fs/reiserfs/ioctl.c mutex_lock(&inode->i_mutex); inode 182 fs/reiserfs/ioctl.c reiserfs_write_lock(inode->i_sb); inode 184 fs/reiserfs/ioctl.c write_from = inode->i_size & (blocksize - 1); inode 187 fs/reiserfs/ioctl.c REISERFS_I(inode)->i_flags |= i_nopack_mask; inode 195 fs/reiserfs/ioctl.c index = inode->i_size >> PAGE_CACHE_SHIFT; inode 196 fs/reiserfs/ioctl.c mapping = inode->i_mapping; inode 209 fs/reiserfs/ioctl.c REISERFS_I(inode)->i_flags |= i_nopack_mask; inode 216 fs/reiserfs/ioctl.c mutex_unlock(&inode->i_mutex); inode 217 fs/reiserfs/ioctl.c reiserfs_write_unlock(inode->i_sb); inode 832 fs/reiserfs/journal.c return __add_jh(SB_JOURNAL(inode->i_sb), bh, 1); inode 836 fs/reiserfs/journal.c return __add_jh(SB_JOURNAL(inode->i_sb), bh, 0); inode 3756 fs/reiserfs/journal.c struct reiserfs_journal *journal = SB_JOURNAL(inode->i_sb); inode 3757 fs/reiserfs/journal.c REISERFS_I(inode)->i_jl = journal->j_current_jl; inode 3758 fs/reiserfs/journal.c REISERFS_I(inode)->i_trans_id = journal->j_trans_id; inode 3769 fs/reiserfs/journal.c struct super_block *sb = inode->i_sb; inode 3805 fs/reiserfs/journal.c if (journal_list_still_alive(inode->i_sb, id)) { inode 3824 fs/reiserfs/journal.c unsigned long id = REISERFS_I(inode)->i_trans_id; inode 3825 fs/reiserfs/journal.c struct reiserfs_journal_list *jl = REISERFS_I(inode)->i_jl; inode 3831 fs/reiserfs/journal.c reiserfs_update_inode_transaction(inode); inode 3832 fs/reiserfs/journal.c id = REISERFS_I(inode)->i_trans_id; inode 3836 fs/reiserfs/journal.c return __commit_trans_jl(inode, id, jl); inode 330 fs/reiserfs/namei.c struct inode *inode = NULL; inode 357 fs/reiserfs/namei.c inode = inode 359 fs/reiserfs/namei.c if (!inode || IS_ERR(inode)) { inode 366 fs/reiserfs/namei.c reiserfs_mark_inode_private(inode); inode 373 fs/reiserfs/namei.c return d_splice_alias(inode, dentry); inode 383 fs/reiserfs/namei.c struct inode *inode = NULL; inode 387 fs/reiserfs/namei.c struct inode *dir = child->d_inode; inode 401 fs/reiserfs/namei.c inode = reiserfs_iget(dir->i_sb, (struct cpu_key *)&(de.de_dir_id)); inode 404 fs/reiserfs/namei.c if (!inode || IS_ERR(inode)) { inode 407 fs/reiserfs/namei.c parent = d_alloc_anon(inode); inode 409 fs/reiserfs/namei.c iput(inode); inode 470 fs/reiserfs/namei.c deh->deh_dir_id = INODE_PKEY(inode)->k_dir_id; /* safe: k_dir_id is le */ inode 471 fs/reiserfs/namei.c deh->deh_objectid = INODE_PKEY(inode)->k_objectid; /* safe: k_objectid is le */ inode 552 fs/reiserfs/namei.c if (!S_ISDIR(inode->i_mode) && visible) inode 567 fs/reiserfs/namei.c DQUOT_DROP(inode); inode 568 fs/reiserfs/namei.c make_bad_inode(inode); inode 569 fs/reiserfs/namei.c inode->i_flags |= S_NOQUOTA; inode 570 fs/reiserfs/namei.c iput(inode); inode 585 fs/reiserfs/namei.c inode->i_uid = current->fsuid; inode 586 fs/reiserfs/namei.c inode->i_mode = mode; inode 589 fs/reiserfs/namei.c INODE_PKEY(inode)->k_objectid = 0; inode 592 fs/reiserfs/namei.c inode->i_gid = dir->i_gid; inode 594 fs/reiserfs/namei.c inode->i_mode |= S_ISGID; inode 596 fs/reiserfs/namei.c inode->i_gid = current->fsgid; inode 598 fs/reiserfs/namei.c DQUOT_INIT(inode); inode 606 fs/reiserfs/namei.c struct inode *inode; inode 615 fs/reiserfs/namei.c if (!(inode = new_inode(dir->i_sb))) { inode 618 fs/reiserfs/namei.c new_inode_init(inode, dir, mode); inode 629 fs/reiserfs/namei.c drop_new_inode(inode); inode 635 fs/reiserfs/namei.c inode); inode 644 fs/reiserfs/namei.c inode->i_op = &reiserfs_file_inode_operations; inode 645 fs/reiserfs/namei.c inode->i_fop = &reiserfs_file_operations; inode 646 fs/reiserfs/namei.c inode->i_mapping->a_ops = &reiserfs_address_space_operations; inode 650 fs/reiserfs/namei.c dentry->d_name.len, inode, 1 /*visible */ ); inode 653 fs/reiserfs/namei.c inode->i_nlink--; inode 654 fs/reiserfs/namei.c reiserfs_update_sd(&th, inode); inode 658 fs/reiserfs/namei.c iput(inode); inode 661 fs/reiserfs/namei.c reiserfs_update_inode_transaction(inode); inode 664 fs/reiserfs/namei.c d_instantiate(dentry, inode); inode 678 fs/reiserfs/namei.c struct inode *inode; inode 690 fs/reiserfs/namei.c if (!(inode = new_inode(dir->i_sb))) { inode 693 fs/reiserfs/namei.c new_inode_init(inode, dir, mode); inode 704 fs/reiserfs/namei.c drop_new_inode(inode); inode 710 fs/reiserfs/namei.c inode); inode 720 fs/reiserfs/namei.c inode->i_op = &reiserfs_special_inode_operations; inode 721 fs/reiserfs/namei.c init_special_inode(inode, inode->i_mode, rdev); inode 724 fs/reiserfs/namei.c reiserfs_update_sd(&th, inode); inode 726 fs/reiserfs/namei.c reiserfs_update_inode_transaction(inode); inode 731 fs/reiserfs/namei.c dentry->d_name.len, inode, 1 /*visible */ ); inode 734 fs/reiserfs/namei.c inode->i_nlink--; inode 735 fs/reiserfs/namei.c reiserfs_update_sd(&th, inode); inode 739 fs/reiserfs/namei.c iput(inode); inode 743 fs/reiserfs/namei.c d_instantiate(dentry, inode); inode 756 fs/reiserfs/namei.c struct inode *inode; inode 770 fs/reiserfs/namei.c if (!(inode = new_inode(dir->i_sb))) { inode 773 fs/reiserfs/namei.c new_inode_init(inode, dir, mode); inode 783 fs/reiserfs/namei.c drop_new_inode(inode); inode 795 fs/reiserfs/namei.c dentry, inode); inode 806 fs/reiserfs/namei.c reiserfs_update_inode_transaction(inode); inode 809 fs/reiserfs/namei.c inode->i_op = &reiserfs_dir_inode_operations; inode 810 fs/reiserfs/namei.c inode->i_fop = &reiserfs_dir_operations; inode 815 fs/reiserfs/namei.c dentry->d_name.len, inode, 1 /*visible */ ); inode 818 fs/reiserfs/namei.c inode->i_nlink = 0; inode 820 fs/reiserfs/namei.c reiserfs_update_sd(&th, inode); inode 824 fs/reiserfs/namei.c iput(inode); inode 830 fs/reiserfs/namei.c d_instantiate(dentry, inode); inode 846 fs/reiserfs/namei.c if (inode->i_size != EMPTY_DIR_SIZE && inode 847 fs/reiserfs/namei.c inode->i_size != EMPTY_DIR_SIZE_V1) { inode 856 fs/reiserfs/namei.c struct inode *inode; inode 886 fs/reiserfs/namei.c inode = dentry->d_inode; inode 888 fs/reiserfs/namei.c reiserfs_update_inode_transaction(inode); inode 891 fs/reiserfs/namei.c if (de.de_objectid != inode->i_ino) { inode 897 fs/reiserfs/namei.c if (!reiserfs_empty_dir(inode)) { inode 908 fs/reiserfs/namei.c if (inode->i_nlink != 2 && inode->i_nlink != 1) inode 909 fs/reiserfs/namei.c reiserfs_warning(inode->i_sb, "%s: empty directory has nlink " inode 910 fs/reiserfs/namei.c "!= 2 (%d)", __func__, inode->i_nlink); inode 912 fs/reiserfs/namei.c clear_nlink(inode); inode 913 fs/reiserfs/namei.c inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME_SEC; inode 914 fs/reiserfs/namei.c reiserfs_update_sd(&th, inode); inode 921 fs/reiserfs/namei.c add_save_link(&th, inode, 0 /* not truncate */ ); inode 942 fs/reiserfs/namei.c struct inode *inode; inode 949 fs/reiserfs/namei.c inode = dentry->d_inode; inode 975 fs/reiserfs/namei.c reiserfs_update_inode_transaction(inode); inode 978 fs/reiserfs/namei.c if (de.de_objectid != inode->i_ino) { inode 985 fs/reiserfs/namei.c if (!inode->i_nlink) { inode 986 fs/reiserfs/namei.c reiserfs_warning(inode->i_sb, "%s: deleting nonexistent file " inode 988 fs/reiserfs/namei.c reiserfs_bdevname(inode->i_sb), inode->i_ino, inode 989 fs/reiserfs/namei.c inode->i_nlink); inode 990 fs/reiserfs/namei.c inode->i_nlink = 1; inode 993 fs/reiserfs/namei.c drop_nlink(inode); inode 999 fs/reiserfs/namei.c savelink = inode->i_nlink; inode 1005 fs/reiserfs/namei.c inc_nlink(inode); inode 1008 fs/reiserfs/namei.c inode->i_ctime = CURRENT_TIME_SEC; inode 1009 fs/reiserfs/namei.c reiserfs_update_sd(&th, inode); inode 1017 fs/reiserfs/namei.c add_save_link(&th, inode, 0 /* not truncate */ ); inode 1039 fs/reiserfs/namei.c struct inode *inode; inode 1050 fs/reiserfs/namei.c if (!(inode = new_inode(parent_dir->i_sb))) { inode 1053 fs/reiserfs/namei.c new_inode_init(inode, parent_dir, mode); inode 1059 fs/reiserfs/namei.c drop_new_inode(inode); inode 1065 fs/reiserfs/namei.c drop_new_inode(inode); inode 1076 fs/reiserfs/namei.c drop_new_inode(inode); inode 1083 fs/reiserfs/namei.c dentry, inode); inode 1089 fs/reiserfs/namei.c reiserfs_update_inode_transaction(inode); inode 1092 fs/reiserfs/namei.c inode->i_op = &reiserfs_symlink_inode_operations; inode 1093 fs/reiserfs/namei.c inode->i_mapping->a_ops = &reiserfs_address_space_operations; inode 1100 fs/reiserfs/namei.c dentry->d_name.len, inode, 1 /*visible */ ); inode 1103 fs/reiserfs/namei.c inode->i_nlink--; inode 1104 fs/reiserfs/namei.c reiserfs_update_sd(&th, inode); inode 1108 fs/reiserfs/namei.c iput(inode); inode 1112 fs/reiserfs/namei.c d_instantiate(dentry, inode); inode 1123 fs/reiserfs/namei.c struct inode *inode = old_dentry->d_inode; inode 1131 fs/reiserfs/namei.c if (inode->i_nlink >= REISERFS_LINK_MAX) { inode 1136 fs/reiserfs/namei.c if (inode->i_nlink == 0) { inode 1142 fs/reiserfs/namei.c inc_nlink(inode); inode 1146 fs/reiserfs/namei.c inode->i_nlink--; inode 1154 fs/reiserfs/namei.c dentry->d_name.len, inode, 1 /*visible */ ); inode 1156 fs/reiserfs/namei.c reiserfs_update_inode_transaction(inode); inode 1161 fs/reiserfs/namei.c inode->i_nlink--; inode 1167 fs/reiserfs/namei.c inode->i_ctime = CURRENT_TIME_SEC; inode 1168 fs/reiserfs/namei.c reiserfs_update_sd(&th, inode); inode 1170 fs/reiserfs/namei.c atomic_inc(&inode->i_count); inode 1171 fs/reiserfs/namei.c d_instantiate(dentry, inode); inode 1198 fs/reiserfs/namei.c if (inode) { inode 1202 fs/reiserfs/namei.c return (de->de_objectid == inode->i_ino) ? 1 : 0; inode 1236 fs/reiserfs/namei.c struct inode *old_inode, *new_dentry_inode; inode 460 fs/reiserfs/procfs.c m->private = PDE(inode); inode 920 fs/reiserfs/stree.c if (new_file_length == max_reiserfs_offset(inode)) { inode 926 fs/reiserfs/stree.c if (get_inode_item_key_version(inode) == KEY_FORMAT_3_6) { inode 961 fs/reiserfs/stree.c new_file_length == max_reiserfs_offset(inode)) { inode 994 fs/reiserfs/stree.c struct super_block *p_s_sb = inode->i_sb; inode 1003 fs/reiserfs/stree.c RFALSE(n_new_file_length != max_reiserfs_offset(inode), inode 1012 fs/reiserfs/stree.c return prepare_for_direntry_item(p_s_path, p_le_ih, inode, inode 1018 fs/reiserfs/stree.c return prepare_for_direct_item(p_s_path, p_le_ih, inode, inode 1030 fs/reiserfs/stree.c if ( n_new_file_length == max_reiserfs_offset (inode) ) { inode 1063 fs/reiserfs/stree.c reiserfs_free_block(th, inode, block, 1); inode 1379 fs/reiserfs/stree.c if (inode) { /* Should we count quota for item? (we don't count quotas for save-links) */ inode 1383 fs/reiserfs/stree.c quota_cut_bytes, inode->i_uid, inode 1386 fs/reiserfs/stree.c DQUOT_FREE_SPACE_NODIRTY(inode, inode 1407 fs/reiserfs/stree.c inode->i_size = 0; inode 1412 fs/reiserfs/stree.c reiserfs_do_truncate(th, inode, NULL, 0 /*no timestamp updates */ ); inode 1426 fs/reiserfs/stree.c reiserfs_delete_solid_item(th, inode, INODE_PKEY(inode)); inode 1509 fs/reiserfs/stree.c make_cpu_key(&tail_key, inode, inode->i_size + 1, TYPE_DIRECT, 4); // !!!! inode 1513 fs/reiserfs/stree.c (cpu_key_k_offset(&tail_key) & (inode->i_sb->s_blocksize - 1)) - 1; inode 1516 fs/reiserfs/stree.c if (search_for_position_by_key(inode->i_sb, &tail_key, path) == inode 1518 fs/reiserfs/stree.c reiserfs_panic(inode->i_sb, inode 1526 fs/reiserfs/stree.c reiserfs_delete_item(th, path, &tail_key, inode, inode 1536 fs/reiserfs/stree.c reiserfs_warning(inode->i_sb, inode 1539 fs/reiserfs/stree.c mark_inode_dirty(inode); inode 1745 fs/reiserfs/stree.c if (inode->i_nlink) inode 1746 fs/reiserfs/stree.c reiserfs_warning(inode->i_sb, inode 1749 fs/reiserfs/stree.c set_le_key_k_offset(KEY_FORMAT_3_5, INODE_PKEY(inode), DOT_OFFSET); inode 1750 fs/reiserfs/stree.c set_le_key_k_type(KEY_FORMAT_3_5, INODE_PKEY(inode), TYPE_DIRENTRY); inode 1751 fs/reiserfs/stree.c reiserfs_delete_solid_item(th, inode, INODE_PKEY(inode)); inode 1752 fs/reiserfs/stree.c reiserfs_update_sd(th, inode); inode 1753 fs/reiserfs/stree.c set_le_key_k_offset(KEY_FORMAT_3_5, INODE_PKEY(inode), SD_OFFSET); inode 1754 fs/reiserfs/stree.c set_le_key_k_type(KEY_FORMAT_3_5, INODE_PKEY(inode), TYPE_STAT_DATA); inode 1965 fs/reiserfs/stree.c fs_gen = get_generation(inode->i_sb); inode 1968 fs/reiserfs/stree.c reiserfs_debug(inode->i_sb, REISERFS_DEBUG_CODE, inode 1970 fs/reiserfs/stree.c n_pasted_size, inode->i_uid, inode 1974 fs/reiserfs/stree.c if (DQUOT_ALLOC_SPACE_NODIRTY(inode, n_pasted_size)) { inode 1985 fs/reiserfs/stree.c if (fs_changed(fs_gen, inode->i_sb)) { inode 2003 fs/reiserfs/stree.c reiserfs_warning(inode->i_sb, inode 2025 fs/reiserfs/stree.c reiserfs_debug(inode->i_sb, REISERFS_DEBUG_CODE, inode 2027 fs/reiserfs/stree.c n_pasted_size, inode->i_uid, inode 2030 fs/reiserfs/stree.c DQUOT_FREE_SPACE_NODIRTY(inode, n_pasted_size); inode 2046 fs/reiserfs/stree.c if (inode) { /* Do we count quotas for item? */ inode 2047 fs/reiserfs/stree.c fs_gen = get_generation(inode->i_sb); inode 2053 fs/reiserfs/stree.c if (!S_ISLNK(inode->i_mode) && is_direct_le_ih(p_s_ih)) { inode 2054 fs/reiserfs/stree.c quota_bytes = inode->i_sb->s_blocksize + UNFM_P_SIZE; inode 2057 fs/reiserfs/stree.c reiserfs_debug(inode->i_sb, REISERFS_DEBUG_CODE, inode 2059 fs/reiserfs/stree.c quota_bytes, inode->i_uid, head2type(p_s_ih)); inode 2063 fs/reiserfs/stree.c if (DQUOT_ALLOC_SPACE_NODIRTY(inode, quota_bytes)) { inode 2074 fs/reiserfs/stree.c if (inode && fs_changed(fs_gen, inode->i_sb)) { inode 2112 fs/reiserfs/stree.c quota_bytes, inode->i_uid, head2type(p_s_ih)); inode 2114 fs/reiserfs/stree.c if (inode) inode 2115 fs/reiserfs/stree.c DQUOT_FREE_SPACE_NODIRTY(inode, quota_bytes); inode 155 fs/reiserfs/super.c struct inode *inode; inode 232 fs/reiserfs/super.c inode = reiserfs_iget(s, &obj_key); inode 233 fs/reiserfs/super.c if (!inode) { inode 243 fs/reiserfs/super.c if (!truncate && inode->i_nlink) { inode 251 fs/reiserfs/super.c DQUOT_INIT(inode); inode 253 fs/reiserfs/super.c if (truncate && S_ISDIR(inode->i_mode)) { inode 260 fs/reiserfs/super.c INODE_PKEY(inode)); inode 263 fs/reiserfs/super.c iput(inode); inode 268 fs/reiserfs/super.c REISERFS_I(inode)->i_flags |= inode 273 fs/reiserfs/super.c INODE_PKEY(inode), inode->i_size); inode 274 fs/reiserfs/super.c reiserfs_truncate_file(inode, inode 278 fs/reiserfs/super.c retval = remove_save_link(inode, truncate); inode 280 fs/reiserfs/super.c REISERFS_I(inode)->i_flags |= i_link_saved_unlink_mask; inode 282 fs/reiserfs/super.c reiserfs_info(s, "Removing %k..", INODE_PKEY(inode)); inode 283 fs/reiserfs/super.c if (memcmp(&last_inode_key, INODE_PKEY(inode), inode 285 fs/reiserfs/super.c last_inode_key = *INODE_PKEY(inode); inode 297 fs/reiserfs/super.c iput(inode); inode 337 fs/reiserfs/super.c (REISERFS_I(inode)->i_flags & i_link_saved_truncate_mask), inode 339 fs/reiserfs/super.c (long)inode->i_ino); inode 341 fs/reiserfs/super.c (REISERFS_I(inode)->i_flags & i_link_saved_unlink_mask), inode 343 fs/reiserfs/super.c (long)inode->i_ino); inode 348 fs/reiserfs/super.c key.on_disk_key.k_objectid = inode->i_ino; inode 351 fs/reiserfs/super.c set_cpu_key_k_offset(&key, 1 + inode->i_sb->s_blocksize); inode 356 fs/reiserfs/super.c 1 + inode->i_sb->s_blocksize, TYPE_DIRECT, inode 360 fs/reiserfs/super.c if (S_ISDIR(inode->i_mode)) inode 361 fs/reiserfs/super.c reiserfs_warning(inode->i_sb, inode 363 fs/reiserfs/super.c INODE_PKEY(inode)); inode 374 fs/reiserfs/super.c retval = search_item(inode->i_sb, &key, &path); inode 377 fs/reiserfs/super.c reiserfs_warning(inode->i_sb, "vs-2100: add_save_link:" inode 385 fs/reiserfs/super.c link = INODE_PKEY(inode)->k_dir_id; inode 392 fs/reiserfs/super.c reiserfs_warning(inode->i_sb, inode 397 fs/reiserfs/super.c REISERFS_I(inode)->i_flags |= inode 400 fs/reiserfs/super.c REISERFS_I(inode)->i_flags |= i_link_saved_unlink_mask; inode 412 fs/reiserfs/super.c err = journal_begin(&th, inode->i_sb, JOURNAL_PER_BALANCE_CNT); inode 418 fs/reiserfs/super.c key.k_objectid = INODE_PKEY(inode)->k_objectid; inode 422 fs/reiserfs/super.c 1 + inode->i_sb->s_blocksize); inode 431 fs/reiserfs/super.c (REISERFS_I(inode)->i_flags & i_link_saved_truncate_mask)) || inode 433 fs/reiserfs/super.c (REISERFS_I(inode)->i_flags & i_link_saved_unlink_mask))) inode 437 fs/reiserfs/super.c reiserfs_release_objectid(&th, inode->i_ino); inode 438 fs/reiserfs/super.c REISERFS_I(inode)->i_flags &= ~i_link_saved_unlink_mask; inode 440 fs/reiserfs/super.c REISERFS_I(inode)->i_flags &= ~i_link_saved_truncate_mask; inode 442 fs/reiserfs/super.c return journal_end(&th, inode->i_sb, JOURNAL_PER_BALANCE_CNT); inode 508 fs/reiserfs/super.c static struct inode *reiserfs_alloc_inode(struct super_block *sb) inode 520 fs/reiserfs/super.c kmem_cache_free(reiserfs_inode_cachep, REISERFS_I(inode)); inode 559 fs/reiserfs/super.c if (inode->i_sb->s_flags & MS_RDONLY) { inode 560 fs/reiserfs/super.c reiserfs_warning(inode->i_sb, inode 562 fs/reiserfs/super.c inode->i_ino); inode 565 fs/reiserfs/super.c reiserfs_write_lock(inode->i_sb); inode 570 fs/reiserfs/super.c err = journal_begin(&th, inode->i_sb, 1); inode 572 fs/reiserfs/super.c reiserfs_write_unlock(inode->i_sb); inode 575 fs/reiserfs/super.c reiserfs_update_sd(&th, inode); inode 576 fs/reiserfs/super.c journal_end(&th, inode->i_sb, 1); inode 577 fs/reiserfs/super.c reiserfs_write_unlock(inode->i_sb); inode 585 fs/reiserfs/super.c acl = REISERFS_I(inode)->i_acl_access; inode 588 fs/reiserfs/super.c REISERFS_I(inode)->i_acl_access = NULL; inode 590 fs/reiserfs/super.c acl = REISERFS_I(inode)->i_acl_default; inode 593 fs/reiserfs/super.c REISERFS_I(inode)->i_acl_default = NULL; inode 1430 fs/reiserfs/super.c struct inode *inode; inode 1436 fs/reiserfs/super.c inode = s->s_root->d_inode; inode 1441 fs/reiserfs/super.c make_cpu_key(&key, inode, ~0, TYPE_DIRENTRY, 3); inode 1596 fs/reiserfs/super.c struct inode *root_inode; inode 1903 fs/reiserfs/super.c reiserfs_write_lock(inode->i_sb); inode 1905 fs/reiserfs/super.c journal_begin(&th, inode->i_sb, inode 1906 fs/reiserfs/super.c 2 * REISERFS_QUOTA_INIT_BLOCKS(inode->i_sb)); inode 1909 fs/reiserfs/super.c ret = dquot_initialize(inode, type); inode 1911 fs/reiserfs/super.c journal_end(&th, inode->i_sb, inode 1912 fs/reiserfs/super.c 2 * REISERFS_QUOTA_INIT_BLOCKS(inode->i_sb)); inode 1916 fs/reiserfs/super.c reiserfs_write_unlock(inode->i_sb); inode 1926 fs/reiserfs/super.c reiserfs_write_lock(inode->i_sb); inode 1928 fs/reiserfs/super.c journal_begin(&th, inode->i_sb, inode 1929 fs/reiserfs/super.c 2 * REISERFS_QUOTA_DEL_BLOCKS(inode->i_sb)); inode 1935 fs/reiserfs/super.c dquot_drop(inode); inode 1938 fs/reiserfs/super.c ret = dquot_drop(inode); inode 1940 fs/reiserfs/super.c journal_end(&th, inode->i_sb, inode 1941 fs/reiserfs/super.c 2 * REISERFS_QUOTA_DEL_BLOCKS(inode->i_sb)); inode 1945 fs/reiserfs/super.c reiserfs_write_unlock(inode->i_sb); inode 2065 fs/reiserfs/super.c struct inode *inode; inode 2081 fs/reiserfs/super.c inode = nd.path.dentry->d_inode; inode 2083 fs/reiserfs/super.c if (!(REISERFS_I(inode)->i_flags & i_nopack_mask)) { inode 2084 fs/reiserfs/super.c err = reiserfs_unpack(inode, NULL); inode 2092 fs/reiserfs/super.c mark_inode_dirty(inode); inode 2107 fs/reiserfs/super.c if (reiserfs_file_data_log(inode)) { inode 2129 fs/reiserfs/super.c struct inode *inode = sb_dqopt(sb)->files[type]; inode 2134 fs/reiserfs/super.c loff_t i_size = i_size_read(inode); inode 2148 fs/reiserfs/super.c err = reiserfs_get_block(inode, blk, &tmp_bh, 0); inode 2174 fs/reiserfs/super.c struct inode *inode = sb_dqopt(sb)->files[type]; inode 2187 fs/reiserfs/super.c mutex_lock_nested(&inode->i_mutex, I_MUTEX_QUOTA); inode 2192 fs/reiserfs/super.c err = reiserfs_get_block(inode, blk, &tmp_bh, GET_BLOCK_CREATE); inode 2211 fs/reiserfs/super.c reiserfs_add_ordered_list(inode, bh); inode 2220 fs/reiserfs/super.c mutex_unlock(&inode->i_mutex); inode 2223 fs/reiserfs/super.c if (inode->i_size < off + len - towrite) inode 2224 fs/reiserfs/super.c i_size_write(inode, off + len - towrite); inode 2225 fs/reiserfs/super.c inode->i_version++; inode 2226 fs/reiserfs/super.c inode->i_mtime = inode->i_ctime = CURRENT_TIME; inode 2227 fs/reiserfs/super.c mark_inode_dirty(inode); inode 2228 fs/reiserfs/super.c mutex_unlock(&inode->i_mutex); inode 21 fs/reiserfs/tail_conversion.c struct super_block *sb = inode->i_sb; inode 47 fs/reiserfs/tail_conversion.c make_cpu_key(&end_key, inode, tail_offset, TYPE_INDIRECT, 4); inode 68 fs/reiserfs/tail_conversion.c reiserfs_insert_item(th, path, &end_key, &ind_ih, inode, inode 72 fs/reiserfs/tail_conversion.c n_retval = reiserfs_paste_into_item(th, path, &end_key, inode, inode 83 fs/reiserfs/tail_conversion.c make_cpu_key(&end_key, inode, max_reiserfs_offset(inode), TYPE_DIRECT, inode 117 fs/reiserfs/tail_conversion.c n_retval = reiserfs_delete_item(th, path, &end_key, inode, inode 137 fs/reiserfs/tail_conversion.c REISERFS_I(inode)->i_first_direct_byte = U32_MAX; inode 154 fs/reiserfs/tail_conversion.c struct inode *inode = bh->b_page->mapping->host; inode 155 fs/reiserfs/tail_conversion.c struct reiserfs_journal *j = SB_JOURNAL(inode->i_sb); inode 106 fs/reiserfs/xattr.c xaroot = get_xa_root(inode->i_sb, flags); inode 112 fs/reiserfs/xattr.c le32_to_cpu(INODE_PKEY(inode)->k_objectid), inode 113 fs/reiserfs/xattr.c inode->i_generation); inode 155 fs/reiserfs/xattr.c xadir = open_xa_dir(inode, flags); inode 233 fs/reiserfs/xattr.c next_pos = max_reiserfs_offset(inode); inode 239 fs/reiserfs/xattr.c make_cpu_key(&pos_key, inode, next_pos, TYPE_DIRENTRY, 3); inode 242 fs/reiserfs/xattr.c search_by_entry_key(inode->i_sb, &pos_key, &path_to_entry, inode 262 fs/reiserfs/xattr.c reiserfs_warning(inode->i_sb, "not direntry %h", ih); inode 291 fs/reiserfs/xattr.c if (d_reclen > REISERFS_MAX_NAME(inode->i_sb->s_blocksize)) { inode 297 fs/reiserfs/xattr.c if (reiserfs_xattrs(inode->i_sb) && inode 298 fs/reiserfs/xattr.c !old_format_only(inode->i_sb) && inode 301 fs/reiserfs/xattr.c (REISERFS_SB(inode->i_sb)->priv_root->d_inode)-> inode 361 fs/reiserfs/xattr.c mutex_lock_nested(&inode->i_mutex, I_MUTEX_XATTR); inode 362 fs/reiserfs/xattr.c if (!IS_DEADDIR(inode)) { inode 364 fs/reiserfs/xattr.c res = __xattr_readdir(inode, buf, filler); inode 367 fs/reiserfs/xattr.c mutex_unlock(&inode->i_mutex); inode 425 fs/reiserfs/xattr.c struct inode *xinode; inode 429 fs/reiserfs/xattr.c if (get_inode_sd_version(inode) == STAT_DATA_V1) inode 437 fs/reiserfs/xattr.c dentry = get_xa_file_dentry(inode, name, flags); inode 444 fs/reiserfs/xattr.c REISERFS_I(inode)->i_flags |= i_has_xattr_dir; inode 449 fs/reiserfs/xattr.c err = reiserfs_xattr_del(inode, name); inode 517 fs/reiserfs/xattr.c if (!hlist_unhashed(&inode->i_hash)) { inode 518 fs/reiserfs/xattr.c inode->i_ctime = CURRENT_TIME_SEC; inode 519 fs/reiserfs/xattr.c mark_inode_dirty(inode); inode 543 fs/reiserfs/xattr.c struct inode *xinode; inode 551 fs/reiserfs/xattr.c if (get_inode_sd_version(inode) == STAT_DATA_V1) inode 554 fs/reiserfs/xattr.c dentry = get_xa_file_dentry(inode, name, FL_READONLY); inode 562 fs/reiserfs/xattr.c REISERFS_I(inode)->i_flags |= i_has_xattr_dir; inode 601 fs/reiserfs/xattr.c reiserfs_warning(inode->i_sb, inode 604 fs/reiserfs/xattr.c INODE_PKEY(inode)); inode 621 fs/reiserfs/xattr.c reiserfs_warning(inode->i_sb, inode 623 fs/reiserfs/xattr.c "with %k", name, INODE_PKEY(inode)); inode 638 fs/reiserfs/xattr.c struct inode *dir = xadir->d_inode; inode 683 fs/reiserfs/xattr.c dir = open_xa_dir(inode, FL_READONLY); inode 693 fs/reiserfs/xattr.c inode->i_ctime = CURRENT_TIME_SEC; inode 694 fs/reiserfs/xattr.c mark_inode_dirty(inode); inode 722 fs/reiserfs/xattr.c if (is_reiserfs_priv_object(inode) || inode 723 fs/reiserfs/xattr.c get_inode_sd_version(inode) == STAT_DATA_V1 || inode 724 fs/reiserfs/xattr.c !reiserfs_xattrs(inode->i_sb)) { inode 727 fs/reiserfs/xattr.c reiserfs_read_lock_xattrs(inode->i_sb); inode 728 fs/reiserfs/xattr.c dir = open_xa_dir(inode, FL_READONLY); inode 729 fs/reiserfs/xattr.c reiserfs_read_unlock_xattrs(inode->i_sb); inode 747 fs/reiserfs/xattr.c root = get_xa_root(inode->i_sb, XATTR_REPLACE); inode 748 fs/reiserfs/xattr.c reiserfs_write_lock_xattrs(inode->i_sb); inode 750 fs/reiserfs/xattr.c reiserfs_write_unlock_xattrs(inode->i_sb); inode 753 fs/reiserfs/xattr.c reiserfs_warning(inode->i_sb, inode 763 fs/reiserfs/xattr.c REISERFS_I(inode)->i_flags = inode 764 fs/reiserfs/xattr.c REISERFS_I(inode)->i_flags & ~i_has_xattr_dir; inode 769 fs/reiserfs/xattr.c struct inode *inode; inode 807 fs/reiserfs/xattr.c if (is_reiserfs_priv_object(inode) || inode 808 fs/reiserfs/xattr.c get_inode_sd_version(inode) == STAT_DATA_V1 || inode 809 fs/reiserfs/xattr.c !reiserfs_xattrs(inode->i_sb)) { inode 812 fs/reiserfs/xattr.c reiserfs_read_lock_xattrs(inode->i_sb); inode 813 fs/reiserfs/xattr.c dir = open_xa_dir(inode, FL_READONLY); inode 814 fs/reiserfs/xattr.c reiserfs_read_unlock_xattrs(inode->i_sb); inode 829 fs/reiserfs/xattr.c buf.inode = inode; inode 949 fs/reiserfs/xattr.c struct inode *r_inode; inode 1174 fs/reiserfs/xattr.c struct inode *inode = dentry->d_parent->d_inode; inode 1175 fs/reiserfs/xattr.c mutex_lock_nested(&inode->i_mutex, inode 1177 fs/reiserfs/xattr.c err = inode->i_op->mkdir(inode, dentry, 0700); inode 1178 fs/reiserfs/xattr.c mutex_unlock(&inode->i_mutex); inode 1190 fs/reiserfs/xattr.c (inode->i_sb)); inode 1234 fs/reiserfs/xattr.c reiserfs_read_lock_xattr_i(inode); inode 1235 fs/reiserfs/xattr.c reiserfs_read_lock_xattrs(inode->i_sb); inode 1237 fs/reiserfs/xattr.c acl = reiserfs_get_acl(inode, ACL_TYPE_ACCESS); inode 1239 fs/reiserfs/xattr.c reiserfs_read_unlock_xattrs(inode->i_sb); inode 1240 fs/reiserfs/xattr.c reiserfs_read_unlock_xattr_i(inode); inode 1244 fs/reiserfs/xattr.c error = posix_acl_permission(inode, acl, mask); inode 1259 fs/reiserfs/xattr.c if (is_reiserfs_priv_object(inode)) inode 1265 fs/reiserfs/xattr.c if (get_inode_sd_version(inode) == STAT_DATA_V1) inode 1266 fs/reiserfs/xattr.c return generic_permission(inode, mask, NULL); inode 1268 fs/reiserfs/xattr.c return generic_permission(inode, mask, reiserfs_check_acl); inode 22 fs/reiserfs/xattr_acl.c if (!reiserfs_posixacl(inode->i_sb)) inode 24 fs/reiserfs/xattr_acl.c if (!is_owner_or_cap(inode)) inode 39 fs/reiserfs/xattr_acl.c error = reiserfs_set_acl(inode, type, acl); inode 52 fs/reiserfs/xattr_acl.c if (!reiserfs_posixacl(inode->i_sb)) inode 55 fs/reiserfs/xattr_acl.c acl = reiserfs_get_acl(inode, type); inode 187 fs/reiserfs/xattr_acl.c struct reiserfs_inode_info *reiserfs_i = REISERFS_I(inode); inode 208 fs/reiserfs/xattr_acl.c size = reiserfs_xattr_get(inode, name, NULL, 0); inode 221 fs/reiserfs/xattr_acl.c retval = reiserfs_xattr_get(inode, name, value, size); inode 253 fs/reiserfs/xattr_acl.c struct reiserfs_inode_info *reiserfs_i = REISERFS_I(inode); inode 255 fs/reiserfs/xattr_acl.c if (S_ISLNK(inode->i_mode)) inode 263 fs/reiserfs/xattr_acl.c mode_t mode = inode->i_mode; inode 268 fs/reiserfs/xattr_acl.c inode->i_mode = mode; inode 277 fs/reiserfs/xattr_acl.c if (!S_ISDIR(inode->i_mode)) inode 288 fs/reiserfs/xattr_acl.c error = reiserfs_xattr_set(inode, name, value, size, 0); inode 290 fs/reiserfs/xattr_acl.c error = reiserfs_xattr_del(inode, name); inode 296 fs/reiserfs/xattr_acl.c mark_inode_dirty(inode); inode 327 fs/reiserfs/xattr_acl.c if (S_ISLNK(inode->i_mode)) inode 339 fs/reiserfs/xattr_acl.c reiserfs_mark_inode_private(inode); inode 352 fs/reiserfs/xattr_acl.c mode_t mode = inode->i_mode; inode 356 fs/reiserfs/xattr_acl.c if (S_ISDIR(inode->i_mode)) { inode 357 fs/reiserfs/xattr_acl.c err = reiserfs_set_acl(inode, ACL_TYPE_DEFAULT, acl); inode 372 fs/reiserfs/xattr_acl.c if (mode != inode->i_mode) { inode 373 fs/reiserfs/xattr_acl.c inode->i_mode = mode; inode 379 fs/reiserfs/xattr_acl.c reiserfs_set_acl(inode, ACL_TYPE_ACCESS, inode 392 fs/reiserfs/xattr_acl.c inode->i_mode &= ~current->fs->umask; inode 404 fs/reiserfs/xattr_acl.c if (reiserfs_posixacl(inode->i_sb) && !is_reiserfs_priv_object(inode)) { inode 406 fs/reiserfs/xattr_acl.c reiserfs_read_lock_xattr_i(inode); inode 407 fs/reiserfs/xattr_acl.c reiserfs_read_lock_xattrs(inode->i_sb); inode 408 fs/reiserfs/xattr_acl.c acl = reiserfs_get_acl(inode, ACL_TYPE_DEFAULT); inode 409 fs/reiserfs/xattr_acl.c reiserfs_read_unlock_xattrs(inode->i_sb); inode 410 fs/reiserfs/xattr_acl.c reiserfs_read_unlock_xattr_i(inode); inode 424 fs/reiserfs/xattr_acl.c if (S_ISLNK(inode->i_mode)) inode 427 fs/reiserfs/xattr_acl.c if (get_inode_sd_version(inode) == STAT_DATA_V1 || inode 428 fs/reiserfs/xattr_acl.c !reiserfs_posixacl(inode->i_sb)) { inode 432 fs/reiserfs/xattr_acl.c reiserfs_read_lock_xattrs(inode->i_sb); inode 433 fs/reiserfs/xattr_acl.c acl = reiserfs_get_acl(inode, ACL_TYPE_ACCESS); inode 434 fs/reiserfs/xattr_acl.c reiserfs_read_unlock_xattrs(inode->i_sb); inode 443 fs/reiserfs/xattr_acl.c error = posix_acl_chmod_masq(clone, inode->i_mode); inode 445 fs/reiserfs/xattr_acl.c int lock = !has_xattr_dir(inode); inode 446 fs/reiserfs/xattr_acl.c reiserfs_write_lock_xattr_i(inode); inode 448 fs/reiserfs/xattr_acl.c reiserfs_write_lock_xattrs(inode->i_sb); inode 450 fs/reiserfs/xattr_acl.c reiserfs_read_lock_xattrs(inode->i_sb); inode 451 fs/reiserfs/xattr_acl.c error = reiserfs_set_acl(inode, ACL_TYPE_ACCESS, clone); inode 453 fs/reiserfs/xattr_acl.c reiserfs_write_unlock_xattrs(inode->i_sb); inode 455 fs/reiserfs/xattr_acl.c reiserfs_read_unlock_xattrs(inode->i_sb); inode 456 fs/reiserfs/xattr_acl.c reiserfs_write_unlock_xattr_i(inode); inode 468 fs/reiserfs/xattr_acl.c return xattr_get_acl(inode, ACL_TYPE_ACCESS, buffer, size); inode 477 fs/reiserfs/xattr_acl.c return xattr_set_acl(inode, ACL_TYPE_ACCESS, value, size); inode 482 fs/reiserfs/xattr_acl.c struct reiserfs_inode_info *reiserfs_i = REISERFS_I(inode); inode 499 fs/reiserfs/xattr_acl.c if (!reiserfs_posixacl(inode->i_sb)) inode 521 fs/reiserfs/xattr_acl.c return xattr_get_acl(inode, ACL_TYPE_DEFAULT, buffer, size); inode 530 fs/reiserfs/xattr_acl.c return xattr_set_acl(inode, ACL_TYPE_DEFAULT, value, size); inode 535 fs/reiserfs/xattr_acl.c struct reiserfs_inode_info *reiserfs_i = REISERFS_I(inode); inode 552 fs/reiserfs/xattr_acl.c if (!reiserfs_posixacl(inode->i_sb)) inode 15 fs/reiserfs/xattr_security.c if (is_reiserfs_priv_object(inode)) inode 18 fs/reiserfs/xattr_security.c return reiserfs_xattr_get(inode, name, buffer, size); inode 28 fs/reiserfs/xattr_security.c if (is_reiserfs_priv_object(inode)) inode 31 fs/reiserfs/xattr_security.c return reiserfs_xattr_set(inode, name, buffer, size, flags); inode 39 fs/reiserfs/xattr_security.c if (is_reiserfs_priv_object(inode)) inode 50 fs/reiserfs/xattr_security.c if (is_reiserfs_priv_object(inode)) inode 16 fs/reiserfs/xattr_trusted.c if (!reiserfs_xattrs(inode->i_sb)) inode 19 fs/reiserfs/xattr_trusted.c if (!(capable(CAP_SYS_ADMIN) || is_reiserfs_priv_object(inode))) inode 22 fs/reiserfs/xattr_trusted.c return reiserfs_xattr_get(inode, name, buffer, size); inode 32 fs/reiserfs/xattr_trusted.c if (!reiserfs_xattrs(inode->i_sb)) inode 35 fs/reiserfs/xattr_trusted.c if (!(capable(CAP_SYS_ADMIN) || is_reiserfs_priv_object(inode))) inode 38 fs/reiserfs/xattr_trusted.c return reiserfs_xattr_set(inode, name, buffer, size, flags); inode 46 fs/reiserfs/xattr_trusted.c if (!reiserfs_xattrs(inode->i_sb)) inode 49 fs/reiserfs/xattr_trusted.c if (!(capable(CAP_SYS_ADMIN) || is_reiserfs_priv_object(inode))) inode 60 fs/reiserfs/xattr_trusted.c if (!reiserfs_xattrs(inode->i_sb)) inode 63 fs/reiserfs/xattr_trusted.c if (!(capable(CAP_SYS_ADMIN) || is_reiserfs_priv_object(inode))) inode 19 fs/reiserfs/xattr_user.c if (!reiserfs_xattrs_user(inode->i_sb)) inode 21 fs/reiserfs/xattr_user.c return reiserfs_xattr_get(inode, name, buffer, size); inode 32 fs/reiserfs/xattr_user.c if (!reiserfs_xattrs_user(inode->i_sb)) inode 34 fs/reiserfs/xattr_user.c return reiserfs_xattr_set(inode, name, buffer, size, flags); inode 42 fs/reiserfs/xattr_user.c if (!reiserfs_xattrs_user(inode->i_sb)) inode 51 fs/reiserfs/xattr_user.c if (!reiserfs_xattrs_user(inode->i_sb)) inode 84 fs/romfs/inode.c struct inode vfs_inode; inode 87 fs/romfs/inode.c static struct inode *romfs_iget(struct super_block *, unsigned long); inode 97 fs/romfs/inode.c return container_of(inode, struct romfs_inode_info, vfs_inode); inode 121 fs/romfs/inode.c struct inode *root; inode 284 fs/romfs/inode.c struct inode *i = filp->f_path.dentry->d_inode; inode 345 fs/romfs/inode.c struct inode *inode = NULL; inode 398 fs/romfs/inode.c inode = romfs_iget(dir->i_sb, offset); inode 399 fs/romfs/inode.c if (IS_ERR(inode)) { inode 400 fs/romfs/inode.c res = PTR_ERR(inode); inode 405 fs/romfs/inode.c d_add(dentry, inode); inode 420 fs/romfs/inode.c struct inode *inode = page->mapping->host; inode 434 fs/romfs/inode.c size = i_size_read(inode); inode 443 fs/romfs/inode.c filled = romfs_copyfrom(inode, buf, ROMFS_I(inode)->i_dataoffset+offset, readlen); inode 490 fs/romfs/inode.c static struct inode * inode 495 fs/romfs/inode.c struct inode *i; inode 575 fs/romfs/inode.c static struct inode *romfs_alloc_inode(struct super_block *sb) inode 586 fs/romfs/inode.c kmem_cache_free(romfs_inode_cachep, ROMFS_I(inode)); inode 506 fs/seq_file.c int res = seq_release(inode, file); inode 518 fs/seq_file.c return seq_release(inode, file); inode 128 fs/smbfs/cache.c struct inode *newino, *inode = dentry->d_inode; inode 154 fs/smbfs/cache.c entry->f_ino = iunique(inode->i_sb, 2); inode 155 fs/smbfs/cache.c newino = smb_iget(inode->i_sb, entry); inode 181 fs/smbfs/cache.c ctl.page = grab_cache_page(&inode->i_data, ctl.ofs); inode 198 fs/smbfs/cache.c ino = iunique(inode->i_sb, 2); inode 83 fs/smbfs/dir.c struct inode *dir = dentry->d_inode; inode 302 fs/smbfs/dir.c struct inode * inode = dentry->d_inode; inode 318 fs/smbfs/dir.c if (inode) { inode 320 fs/smbfs/dir.c if (is_bad_inode(inode)) { inode 430 fs/smbfs/dir.c struct inode *inode; inode 451 fs/smbfs/dir.c inode = NULL; inode 457 fs/smbfs/dir.c inode = smb_iget(dir->i_sb, &finfo); inode 458 fs/smbfs/dir.c if (inode) { inode 466 fs/smbfs/dir.c d_add(dentry, inode); inode 483 fs/smbfs/dir.c struct inode *inode; inode 495 fs/smbfs/dir.c inode = smb_iget(dentry->d_sb, &fattr); inode 496 fs/smbfs/dir.c if (!inode) inode 500 fs/smbfs/dir.c struct smb_inode_info *ei = SMB_I(inode); inode 505 fs/smbfs/dir.c d_instantiate(dentry, inode); inode 578 fs/smbfs/dir.c struct inode *inode = dentry->d_inode; inode 585 fs/smbfs/dir.c smb_close(inode); inode 124 fs/smbfs/file.c struct smb_sb_info *server = server_from_inode(inode); inode 130 fs/smbfs/file.c inode->i_ino, SMB_I(inode)->fileid, count, offset, wsize); inode 138 fs/smbfs/file.c write_ret = server->ops->write(inode, offset, wsize, buffer); inode 157 fs/smbfs/file.c inode->i_mtime = inode->i_atime = current_fs_time(inode->i_sb); inode 158 fs/smbfs/file.c SMB_I(inode)->flags |= SMB_F_LOCALWRITE; inode 159 fs/smbfs/file.c if (offset > inode->i_size) inode 160 fs/smbfs/file.c inode->i_size = offset; inode 177 fs/smbfs/file.c struct inode *inode; inode 183 fs/smbfs/file.c inode = mapping->host; inode 184 fs/smbfs/file.c BUG_ON(!inode); inode 186 fs/smbfs/file.c end_index = inode->i_size >> PAGE_CACHE_SHIFT; inode 192 fs/smbfs/file.c offset = inode->i_size & (PAGE_CACHE_SIZE-1); inode 198 fs/smbfs/file.c err = smb_writepage_sync(inode, page, 0, offset); inode 384 fs/smbfs/file.c SMB_I(inode)->openers++; inode 394 fs/smbfs/file.c if (!--SMB_I(inode)->openers) { inode 398 fs/smbfs/file.c filemap_write_and_wait(inode->i_mapping); inode 399 fs/smbfs/file.c smb_close(inode); inode 413 fs/smbfs/file.c int mode = inode->i_mode; inode 56 fs/smbfs/inode.c static struct inode *smb_alloc_inode(struct super_block *sb) inode 67 fs/smbfs/inode.c kmem_cache_free(smb_inode_cachep, SMB_I(inode)); inode 114 fs/smbfs/inode.c struct inode * inode 118 fs/smbfs/inode.c struct inode *result; inode 159 fs/smbfs/inode.c fattr->f_mode = inode->i_mode; inode 160 fs/smbfs/inode.c fattr->f_nlink = inode->i_nlink; inode 161 fs/smbfs/inode.c fattr->f_ino = inode->i_ino; inode 162 fs/smbfs/inode.c fattr->f_uid = inode->i_uid; inode 163 fs/smbfs/inode.c fattr->f_gid = inode->i_gid; inode 164 fs/smbfs/inode.c fattr->f_size = inode->i_size; inode 165 fs/smbfs/inode.c fattr->f_mtime = inode->i_mtime; inode 166 fs/smbfs/inode.c fattr->f_ctime = inode->i_ctime; inode 167 fs/smbfs/inode.c fattr->f_atime = inode->i_atime; inode 168 fs/smbfs/inode.c fattr->f_blocks = inode->i_blocks; inode 170 fs/smbfs/inode.c fattr->attr = SMB_I(inode)->attr; inode 187 fs/smbfs/inode.c struct smb_inode_info *ei = SMB_I(inode); inode 193 fs/smbfs/inode.c time_t last_time = inode->i_mtime.tv_sec; inode 194 fs/smbfs/inode.c loff_t last_sz = inode->i_size; inode 196 fs/smbfs/inode.c inode->i_mode = fattr->f_mode; inode 197 fs/smbfs/inode.c inode->i_nlink = fattr->f_nlink; inode 198 fs/smbfs/inode.c inode->i_uid = fattr->f_uid; inode 199 fs/smbfs/inode.c inode->i_gid = fattr->f_gid; inode 200 fs/smbfs/inode.c inode->i_ctime = fattr->f_ctime; inode 201 fs/smbfs/inode.c inode->i_blocks = fattr->f_blocks; inode 202 fs/smbfs/inode.c inode->i_size = fattr->f_size; inode 203 fs/smbfs/inode.c inode->i_mtime = fattr->f_mtime; inode 204 fs/smbfs/inode.c inode->i_atime = fattr->f_atime; inode 212 fs/smbfs/inode.c if (inode->i_mtime.tv_sec != last_time || inode->i_size != last_sz) { inode 214 fs/smbfs/inode.c inode->i_ino, inode 215 fs/smbfs/inode.c (long) last_time, (long) inode->i_mtime.tv_sec, inode 216 fs/smbfs/inode.c (long) last_sz, (long) inode->i_size); inode 218 fs/smbfs/inode.c if (!S_ISDIR(inode->i_mode)) inode 219 fs/smbfs/inode.c invalidate_remote_inode(inode); inode 242 fs/smbfs/inode.c struct inode *inode = dentry->d_inode; inode 255 fs/smbfs/inode.c if (inode->i_ino == 2) inode 257 fs/smbfs/inode.c if (S_ISLNK(inode->i_mode)) inode 260 fs/smbfs/inode.c if ((inode->i_mode & S_IFMT) == (fattr.f_mode & S_IFMT)) { inode 261 fs/smbfs/inode.c smb_set_inode_attr(inode, &fattr); inode 272 fs/smbfs/inode.c inode->i_mode, fattr.f_mode); inode 274 fs/smbfs/inode.c fattr.f_mode = inode->i_mode; /* save mode */ inode 275 fs/smbfs/inode.c make_bad_inode(inode); inode 276 fs/smbfs/inode.c inode->i_mode = fattr.f_mode; /* restore mode */ inode 282 fs/smbfs/inode.c if (!S_ISDIR(inode->i_mode)) inode 283 fs/smbfs/inode.c invalidate_remote_inode(inode); inode 285 fs/smbfs/inode.c smb_invalid_dir_cache(inode); inode 301 fs/smbfs/inode.c struct inode *inode = dentry->d_inode; inode 310 fs/smbfs/inode.c if (time_before(jiffies, SMB_I(inode)->oldmtime + SMB_MAX_AGE(s))) { inode 312 fs/smbfs/inode.c inode->i_ino, jiffies, SMB_I(inode)->oldmtime); inode 499 fs/smbfs/inode.c struct inode *root_inode; inode 673 fs/smbfs/inode.c struct inode *inode = dentry->d_inode; inode 685 fs/smbfs/inode.c if ((error = inode_change_ok(inode, attr)) < 0) inode 701 fs/smbfs/inode.c (long) inode->i_size, (long) attr->ia_size); inode 703 fs/smbfs/inode.c filemap_write_and_wait(inode->i_mapping); inode 708 fs/smbfs/inode.c error = server->ops->truncate(inode, attr->ia_size); inode 711 fs/smbfs/inode.c error = vmtruncate(inode, attr->ia_size); inode 733 fs/smbfs/inode.c smb_get_inode_attr(inode, &fattr); inode 29 fs/smbfs/ioctl.c struct smb_sb_info *server = server_from_inode(inode); inode 964 fs/smbfs/proc.c struct inode *inode; inode 967 fs/smbfs/proc.c inode = SB_of(server)->s_root->d_inode; inode 968 fs/smbfs/proc.c if (inode) inode 969 fs/smbfs/proc.c inode->i_op = &smb_dir_inode_operations_unix; inode 1094 fs/smbfs/proc.c struct inode *ino = dentry->d_inode; inode 1166 fs/smbfs/proc.c struct inode *inode = dentry->d_inode; inode 1171 fs/smbfs/proc.c if (!inode) { inode 1177 fs/smbfs/proc.c if (!smb_is_open(inode)) { inode 1178 fs/smbfs/proc.c struct smb_sb_info *server = server_from_inode(inode); inode 1180 fs/smbfs/proc.c if (!smb_is_open(inode)) inode 1194 fs/smbfs/proc.c access = SMB_I(inode)->access; inode 1326 fs/smbfs/proc.c struct smb_sb_info *server = server_from_inode(inode); inode 1339 fs/smbfs/proc.c WSET(buf, smb_vwv0, SMB_I(inode)->fileid); inode 1368 fs/smbfs/proc.c inode->i_ino, SMB_I(inode)->fileid, count, result); inode 1375 fs/smbfs/proc.c struct smb_sb_info *server = server_from_inode(inode); inode 1377 fs/smbfs/proc.c u16 fileid = SMB_I(inode)->fileid; inode 1386 fs/smbfs/proc.c inode->i_ino, fileid, count, offset); inode 1449 fs/smbfs/proc.c struct smb_sb_info *server = server_from_inode(inode); inode 1463 fs/smbfs/proc.c WSET(buf, smb_vwv2, SMB_I(inode)->fileid); inode 1488 fs/smbfs/proc.c inode->i_ino, SMB_I(inode)->fileid, count, result); inode 1495 fs/smbfs/proc.c struct smb_sb_info *server = server_from_inode(inode); inode 1506 fs/smbfs/proc.c inode->i_ino, SMB_I(inode)->fileid, count, offset); inode 1511 fs/smbfs/proc.c WSET(req->rq_header, smb_vwv2, SMB_I(inode)->fileid); inode 1758 fs/smbfs/proc.c return smb_proc_write(inode, length, 0, NULL); inode 1764 fs/smbfs/proc.c struct smb_sb_info *server = server_from_inode(inode); inode 1778 fs/smbfs/proc.c WSET(param, 0, SMB_I(inode)->fileid); inode 1806 fs/smbfs/proc.c struct smb_sb_info *server = server_from_inode(inode); inode 1807 fs/smbfs/proc.c int result = smb_proc_trunc32(inode, length); inode 1816 fs/smbfs/proc.c smb_proc_flush(server, SMB_I(inode)->fileid); inode 2802 fs/smbfs/proc.c struct inode *inode = dir->d_inode; inode 2816 fs/smbfs/proc.c if (inode && SMB_I(inode)->flags & SMB_F_LOCALWRITE && inode 2817 fs/smbfs/proc.c smb_is_open(inode)) inode 2819 fs/smbfs/proc.c __u16 fileid = SMB_I(inode)->fileid; inode 2969 fs/smbfs/proc.c WSET(req->rq_header, smb_vwv0, SMB_I(inode)->fileid); inode 3189 fs/smbfs/proc.c struct inode *inode = dentry->d_inode; inode 3193 fs/smbfs/proc.c DENTRY_PATH(dentry), smb_is_open(inode)); inode 3198 fs/smbfs/proc.c if (smb_is_open(inode) && SMB_I(inode)->access != SMB_O_RDONLY) inode 3199 fs/smbfs/proc.c result = smb_proc_setattr_ext(server, inode, fattr); inode 3207 fs/smbfs/proc.c if (S_ISREG(inode->i_mode)) { inode 3214 fs/smbfs/proc.c if (!smb_is_open(inode)) inode 3216 fs/smbfs/proc.c if (smb_is_open(inode)) { inode 3217 fs/smbfs/proc.c inode->i_mtime = fattr->f_mtime; inode 3218 fs/smbfs/proc.c result = smb_proc_close_inode(server, inode); inode 58 fs/smbfs/proto.h extern struct inode *smb_iget(struct super_block *sb, struct smb_fattr *fattr); inode 72 fs/smbfs/sock.c return (inode && S_ISSOCK(inode->i_mode) && inode 73 fs/smbfs/sock.c SOCKET_I(inode)->type == SOCK_STREAM); inode 183 fs/splice.c if (pipe->inode) inode 184 fs/splice.c mutex_lock(&pipe->inode->i_mutex); inode 210 fs/splice.c if (pipe->inode) inode 246 fs/splice.c if (pipe->inode) { inode 247 fs/splice.c mutex_unlock(&pipe->inode->i_mutex); inode 655 fs/splice.c if (pipe->inode) inode 725 fs/splice.c struct inode *inode = out->f_mapping->host; inode 739 fs/splice.c inode_double_lock(inode, pipe->inode); inode 741 fs/splice.c inode_double_unlock(inode, pipe->inode); inode 765 fs/splice.c struct inode *inode = mapping->host; inode 790 fs/splice.c if (unlikely((out->f_flags & O_SYNC) || IS_SYNC(inode))) { inode 791 fs/splice.c err = generic_osync_inode(inode, mapping, inode 823 fs/splice.c struct inode *inode = mapping->host; inode 832 fs/splice.c inode_double_lock(inode, pipe->inode); inode 836 fs/splice.c inode_double_unlock(inode, pipe->inode); inode 847 fs/splice.c if (unlikely((out->f_flags & O_SYNC) || IS_SYNC(inode))) { inode 850 fs/splice.c mutex_lock(&inode->i_mutex); inode 851 fs/splice.c err = generic_osync_inode(inode, mapping, inode 853 fs/splice.c mutex_unlock(&inode->i_mutex); inode 1104 fs/splice.c if (S_ISFIFO(inode->i_mode)) inode 1105 fs/splice.c return inode->i_pipe; inode 1325 fs/splice.c if (pipe->inode) inode 1326 fs/splice.c mutex_lock(&pipe->inode->i_mutex); inode 1381 fs/splice.c if (pipe->inode) inode 1382 fs/splice.c mutex_unlock(&pipe->inode->i_mutex); inode 1510 fs/splice.c mutex_lock(&pipe->inode->i_mutex); inode 1528 fs/splice.c mutex_unlock(&pipe->inode->i_mutex); inode 1548 fs/splice.c mutex_lock(&pipe->inode->i_mutex); inode 1569 fs/splice.c mutex_unlock(&pipe->inode->i_mutex); inode 1588 fs/splice.c inode_double_lock(ipipe->inode, opipe->inode); inode 1639 fs/splice.c inode_double_unlock(ipipe->inode, opipe->inode); inode 12 fs/stack.c i_size_write(dst, i_size_read((struct inode *)src)); inode 23 fs/stat.c stat->dev = inode->i_sb->s_dev; inode 24 fs/stat.c stat->ino = inode->i_ino; inode 25 fs/stat.c stat->mode = inode->i_mode; inode 26 fs/stat.c stat->nlink = inode->i_nlink; inode 27 fs/stat.c stat->uid = inode->i_uid; inode 28 fs/stat.c stat->gid = inode->i_gid; inode 29 fs/stat.c stat->rdev = inode->i_rdev; inode 30 fs/stat.c stat->atime = inode->i_atime; inode 31 fs/stat.c stat->mtime = inode->i_mtime; inode 32 fs/stat.c stat->ctime = inode->i_ctime; inode 33 fs/stat.c stat->size = i_size_read(inode); inode 34 fs/stat.c stat->blocks = inode->i_blocks; inode 35 fs/stat.c stat->blksize = (1 << inode->i_blkbits); inode 42 fs/stat.c struct inode *inode = dentry->d_inode; inode 49 fs/stat.c if (inode->i_op->getattr) inode 50 fs/stat.c return inode->i_op->getattr(mnt, dentry, stat); inode 52 fs/stat.c generic_fillattr(inode, stat); inode 305 fs/stat.c struct inode *inode = path.dentry->d_inode; inode 308 fs/stat.c if (inode->i_op && inode->i_op->readlink) { inode 312 fs/stat.c error = inode->i_op->readlink(path.dentry, inode 423 fs/stat.c spin_lock(&inode->i_lock); inode 424 fs/stat.c inode->i_blocks += bytes >> 9; inode 426 fs/stat.c inode->i_bytes += bytes; inode 427 fs/stat.c if (inode->i_bytes >= 512) { inode 428 fs/stat.c inode->i_blocks++; inode 429 fs/stat.c inode->i_bytes -= 512; inode 431 fs/stat.c spin_unlock(&inode->i_lock); inode 438 fs/stat.c spin_lock(&inode->i_lock); inode 439 fs/stat.c inode->i_blocks -= bytes >> 9; inode 441 fs/stat.c if (inode->i_bytes < bytes) { inode 442 fs/stat.c inode->i_blocks--; inode 443 fs/stat.c inode->i_bytes += 512; inode 445 fs/stat.c inode->i_bytes -= bytes; inode 446 fs/stat.c spin_unlock(&inode->i_lock); inode 455 fs/stat.c spin_lock(&inode->i_lock); inode 456 fs/stat.c ret = (((loff_t)inode->i_blocks) << 9) + inode->i_bytes; inode 457 fs/stat.c spin_unlock(&inode->i_lock); inode 467 fs/stat.c inode->i_blocks = bytes >> 9; inode 468 fs/stat.c inode->i_bytes = bytes & 511; inode 57 fs/sync.c struct inode * inode = dentry->d_inode; inode 62 fs/sync.c ret = write_inode_now(inode, 0); inode 65 fs/sync.c sb = inode->i_sb; inode 302 fs/sysfs/dir.c iput(inode); inode 346 fs/sysfs/dir.c return inode->i_ino == sd->s_ino; inode 368 fs/sysfs/dir.c struct inode *inode; inode 380 fs/sysfs/dir.c inode = ilookup5_nowait(sysfs_sb, parent_sd->s_ino, sysfs_ilookup_test, inode 383 fs/sysfs/dir.c if (inode && !(inode->i_state & I_NEW)) { inode 385 fs/sysfs/dir.c acxt->parent_inode = inode; inode 391 fs/sysfs/dir.c if (!mutex_trylock(&inode->i_mutex)) { inode 393 fs/sysfs/dir.c mutex_lock(&inode->i_mutex); inode 397 fs/sysfs/dir.c iput(inode); inode 508 fs/sysfs/dir.c struct inode *inode; inode 511 fs/sysfs/dir.c inode = ilookup(sysfs_sb, sd->s_ino); inode 512 fs/sysfs/dir.c if (!inode) inode 524 fs/sysfs/dir.c list_for_each_entry(dentry, &inode->i_dentry, d_alias) { inode 538 fs/sysfs/dir.c mutex_lock(&inode->i_mutex); inode 540 fs/sysfs/dir.c inode->i_ctime = CURRENT_TIME; inode 541 fs/sysfs/dir.c drop_nlink(inode); inode 543 fs/sysfs/dir.c drop_nlink(inode); inode 545 fs/sysfs/dir.c mutex_unlock(&inode->i_mutex); inode 547 fs/sysfs/dir.c iput(inode); inode 566 fs/sysfs/dir.c struct inode *inode = acxt->parent_inode; inode 570 fs/sysfs/dir.c inode->i_ctime = inode->i_mtime = CURRENT_TIME; inode 572 fs/sysfs/dir.c mutex_unlock(&inode->i_mutex); inode 573 fs/sysfs/dir.c iput(inode); inode 701 fs/sysfs/dir.c struct inode *inode; inode 714 fs/sysfs/dir.c inode = sysfs_get_inode(sd); inode 715 fs/sysfs/dir.c if (!inode) { inode 723 fs/sysfs/dir.c d_instantiate(dentry, inode); inode 350 fs/sysfs/file.c if (!(inode->i_mode & S_IWUGO) || !ops->store) inode 359 fs/sysfs/file.c if (!(inode->i_mode & S_IRUGO) || !ops->show) inode 564 fs/sysfs/file.c struct inode * inode; inode 582 fs/sysfs/file.c inode = victim->d_inode; inode 584 fs/sysfs/file.c mutex_lock(&inode->i_mutex); inode 586 fs/sysfs/file.c newattrs.ia_mode = (mode & S_IALLUGO) | (inode->i_mode & ~S_IALLUGO); inode 588 fs/sysfs/file.c newattrs.ia_ctime = current_fs_time(inode->i_sb); inode 598 fs/sysfs/file.c mutex_unlock(&inode->i_mutex); inode 47 fs/sysfs/inode.c struct inode * inode = dentry->d_inode; inode 58 fs/sysfs/inode.c error = inode_change_ok(inode, iattr); inode 64 fs/sysfs/inode.c error = inode_setattr(inode, iattr); inode 89 fs/sysfs/inode.c inode->i_sb->s_time_gran); inode 92 fs/sysfs/inode.c inode->i_sb->s_time_gran); inode 95 fs/sysfs/inode.c inode->i_sb->s_time_gran); inode 99 fs/sysfs/inode.c if (!in_group_p(inode->i_gid) && !capable(CAP_FSETID)) inode 109 fs/sysfs/inode.c inode->i_mode = mode; inode 110 fs/sysfs/inode.c inode->i_uid = 0; inode 111 fs/sysfs/inode.c inode->i_gid = 0; inode 112 fs/sysfs/inode.c inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; inode 117 fs/sysfs/inode.c inode->i_mode = iattr->ia_mode; inode 118 fs/sysfs/inode.c inode->i_uid = iattr->ia_uid; inode 119 fs/sysfs/inode.c inode->i_gid = iattr->ia_gid; inode 120 fs/sysfs/inode.c inode->i_atime = iattr->ia_atime; inode 121 fs/sysfs/inode.c inode->i_mtime = iattr->ia_mtime; inode 122 fs/sysfs/inode.c inode->i_ctime = iattr->ia_ctime; inode 152 fs/sysfs/inode.c inode->i_blocks = 0; inode 153 fs/sysfs/inode.c inode->i_mapping->a_ops = &sysfs_aops; inode 154 fs/sysfs/inode.c inode->i_mapping->backing_dev_info = &sysfs_backing_dev_info; inode 155 fs/sysfs/inode.c inode->i_op = &sysfs_inode_operations; inode 156 fs/sysfs/inode.c inode->i_ino = sd->s_ino; inode 157 fs/sysfs/inode.c lockdep_set_class(&inode->i_mutex, &sysfs_inode_imutex_key); inode 164 fs/sysfs/inode.c set_inode_attr(inode, sd->s_iattr); inode 166 fs/sysfs/inode.c set_default_inode_attr(inode, sd->s_mode); inode 172 fs/sysfs/inode.c inode->i_op = &sysfs_dir_inode_operations; inode 173 fs/sysfs/inode.c inode->i_fop = &sysfs_dir_operations; inode 174 fs/sysfs/inode.c inode->i_nlink = sysfs_count_nlink(sd); inode 177 fs/sysfs/inode.c inode->i_size = PAGE_SIZE; inode 178 fs/sysfs/inode.c inode->i_fop = &sysfs_file_operations; inode 182 fs/sysfs/inode.c inode->i_size = bin_attr->size; inode 183 fs/sysfs/inode.c inode->i_fop = &bin_fops; inode 186 fs/sysfs/inode.c inode->i_op = &sysfs_symlink_inode_operations; inode 192 fs/sysfs/inode.c unlock_new_inode(inode); inode 209 fs/sysfs/inode.c struct inode * sysfs_get_inode(struct sysfs_dirent *sd) inode 211 fs/sysfs/inode.c struct inode *inode; inode 213 fs/sysfs/inode.c inode = iget_locked(sysfs_sb, sd->s_ino); inode 214 fs/sysfs/inode.c if (inode && (inode->i_state & I_NEW)) inode 215 fs/sysfs/inode.c sysfs_init_inode(sd, inode); inode 217 fs/sysfs/inode.c return inode; inode 44 fs/sysfs/mount.c struct inode *inode; inode 55 fs/sysfs/mount.c inode = sysfs_get_inode(&sysfs_root); inode 56 fs/sysfs/mount.c if (!inode) { inode 62 fs/sysfs/mount.c root = d_alloc_root(inode); inode 65 fs/sysfs/mount.c iput(inode); inode 83 fs/sysfs/sysfs.h struct inode *parent_inode; inode 145 fs/sysfs/sysfs.h struct inode *sysfs_get_inode(struct sysfs_dirent *sd); inode 38 fs/sysv/dir.c return (inode->i_size+PAGE_CACHE_SIZE-1)>>PAGE_CACHE_SHIFT; inode 44 fs/sysv/dir.c struct inode *dir = mapping->host; inode 71 fs/sysv/dir.c struct inode *inode = filp->f_path.dentry->d_inode; inode 72 fs/sysv/dir.c struct super_block *sb = inode->i_sb; inode 75 fs/sysv/dir.c unsigned long npages = dir_pages(inode); inode 80 fs/sysv/dir.c if (pos >= inode->i_size) inode 86 fs/sysv/dir.c struct page *page = dir_get_page(inode, n); inode 97 fs/sysv/dir.c if (!de->inode) inode 104 fs/sysv/dir.c fs16_to_cpu(SYSV_SB(sb), de->inode), inode 143 fs/sysv/dir.c struct inode * dir = dentry->d_parent->d_inode; inode 164 fs/sysv/dir.c if (!de->inode) inode 187 fs/sysv/dir.c struct inode *dir = dentry->d_parent->d_inode; inode 208 fs/sysv/dir.c if (!de->inode) inode 230 fs/sysv/dir.c de->inode = cpu_to_fs16(SYSV_SB(inode->i_sb), inode->i_ino); inode 246 fs/sysv/dir.c struct inode *inode = (struct inode*)mapping->host; inode 255 fs/sysv/dir.c de->inode = 0; inode 258 fs/sysv/dir.c inode->i_ctime = inode->i_mtime = CURRENT_TIME_SEC; inode 259 fs/sysv/dir.c mark_inode_dirty(inode); inode 265 fs/sysv/dir.c struct address_space *mapping = inode->i_mapping; inode 285 fs/sysv/dir.c de->inode = cpu_to_fs16(SYSV_SB(inode->i_sb), inode->i_ino); inode 288 fs/sysv/dir.c de->inode = cpu_to_fs16(SYSV_SB(inode->i_sb), dir->i_ino); inode 303 fs/sysv/dir.c struct super_block *sb = inode->i_sb; inode 305 fs/sysv/dir.c unsigned long i, npages = dir_pages(inode); inode 310 fs/sysv/dir.c page = dir_get_page(inode, i); inode 320 fs/sysv/dir.c if (!de->inode) inode 326 fs/sysv/dir.c if (de->inode == cpu_to_fs16(SYSV_SB(sb), inode 327 fs/sysv/dir.c inode->i_ino)) inode 348 fs/sysv/dir.c struct inode *dir = mapping->host; inode 357 fs/sysv/dir.c de->inode = cpu_to_fs16(SYSV_SB(inode->i_sb), inode->i_ino); inode 383 fs/sysv/dir.c res = fs16_to_cpu(SYSV_SB(dentry->d_sb), de->inode); inode 40 fs/sysv/file.c struct inode *inode = dentry->d_inode; inode 43 fs/sysv/file.c err = sync_mapping_buffers(inode->i_mapping); inode 44 fs/sysv/file.c if (!(inode->i_state & I_DIRTY)) inode 46 fs/sysv/file.c if (datasync && !(inode->i_state & I_DIRTY_DATASYNC)) inode 49 fs/sysv/file.c err |= sysv_sync_inode(inode); inode 101 fs/sysv/ialloc.c struct super_block *sb = inode->i_sb; inode 108 fs/sysv/ialloc.c sb = inode->i_sb; inode 109 fs/sysv/ialloc.c ino = inode->i_ino; inode 115 fs/sysv/ialloc.c clear_inode(inode); inode 118 fs/sysv/ialloc.c "%s\n", inode->i_sb->s_id); inode 135 fs/sysv/ialloc.c struct inode * sysv_new_inode(const struct inode * dir, mode_t mode) inode 139 fs/sysv/ialloc.c struct inode *inode; inode 143 fs/sysv/ialloc.c inode = new_inode(sb); inode 144 fs/sysv/ialloc.c if (!inode) inode 152 fs/sysv/ialloc.c iput(inode); inode 164 fs/sysv/ialloc.c inode->i_gid = dir->i_gid; inode 168 fs/sysv/ialloc.c inode->i_gid = current->fsgid; inode 170 fs/sysv/ialloc.c inode->i_uid = current->fsuid; inode 171 fs/sysv/ialloc.c inode->i_ino = fs16_to_cpu(sbi, ino); inode 172 fs/sysv/ialloc.c inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; inode 173 fs/sysv/ialloc.c inode->i_blocks = 0; inode 174 fs/sysv/ialloc.c memset(SYSV_I(inode)->i_data, 0, sizeof(SYSV_I(inode)->i_data)); inode 175 fs/sysv/ialloc.c SYSV_I(inode)->i_dir_start_lookup = 0; inode 176 fs/sysv/ialloc.c insert_inode_hash(inode); inode 177 fs/sysv/ialloc.c mark_inode_dirty(inode); inode 179 fs/sysv/ialloc.c inode->i_mode = mode; /* for sysv_write_inode() */ inode 180 fs/sysv/ialloc.c sysv_write_inode(inode, 0); /* ensure inode not allocated again */ inode 181 fs/sysv/ialloc.c mark_inode_dirty(inode); /* cleared by sysv_write_inode() */ inode 184 fs/sysv/ialloc.c return inode; inode 154 fs/sysv/inode.c if (S_ISREG(inode->i_mode)) { inode 155 fs/sysv/inode.c inode->i_op = &sysv_file_inode_operations; inode 156 fs/sysv/inode.c inode->i_fop = &sysv_file_operations; inode 157 fs/sysv/inode.c inode->i_mapping->a_ops = &sysv_aops; inode 158 fs/sysv/inode.c } else if (S_ISDIR(inode->i_mode)) { inode 159 fs/sysv/inode.c inode->i_op = &sysv_dir_inode_operations; inode 160 fs/sysv/inode.c inode->i_fop = &sysv_dir_operations; inode 161 fs/sysv/inode.c inode->i_mapping->a_ops = &sysv_aops; inode 162 fs/sysv/inode.c } else if (S_ISLNK(inode->i_mode)) { inode 163 fs/sysv/inode.c if (inode->i_blocks) { inode 164 fs/sysv/inode.c inode->i_op = &sysv_symlink_inode_operations; inode 165 fs/sysv/inode.c inode->i_mapping->a_ops = &sysv_aops; inode 167 fs/sysv/inode.c inode->i_op = &sysv_fast_symlink_inode_operations; inode 169 fs/sysv/inode.c init_special_inode(inode, inode->i_mode, rdev); inode 172 fs/sysv/inode.c struct inode *sysv_iget(struct super_block *sb, unsigned int ino) inode 178 fs/sysv/inode.c struct inode *inode; inode 187 fs/sysv/inode.c inode = iget_locked(sb, ino); inode 188 fs/sysv/inode.c if (!inode) inode 190 fs/sysv/inode.c if (!(inode->i_state & I_NEW)) inode 191 fs/sysv/inode.c return inode; inode 196 fs/sysv/inode.c inode->i_sb->s_id); inode 200 fs/sysv/inode.c inode->i_mode = fs16_to_cpu(sbi, raw_inode->i_mode); inode 201 fs/sysv/inode.c inode->i_uid = (uid_t)fs16_to_cpu(sbi, raw_inode->i_uid); inode 202 fs/sysv/inode.c inode->i_gid = (gid_t)fs16_to_cpu(sbi, raw_inode->i_gid); inode 203 fs/sysv/inode.c inode->i_nlink = fs16_to_cpu(sbi, raw_inode->i_nlink); inode 204 fs/sysv/inode.c inode->i_size = fs32_to_cpu(sbi, raw_inode->i_size); inode 205 fs/sysv/inode.c inode->i_atime.tv_sec = fs32_to_cpu(sbi, raw_inode->i_atime); inode 206 fs/sysv/inode.c inode->i_mtime.tv_sec = fs32_to_cpu(sbi, raw_inode->i_mtime); inode 207 fs/sysv/inode.c inode->i_ctime.tv_sec = fs32_to_cpu(sbi, raw_inode->i_ctime); inode 208 fs/sysv/inode.c inode->i_ctime.tv_nsec = 0; inode 209 fs/sysv/inode.c inode->i_atime.tv_nsec = 0; inode 210 fs/sysv/inode.c inode->i_mtime.tv_nsec = 0; inode 211 fs/sysv/inode.c inode->i_blocks = 0; inode 213 fs/sysv/inode.c si = SYSV_I(inode); inode 219 fs/sysv/inode.c if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) inode 220 fs/sysv/inode.c sysv_set_inode(inode, inode 223 fs/sysv/inode.c sysv_set_inode(inode, 0); inode 224 fs/sysv/inode.c unlock_new_inode(inode); inode 225 fs/sysv/inode.c return inode; inode 228 fs/sysv/inode.c iget_failed(inode); inode 234 fs/sysv/inode.c struct super_block * sb = inode->i_sb; inode 241 fs/sysv/inode.c ino = inode->i_ino; inode 244 fs/sysv/inode.c inode->i_sb->s_id, ino); inode 253 fs/sysv/inode.c raw_inode->i_mode = cpu_to_fs16(sbi, inode->i_mode); inode 254 fs/sysv/inode.c raw_inode->i_uid = cpu_to_fs16(sbi, fs_high2lowuid(inode->i_uid)); inode 255 fs/sysv/inode.c raw_inode->i_gid = cpu_to_fs16(sbi, fs_high2lowgid(inode->i_gid)); inode 256 fs/sysv/inode.c raw_inode->i_nlink = cpu_to_fs16(sbi, inode->i_nlink); inode 257 fs/sysv/inode.c raw_inode->i_size = cpu_to_fs32(sbi, inode->i_size); inode 258 fs/sysv/inode.c raw_inode->i_atime = cpu_to_fs32(sbi, inode->i_atime.tv_sec); inode 259 fs/sysv/inode.c raw_inode->i_mtime = cpu_to_fs32(sbi, inode->i_mtime.tv_sec); inode 260 fs/sysv/inode.c raw_inode->i_ctime = cpu_to_fs32(sbi, inode->i_ctime.tv_sec); inode 262 fs/sysv/inode.c si = SYSV_I(inode); inode 263 fs/sysv/inode.c if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) inode 264 fs/sysv/inode.c si->i_data[0] = cpu_to_fs32(sbi, old_encode_dev(inode->i_rdev)); inode 276 fs/sysv/inode.c bh = sysv_update_inode(inode); inode 287 fs/sysv/inode.c bh = sysv_update_inode(inode); inode 292 fs/sysv/inode.c inode->i_sb->s_id, inode->i_ino); inode 304 fs/sysv/inode.c truncate_inode_pages(&inode->i_data, 0); inode 305 fs/sysv/inode.c inode->i_size = 0; inode 306 fs/sysv/inode.c sysv_truncate(inode); inode 308 fs/sysv/inode.c sysv_free_inode(inode); inode 314 fs/sysv/inode.c static struct inode *sysv_alloc_inode(struct super_block *sb) inode 326 fs/sysv/inode.c kmem_cache_free(sysv_inode_cachep, SYSV_I(inode)); inode 17 fs/sysv/itree.c mark_buffer_dirty_inode(bh, inode); inode 18 fs/sysv/itree.c if (IS_SYNC(inode)) inode 24 fs/sysv/itree.c struct super_block *sb = inode->i_sb; inode 93 fs/sysv/itree.c struct super_block *sb = inode->i_sb; inode 98 fs/sysv/itree.c add_chain(chain, NULL, SYSV_I(inode)->i_data + *offsets); inode 129 fs/sysv/itree.c int blocksize = inode->i_sb->s_blocksize; inode 133 fs/sysv/itree.c branch[0].key = sysv_new_block(inode->i_sb); inode 138 fs/sysv/itree.c branch[n].key = sysv_new_block(inode->i_sb); inode 145 fs/sysv/itree.c parent = block_to_cpu(SYSV_SB(inode->i_sb), branch[n-1].key); inode 146 fs/sysv/itree.c bh = sb_getblk(inode->i_sb, parent); inode 154 fs/sysv/itree.c dirty_indirect(bh, inode); inode 163 fs/sysv/itree.c sysv_free_block(inode->i_sb, branch[i].key); inode 181 fs/sysv/itree.c inode->i_ctime = CURRENT_TIME_SEC; inode 185 fs/sysv/itree.c dirty_indirect(where->bh, inode); inode 187 fs/sysv/itree.c if (IS_SYNC(inode)) inode 188 fs/sysv/itree.c sysv_sync_inode(inode); inode 190 fs/sysv/itree.c mark_inode_dirty(inode); inode 198 fs/sysv/itree.c sysv_free_block(inode->i_sb, where[i].key); inode 207 fs/sysv/itree.c struct super_block *sb = inode->i_sb; inode 210 fs/sysv/itree.c int depth = block_to_path(inode, iblock, offsets); inode 217 fs/sysv/itree.c partial = get_branch(inode, depth, offsets, chain, &err); inode 250 fs/sysv/itree.c err = alloc_branch(inode, left, offsets+(partial-chain), partial); inode 254 fs/sysv/itree.c if (splice_branch(inode, chain, partial, left) < 0) inode 290 fs/sysv/itree.c partial = get_branch(inode, k, offsets, chain, &err); inode 331 fs/sysv/itree.c sysv_free_block(inode->i_sb, nr); inode 332 fs/sysv/itree.c mark_inode_dirty(inode); inode 340 fs/sysv/itree.c struct super_block *sb = inode->i_sb; inode 353 fs/sysv/itree.c free_branches(inode, (sysv_zone_t*)bh->b_data, inode 357 fs/sysv/itree.c mark_inode_dirty(inode); inode 360 fs/sysv/itree.c free_data(inode, p, q); inode 365 fs/sysv/itree.c sysv_zone_t *i_data = SYSV_I(inode)->i_data; inode 374 fs/sysv/itree.c if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || inode 375 fs/sysv/itree.c S_ISLNK(inode->i_mode))) inode 378 fs/sysv/itree.c blocksize = inode->i_sb->s_blocksize; inode 379 fs/sysv/itree.c iblock = (inode->i_size + blocksize-1) inode 380 fs/sysv/itree.c >> inode->i_sb->s_blocksize_bits; inode 382 fs/sysv/itree.c block_truncate_page(inode->i_mapping, inode->i_size, get_block); inode 384 fs/sysv/itree.c n = block_to_path(inode, iblock, offsets); inode 389 fs/sysv/itree.c free_data(inode, i_data+offsets[0], i_data + DIRECT); inode 393 fs/sysv/itree.c partial = find_shared(inode, n, offsets, chain, &nr); inode 397 fs/sysv/itree.c mark_inode_dirty(inode); inode 399 fs/sysv/itree.c dirty_indirect(partial->bh, inode); inode 400 fs/sysv/itree.c free_branches(inode, &nr, &nr+1, (chain+n-1) - partial); inode 404 fs/sysv/itree.c free_branches(inode, partial->p + 1, block_end(partial->bh), inode 406 fs/sysv/itree.c dirty_indirect(partial->bh, inode); inode 416 fs/sysv/itree.c mark_inode_dirty(inode); inode 417 fs/sysv/itree.c free_branches(inode, &nr, &nr+1, n); inode 421 fs/sysv/itree.c inode->i_mtime = inode->i_ctime = CURRENT_TIME_SEC; inode 422 fs/sysv/itree.c if (IS_SYNC(inode)) inode 423 fs/sysv/itree.c sysv_sync_inode (inode); inode 425 fs/sysv/itree.c mark_inode_dirty(inode); inode 20 fs/sysv/namei.c int err = sysv_add_link(dentry, inode); inode 22 fs/sysv/namei.c d_instantiate(dentry, inode); inode 25 fs/sysv/namei.c inode_dec_link_count(inode); inode 26 fs/sysv/namei.c iput(inode); inode 47 fs/sysv/namei.c struct inode * inode = NULL; inode 56 fs/sysv/namei.c inode = sysv_iget(dir->i_sb, ino); inode 57 fs/sysv/namei.c if (IS_ERR(inode)) inode 58 fs/sysv/namei.c return ERR_CAST(inode); inode 60 fs/sysv/namei.c d_add(dentry, inode); inode 66 fs/sysv/namei.c struct inode * inode; inode 72 fs/sysv/namei.c inode = sysv_new_inode(dir, mode); inode 73 fs/sysv/namei.c err = PTR_ERR(inode); inode 75 fs/sysv/namei.c if (!IS_ERR(inode)) { inode 76 fs/sysv/namei.c sysv_set_inode(inode, rdev); inode 77 fs/sysv/namei.c mark_inode_dirty(inode); inode 78 fs/sysv/namei.c err = add_nondir(dentry, inode); inode 93 fs/sysv/namei.c struct inode * inode; inode 98 fs/sysv/namei.c inode = sysv_new_inode(dir, S_IFLNK|0777); inode 99 fs/sysv/namei.c err = PTR_ERR(inode); inode 100 fs/sysv/namei.c if (IS_ERR(inode)) inode 103 fs/sysv/namei.c sysv_set_inode(inode, 0); inode 104 fs/sysv/namei.c err = page_symlink(inode, symname, l); inode 108 fs/sysv/namei.c mark_inode_dirty(inode); inode 109 fs/sysv/namei.c err = add_nondir(dentry, inode); inode 114 fs/sysv/namei.c inode_dec_link_count(inode); inode 115 fs/sysv/namei.c iput(inode); inode 122 fs/sysv/namei.c struct inode *inode = old_dentry->d_inode; inode 124 fs/sysv/namei.c if (inode->i_nlink >= SYSV_SB(inode->i_sb)->s_link_max) inode 127 fs/sysv/namei.c inode->i_ctime = CURRENT_TIME_SEC; inode 128 fs/sysv/namei.c inode_inc_link_count(inode); inode 129 fs/sysv/namei.c atomic_inc(&inode->i_count); inode 131 fs/sysv/namei.c return add_nondir(dentry, inode); inode 136 fs/sysv/namei.c struct inode * inode; inode 143 fs/sysv/namei.c inode = sysv_new_inode(dir, S_IFDIR|mode); inode 144 fs/sysv/namei.c err = PTR_ERR(inode); inode 145 fs/sysv/namei.c if (IS_ERR(inode)) inode 148 fs/sysv/namei.c sysv_set_inode(inode, 0); inode 150 fs/sysv/namei.c inode_inc_link_count(inode); inode 152 fs/sysv/namei.c err = sysv_make_empty(inode, dir); inode 156 fs/sysv/namei.c err = sysv_add_link(dentry, inode); inode 160 fs/sysv/namei.c d_instantiate(dentry, inode); inode 165 fs/sysv/namei.c inode_dec_link_count(inode); inode 166 fs/sysv/namei.c inode_dec_link_count(inode); inode 167 fs/sysv/namei.c iput(inode); inode 175 fs/sysv/namei.c struct inode * inode = dentry->d_inode; inode 188 fs/sysv/namei.c inode->i_ctime = dir->i_ctime; inode 189 fs/sysv/namei.c inode_dec_link_count(inode); inode 196 fs/sysv/namei.c struct inode *inode = dentry->d_inode; inode 199 fs/sysv/namei.c if (sysv_empty_dir(inode)) { inode 202 fs/sysv/namei.c inode->i_size = 0; inode 203 fs/sysv/namei.c inode_dec_link_count(inode); inode 217 fs/sysv/namei.c struct inode * old_inode = old_dentry->d_inode; inode 218 fs/sysv/namei.c struct inode * new_inode = new_dentry->d_inode; inode 305 fs/sysv/super.c struct inode *root_inode; inode 70 fs/sysv/sysv.h struct inode vfs_inode; inode 76 fs/sysv/sysv.h return list_entry(inode, struct sysv_inode_info, vfs_inode); inode 128 fs/sysv/sysv.h extern struct inode * sysv_new_inode(const struct inode *, mode_t); inode 144 fs/sysv/sysv.h extern struct inode *sysv_iget(struct super_block *, unsigned int); inode 223 fs/ubifs/debug.c const struct ubifs_inode *ui = ubifs_inode(inode); inode 225 fs/ubifs/debug.c printk(KERN_DEBUG "inode %lu\n", inode->i_ino); inode 227 fs/ubifs/debug.c (unsigned long long)i_size_read(inode)); inode 228 fs/ubifs/debug.c printk(KERN_DEBUG "nlink %u\n", inode->i_nlink); inode 229 fs/ubifs/debug.c printk(KERN_DEBUG "uid %u\n", (unsigned int)inode->i_uid); inode 230 fs/ubifs/debug.c printk(KERN_DEBUG "gid %u\n", (unsigned int)inode->i_gid); inode 232 fs/ubifs/debug.c (unsigned int)inode->i_atime.tv_sec, inode 233 fs/ubifs/debug.c (unsigned int)inode->i_atime.tv_nsec); inode 235 fs/ubifs/debug.c (unsigned int)inode->i_mtime.tv_sec, inode 236 fs/ubifs/debug.c (unsigned int)inode->i_mtime.tv_nsec); inode 238 fs/ubifs/debug.c (unsigned int)inode->i_ctime.tv_sec, inode 239 fs/ubifs/debug.c (unsigned int)inode->i_ctime.tv_nsec); inode 805 fs/ubifs/debug.c struct ubifs_inode *ui = ubifs_inode(inode); inode 809 fs/ubifs/debug.c if (!S_ISREG(inode->i_mode)) inode 817 fs/ubifs/debug.c ubifs_err("i_ino %lu, i_mode %#x, i_size %lld", inode->i_ino, inode 818 fs/ubifs/debug.c inode->i_mode, i_size_read(inode)); inode 88 fs/ubifs/dir.c struct inode *ubifs_new_inode(struct ubifs_info *c, const struct inode *dir, inode 91 fs/ubifs/dir.c struct inode *inode; inode 94 fs/ubifs/dir.c inode = new_inode(c->vfs_sb); inode 95 fs/ubifs/dir.c ui = ubifs_inode(inode); inode 96 fs/ubifs/dir.c if (!inode) inode 105 fs/ubifs/dir.c inode->i_flags |= (S_NOCMTIME); inode 107 fs/ubifs/dir.c inode->i_uid = current->fsuid; inode 109 fs/ubifs/dir.c inode->i_gid = dir->i_gid; inode 113 fs/ubifs/dir.c inode->i_gid = current->fsgid; inode 114 fs/ubifs/dir.c inode->i_mode = mode; inode 115 fs/ubifs/dir.c inode->i_mtime = inode->i_atime = inode->i_ctime = inode 116 fs/ubifs/dir.c ubifs_current_time(inode); inode 117 fs/ubifs/dir.c inode->i_mapping->nrpages = 0; inode 119 fs/ubifs/dir.c inode->i_mapping->backing_dev_info = &c->bdi; inode 123 fs/ubifs/dir.c inode->i_mapping->a_ops = &ubifs_file_address_operations; inode 124 fs/ubifs/dir.c inode->i_op = &ubifs_file_inode_operations; inode 125 fs/ubifs/dir.c inode->i_fop = &ubifs_file_operations; inode 128 fs/ubifs/dir.c inode->i_op = &ubifs_dir_inode_operations; inode 129 fs/ubifs/dir.c inode->i_fop = &ubifs_dir_operations; inode 130 fs/ubifs/dir.c inode->i_size = ui->ui_size = UBIFS_INO_NODE_SZ; inode 133 fs/ubifs/dir.c inode->i_op = &ubifs_symlink_inode_operations; inode 139 fs/ubifs/dir.c inode->i_op = &ubifs_file_inode_operations; inode 146 fs/ubifs/dir.c ubifs_set_inode_flags(inode); inode 159 fs/ubifs/dir.c make_bad_inode(inode); inode 160 fs/ubifs/dir.c iput(inode); inode 167 fs/ubifs/dir.c inode->i_ino = ++c->highest_inum; inode 177 fs/ubifs/dir.c return inode; inode 204 fs/ubifs/dir.c struct inode *inode = NULL; inode 234 fs/ubifs/dir.c inode = ubifs_iget(dir->i_sb, le64_to_cpu(dent->inum)); inode 235 fs/ubifs/dir.c if (IS_ERR(inode)) { inode 240 fs/ubifs/dir.c err = PTR_ERR(inode); inode 253 fs/ubifs/dir.c d_add(dentry, inode); inode 264 fs/ubifs/dir.c struct inode *inode; inode 283 fs/ubifs/dir.c inode = ubifs_new_inode(c, dir, mode); inode 284 fs/ubifs/dir.c if (IS_ERR(inode)) { inode 285 fs/ubifs/dir.c err = PTR_ERR(inode); inode 292 fs/ubifs/dir.c dir->i_mtime = dir->i_ctime = inode->i_ctime; inode 293 fs/ubifs/dir.c err = ubifs_jnl_update(c, dir, &dentry->d_name, inode, 0, 0); inode 299 fs/ubifs/dir.c insert_inode_hash(inode); inode 300 fs/ubifs/dir.c d_instantiate(dentry, inode); inode 307 fs/ubifs/dir.c make_bad_inode(inode); inode 308 fs/ubifs/dir.c iput(inode); inode 368 fs/ubifs/dir.c struct inode *dir = file->f_path.dentry->d_inode; inode 514 fs/ubifs/dir.c struct inode *inode = old_dentry->d_inode; inode 515 fs/ubifs/dir.c struct ubifs_inode *ui = ubifs_inode(inode); inode 527 fs/ubifs/dir.c dentry->d_name.len, dentry->d_name.name, inode->i_ino, inode 528 fs/ubifs/dir.c inode->i_nlink, dir->i_ino); inode 529 fs/ubifs/dir.c err = dbg_check_synced_i_size(inode); inode 537 fs/ubifs/dir.c lock_2_inodes(dir, inode); inode 538 fs/ubifs/dir.c inc_nlink(inode); inode 539 fs/ubifs/dir.c atomic_inc(&inode->i_count); inode 540 fs/ubifs/dir.c inode->i_ctime = ubifs_current_time(inode); inode 543 fs/ubifs/dir.c dir->i_mtime = dir->i_ctime = inode->i_ctime; inode 544 fs/ubifs/dir.c err = ubifs_jnl_update(c, dir, &dentry->d_name, inode, 0, 0); inode 547 fs/ubifs/dir.c unlock_2_inodes(dir, inode); inode 550 fs/ubifs/dir.c d_instantiate(dentry, inode); inode 556 fs/ubifs/dir.c drop_nlink(inode); inode 557 fs/ubifs/dir.c unlock_2_inodes(dir, inode); inode 559 fs/ubifs/dir.c iput(inode); inode 566 fs/ubifs/dir.c struct inode *inode = dentry->d_inode; inode 580 fs/ubifs/dir.c dentry->d_name.len, dentry->d_name.name, inode->i_ino, inode 581 fs/ubifs/dir.c inode->i_nlink, dir->i_ino); inode 582 fs/ubifs/dir.c err = dbg_check_synced_i_size(inode); inode 593 fs/ubifs/dir.c lock_2_inodes(dir, inode); inode 594 fs/ubifs/dir.c inode->i_ctime = ubifs_current_time(dir); inode 595 fs/ubifs/dir.c drop_nlink(inode); inode 598 fs/ubifs/dir.c dir->i_mtime = dir->i_ctime = inode->i_ctime; inode 599 fs/ubifs/dir.c err = ubifs_jnl_update(c, dir, &dentry->d_name, inode, 1, 0); inode 602 fs/ubifs/dir.c unlock_2_inodes(dir, inode); inode 616 fs/ubifs/dir.c inc_nlink(inode); inode 617 fs/ubifs/dir.c unlock_2_inodes(dir, inode); inode 655 fs/ubifs/dir.c struct inode *inode = dentry->d_inode; inode 668 fs/ubifs/dir.c dentry->d_name.name, inode->i_ino, dir->i_ino); inode 681 fs/ubifs/dir.c lock_2_inodes(dir, inode); inode 682 fs/ubifs/dir.c inode->i_ctime = ubifs_current_time(dir); inode 683 fs/ubifs/dir.c clear_nlink(inode); inode 687 fs/ubifs/dir.c dir->i_mtime = dir->i_ctime = inode->i_ctime; inode 688 fs/ubifs/dir.c err = ubifs_jnl_update(c, dir, &dentry->d_name, inode, 1, 0); inode 691 fs/ubifs/dir.c unlock_2_inodes(dir, inode); inode 706 fs/ubifs/dir.c inc_nlink(inode); inode 707 fs/ubifs/dir.c inc_nlink(inode); inode 708 fs/ubifs/dir.c unlock_2_inodes(dir, inode); inode 716 fs/ubifs/dir.c struct inode *inode; inode 734 fs/ubifs/dir.c inode = ubifs_new_inode(c, dir, S_IFDIR | mode); inode 735 fs/ubifs/dir.c if (IS_ERR(inode)) { inode 736 fs/ubifs/dir.c err = PTR_ERR(inode); inode 741 fs/ubifs/dir.c insert_inode_hash(inode); inode 742 fs/ubifs/dir.c inc_nlink(inode); inode 746 fs/ubifs/dir.c dir->i_mtime = dir->i_ctime = inode->i_ctime; inode 747 fs/ubifs/dir.c err = ubifs_jnl_update(c, dir, &dentry->d_name, inode, 0, 0); inode 755 fs/ubifs/dir.c d_instantiate(dentry, inode); inode 763 fs/ubifs/dir.c make_bad_inode(inode); inode 764 fs/ubifs/dir.c iput(inode); inode 773 fs/ubifs/dir.c struct inode *inode; inode 808 fs/ubifs/dir.c inode = ubifs_new_inode(c, dir, mode); inode 809 fs/ubifs/dir.c if (IS_ERR(inode)) { inode 811 fs/ubifs/dir.c err = PTR_ERR(inode); inode 815 fs/ubifs/dir.c init_special_inode(inode, inode->i_mode, rdev); inode 816 fs/ubifs/dir.c inode->i_size = ubifs_inode(inode)->ui_size = devlen; inode 817 fs/ubifs/dir.c ui = ubifs_inode(inode); inode 824 fs/ubifs/dir.c dir->i_mtime = dir->i_ctime = inode->i_ctime; inode 825 fs/ubifs/dir.c err = ubifs_jnl_update(c, dir, &dentry->d_name, inode, 0, 0); inode 831 fs/ubifs/dir.c insert_inode_hash(inode); inode 832 fs/ubifs/dir.c d_instantiate(dentry, inode); inode 839 fs/ubifs/dir.c make_bad_inode(inode); inode 840 fs/ubifs/dir.c iput(inode); inode 849 fs/ubifs/dir.c struct inode *inode; inode 874 fs/ubifs/dir.c inode = ubifs_new_inode(c, dir, S_IFLNK | S_IRWXUGO); inode 875 fs/ubifs/dir.c if (IS_ERR(inode)) { inode 876 fs/ubifs/dir.c err = PTR_ERR(inode); inode 880 fs/ubifs/dir.c ui = ubifs_inode(inode); inode 895 fs/ubifs/dir.c inode->i_size = ubifs_inode(inode)->ui_size = len; inode 900 fs/ubifs/dir.c dir->i_mtime = dir->i_ctime = inode->i_ctime; inode 901 fs/ubifs/dir.c err = ubifs_jnl_update(c, dir, &dentry->d_name, inode, 0, 0); inode 907 fs/ubifs/dir.c insert_inode_hash(inode); inode 908 fs/ubifs/dir.c d_instantiate(dentry, inode); inode 916 fs/ubifs/dir.c make_bad_inode(inode); inode 917 fs/ubifs/dir.c iput(inode); inode 935 fs/ubifs/dir.c struct inode *i1, *i2, *i3; inode 995 fs/ubifs/dir.c struct inode *old_inode = old_dentry->d_inode; inode 996 fs/ubifs/dir.c struct inode *new_inode = new_dentry->d_inode; inode 1157 fs/ubifs/dir.c struct inode *inode = dentry->d_inode; inode 1158 fs/ubifs/dir.c struct ubifs_inode *ui = ubifs_inode(inode); inode 1161 fs/ubifs/dir.c stat->dev = inode->i_sb->s_dev; inode 1162 fs/ubifs/dir.c stat->ino = inode->i_ino; inode 1163 fs/ubifs/dir.c stat->mode = inode->i_mode; inode 1164 fs/ubifs/dir.c stat->nlink = inode->i_nlink; inode 1165 fs/ubifs/dir.c stat->uid = inode->i_uid; inode 1166 fs/ubifs/dir.c stat->gid = inode->i_gid; inode 1167 fs/ubifs/dir.c stat->rdev = inode->i_rdev; inode 1168 fs/ubifs/dir.c stat->atime = inode->i_atime; inode 1169 fs/ubifs/dir.c stat->mtime = inode->i_mtime; inode 1170 fs/ubifs/dir.c stat->ctime = inode->i_ctime; inode 1186 fs/ubifs/dir.c if (S_ISREG(inode->i_mode)) { inode 61 fs/ubifs/file.c struct ubifs_info *c = inode->i_sb->s_fs_info; inode 66 fs/ubifs/file.c data_key_init(c, &key, inode->i_ino, block); inode 75 fs/ubifs/file.c ubifs_assert(dn->ch.sqnum > ubifs_inode(inode)->creat_sqnum); inode 100 fs/ubifs/file.c block, inode->i_ino); inode 111 fs/ubifs/file.c struct inode *inode = page->mapping->host; inode 112 fs/ubifs/file.c loff_t i_size = i_size_read(inode); inode 115 fs/ubifs/file.c inode->i_ino, page->index, i_size, page->flags); inode 145 fs/ubifs/file.c ret = read_block(inode, addr, block, dn); inode 165 fs/ubifs/file.c page->index, inode->i_ino, err); inode 218 fs/ubifs/file.c struct inode *inode = mapping->host; inode 219 fs/ubifs/file.c struct ubifs_info *c = inode->i_sb->s_fs_info; inode 222 fs/ubifs/file.c int uninitialized_var(err), appending = !!(pos + len > inode->i_size); inode 226 fs/ubifs/file.c inode->i_ino, pos, len, inode->i_size); inode 288 fs/ubifs/file.c struct ubifs_inode *ui = ubifs_inode(inode); inode 421 fs/ubifs/file.c struct inode *inode = mapping->host; inode 422 fs/ubifs/file.c struct ubifs_info *c = inode->i_sb->s_fs_info; inode 423 fs/ubifs/file.c struct ubifs_inode *ui = ubifs_inode(inode); inode 425 fs/ubifs/file.c int uninitialized_var(err), appending = !!(pos + len > inode->i_size); inode 429 fs/ubifs/file.c ubifs_assert(ubifs_inode(inode)->ui_size == inode->i_size); inode 524 fs/ubifs/file.c struct inode *inode = mapping->host; inode 525 fs/ubifs/file.c struct ubifs_inode *ui = ubifs_inode(inode); inode 526 fs/ubifs/file.c struct ubifs_info *c = inode->i_sb->s_fs_info; inode 528 fs/ubifs/file.c int appending = !!(end_pos > inode->i_size); inode 531 fs/ubifs/file.c inode->i_ino, pos, page->index, len, copied, inode->i_size); inode 562 fs/ubifs/file.c i_size_write(inode, end_pos); inode 569 fs/ubifs/file.c __mark_inode_dirty(inode, I_DIRTY_DATASYNC); inode 593 fs/ubifs/file.c struct inode *inode = page->mapping->host; inode 594 fs/ubifs/file.c struct ubifs_info *c = inode->i_sb->s_fs_info; inode 610 fs/ubifs/file.c data_key_init(c, &key, inode->i_ino, block); inode 611 fs/ubifs/file.c err = ubifs_jnl_write_data(c, inode, &key, addr, blen); inode 623 fs/ubifs/file.c page->index, inode->i_ino, err); inode 687 fs/ubifs/file.c struct inode *inode = page->mapping->host; inode 688 fs/ubifs/file.c struct ubifs_inode *ui = ubifs_inode(inode); inode 689 fs/ubifs/file.c loff_t i_size = i_size_read(inode), synced_i_size; inode 695 fs/ubifs/file.c inode->i_ino, page->index, page->flags); inode 711 fs/ubifs/file.c err = inode->i_sb->s_op->write_inode(inode, 1); inode 739 fs/ubifs/file.c err = inode->i_sb->s_op->write_inode(inode, 1); inode 759 fs/ubifs/file.c inode->i_uid = attr->ia_uid; inode 761 fs/ubifs/file.c inode->i_gid = attr->ia_gid; inode 763 fs/ubifs/file.c inode->i_atime = timespec_trunc(attr->ia_atime, inode 764 fs/ubifs/file.c inode->i_sb->s_time_gran); inode 766 fs/ubifs/file.c inode->i_mtime = timespec_trunc(attr->ia_mtime, inode 767 fs/ubifs/file.c inode->i_sb->s_time_gran); inode 769 fs/ubifs/file.c inode->i_ctime = timespec_trunc(attr->ia_ctime, inode 770 fs/ubifs/file.c inode->i_sb->s_time_gran); inode 774 fs/ubifs/file.c if (!in_group_p(inode->i_gid) && !capable(CAP_FSETID)) inode 776 fs/ubifs/file.c inode->i_mode = mode; inode 795 fs/ubifs/file.c loff_t old_size = inode->i_size, new_size = attr->ia_size; inode 797 fs/ubifs/file.c struct ubifs_inode *ui = ubifs_inode(inode); inode 799 fs/ubifs/file.c dbg_gen("ino %lu, size %lld -> %lld", inode->i_ino, old_size, new_size); inode 824 fs/ubifs/file.c err = vmtruncate(inode, new_size); inode 832 fs/ubifs/file.c page = find_lock_page(inode->i_mapping, index); inode 870 fs/ubifs/file.c ui->ui_size = inode->i_size; inode 872 fs/ubifs/file.c inode->i_mtime = inode->i_ctime = ubifs_current_time(inode); inode 874 fs/ubifs/file.c do_attr_changes(inode, attr); inode 876 fs/ubifs/file.c err = ubifs_jnl_truncate(c, inode, old_size, new_size); inode 903 fs/ubifs/file.c struct ubifs_inode *ui = ubifs_inode(inode); inode 912 fs/ubifs/file.c dbg_gen("size %lld -> %lld", inode->i_size, new_size); inode 913 fs/ubifs/file.c err = vmtruncate(inode, new_size); inode 921 fs/ubifs/file.c inode->i_mtime = inode->i_ctime = ubifs_current_time(inode); inode 923 fs/ubifs/file.c ui->ui_size = inode->i_size; inode 926 fs/ubifs/file.c do_attr_changes(inode, attr); inode 934 fs/ubifs/file.c __mark_inode_dirty(inode, I_DIRTY_SYNC | I_DIRTY_DATASYNC); inode 936 fs/ubifs/file.c mark_inode_dirty_sync(inode); inode 941 fs/ubifs/file.c if (IS_SYNC(inode)) inode 942 fs/ubifs/file.c err = inode->i_sb->s_op->write_inode(inode, 1); inode 953 fs/ubifs/file.c struct inode *inode = dentry->d_inode; inode 954 fs/ubifs/file.c struct ubifs_info *c = inode->i_sb->s_fs_info; inode 957 fs/ubifs/file.c inode->i_ino, inode->i_mode, attr->ia_valid); inode 958 fs/ubifs/file.c err = inode_change_ok(inode, attr); inode 962 fs/ubifs/file.c err = dbg_check_synced_i_size(inode); inode 966 fs/ubifs/file.c if ((attr->ia_valid & ATTR_SIZE) && attr->ia_size < inode->i_size) inode 968 fs/ubifs/file.c err = do_truncation(c, inode, attr); inode 970 fs/ubifs/file.c err = do_setattr(c, inode, attr); inode 977 fs/ubifs/file.c struct inode *inode = page->mapping->host; inode 978 fs/ubifs/file.c struct ubifs_info *c = inode->i_sb->s_fs_info; inode 1005 fs/ubifs/file.c struct inode *inode = dentry->d_inode; inode 1006 fs/ubifs/file.c struct ubifs_info *c = inode->i_sb->s_fs_info; inode 1009 fs/ubifs/file.c dbg_gen("syncing inode %lu", inode->i_ino); inode 1015 fs/ubifs/file.c if (!datasync || (inode->i_state & I_DIRTY_DATASYNC)) { inode 1016 fs/ubifs/file.c err = inode->i_sb->s_op->write_inode(inode, 1); inode 1025 fs/ubifs/file.c err = ubifs_sync_wbufs_by_inode(c, inode); inode 1044 fs/ubifs/file.c if (!timespec_equal(&inode->i_mtime, now) || inode 1045 fs/ubifs/file.c !timespec_equal(&inode->i_ctime, now)) inode 1061 fs/ubifs/file.c struct timespec now = ubifs_current_time(inode); inode 1062 fs/ubifs/file.c struct ubifs_inode *ui = ubifs_inode(inode); inode 1064 fs/ubifs/file.c if (mctime_update_needed(inode, &now)) { inode 1074 fs/ubifs/file.c inode->i_mtime = inode->i_ctime = ubifs_current_time(inode); inode 1076 fs/ubifs/file.c mark_inode_dirty_sync(inode); inode 1090 fs/ubifs/file.c struct inode *inode = iocb->ki_filp->f_mapping->host; inode 1091 fs/ubifs/file.c struct ubifs_info *c = inode->i_sb->s_fs_info; inode 1093 fs/ubifs/file.c err = update_mctime(c, inode); inode 1101 fs/ubifs/file.c if (ret > 0 && (IS_SYNC(inode) || iocb->ki_filp->f_flags & O_SYNC)) { inode 1102 fs/ubifs/file.c err = ubifs_sync_wbufs_by_inode(c, inode); inode 1144 fs/ubifs/file.c struct inode *inode = vma->vm_file->f_path.dentry->d_inode; inode 1145 fs/ubifs/file.c struct ubifs_info *c = inode->i_sb->s_fs_info; inode 1146 fs/ubifs/file.c struct timespec now = ubifs_current_time(inode); inode 1150 fs/ubifs/file.c dbg_gen("ino %lu, pg %lu, i_size %lld", inode->i_ino, page->index, inode 1151 fs/ubifs/file.c i_size_read(inode)); inode 1152 fs/ubifs/file.c ubifs_assert(!(inode->i_sb->s_flags & MS_RDONLY)); inode 1175 fs/ubifs/file.c update_time = mctime_update_needed(inode, &now); inode 1187 fs/ubifs/file.c "(inode number %lu)", inode->i_ino); inode 1192 fs/ubifs/file.c if (unlikely(page->mapping != inode->i_mapping || inode 1193 fs/ubifs/file.c page_offset(page) > i_size_read(inode))) { inode 1211 fs/ubifs/file.c struct ubifs_inode *ui = ubifs_inode(inode); inode 1214 fs/ubifs/file.c inode->i_mtime = inode->i_ctime = ubifs_current_time(inode); inode 1216 fs/ubifs/file.c mark_inode_dirty_sync(inode); inode 914 fs/ubifs/io.c if (!wbuf_has_ino(wbuf, inode->i_ino)) inode 918 fs/ubifs/io.c if (wbuf_has_ino(wbuf, inode->i_ino)) inode 40 fs/ubifs/ioctl.c unsigned int flags = ubifs_inode(inode)->flags; inode 42 fs/ubifs/ioctl.c inode->i_flags &= ~(S_SYNC | S_APPEND | S_IMMUTABLE | S_DIRSYNC); inode 44 fs/ubifs/ioctl.c inode->i_flags |= S_SYNC; inode 46 fs/ubifs/ioctl.c inode->i_flags |= S_APPEND; inode 48 fs/ubifs/ioctl.c inode->i_flags |= S_IMMUTABLE; inode 50 fs/ubifs/ioctl.c inode->i_flags |= S_DIRSYNC; inode 106 fs/ubifs/ioctl.c struct ubifs_inode *ui = ubifs_inode(inode); inode 107 fs/ubifs/ioctl.c struct ubifs_info *c = inode->i_sb->s_fs_info; inode 129 fs/ubifs/ioctl.c ubifs_set_inode_flags(inode); inode 130 fs/ubifs/ioctl.c inode->i_ctime = ubifs_current_time(inode); inode 132 fs/ubifs/ioctl.c mark_inode_dirty_sync(inode); inode 137 fs/ubifs/ioctl.c if (IS_SYNC(inode)) inode 138 fs/ubifs/ioctl.c err = write_inode_now(inode, 1); inode 142 fs/ubifs/ioctl.c ubifs_err("can't modify inode %lu attributes", inode->i_ino); inode 151 fs/ubifs/ioctl.c struct inode *inode = file->f_path.dentry->d_inode; inode 155 fs/ubifs/ioctl.c flags = ubifs2ioctl(ubifs_inode(inode)->flags); inode 160 fs/ubifs/ioctl.c if (IS_RDONLY(inode)) inode 163 fs/ubifs/ioctl.c if (!is_owner_or_cap(inode)) inode 169 fs/ubifs/ioctl.c if (!S_ISDIR(inode->i_mode)) inode 179 fs/ubifs/ioctl.c err = setflags(inode, flags); inode 454 fs/ubifs/journal.c int data_len = 0, last_reference = !inode->i_nlink; inode 455 fs/ubifs/journal.c struct ubifs_inode *ui = ubifs_inode(inode); inode 458 fs/ubifs/journal.c ino_key_init_flash(c, &ino->key, inode->i_ino); inode 460 fs/ubifs/journal.c ino->atime_sec = cpu_to_le64(inode->i_atime.tv_sec); inode 461 fs/ubifs/journal.c ino->atime_nsec = cpu_to_le32(inode->i_atime.tv_nsec); inode 462 fs/ubifs/journal.c ino->ctime_sec = cpu_to_le64(inode->i_ctime.tv_sec); inode 463 fs/ubifs/journal.c ino->ctime_nsec = cpu_to_le32(inode->i_ctime.tv_nsec); inode 464 fs/ubifs/journal.c ino->mtime_sec = cpu_to_le64(inode->i_mtime.tv_sec); inode 465 fs/ubifs/journal.c ino->mtime_nsec = cpu_to_le32(inode->i_mtime.tv_nsec); inode 466 fs/ubifs/journal.c ino->uid = cpu_to_le32(inode->i_uid); inode 467 fs/ubifs/journal.c ino->gid = cpu_to_le32(inode->i_gid); inode 468 fs/ubifs/journal.c ino->mode = cpu_to_le32(inode->i_mode); inode 471 fs/ubifs/journal.c ino->nlink = cpu_to_le32(inode->i_nlink); inode 541 fs/ubifs/journal.c int last_reference = !!(deletion && inode->i_nlink == 0); inode 542 fs/ubifs/journal.c struct ubifs_inode *ui = ubifs_inode(inode); inode 549 fs/ubifs/journal.c inode->i_ino, nm->len, nm->name, ui->data_len, dir->i_ino); inode 564 fs/ubifs/journal.c sync |= IS_SYNC(inode); inode 588 fs/ubifs/journal.c dent->inum = deletion ? 0 : cpu_to_le64(inode->i_ino); inode 589 fs/ubifs/journal.c dent->type = get_dent_type(inode->i_mode); inode 597 fs/ubifs/journal.c pack_inode(c, ino, inode, 0); inode 602 fs/ubifs/journal.c err = ubifs_add_orphan(c, inode->i_ino); inode 616 fs/ubifs/journal.c ubifs_wbuf_add_ino_nolock(wbuf, inode->i_ino); inode 638 fs/ubifs/journal.c ino_key_init(c, &ino_key, inode->i_ino); inode 669 fs/ubifs/journal.c ubifs_delete_orphan(c, inode->i_ino); inode 691 fs/ubifs/journal.c struct ubifs_inode *ui = ubifs_inode(inode); inode 761 fs/ubifs/journal.c struct ubifs_inode *ui = ubifs_inode(inode); inode 762 fs/ubifs/journal.c int sync = 0, len = UBIFS_INO_NODE_SZ, last_reference = !inode->i_nlink; inode 764 fs/ubifs/journal.c dbg_jnl("ino %lu, nlink %u", inode->i_ino, inode->i_nlink); inode 772 fs/ubifs/journal.c sync = IS_SYNC(inode); inode 783 fs/ubifs/journal.c pack_inode(c, ino, inode, 1); inode 789 fs/ubifs/journal.c inode->i_ino); inode 793 fs/ubifs/journal.c err = ubifs_tnc_remove_ino(c, inode->i_ino); inode 796 fs/ubifs/journal.c ubifs_delete_orphan(c, inode->i_ino); inode 801 fs/ubifs/journal.c ino_key_init(c, &key, inode->i_ino); inode 856 fs/ubifs/journal.c struct ubifs_inode *ui = ubifs_inode(inode); inode 858 fs/ubifs/journal.c ubifs_assert(inode->i_nlink == 0); inode 862 fs/ubifs/journal.c return ubifs_jnl_write_inode(c, inode); inode 871 fs/ubifs/journal.c return ubifs_jnl_write_inode(c, inode); inode 874 fs/ubifs/journal.c err = ubifs_tnc_remove_ino(c, inode->i_ino); inode 878 fs/ubifs/journal.c ubifs_delete_orphan(c, inode->i_ino); inode 906 fs/ubifs/journal.c const struct inode *old_inode = old_dentry->d_inode; inode 907 fs/ubifs/journal.c const struct inode *new_inode = new_dentry->d_inode; inode 1126 fs/ubifs/journal.c int err, dlen, len, lnum, offs, bit, sz, sync = IS_SYNC(inode); inode 1127 fs/ubifs/journal.c struct ubifs_inode *ui = ubifs_inode(inode); inode 1128 fs/ubifs/journal.c ino_t inum = inode->i_ino; inode 1133 fs/ubifs/journal.c ubifs_assert(S_ISREG(inode->i_mode)); inode 1188 fs/ubifs/journal.c pack_inode(c, ino, inode, 0); inode 1271 fs/ubifs/journal.c host->i_ino, inode->i_ino, nm->name, inode 1272 fs/ubifs/journal.c ubifs_inode(inode)->data_len); inode 1273 fs/ubifs/journal.c ubifs_assert(inode->i_nlink == 0); inode 1300 fs/ubifs/journal.c xent->type = get_dent_type(inode->i_mode); inode 1308 fs/ubifs/journal.c pack_inode(c, ino, inode, 0); inode 1332 fs/ubifs/journal.c lowest_ino_key(c, &key1, inode->i_ino); inode 1333 fs/ubifs/journal.c highest_ino_key(c, &key2, inode->i_ino); inode 1382 fs/ubifs/journal.c dbg_jnl("ino %lu, ino %lu", host->i_ino, inode->i_ino); inode 1384 fs/ubifs/journal.c ubifs_assert(inode->i_nlink > 0); inode 1388 fs/ubifs/journal.c len2 = UBIFS_INO_NODE_SZ + ubifs_inode(inode)->data_len; inode 1402 fs/ubifs/journal.c pack_inode(c, (void *)ino + aligned_len1, inode, 1); inode 1409 fs/ubifs/journal.c ubifs_wbuf_add_ino_nolock(wbuf, inode->i_ino); inode 1420 fs/ubifs/journal.c ino_key_init(c, &key, inode->i_ino); inode 79 fs/ubifs/misc.h return container_of(inode, struct ubifs_inode, vfs_inode); inode 292 fs/ubifs/misc.h return (inode->i_sb->s_time_gran < NSEC_PER_SEC) ? inode 293 fs/ubifs/misc.h current_fs_time(inode->i_sb) : CURRENT_TIME_SEC; inode 1214 fs/ubifs/recovery.c struct inode *inode; inode 1310 fs/ubifs/recovery.c if (e->inode) inode 1311 fs/ubifs/recovery.c iput(e->inode); inode 1487 fs/ubifs/recovery.c if (!e->inode && (c->vfs_sb->s_flags & MS_RDONLY)) { inode 1489 fs/ubifs/recovery.c struct inode *inode; inode 1491 fs/ubifs/recovery.c inode = ubifs_iget(c->vfs_sb, e->inum); inode 1492 fs/ubifs/recovery.c if (IS_ERR(inode)) inode 1493 fs/ubifs/recovery.c return PTR_ERR(inode); inode 1494 fs/ubifs/recovery.c if (inode->i_size < e->d_size) { inode 1497 fs/ubifs/recovery.c inode->i_size); inode 1498 fs/ubifs/recovery.c inode->i_size = e->d_size; inode 1499 fs/ubifs/recovery.c ubifs_inode(inode)->ui_size = e->d_size; inode 1500 fs/ubifs/recovery.c e->inode = inode; inode 1504 fs/ubifs/recovery.c iput(inode); inode 1510 fs/ubifs/recovery.c if (e->inode) inode 1511 fs/ubifs/recovery.c iput(e->inode); inode 61 fs/ubifs/super.c const struct ubifs_inode *ui = ubifs_inode(inode); inode 63 fs/ubifs/super.c if (inode->i_size > c->max_inode_sz) { inode 65 fs/ubifs/super.c (long long)inode->i_size); inode 80 fs/ubifs/super.c if (ui->xattr && (inode->i_mode & S_IFMT) != S_IFREG) inode 85 fs/ubifs/super.c "compiled in", inode->i_ino, inode 89 fs/ubifs/super.c err = dbg_check_dir_size(c, inode); inode 93 fs/ubifs/super.c struct inode *ubifs_iget(struct super_block *sb, unsigned long inum) inode 99 fs/ubifs/super.c struct inode *inode; inode 104 fs/ubifs/super.c inode = iget_locked(sb, inum); inode 105 fs/ubifs/super.c if (!inode) inode 107 fs/ubifs/super.c if (!(inode->i_state & I_NEW)) inode 108 fs/ubifs/super.c return inode; inode 109 fs/ubifs/super.c ui = ubifs_inode(inode); inode 117 fs/ubifs/super.c ino_key_init(c, &key, inode->i_ino); inode 123 fs/ubifs/super.c inode->i_flags |= (S_NOCMTIME | S_NOATIME); inode 124 fs/ubifs/super.c inode->i_nlink = le32_to_cpu(ino->nlink); inode 125 fs/ubifs/super.c inode->i_uid = le32_to_cpu(ino->uid); inode 126 fs/ubifs/super.c inode->i_gid = le32_to_cpu(ino->gid); inode 127 fs/ubifs/super.c inode->i_atime.tv_sec = (int64_t)le64_to_cpu(ino->atime_sec); inode 128 fs/ubifs/super.c inode->i_atime.tv_nsec = le32_to_cpu(ino->atime_nsec); inode 129 fs/ubifs/super.c inode->i_mtime.tv_sec = (int64_t)le64_to_cpu(ino->mtime_sec); inode 130 fs/ubifs/super.c inode->i_mtime.tv_nsec = le32_to_cpu(ino->mtime_nsec); inode 131 fs/ubifs/super.c inode->i_ctime.tv_sec = (int64_t)le64_to_cpu(ino->ctime_sec); inode 132 fs/ubifs/super.c inode->i_ctime.tv_nsec = le32_to_cpu(ino->ctime_nsec); inode 133 fs/ubifs/super.c inode->i_mode = le32_to_cpu(ino->mode); inode 134 fs/ubifs/super.c inode->i_size = le64_to_cpu(ino->size); inode 143 fs/ubifs/super.c ui->synced_i_size = ui->ui_size = inode->i_size; inode 147 fs/ubifs/super.c err = validate_inode(c, inode); inode 152 fs/ubifs/super.c inode->i_mapping->backing_dev_info = &c->bdi; inode 154 fs/ubifs/super.c switch (inode->i_mode & S_IFMT) { inode 156 fs/ubifs/super.c inode->i_mapping->a_ops = &ubifs_file_address_operations; inode 157 fs/ubifs/super.c inode->i_op = &ubifs_file_inode_operations; inode 158 fs/ubifs/super.c inode->i_fop = &ubifs_file_operations; inode 173 fs/ubifs/super.c inode->i_op = &ubifs_dir_inode_operations; inode 174 fs/ubifs/super.c inode->i_fop = &ubifs_dir_operations; inode 181 fs/ubifs/super.c inode->i_op = &ubifs_symlink_inode_operations; inode 216 fs/ubifs/super.c inode->i_op = &ubifs_file_inode_operations; inode 217 fs/ubifs/super.c init_special_inode(inode, inode->i_mode, rdev); inode 222 fs/ubifs/super.c inode->i_op = &ubifs_file_inode_operations; inode 223 fs/ubifs/super.c init_special_inode(inode, inode->i_mode, 0); inode 235 fs/ubifs/super.c ubifs_set_inode_flags(inode); inode 236 fs/ubifs/super.c unlock_new_inode(inode); inode 237 fs/ubifs/super.c return inode; inode 240 fs/ubifs/super.c ubifs_err("inode %lu validation failed, error %d", inode->i_ino, err); inode 242 fs/ubifs/super.c dbg_dump_inode(c, inode); inode 247 fs/ubifs/super.c ubifs_err("failed to read inode %lu, error %d", inode->i_ino, err); inode 248 fs/ubifs/super.c iget_failed(inode); inode 252 fs/ubifs/super.c static struct inode *ubifs_alloc_inode(struct super_block *sb) inode 260 fs/ubifs/super.c memset((void *)ui + sizeof(struct inode), 0, inode 261 fs/ubifs/super.c sizeof(struct ubifs_inode) - sizeof(struct inode)); inode 269 fs/ubifs/super.c struct ubifs_inode *ui = ubifs_inode(inode); inode 272 fs/ubifs/super.c kmem_cache_free(ubifs_inode_slab, inode); inode 281 fs/ubifs/super.c struct ubifs_info *c = inode->i_sb->s_fs_info; inode 282 fs/ubifs/super.c struct ubifs_inode *ui = ubifs_inode(inode); inode 285 fs/ubifs/super.c if (is_bad_inode(inode)) inode 306 fs/ubifs/super.c inode->i_ino, (int)inode->i_mode, inode->i_nlink); inode 307 fs/ubifs/super.c if (inode->i_nlink) { inode 308 fs/ubifs/super.c err = ubifs_jnl_write_inode(c, inode); inode 311 fs/ubifs/super.c inode->i_ino, err); inode 323 fs/ubifs/super.c struct ubifs_info *c = inode->i_sb->s_fs_info; inode 324 fs/ubifs/super.c struct ubifs_inode *ui = ubifs_inode(inode); inode 334 fs/ubifs/super.c dbg_gen("inode %lu, mode %#x", inode->i_ino, (int)inode->i_mode); inode 335 fs/ubifs/super.c ubifs_assert(!atomic_read(&inode->i_count)); inode 336 fs/ubifs/super.c ubifs_assert(inode->i_nlink == 0); inode 338 fs/ubifs/super.c truncate_inode_pages(&inode->i_data, 0); inode 339 fs/ubifs/super.c if (is_bad_inode(inode)) inode 342 fs/ubifs/super.c ui->ui_size = inode->i_size = 0; inode 343 fs/ubifs/super.c err = ubifs_jnl_delete_inode(c, inode); inode 350 fs/ubifs/super.c inode->i_ino, err); inode 355 fs/ubifs/super.c clear_inode(inode); inode 360 fs/ubifs/super.c struct ubifs_inode *ui = ubifs_inode(inode); inode 365 fs/ubifs/super.c dbg_gen("inode %lu", inode->i_ino); inode 1641 fs/ubifs/super.c struct inode *root; inode 374 fs/ubifs/ubifs.h struct inode vfs_inode; inode 1618 fs/ubifs/ubifs.h struct inode *ubifs_new_inode(struct ubifs_info *c, const struct inode *dir, inode 1632 fs/ubifs/ubifs.h struct inode *ubifs_iget(struct super_block *sb, unsigned long inum); inode 103 fs/ubifs/xattr.c struct inode *inode; inode 125 fs/ubifs/xattr.c inode = ubifs_new_inode(c, host, S_IFREG | S_IRWXUGO); inode 126 fs/ubifs/xattr.c if (IS_ERR(inode)) { inode 127 fs/ubifs/xattr.c err = PTR_ERR(inode); inode 132 fs/ubifs/xattr.c inode->i_mapping->a_ops = &none_address_operations; inode 133 fs/ubifs/xattr.c inode->i_op = &none_inode_operations; inode 134 fs/ubifs/xattr.c inode->i_fop = &none_file_operations; inode 136 fs/ubifs/xattr.c inode->i_flags |= S_SYNC | S_NOATIME | S_NOCMTIME | S_NOQUOTA; inode 137 fs/ubifs/xattr.c ui = ubifs_inode(inode); inode 146 fs/ubifs/xattr.c inode->i_size = ui->ui_size = size; inode 156 fs/ubifs/xattr.c err = ubifs_jnl_update(c, host, nm, inode, 0, 1); inode 162 fs/ubifs/xattr.c insert_inode_hash(inode); inode 163 fs/ubifs/xattr.c iput(inode); inode 172 fs/ubifs/xattr.c make_bad_inode(inode); inode 173 fs/ubifs/xattr.c iput(inode); inode 196 fs/ubifs/xattr.c struct ubifs_inode *ui = ubifs_inode(inode); inode 200 fs/ubifs/xattr.c ubifs_assert(ui->data_len == inode->i_size); inode 212 fs/ubifs/xattr.c inode->i_size = ui->ui_size = size; inode 226 fs/ubifs/xattr.c err = ubifs_jnl_change_xattr(c, inode, host); inode 238 fs/ubifs/xattr.c make_bad_inode(inode); inode 280 fs/ubifs/xattr.c static struct inode *iget_xattr(struct ubifs_info *c, ino_t inum) inode 282 fs/ubifs/xattr.c struct inode *inode; inode 284 fs/ubifs/xattr.c inode = ubifs_iget(c->vfs_sb, inum); inode 285 fs/ubifs/xattr.c if (IS_ERR(inode)) { inode 287 fs/ubifs/xattr.c (int)PTR_ERR(inode)); inode 288 fs/ubifs/xattr.c return inode; inode 290 fs/ubifs/xattr.c if (ubifs_inode(inode)->xattr) inode 291 fs/ubifs/xattr.c return inode; inode 293 fs/ubifs/xattr.c iput(inode); inode 300 fs/ubifs/xattr.c struct inode *inode, *host = dentry->d_inode; inode 346 fs/ubifs/xattr.c inode = iget_xattr(c, le64_to_cpu(xent->inum)); inode 347 fs/ubifs/xattr.c if (IS_ERR(inode)) { inode 348 fs/ubifs/xattr.c err = PTR_ERR(inode); inode 352 fs/ubifs/xattr.c err = change_xattr(c, host, inode, value, size); inode 353 fs/ubifs/xattr.c iput(inode); inode 363 fs/ubifs/xattr.c struct inode *inode, *host = dentry->d_inode; inode 390 fs/ubifs/xattr.c inode = iget_xattr(c, le64_to_cpu(xent->inum)); inode 391 fs/ubifs/xattr.c if (IS_ERR(inode)) { inode 392 fs/ubifs/xattr.c err = PTR_ERR(inode); inode 396 fs/ubifs/xattr.c ui = ubifs_inode(inode); inode 397 fs/ubifs/xattr.c ubifs_assert(inode->i_size == ui->data_len); inode 414 fs/ubifs/xattr.c iput(inode); inode 423 fs/ubifs/xattr.c struct inode *host = dentry->d_inode; inode 489 fs/ubifs/xattr.c struct ubifs_inode *ui = ubifs_inode(inode); inode 493 fs/ubifs/xattr.c ubifs_assert(ui->data_len == inode->i_size); inode 506 fs/ubifs/xattr.c err = ubifs_jnl_delete_xattr(c, host, inode, nm); inode 520 fs/ubifs/xattr.c make_bad_inode(inode); inode 526 fs/ubifs/xattr.c struct inode *inode, *host = dentry->d_inode; inode 553 fs/ubifs/xattr.c inode = iget_xattr(c, le64_to_cpu(xent->inum)); inode 554 fs/ubifs/xattr.c if (IS_ERR(inode)) { inode 555 fs/ubifs/xattr.c err = PTR_ERR(inode); inode 559 fs/ubifs/xattr.c ubifs_assert(inode->i_nlink == 1); inode 560 fs/ubifs/xattr.c inode->i_nlink = 0; inode 561 fs/ubifs/xattr.c err = remove_xattr(c, host, inode, &nm); inode 563 fs/ubifs/xattr.c inode->i_nlink = 1; inode 566 fs/ubifs/xattr.c iput(inode); inode 208 fs/udf/balloc.c if (inode) inode 209 fs/udf/balloc.c DQUOT_FREE_BLOCK(inode, 1); inode 264 fs/udf/balloc.c else if (DQUOT_PREALLOC_BLOCK(inode, 1)) inode 268 fs/udf/balloc.c DQUOT_FREE_BLOCK(inode, 1); inode 396 fs/udf/balloc.c if (inode && DQUOT_ALLOC_BLOCK(inode, 1)) { inode 454 fs/udf/balloc.c if (inode) inode 455 fs/udf/balloc.c DQUOT_FREE_BLOCK(inode, count); inode 703 fs/udf/balloc.c if (inode && DQUOT_PREALLOC_BLOCK(inode, inode 809 fs/udf/balloc.c if (inode && DQUOT_ALLOC_BLOCK(inode, 1)) { inode 840 fs/udf/balloc.c return udf_bitmap_free_blocks(sb, inode, inode 844 fs/udf/balloc.c return udf_table_free_blocks(sb, inode, inode 848 fs/udf/balloc.c return udf_bitmap_free_blocks(sb, inode, inode 852 fs/udf/balloc.c return udf_table_free_blocks(sb, inode, inode 868 fs/udf/balloc.c return udf_bitmap_prealloc_blocks(sb, inode, inode 873 fs/udf/balloc.c return udf_table_prealloc_blocks(sb, inode, inode 878 fs/udf/balloc.c return udf_bitmap_prealloc_blocks(sb, inode, inode 883 fs/udf/balloc.c return udf_table_prealloc_blocks(sb, inode, inode 898 fs/udf/balloc.c return udf_bitmap_new_block(sb, inode, inode 902 fs/udf/balloc.c return udf_table_new_block(sb, inode, inode 906 fs/udf/balloc.c return udf_bitmap_new_block(sb, inode, inode 910 fs/udf/balloc.c return udf_table_new_block(sb, inode, inode 190 fs/udf/dir.c struct inode *dir = filp->f_path.dentry->d_inode; inode 45 fs/udf/file.c struct inode *inode = page->mapping->host; inode 47 fs/udf/file.c struct udf_inode_info *iinfo = UDF_I(inode); inode 53 fs/udf/file.c memcpy(kaddr, iinfo->i_ext.i_data + iinfo->i_lenEAttr, inode->i_size); inode 65 fs/udf/file.c struct inode *inode = page->mapping->host; inode 67 fs/udf/file.c struct udf_inode_info *iinfo = UDF_I(inode); inode 72 fs/udf/file.c memcpy(iinfo->i_ext.i_data + iinfo->i_lenEAttr, kaddr, inode->i_size); inode 73 fs/udf/file.c mark_inode_dirty(inode); inode 86 fs/udf/file.c struct inode *inode = mapping->host; inode 89 fs/udf/file.c struct udf_inode_info *iinfo = UDF_I(inode); inode 112 fs/udf/file.c struct inode *inode = file->f_path.dentry->d_inode; inode 115 fs/udf/file.c struct udf_inode_info *iinfo = UDF_I(inode); inode 119 fs/udf/file.c pos = inode->i_size; inode 123 fs/udf/file.c if (inode->i_sb->s_blocksize < inode 124 fs/udf/file.c (udf_file_entry_alloc_offset(inode) + inode 126 fs/udf/file.c udf_expand_file_adinicb(inode, pos + count, &err); inode 132 fs/udf/file.c if (pos + count > inode->i_size) inode 135 fs/udf/file.c iinfo->i_lenAlloc = inode->i_size; inode 141 fs/udf/file.c mark_inode_dirty(inode); inode 154 fs/udf/file.c inode->i_ino); inode 166 fs/udf/file.c UDF_SB(inode->i_sb)->s_volume_ident, 32)) inode 175 fs/udf/file.c result = udf_relocate_blocks(inode->i_sb, inode 181 fs/udf/file.c result = put_user(UDF_I(inode)->i_lenEAttr, (int __user *)arg); inode 185 fs/udf/file.c UDF_I(inode)->i_ext.i_data, inode 186 fs/udf/file.c UDF_I(inode)->i_lenEAttr) ? -EFAULT : 0; inode 197 fs/udf/file.c udf_discard_prealloc(inode); inode 34 fs/udf/fsync.c struct inode *inode = dentry->d_inode; inode 36 fs/udf/fsync.c return udf_fsync_inode(inode, datasync); inode 43 fs/udf/fsync.c err = sync_mapping_buffers(inode->i_mapping); inode 44 fs/udf/fsync.c if (!(inode->i_state & I_DIRTY)) inode 46 fs/udf/fsync.c if (datasync && !(inode->i_state & I_DIRTY_DATASYNC)) inode 49 fs/udf/fsync.c err |= udf_sync_inode(inode); inode 32 fs/udf/ialloc.c struct super_block *sb = inode->i_sb; inode 39 fs/udf/ialloc.c DQUOT_FREE_INODE(inode); inode 40 fs/udf/ialloc.c DQUOT_DROP(inode); inode 42 fs/udf/ialloc.c clear_inode(inode); inode 48 fs/udf/ialloc.c if (S_ISDIR(inode->i_mode)) inode 57 fs/udf/ialloc.c udf_free_blocks(sb, NULL, UDF_I(inode)->i_location, 0, 1); inode 60 fs/udf/ialloc.c struct inode *udf_new_inode(struct inode *dir, int mode, int *err) inode 64 fs/udf/ialloc.c struct inode *inode; inode 70 fs/udf/ialloc.c inode = new_inode(sb); inode 72 fs/udf/ialloc.c if (!inode) { inode 78 fs/udf/ialloc.c iinfo = UDF_I(inode); inode 79 fs/udf/ialloc.c if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_USE_EXTENDED_FE)) { inode 83 fs/udf/ialloc.c iinfo->i_ext.i_data = kzalloc(inode->i_sb->s_blocksize - inode 88 fs/udf/ialloc.c iinfo->i_ext.i_data = kzalloc(inode->i_sb->s_blocksize - inode 93 fs/udf/ialloc.c iput(inode); inode 102 fs/udf/ialloc.c iput(inode); inode 128 fs/udf/ialloc.c inode->i_mode = mode; inode 129 fs/udf/ialloc.c inode->i_uid = current->fsuid; inode 131 fs/udf/ialloc.c inode->i_gid = dir->i_gid; inode 135 fs/udf/ialloc.c inode->i_gid = current->fsgid; inode 141 fs/udf/ialloc.c inode->i_ino = udf_get_lb_pblock(sb, iinfo->i_location, 0); inode 142 fs/udf/ialloc.c inode->i_blocks = 0; inode 146 fs/udf/ialloc.c if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_USE_AD_IN_ICB)) inode 148 fs/udf/ialloc.c else if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_USE_SHORT_AD)) inode 152 fs/udf/ialloc.c inode->i_mtime = inode->i_atime = inode->i_ctime = inode 153 fs/udf/ialloc.c iinfo->i_crtime = current_fs_time(inode->i_sb); inode 154 fs/udf/ialloc.c insert_inode_hash(inode); inode 155 fs/udf/ialloc.c mark_inode_dirty(inode); inode 157 fs/udf/ialloc.c if (DQUOT_ALLOC_INODE(inode)) { inode 158 fs/udf/ialloc.c DQUOT_DROP(inode); inode 159 fs/udf/ialloc.c inode->i_flags |= S_NOQUOTA; inode 160 fs/udf/ialloc.c inode->i_nlink = 0; inode 161 fs/udf/ialloc.c iput(inode); inode 167 fs/udf/ialloc.c return inode; inode 73 fs/udf/inode.c truncate_inode_pages(&inode->i_data, 0); inode 75 fs/udf/inode.c if (is_bad_inode(inode)) inode 78 fs/udf/inode.c inode->i_size = 0; inode 79 fs/udf/inode.c udf_truncate(inode); inode 82 fs/udf/inode.c udf_update_inode(inode, IS_SYNC(inode)); inode 83 fs/udf/inode.c udf_free_inode(inode); inode 89 fs/udf/inode.c clear_inode(inode); inode 102 fs/udf/inode.c if (!(inode->i_sb->s_flags & MS_RDONLY)) { inode 105 fs/udf/inode.c udf_discard_prealloc(inode); inode 106 fs/udf/inode.c udf_truncate_tail_extent(inode); inode 108 fs/udf/inode.c write_inode_now(inode, 0); inode 110 fs/udf/inode.c iinfo = UDF_I(inode); inode 152 fs/udf/inode.c struct udf_inode_info *iinfo = UDF_I(inode); inode 159 fs/udf/inode.c inode->i_data.a_ops = &udf_aops; inode 162 fs/udf/inode.c if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_USE_SHORT_AD)) inode 166 fs/udf/inode.c mark_inode_dirty(inode); inode 170 fs/udf/inode.c page = grab_cache_page(inode->i_mapping, 0); inode 186 fs/udf/inode.c if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_USE_SHORT_AD)) inode 191 fs/udf/inode.c inode->i_data.a_ops->writepage(page, &udf_wbc); inode 194 fs/udf/inode.c mark_inode_dirty(inode); inode 208 fs/udf/inode.c loff_t f_pos = udf_ext0_offset(inode); inode 209 fs/udf/inode.c int size = udf_ext0_offset(inode) + inode->i_size; inode 211 fs/udf/inode.c struct udf_inode_info *iinfo = UDF_I(inode); inode 213 fs/udf/inode.c if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_USE_SHORT_AD)) inode 218 fs/udf/inode.c if (!inode->i_size) { inode 220 fs/udf/inode.c mark_inode_dirty(inode); inode 225 fs/udf/inode.c *block = udf_new_block(inode->i_sb, inode, inode 230 fs/udf/inode.c newblock = udf_get_pblock(inode->i_sb, *block, inode 235 fs/udf/inode.c dbh = udf_tgetblk(inode->i_sb, newblock); inode 239 fs/udf/inode.c memset(dbh->b_data, 0x00, inode->i_sb->s_blocksize); inode 242 fs/udf/inode.c mark_buffer_dirty_inode(dbh, inode); inode 245 fs/udf/inode.c f_pos & (inode->i_sb->s_blocksize - 1); inode 251 fs/udf/inode.c sfi = udf_fileident_read(inode, &f_pos, &sfibh, &cfi, NULL, inode 262 fs/udf/inode.c if (udf_write_fi(inode, sfi, dfi, &dfibh, sfi->impUse, inode 270 fs/udf/inode.c mark_buffer_dirty_inode(dbh, inode); inode 278 fs/udf/inode.c elen = inode->i_sb->s_blocksize; inode 282 fs/udf/inode.c epos.offset = udf_file_entry_alloc_offset(inode); inode 283 fs/udf/inode.c udf_add_aext(inode, &epos, eloc, elen, 0); inode 287 fs/udf/inode.c mark_inode_dirty(inode); inode 300 fs/udf/inode.c phys = udf_block_map(inode, block); inode 302 fs/udf/inode.c map_bh(bh_result, inode->i_sb, phys); inode 312 fs/udf/inode.c iinfo = UDF_I(inode); inode 320 fs/udf/inode.c bh = inode_getblk(inode, block, &err, &phys, &new); inode 328 fs/udf/inode.c map_bh(bh_result, inode->i_sb, phys); inode 343 fs/udf/inode.c *err = udf_get_block(inode, block, &dummy, create); inode 345 fs/udf/inode.c bh = sb_getblk(inode->i_sb, dummy.b_blocknr); inode 348 fs/udf/inode.c memset(bh->b_data, 0x00, inode->i_sb->s_blocksize); inode 351 fs/udf/inode.c mark_buffer_dirty_inode(bh, inode); inode 365 fs/udf/inode.c struct super_block *sb = inode->i_sb; inode 375 fs/udf/inode.c iinfo = UDF_I(inode); inode 413 fs/udf/inode.c udf_add_aext(inode, last_pos, last_ext->extLocation, inode 417 fs/udf/inode.c udf_write_aext(inode, last_pos, last_ext->extLocation, inode 434 fs/udf/inode.c if (udf_add_aext(inode, last_pos, last_ext->extLocation, inode 442 fs/udf/inode.c if (udf_add_aext(inode, last_pos, last_ext->extLocation, inode 451 fs/udf/inode.c if (udf_add_aext(inode, last_pos, prealloc_loc, inode 485 fs/udf/inode.c struct udf_inode_info *iinfo = UDF_I(inode); inode 489 fs/udf/inode.c prev_epos.offset = udf_file_entry_alloc_offset(inode); inode 493 fs/udf/inode.c b_off = (loff_t)block << inode->i_sb->s_blocksize_bits; inode 518 fs/udf/inode.c etype = udf_next_aext(inode, &next_epos, &eloc, &elen, 1); inode 529 fs/udf/inode.c ((elen + inode->i_sb->s_blocksize - 1) >> inode 530 fs/udf/inode.c inode->i_sb->s_blocksize_bits); inode 536 fs/udf/inode.c offset = b_off >> inode->i_sb->s_blocksize_bits; inode 541 fs/udf/inode.c udf_next_aext(inode, &prev_epos, &tmpeloc, &tmpelen, 0); inode 542 fs/udf/inode.c udf_next_aext(inode, &cur_epos, &tmpeloc, &tmpelen, 0); inode 548 fs/udf/inode.c if (elen & (inode->i_sb->s_blocksize - 1)) { inode 550 fs/udf/inode.c ((elen + inode->i_sb->s_blocksize - 1) & inode 551 fs/udf/inode.c ~(inode->i_sb->s_blocksize - 1)); inode 552 fs/udf/inode.c etype = udf_write_aext(inode, &cur_epos, eloc, elen, 1); inode 557 fs/udf/inode.c newblock = udf_get_lb_pblock(inode->i_sb, eloc, offset); inode 581 fs/udf/inode.c ret = udf_extend_file(inode, &prev_epos, laarr, offset); inode 602 fs/udf/inode.c inode->i_sb->s_blocksize; inode 624 fs/udf/inode.c etype = udf_next_aext(inode, &next_epos, &eloc, &elen, 0); inode 648 fs/udf/inode.c newblocknum = udf_new_block(inode->i_sb, inode, inode 656 fs/udf/inode.c iinfo->i_lenExtents += inode->i_sb->s_blocksize; inode 663 fs/udf/inode.c udf_split_extents(inode, &c, offset, newblocknum, laarr, &endnum); inode 667 fs/udf/inode.c udf_prealloc_extents(inode, c, lastblock, laarr, &endnum); inode 671 fs/udf/inode.c udf_merge_extents(inode, laarr, &endnum); inode 676 fs/udf/inode.c udf_update_extents(inode, laarr, startnum, endnum, &prev_epos); inode 680 fs/udf/inode.c newblock = udf_get_pblock(inode->i_sb, newblocknum, inode 689 fs/udf/inode.c inode->i_ctime = current_fs_time(inode->i_sb); inode 691 fs/udf/inode.c if (IS_SYNC(inode)) inode 692 fs/udf/inode.c udf_sync_inode(inode); inode 694 fs/udf/inode.c mark_inode_dirty(inode); inode 704 fs/udf/inode.c unsigned long blocksize = inode->i_sb->s_blocksize; inode 705 fs/udf/inode.c unsigned char blocksize_bits = inode->i_sb->s_blocksize_bits; inode 727 fs/udf/inode.c udf_free_blocks(inode->i_sb, inode, inode 747 fs/udf/inode.c UDF_I(inode)->i_location.partitionReferenceNum; inode 782 fs/udf/inode.c inode->i_sb->s_blocksize - 1) >> inode 783 fs/udf/inode.c inode->i_sb->s_blocksize_bits); inode 796 fs/udf/inode.c inode->i_sb->s_blocksize - 1) >> inode 797 fs/udf/inode.c inode->i_sb->s_blocksize_bits); inode 805 fs/udf/inode.c inode->i_sb->s_blocksize - 1) >> inode 806 fs/udf/inode.c inode->i_sb->s_blocksize_bits); inode 807 fs/udf/inode.c int numalloc = udf_prealloc_blocks(inode->i_sb, inode, inode 816 fs/udf/inode.c inode->i_sb->s_blocksize_bits); inode 828 fs/udf/inode.c inode->i_sb->s_blocksize_bits); inode 835 fs/udf/inode.c inode->i_sb->s_blocksize - 1) >> inode 836 fs/udf/inode.c inode->i_sb->s_blocksize_bits; inode 841 fs/udf/inode.c inode->i_sb->s_blocksize_bits); inode 854 fs/udf/inode.c UDF_I(inode)->i_lenExtents += inode 855 fs/udf/inode.c numalloc << inode->i_sb->s_blocksize_bits; inode 865 fs/udf/inode.c unsigned long blocksize = inode->i_sb->s_blocksize; inode 866 fs/udf/inode.c unsigned char blocksize_bits = inode->i_sb->s_blocksize_bits; inode 913 fs/udf/inode.c udf_free_blocks(inode->i_sb, inode, li->extLocation, 0, inode 946 fs/udf/inode.c udf_free_blocks(inode->i_sb, inode, inode 971 fs/udf/inode.c udf_delete_aext(inode, *epos, laarr[i].extLocation, inode 975 fs/udf/inode.c udf_insert_aext(inode, *epos, laarr[i].extLocation, inode 977 fs/udf/inode.c udf_next_aext(inode, epos, &laarr[i].extLocation, inode 984 fs/udf/inode.c udf_next_aext(inode, epos, &tmploc, &tmplen, 0); inode 985 fs/udf/inode.c udf_write_aext(inode, epos, laarr[i].extLocation, inode 995 fs/udf/inode.c bh = udf_getblk(inode, block, create, err); inode 1019 fs/udf/inode.c if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || inode 1020 fs/udf/inode.c S_ISLNK(inode->i_mode))) inode 1022 fs/udf/inode.c if (IS_APPEND(inode) || IS_IMMUTABLE(inode)) inode 1026 fs/udf/inode.c iinfo = UDF_I(inode); inode 1028 fs/udf/inode.c if (inode->i_sb->s_blocksize < inode 1029 fs/udf/inode.c (udf_file_entry_alloc_offset(inode) + inode 1030 fs/udf/inode.c inode->i_size)) { inode 1031 fs/udf/inode.c udf_expand_file_adinicb(inode, inode->i_size, &err); inode 1033 fs/udf/inode.c inode->i_size = iinfo->i_lenAlloc; inode 1037 fs/udf/inode.c udf_truncate_extents(inode); inode 1039 fs/udf/inode.c offset = inode->i_size & (inode->i_sb->s_blocksize - 1); inode 1041 fs/udf/inode.c 0x00, inode->i_sb->s_blocksize - inode 1042 fs/udf/inode.c offset - udf_file_entry_alloc_offset(inode)); inode 1043 fs/udf/inode.c iinfo->i_lenAlloc = inode->i_size; inode 1046 fs/udf/inode.c block_truncate_page(inode->i_mapping, inode->i_size, inode 1048 fs/udf/inode.c udf_truncate_extents(inode); inode 1051 fs/udf/inode.c inode->i_mtime = inode->i_ctime = current_fs_time(inode->i_sb); inode 1052 fs/udf/inode.c if (IS_SYNC(inode)) inode 1053 fs/udf/inode.c udf_sync_inode(inode); inode 1055 fs/udf/inode.c mark_inode_dirty(inode); inode 1064 fs/udf/inode.c struct udf_inode_info *iinfo = UDF_I(inode); inode 1078 fs/udf/inode.c bh = udf_read_ptagged(inode->i_sb, iinfo->i_location, 0, &ident); inode 1081 fs/udf/inode.c inode->i_ino); inode 1082 fs/udf/inode.c make_bad_inode(inode); inode 1089 fs/udf/inode.c "failed ident=%d\n", inode->i_ino, ident); inode 1091 fs/udf/inode.c make_bad_inode(inode); inode 1100 fs/udf/inode.c ibh = udf_read_ptagged(inode->i_sb, iinfo->i_location, 1, inode 1111 fs/udf/inode.c (nbh = udf_read_ptagged(inode->i_sb, loc, 0, inode 1121 fs/udf/inode.c __udf_read_inode(inode); inode 1132 fs/udf/inode.c make_bad_inode(inode); inode 1135 fs/udf/inode.c udf_fill_inode(inode, bh); inode 1145 fs/udf/inode.c struct udf_sb_info *sbi = UDF_SB(inode->i_sb); inode 1146 fs/udf/inode.c struct udf_inode_info *iinfo = UDF_I(inode); inode 1167 fs/udf/inode.c if (udf_alloc_i_data(inode, inode->i_sb->s_blocksize - inode 1169 fs/udf/inode.c make_bad_inode(inode); inode 1174 fs/udf/inode.c inode->i_sb->s_blocksize - inode 1179 fs/udf/inode.c if (udf_alloc_i_data(inode, inode->i_sb->s_blocksize - inode 1181 fs/udf/inode.c make_bad_inode(inode); inode 1186 fs/udf/inode.c inode->i_sb->s_blocksize - sizeof(struct fileEntry)); inode 1193 fs/udf/inode.c if (udf_alloc_i_data(inode, inode->i_sb->s_blocksize - inode 1195 fs/udf/inode.c make_bad_inode(inode); inode 1200 fs/udf/inode.c inode->i_sb->s_blocksize - inode 1205 fs/udf/inode.c inode->i_uid = le32_to_cpu(fe->uid); inode 1206 fs/udf/inode.c if (inode->i_uid == -1 || inode 1207 fs/udf/inode.c UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_UID_IGNORE) || inode 1208 fs/udf/inode.c UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_UID_SET)) inode 1209 fs/udf/inode.c inode->i_uid = UDF_SB(inode->i_sb)->s_uid; inode 1211 fs/udf/inode.c inode->i_gid = le32_to_cpu(fe->gid); inode 1212 fs/udf/inode.c if (inode->i_gid == -1 || inode 1213 fs/udf/inode.c UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_GID_IGNORE) || inode 1214 fs/udf/inode.c UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_GID_SET)) inode 1215 fs/udf/inode.c inode->i_gid = UDF_SB(inode->i_sb)->s_gid; inode 1217 fs/udf/inode.c inode->i_nlink = le16_to_cpu(fe->fileLinkCount); inode 1218 fs/udf/inode.c if (!inode->i_nlink) inode 1219 fs/udf/inode.c inode->i_nlink = 1; inode 1221 fs/udf/inode.c inode->i_size = le64_to_cpu(fe->informationLength); inode 1222 fs/udf/inode.c iinfo->i_lenExtents = inode->i_size; inode 1224 fs/udf/inode.c inode->i_mode = udf_convert_permissions(fe); inode 1225 fs/udf/inode.c inode->i_mode &= ~UDF_SB(inode->i_sb)->s_umask; inode 1228 fs/udf/inode.c inode->i_blocks = le64_to_cpu(fe->logicalBlocksRecorded) << inode 1229 fs/udf/inode.c (inode->i_sb->s_blocksize_bits - 9); inode 1231 fs/udf/inode.c if (!udf_disk_stamp_to_time(&inode->i_atime, fe->accessTime)) inode 1232 fs/udf/inode.c inode->i_atime = sbi->s_record_time; inode 1234 fs/udf/inode.c if (!udf_disk_stamp_to_time(&inode->i_mtime, inode 1236 fs/udf/inode.c inode->i_mtime = sbi->s_record_time; inode 1238 fs/udf/inode.c if (!udf_disk_stamp_to_time(&inode->i_ctime, fe->attrTime)) inode 1239 fs/udf/inode.c inode->i_ctime = sbi->s_record_time; inode 1246 fs/udf/inode.c inode->i_blocks = le64_to_cpu(efe->logicalBlocksRecorded) << inode 1247 fs/udf/inode.c (inode->i_sb->s_blocksize_bits - 9); inode 1249 fs/udf/inode.c if (!udf_disk_stamp_to_time(&inode->i_atime, efe->accessTime)) inode 1250 fs/udf/inode.c inode->i_atime = sbi->s_record_time; inode 1252 fs/udf/inode.c if (!udf_disk_stamp_to_time(&inode->i_mtime, inode 1254 fs/udf/inode.c inode->i_mtime = sbi->s_record_time; inode 1259 fs/udf/inode.c if (!udf_disk_stamp_to_time(&inode->i_ctime, efe->attrTime)) inode 1260 fs/udf/inode.c inode->i_ctime = sbi->s_record_time; inode 1271 fs/udf/inode.c inode->i_op = &udf_dir_inode_operations; inode 1272 fs/udf/inode.c inode->i_fop = &udf_dir_operations; inode 1273 fs/udf/inode.c inode->i_mode |= S_IFDIR; inode 1274 fs/udf/inode.c inc_nlink(inode); inode 1281 fs/udf/inode.c inode->i_data.a_ops = &udf_adinicb_aops; inode 1283 fs/udf/inode.c inode->i_data.a_ops = &udf_aops; inode 1284 fs/udf/inode.c inode->i_op = &udf_file_inode_operations; inode 1285 fs/udf/inode.c inode->i_fop = &udf_file_operations; inode 1286 fs/udf/inode.c inode->i_mode |= S_IFREG; inode 1289 fs/udf/inode.c inode->i_mode |= S_IFBLK; inode 1292 fs/udf/inode.c inode->i_mode |= S_IFCHR; inode 1295 fs/udf/inode.c init_special_inode(inode, inode->i_mode | S_IFIFO, 0); inode 1298 fs/udf/inode.c init_special_inode(inode, inode->i_mode | S_IFSOCK, 0); inode 1301 fs/udf/inode.c inode->i_data.a_ops = &udf_symlink_aops; inode 1302 fs/udf/inode.c inode->i_op = &page_symlink_inode_operations; inode 1303 fs/udf/inode.c inode->i_mode = S_IFLNK | S_IRWXUGO; inode 1316 fs/udf/inode.c "file type=%d\n", inode->i_ino, inode 1318 fs/udf/inode.c make_bad_inode(inode); inode 1321 fs/udf/inode.c if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) { inode 1323 fs/udf/inode.c (struct deviceSpec *)udf_get_extendedattr(inode, 12, 1); inode 1325 fs/udf/inode.c init_special_inode(inode, inode->i_mode, inode 1330 fs/udf/inode.c make_bad_inode(inode); inode 1336 fs/udf/inode.c struct udf_inode_info *iinfo = UDF_I(inode); inode 1341 fs/udf/inode.c "no free memory\n", inode->i_ino); inode 1372 fs/udf/inode.c ret = udf_update_inode(inode, sync); inode 1380 fs/udf/inode.c return udf_update_inode(inode, 1); inode 1392 fs/udf/inode.c struct udf_sb_info *sbi = UDF_SB(inode->i_sb); inode 1393 fs/udf/inode.c unsigned char blocksize_bits = inode->i_sb->s_blocksize_bits; inode 1394 fs/udf/inode.c struct udf_inode_info *iinfo = UDF_I(inode); inode 1396 fs/udf/inode.c bh = udf_tread(inode->i_sb, inode 1397 fs/udf/inode.c udf_get_lb_pblock(inode->i_sb, inode 1404 fs/udf/inode.c memset(bh->b_data, 0x00, inode->i_sb->s_blocksize); inode 1415 fs/udf/inode.c iinfo->i_ext.i_data, inode->i_sb->s_blocksize - inode 1433 fs/udf/inode.c if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_UID_FORGET)) inode 1436 fs/udf/inode.c fe->uid = cpu_to_le32(inode->i_uid); inode 1438 fs/udf/inode.c if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_GID_FORGET)) inode 1441 fs/udf/inode.c fe->gid = cpu_to_le32(inode->i_gid); inode 1443 fs/udf/inode.c udfperms = ((inode->i_mode & S_IRWXO)) | inode 1444 fs/udf/inode.c ((inode->i_mode & S_IRWXG) << 2) | inode 1445 fs/udf/inode.c ((inode->i_mode & S_IRWXU) << 4); inode 1453 fs/udf/inode.c if (S_ISDIR(inode->i_mode)) inode 1454 fs/udf/inode.c fe->fileLinkCount = cpu_to_le16(inode->i_nlink - 1); inode 1456 fs/udf/inode.c fe->fileLinkCount = cpu_to_le16(inode->i_nlink); inode 1458 fs/udf/inode.c fe->informationLength = cpu_to_le64(inode->i_size); inode 1460 fs/udf/inode.c if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) { inode 1463 fs/udf/inode.c (struct deviceSpec *)udf_get_extendedattr(inode, 12, 1); inode 1466 fs/udf/inode.c udf_add_extendedattr(inode, inode 1481 fs/udf/inode.c dsea->majorDeviceIdent = cpu_to_le32(imajor(inode)); inode 1482 fs/udf/inode.c dsea->minorDeviceIdent = cpu_to_le32(iminor(inode)); inode 1488 fs/udf/inode.c inode->i_sb->s_blocksize - sizeof(struct fileEntry)); inode 1490 fs/udf/inode.c (inode->i_blocks + (1 << (blocksize_bits - 9)) - 1) >> inode 1493 fs/udf/inode.c udf_time_to_disk_stamp(&fe->accessTime, inode->i_atime); inode 1494 fs/udf/inode.c udf_time_to_disk_stamp(&fe->modificationTime, inode->i_mtime); inode 1495 fs/udf/inode.c udf_time_to_disk_stamp(&fe->attrTime, inode->i_ctime); inode 1508 fs/udf/inode.c inode->i_sb->s_blocksize - inode 1510 fs/udf/inode.c efe->objectSize = cpu_to_le64(inode->i_size); inode 1512 fs/udf/inode.c (inode->i_blocks + (1 << (blocksize_bits - 9)) - 1) >> inode 1515 fs/udf/inode.c if (iinfo->i_crtime.tv_sec > inode->i_atime.tv_sec || inode 1516 fs/udf/inode.c (iinfo->i_crtime.tv_sec == inode->i_atime.tv_sec && inode 1517 fs/udf/inode.c iinfo->i_crtime.tv_nsec > inode->i_atime.tv_nsec)) inode 1518 fs/udf/inode.c iinfo->i_crtime = inode->i_atime; inode 1520 fs/udf/inode.c if (iinfo->i_crtime.tv_sec > inode->i_mtime.tv_sec || inode 1521 fs/udf/inode.c (iinfo->i_crtime.tv_sec == inode->i_mtime.tv_sec && inode 1522 fs/udf/inode.c iinfo->i_crtime.tv_nsec > inode->i_mtime.tv_nsec)) inode 1523 fs/udf/inode.c iinfo->i_crtime = inode->i_mtime; inode 1525 fs/udf/inode.c if (iinfo->i_crtime.tv_sec > inode->i_ctime.tv_sec || inode 1526 fs/udf/inode.c (iinfo->i_crtime.tv_sec == inode->i_ctime.tv_sec && inode 1527 fs/udf/inode.c iinfo->i_crtime.tv_nsec > inode->i_ctime.tv_nsec)) inode 1528 fs/udf/inode.c iinfo->i_crtime = inode->i_ctime; inode 1530 fs/udf/inode.c udf_time_to_disk_stamp(&efe->accessTime, inode->i_atime); inode 1531 fs/udf/inode.c udf_time_to_disk_stamp(&efe->modificationTime, inode->i_mtime); inode 1533 fs/udf/inode.c udf_time_to_disk_stamp(&efe->attrTime, inode->i_ctime); inode 1554 fs/udf/inode.c if (S_ISDIR(inode->i_mode)) inode 1556 fs/udf/inode.c else if (S_ISREG(inode->i_mode)) inode 1558 fs/udf/inode.c else if (S_ISLNK(inode->i_mode)) inode 1560 fs/udf/inode.c else if (S_ISBLK(inode->i_mode)) inode 1562 fs/udf/inode.c else if (S_ISCHR(inode->i_mode)) inode 1564 fs/udf/inode.c else if (S_ISFIFO(inode->i_mode)) inode 1566 fs/udf/inode.c else if (S_ISSOCK(inode->i_mode)) inode 1570 fs/udf/inode.c ((inode->i_mode & S_ISUID) ? ICBTAG_FLAG_SETUID : 0) | inode 1571 fs/udf/inode.c ((inode->i_mode & S_ISGID) ? ICBTAG_FLAG_SETGID : 0) | inode 1572 fs/udf/inode.c ((inode->i_mode & S_ISVTX) ? ICBTAG_FLAG_STICKY : 0) | inode 1598 fs/udf/inode.c "[%s:%08lx]\n", inode->i_sb->s_id, inode 1599 fs/udf/inode.c inode->i_ino); inode 1608 fs/udf/inode.c struct inode *udf_iget(struct super_block *sb, kernel_lb_addr ino) inode 1611 fs/udf/inode.c struct inode *inode = iget_locked(sb, block); inode 1613 fs/udf/inode.c if (!inode) inode 1616 fs/udf/inode.c if (inode->i_state & I_NEW) { inode 1617 fs/udf/inode.c memcpy(&UDF_I(inode)->i_location, &ino, sizeof(kernel_lb_addr)); inode 1618 fs/udf/inode.c __udf_read_inode(inode); inode 1619 fs/udf/inode.c unlock_new_inode(inode); inode 1622 fs/udf/inode.c if (is_bad_inode(inode)) inode 1629 fs/udf/inode.c make_bad_inode(inode); inode 1633 fs/udf/inode.c return inode; inode 1636 fs/udf/inode.c iput(inode); inode 1649 fs/udf/inode.c struct udf_inode_info *iinfo = UDF_I(inode); inode 1653 fs/udf/inode.c udf_file_entry_alloc_offset(inode) + inode 1665 fs/udf/inode.c if (epos->offset + (2 * adsize) > inode->i_sb->s_blocksize) { inode 1671 fs/udf/inode.c epos->block.logicalBlockNum = udf_new_block(inode->i_sb, NULL, inode 1676 fs/udf/inode.c nbh = udf_tgetblk(inode->i_sb, udf_get_lb_pblock(inode->i_sb, inode 1682 fs/udf/inode.c memset(nbh->b_data, 0x00, inode->i_sb->s_blocksize); inode 1685 fs/udf/inode.c mark_buffer_dirty_inode(nbh, inode); inode 1688 fs/udf/inode.c if (!UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_STRICT)) inode 1691 fs/udf/inode.c if (epos->offset + adsize > inode->i_sb->s_blocksize) { inode 1709 fs/udf/inode.c mark_inode_dirty(inode); inode 1712 fs/udf/inode.c if (UDF_SB(inode->i_sb)->s_udfrev >= 0x0200) inode 1722 fs/udf/inode.c inode->i_sb->s_blocksize); inode 1729 fs/udf/inode.c inode->i_sb->s_blocksize); inode 1735 fs/udf/inode.c if (!UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_STRICT) || inode 1736 fs/udf/inode.c UDF_SB(inode->i_sb)->s_udfrev >= 0x0201) inode 1741 fs/udf/inode.c mark_buffer_dirty_inode(epos->bh, inode); inode 1744 fs/udf/inode.c mark_inode_dirty(inode); inode 1749 fs/udf/inode.c etype = udf_write_aext(inode, epos, eloc, elen, inc); inode 1753 fs/udf/inode.c mark_inode_dirty(inode); inode 1757 fs/udf/inode.c if (!UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_STRICT) || inode 1758 fs/udf/inode.c UDF_SB(inode->i_sb)->s_udfrev >= 0x0201) inode 1764 fs/udf/inode.c mark_buffer_dirty_inode(epos->bh, inode); inode 1777 fs/udf/inode.c struct udf_inode_info *iinfo = UDF_I(inode); inode 1781 fs/udf/inode.c udf_file_entry_alloc_offset(inode) + inode 1805 fs/udf/inode.c if (!UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_STRICT) || inode 1806 fs/udf/inode.c UDF_SB(inode->i_sb)->s_udfrev >= 0x0201) { inode 1813 fs/udf/inode.c mark_buffer_dirty_inode(epos->bh, inode); inode 1815 fs/udf/inode.c mark_inode_dirty(inode); inode 1829 fs/udf/inode.c while ((etype = udf_current_aext(inode, epos, eloc, elen, inc)) == inode 1835 fs/udf/inode.c block = udf_get_lb_pblock(inode->i_sb, epos->block, 0); inode 1836 fs/udf/inode.c epos->bh = udf_tread(inode->i_sb, block); inode 1854 fs/udf/inode.c struct udf_inode_info *iinfo = UDF_I(inode); inode 1858 fs/udf/inode.c epos->offset = udf_file_entry_alloc_offset(inode); inode 1860 fs/udf/inode.c udf_file_entry_alloc_offset(inode) + inode 1862 fs/udf/inode.c alen = udf_file_entry_alloc_offset(inode) + inode 1911 fs/udf/inode.c while ((etype = udf_next_aext(inode, &epos, &oeloc, &oelen, 0)) != -1) { inode 1912 fs/udf/inode.c udf_write_aext(inode, &epos, neloc, nelen, 1); inode 1916 fs/udf/inode.c udf_add_aext(inode, &epos, neloc, nelen, 1); inode 1936 fs/udf/inode.c iinfo = UDF_I(inode); inode 1945 fs/udf/inode.c if (udf_next_aext(inode, &epos, &eloc, &elen, 1) == -1) inode 1948 fs/udf/inode.c while ((etype = udf_next_aext(inode, &epos, &eloc, &elen, 1)) != -1) { inode 1949 fs/udf/inode.c udf_write_aext(inode, &oepos, eloc, (etype << 30) | elen, 1); inode 1962 fs/udf/inode.c udf_free_blocks(inode->i_sb, inode, epos.block, 0, 1); inode 1963 fs/udf/inode.c udf_write_aext(inode, &oepos, eloc, elen, 1); inode 1964 fs/udf/inode.c udf_write_aext(inode, &oepos, eloc, elen, 1); inode 1967 fs/udf/inode.c mark_inode_dirty(inode); inode 1971 fs/udf/inode.c if (!UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_STRICT) || inode 1972 fs/udf/inode.c UDF_SB(inode->i_sb)->s_udfrev >= 0x0201) inode 1978 fs/udf/inode.c mark_buffer_dirty_inode(oepos.bh, inode); inode 1981 fs/udf/inode.c udf_write_aext(inode, &oepos, eloc, elen, 1); inode 1984 fs/udf/inode.c mark_inode_dirty(inode); inode 1988 fs/udf/inode.c if (!UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_STRICT) || inode 1989 fs/udf/inode.c UDF_SB(inode->i_sb)->s_udfrev >= 0x0201) inode 1995 fs/udf/inode.c mark_buffer_dirty_inode(oepos.bh, inode); inode 2009 fs/udf/inode.c unsigned char blocksize_bits = inode->i_sb->s_blocksize_bits; inode 2015 fs/udf/inode.c iinfo = UDF_I(inode); inode 2022 fs/udf/inode.c etype = udf_next_aext(inode, pos, eloc, elen, 1); inode 2046 fs/udf/inode.c if (inode_bmap(inode, block, &epos, &eloc, &elen, &offset) == inode 2048 fs/udf/inode.c ret = udf_get_lb_pblock(inode->i_sb, eloc, offset); inode 2055 fs/udf/inode.c if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_VARCONV)) inode 54 fs/udf/misc.c struct udf_inode_info *iinfo = UDF_I(inode); inode 64 fs/udf/misc.c offset = inode->i_sb->s_blocksize - udf_file_entry_alloc_offset(inode) - inode 84 fs/udf/misc.c struct udf_sb_info *sbi = UDF_SB(inode->i_sb); inode 157 fs/udf/misc.c struct udf_inode_info *iinfo = UDF_I(inode); inode 59 fs/udf/namei.c if (UDF_I(inode)->i_alloc_type == ICBTAG_FLAG_AD_IN_ICB) inode 135 fs/udf/namei.c mark_inode_dirty(inode); inode 138 fs/udf/namei.c mark_buffer_dirty_inode(fibh->ebh, inode); inode 139 fs/udf/namei.c mark_buffer_dirty_inode(fibh->sbh, inode); inode 261 fs/udf/namei.c struct inode *inode = NULL; inode 278 fs/udf/namei.c inode = udf_iget(dir->i_sb, lb); inode 279 fs/udf/namei.c if (!inode) { inode 291 fs/udf/namei.c inode = udf_iget(dir->i_sb, lelb_to_cpu(cfi.icb.extLocation)); inode 292 fs/udf/namei.c if (!inode) { inode 299 fs/udf/namei.c return d_splice_alias(inode, dentry); inode 533 fs/udf/namei.c if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_STRICT)) inode 536 fs/udf/namei.c return udf_write_fi(inode, cfi, fi, fibh, NULL, NULL); inode 543 fs/udf/namei.c struct inode *inode; inode 549 fs/udf/namei.c inode = udf_new_inode(dir, mode, &err); inode 550 fs/udf/namei.c if (!inode) { inode 555 fs/udf/namei.c iinfo = UDF_I(inode); inode 557 fs/udf/namei.c inode->i_data.a_ops = &udf_adinicb_aops; inode 559 fs/udf/namei.c inode->i_data.a_ops = &udf_aops; inode 560 fs/udf/namei.c inode->i_op = &udf_file_inode_operations; inode 561 fs/udf/namei.c inode->i_fop = &udf_file_operations; inode 562 fs/udf/namei.c inode->i_mode = mode; inode 563 fs/udf/namei.c mark_inode_dirty(inode); inode 567 fs/udf/namei.c inode->i_nlink--; inode 568 fs/udf/namei.c mark_inode_dirty(inode); inode 569 fs/udf/namei.c iput(inode); inode 573 fs/udf/namei.c cfi.icb.extLength = cpu_to_le32(inode->i_sb->s_blocksize); inode 584 fs/udf/namei.c d_instantiate(dentry, inode); inode 592 fs/udf/namei.c struct inode *inode; inode 603 fs/udf/namei.c inode = udf_new_inode(dir, mode, &err); inode 604 fs/udf/namei.c if (!inode) inode 607 fs/udf/namei.c iinfo = UDF_I(inode); inode 608 fs/udf/namei.c inode->i_uid = current->fsuid; inode 609 fs/udf/namei.c init_special_inode(inode, mode, rdev); inode 612 fs/udf/namei.c inode->i_nlink--; inode 613 fs/udf/namei.c mark_inode_dirty(inode); inode 614 fs/udf/namei.c iput(inode); inode 618 fs/udf/namei.c cfi.icb.extLength = cpu_to_le32(inode->i_sb->s_blocksize); inode 625 fs/udf/namei.c mark_inode_dirty(inode); inode 630 fs/udf/namei.c d_instantiate(dentry, inode); inode 640 fs/udf/namei.c struct inode *inode; inode 653 fs/udf/namei.c inode = udf_new_inode(dir, S_IFDIR, &err); inode 654 fs/udf/namei.c if (!inode) inode 657 fs/udf/namei.c iinfo = UDF_I(inode); inode 658 fs/udf/namei.c inode->i_op = &udf_dir_inode_operations; inode 659 fs/udf/namei.c inode->i_fop = &udf_dir_operations; inode 660 fs/udf/namei.c fi = udf_add_entry(inode, NULL, &fibh, &cfi, &err); inode 662 fs/udf/namei.c inode->i_nlink--; inode 663 fs/udf/namei.c mark_inode_dirty(inode); inode 664 fs/udf/namei.c iput(inode); inode 667 fs/udf/namei.c inode->i_nlink = 2; inode 668 fs/udf/namei.c cfi.icb.extLength = cpu_to_le32(inode->i_sb->s_blocksize); inode 674 fs/udf/namei.c udf_write_fi(inode, &cfi, fi, &fibh, NULL, NULL); inode 676 fs/udf/namei.c inode->i_mode = S_IFDIR | mode; inode 678 fs/udf/namei.c inode->i_mode |= S_ISGID; inode 679 fs/udf/namei.c mark_inode_dirty(inode); inode 683 fs/udf/namei.c inode->i_nlink = 0; inode 684 fs/udf/namei.c mark_inode_dirty(inode); inode 685 fs/udf/namei.c iput(inode); inode 688 fs/udf/namei.c cfi.icb.extLength = cpu_to_le32(inode->i_sb->s_blocksize); inode 696 fs/udf/namei.c d_instantiate(dentry, inode); inode 779 fs/udf/namei.c struct inode *inode = dentry->d_inode; inode 792 fs/udf/namei.c if (udf_get_lb_pblock(dir->i_sb, tloc, 0) != inode->i_ino) inode 795 fs/udf/namei.c if (!empty_dir(inode)) inode 800 fs/udf/namei.c if (inode->i_nlink != 2) inode 801 fs/udf/namei.c udf_warning(inode->i_sb, "udf_rmdir", inode 803 fs/udf/namei.c inode->i_nlink); inode 804 fs/udf/namei.c clear_nlink(inode); inode 805 fs/udf/namei.c inode->i_size = 0; inode 807 fs/udf/namei.c inode->i_ctime = dir->i_ctime = dir->i_mtime = inode 824 fs/udf/namei.c struct inode *inode = dentry->d_inode; inode 838 fs/udf/namei.c if (udf_get_lb_pblock(dir->i_sb, tloc, 0) != inode->i_ino) inode 841 fs/udf/namei.c if (!inode->i_nlink) { inode 843 fs/udf/namei.c inode->i_ino, inode->i_nlink); inode 844 fs/udf/namei.c inode->i_nlink = 1; inode 851 fs/udf/namei.c inode_dec_link_count(inode); inode 852 fs/udf/namei.c inode->i_ctime = dir->i_ctime; inode 868 fs/udf/namei.c struct inode *inode; inode 885 fs/udf/namei.c inode = udf_new_inode(dir, S_IFLNK, &err); inode 886 fs/udf/namei.c if (!inode) inode 895 fs/udf/namei.c iinfo = UDF_I(inode); inode 896 fs/udf/namei.c inode->i_mode = S_IFLNK | S_IRWXUGO; inode 897 fs/udf/namei.c inode->i_data.a_ops = &udf_symlink_aops; inode 898 fs/udf/namei.c inode->i_op = &page_symlink_inode_operations; inode 904 fs/udf/namei.c block = udf_new_block(inode->i_sb, inode, inode 910 fs/udf/namei.c epos.offset = udf_file_entry_alloc_offset(inode); inode 915 fs/udf/namei.c bsize = inode->i_sb->s_blocksize; inode 917 fs/udf/namei.c udf_add_aext(inode, &epos, eloc, bsize, 0); inode 920 fs/udf/namei.c block = udf_get_pblock(inode->i_sb, block, inode 923 fs/udf/namei.c epos.bh = udf_tread(inode->i_sb, block); inode 925 fs/udf/namei.c memset(epos.bh->b_data, 0x00, inode->i_sb->s_blocksize); inode 928 fs/udf/namei.c mark_buffer_dirty_inode(epos.bh, inode); inode 929 fs/udf/namei.c ea = epos.bh->b_data + udf_ext0_offset(inode); inode 933 fs/udf/namei.c eoffset = inode->i_sb->s_blocksize - udf_ext0_offset(inode); inode 974 fs/udf/namei.c namelen = udf_put_filename(inode->i_sb, compstart, name, inode 998 fs/udf/namei.c inode->i_size = elen; inode 1000 fs/udf/namei.c iinfo->i_lenAlloc = inode->i_size; inode 1001 fs/udf/namei.c mark_inode_dirty(inode); inode 1006 fs/udf/namei.c cfi.icb.extLength = cpu_to_le32(inode->i_sb->s_blocksize); inode 1008 fs/udf/namei.c bh = UDF_SB(inode->i_sb)->s_lvid_bh; inode 1030 fs/udf/namei.c d_instantiate(dentry, inode); inode 1039 fs/udf/namei.c inode_dec_link_count(inode); inode 1040 fs/udf/namei.c iput(inode); inode 1047 fs/udf/namei.c struct inode *inode = old_dentry->d_inode; inode 1054 fs/udf/namei.c if (inode->i_nlink >= (256 << sizeof(inode->i_nlink)) - 1) { inode 1064 fs/udf/namei.c cfi.icb.extLength = cpu_to_le32(inode->i_sb->s_blocksize); inode 1065 fs/udf/namei.c cfi.icb.extLocation = cpu_to_lelb(UDF_I(inode)->i_location); inode 1066 fs/udf/namei.c bh = UDF_SB(inode->i_sb)->s_lvid_bh; inode 1089 fs/udf/namei.c inc_nlink(inode); inode 1090 fs/udf/namei.c inode->i_ctime = current_fs_time(inode->i_sb); inode 1091 fs/udf/namei.c mark_inode_dirty(inode); inode 1092 fs/udf/namei.c atomic_inc(&inode->i_count); inode 1093 fs/udf/namei.c d_instantiate(dentry, inode); inode 1105 fs/udf/namei.c struct inode *old_inode = old_dentry->d_inode; inode 1106 fs/udf/namei.c struct inode *new_inode = new_dentry->d_inode; inode 1247 fs/udf/namei.c struct inode *inode = NULL; inode 1263 fs/udf/namei.c inode = udf_iget(child->d_inode->i_sb, inode 1265 fs/udf/namei.c if (!inode) inode 1269 fs/udf/namei.c parent = d_alloc_anon(inode); inode 1271 fs/udf/namei.c iput(inode); inode 1285 fs/udf/namei.c struct inode *inode; inode 1294 fs/udf/namei.c inode = udf_iget(sb, loc); inode 1296 fs/udf/namei.c if (inode == NULL) inode 1299 fs/udf/namei.c if (generation && inode->i_generation != generation) { inode 1300 fs/udf/namei.c iput(inode); inode 1303 fs/udf/namei.c result = d_alloc_anon(inode); inode 1305 fs/udf/namei.c iput(inode); inode 1337 fs/udf/namei.c struct inode *inode = de->d_inode; inode 1338 fs/udf/namei.c kernel_lb_addr location = UDF_I(inode)->i_location; inode 1348 fs/udf/namei.c fid->udf.generation = inode->i_generation; inode 1350 fs/udf/namei.c if (connectable && !S_ISDIR(inode->i_mode)) { inode 1352 fs/udf/namei.c inode = de->d_parent->d_inode; inode 1353 fs/udf/namei.c location = UDF_I(inode)->i_location; inode 1356 fs/udf/namei.c fid->udf.parent_generation = inode->i_generation; inode 274 fs/udf/partition.c struct super_block *sb = inode->i_sb; inode 282 fs/udf/partition.c if (inode_bmap(inode, block, &epos, &eloc, &elen, &ext_offset) != inode 303 fs/udf/partition.c struct inode *inode; inode 309 fs/udf/partition.c inode = mdata->s_metadata_fe ? : mdata->s_mirror_fe; inode 312 fs/udf/partition.c BUG_ON(!inode); inode 313 fs/udf/partition.c retblk = udf_try_read_meta(inode, block, partition, offset); inode 317 fs/udf/partition.c inode = mdata->s_mirror_fe; inode 318 fs/udf/partition.c if (!inode) inode 320 fs/udf/partition.c retblk = udf_try_read_meta(inode, block, partition, offset); inode 130 fs/udf/super.c static struct inode *udf_alloc_inode(struct super_block *sb) inode 148 fs/udf/super.c kmem_cache_free(udf_inode_cachep, UDF_I(inode)); inode 1849 fs/udf/super.c struct inode *inode = NULL; inode 1994 fs/udf/super.c inode = udf_iget(sb, rootdir); inode 1995 fs/udf/super.c if (!inode) { inode 2003 fs/udf/super.c sb->s_root = d_alloc_root(inode); inode 2006 fs/udf/super.c iput(inode); inode 76 fs/udf/symlink.c struct inode *inode = page->mapping->host; inode 84 fs/udf/symlink.c iinfo = UDF_I(inode); inode 88 fs/udf/symlink.c bh = sb_bread(inode->i_sb, udf_block_map(inode, 0)); inode 96 fs/udf/symlink.c udf_pc_to_char(inode->i_sb, symlink, inode->i_size, p); inode 35 fs/udf/truncate.c int last_block = (elen + inode->i_sb->s_blocksize - 1) >> inode 36 fs/udf/truncate.c inode->i_sb->s_blocksize_bits; inode 37 fs/udf/truncate.c int first_block = (nelen + inode->i_sb->s_blocksize - 1) >> inode 38 fs/udf/truncate.c inode->i_sb->s_blocksize_bits; inode 42 fs/udf/truncate.c udf_free_blocks(inode->i_sb, inode, eloc, 0, inode 51 fs/udf/truncate.c udf_write_aext(inode, epos, neloc, nelen, 0); inode 54 fs/udf/truncate.c mark_inode_dirty(inode); inode 57 fs/udf/truncate.c udf_free_blocks(inode->i_sb, inode, eloc, inode 76 fs/udf/truncate.c struct udf_inode_info *iinfo = UDF_I(inode); inode 79 fs/udf/truncate.c inode->i_size == iinfo->i_lenExtents) inode 82 fs/udf/truncate.c if (inode->i_nlink == 0) inode 93 fs/udf/truncate.c while ((netype = udf_next_aext(inode, &epos, &eloc, &elen, 1)) != -1) { inode 96 fs/udf/truncate.c if (lbcount > inode->i_size) { inode 97 fs/udf/truncate.c if (lbcount - inode->i_size >= inode->i_sb->s_blocksize) inode 102 fs/udf/truncate.c (unsigned)inode->i_ino, inode 103 fs/udf/truncate.c (long long)inode->i_size, inode 107 fs/udf/truncate.c nelen = elen - (lbcount - inode->i_size); inode 109 fs/udf/truncate.c extent_trunc(inode, &epos, eloc, etype, elen, nelen); inode 111 fs/udf/truncate.c if (udf_next_aext(inode, &epos, &eloc, &elen, 1) != -1) inode 114 fs/udf/truncate.c (unsigned)inode->i_ino); inode 120 fs/udf/truncate.c iinfo->i_lenExtents = inode->i_size; inode 132 fs/udf/truncate.c struct udf_inode_info *iinfo = UDF_I(inode); inode 135 fs/udf/truncate.c inode->i_size == iinfo->i_lenExtents) inode 148 fs/udf/truncate.c while ((netype = udf_next_aext(inode, &epos, &eloc, &elen, 1)) != -1) { inode 155 fs/udf/truncate.c extent_trunc(inode, &epos, eloc, etype, elen, 0); inode 159 fs/udf/truncate.c udf_file_entry_alloc_offset(inode); inode 160 fs/udf/truncate.c mark_inode_dirty(inode); inode 167 fs/udf/truncate.c if (!UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_STRICT) || inode 168 fs/udf/truncate.c UDF_SB(inode->i_sb)->s_udfrev >= 0x0201) inode 173 fs/udf/truncate.c mark_buffer_dirty_inode(epos.bh, inode); inode 186 fs/udf/truncate.c struct super_block *sb = inode->i_sb; inode 197 fs/udf/truncate.c mark_buffer_dirty_inode(epos->bh, inode); inode 206 fs/udf/truncate.c struct super_block *sb = inode->i_sb; inode 207 fs/udf/truncate.c sector_t first_block = inode->i_size >> sb->s_blocksize_bits, offset; inode 210 fs/udf/truncate.c struct udf_inode_info *iinfo = UDF_I(inode); inode 219 fs/udf/truncate.c etype = inode_bmap(inode, first_block, &epos, &eloc, &elen, &offset); inode 221 fs/udf/truncate.c (inode->i_size & (sb->s_blocksize - 1)); inode 224 fs/udf/truncate.c extent_trunc(inode, &epos, eloc, etype, elen, byte_offset); inode 232 fs/udf/truncate.c lenalloc -= udf_file_entry_alloc_offset(inode); inode 236 fs/udf/truncate.c while ((etype = udf_current_aext(inode, &epos, &eloc, inode 239 fs/udf/truncate.c udf_write_aext(inode, &epos, neloc, nelen, 0); inode 244 fs/udf/truncate.c udf_free_blocks(sb, inode, epos.block, inode 248 fs/udf/truncate.c mark_inode_dirty(inode); inode 250 fs/udf/truncate.c udf_update_alloc_ext_desc(inode, inode 264 fs/udf/truncate.c extent_trunc(inode, &epos, eloc, etype, inode 272 fs/udf/truncate.c udf_free_blocks(sb, inode, epos.block, 0, inode 276 fs/udf/truncate.c mark_inode_dirty(inode); inode 278 fs/udf/truncate.c udf_update_alloc_ext_desc(inode, &epos, lenalloc); inode 279 fs/udf/truncate.c } else if (inode->i_size) { inode 290 fs/udf/truncate.c udf_file_entry_alloc_offset(inode)) || inode 301 fs/udf/truncate.c etype = udf_next_aext(inode, &epos, inode 306 fs/udf/truncate.c udf_extend_file(inode, &epos, &extent, inode 308 fs/udf/truncate.c ((inode->i_size & inode 312 fs/udf/truncate.c iinfo->i_lenExtents = inode->i_size; inode 24 fs/udf/udf_i.h struct inode vfs_inode; inode 29 fs/udf/udf_i.h return list_entry(inode, struct udf_inode_info, vfs_inode); inode 60 fs/udf/udf_sb.h struct inode *s_metadata_fe; inode 61 fs/udf/udf_sb.h struct inode *s_mirror_fe; inode 62 fs/udf/udf_sb.h struct inode *s_bitmap_fe; inode 85 fs/udf/udf_sb.h struct inode *s_table; inode 89 fs/udf/udf_sb.h struct inode *s_table; inode 143 fs/udf/udf_sb.h struct inode *s_vat_inode; inode 48 fs/udf/udfdecl.h struct udf_inode_info *iinfo = UDF_I(inode); inode 59 fs/udf/udfdecl.h if (UDF_I(inode)->i_alloc_type == ICBTAG_FLAG_AD_IN_ICB) inode 60 fs/udf/udfdecl.h return udf_file_entry_alloc_offset(inode); inode 71 fs/udf/udfdecl.h struct inode; inode 127 fs/udf/udfdecl.h extern struct inode *udf_iget(struct super_block *, kernel_lb_addr); inode 194 fs/udf/udfdecl.h extern struct inode *udf_new_inode(struct inode *, int, int *); inode 48 fs/ufs/balloc.c sb = inode->i_sb; inode 88 fs/ufs/balloc.c DQUOT_FREE_BLOCK (inode, count); inode 150 fs/ufs/balloc.c sb = inode->i_sb; inode 198 fs/ufs/balloc.c DQUOT_FREE_BLOCK(inode, uspi->s_fpb); inode 253 fs/ufs/balloc.c 1 << (PAGE_CACHE_SHIFT - inode->i_blkbits); inode 255 fs/ufs/balloc.c struct address_space * const mapping = inode->i_mapping; inode 263 fs/ufs/balloc.c inode->i_ino, count, inode 271 fs/ufs/balloc.c last_index = end >> (PAGE_CACHE_SHIFT - inode->i_blkbits); inode 273 fs/ufs/balloc.c index = i >> (PAGE_CACHE_SHIFT - inode->i_blkbits); inode 280 fs/ufs/balloc.c ufs_error(inode->i_sb, __func__, inode 306 fs/ufs/balloc.c map_bh(bh, inode->i_sb, oldb + pos); inode 311 fs/ufs/balloc.c ufs_error(inode->i_sb, __func__, inode 342 fs/ufs/balloc.c bh = sb_getblk(inode->i_sb, beg); inode 344 fs/ufs/balloc.c memset(bh->b_data, 0, inode->i_sb->s_blocksize); inode 348 fs/ufs/balloc.c if (IS_SYNC(inode) || sync) inode 365 fs/ufs/balloc.c inode->i_ino, (unsigned long long)fragment, inode 368 fs/ufs/balloc.c sb = inode->i_sb; inode 397 fs/ufs/balloc.c if (fragment < UFS_I(inode)->i_lastfrag) { inode 423 fs/ufs/balloc.c cgno = ufs_inotocg (inode->i_ino); inode 431 fs/ufs/balloc.c result = ufs_alloc_fragments (inode, cgno, goal, count, err); inode 435 fs/ufs/balloc.c UFS_I(inode)->i_lastfrag = inode 436 fs/ufs/balloc.c max_t(u32, UFS_I(inode)->i_lastfrag, inode 438 fs/ufs/balloc.c ufs_clear_frags(inode, result + oldcount, inode 449 fs/ufs/balloc.c result = ufs_add_fragments (inode, tmp, oldcount, newcount, err); inode 452 fs/ufs/balloc.c UFS_I(inode)->i_lastfrag = max_t(u32, UFS_I(inode)->i_lastfrag, fragment + count); inode 453 fs/ufs/balloc.c ufs_clear_frags(inode, result + oldcount, newcount - oldcount, inode 482 fs/ufs/balloc.c result = ufs_alloc_fragments (inode, cgno, goal, request, err); inode 484 fs/ufs/balloc.c ufs_clear_frags(inode, result + oldcount, newcount - oldcount, inode 486 fs/ufs/balloc.c ufs_change_blocknr(inode, fragment - oldcount, oldcount, inode 491 fs/ufs/balloc.c UFS_I(inode)->i_lastfrag = max_t(u32, UFS_I(inode)->i_lastfrag, fragment + count); inode 494 fs/ufs/balloc.c ufs_free_fragments (inode, result + newcount, request - newcount); inode 495 fs/ufs/balloc.c ufs_free_fragments (inode, tmp, oldcount); inode 518 fs/ufs/balloc.c sb = inode->i_sb; inode 559 fs/ufs/balloc.c if(DQUOT_ALLOC_BLOCK(inode, count)) { inode 601 fs/ufs/balloc.c inode->i_ino, cgno, (unsigned long long)goal, count); inode 603 fs/ufs/balloc.c sb = inode->i_sb; inode 649 fs/ufs/balloc.c result = ufs_alloccg_block (inode, ucpi, goal, err); inode 660 fs/ufs/balloc.c result = ufs_alloccg_block (inode, ucpi, goal, err); inode 667 fs/ufs/balloc.c DQUOT_FREE_BLOCK(inode, i); inode 679 fs/ufs/balloc.c if(DQUOT_ALLOC_BLOCK(inode, count)) { inode 720 fs/ufs/balloc.c sb = inode->i_sb; inode 750 fs/ufs/balloc.c if(DQUOT_ALLOC_BLOCK(inode, uspi->s_fpb)) { inode 46 fs/ufs/dir.c struct inode *dir = mapping->host; inode 70 fs/ufs/dir.c return (inode->i_size+PAGE_CACHE_SIZE-1)>>PAGE_CACHE_SHIFT; inode 102 fs/ufs/dir.c de->d_ino = cpu_to_fs32(dir->i_sb, inode->i_ino); inode 103 fs/ufs/dir.c ufs_set_de_type(dir->i_sb, de, inode->i_mode); inode 114 fs/ufs/dir.c struct inode *dir = page->mapping->host; inode 216 fs/ufs/dir.c unsigned last_byte = inode->i_size; inode 315 fs/ufs/dir.c struct inode *dir = dentry->d_parent->d_inode; inode 399 fs/ufs/dir.c de->d_ino = cpu_to_fs32(sb, inode->i_ino); inode 400 fs/ufs/dir.c ufs_set_de_type(sb, de, inode->i_mode); inode 438 fs/ufs/dir.c struct inode *inode = filp->f_path.dentry->d_inode; inode 439 fs/ufs/dir.c struct super_block *sb = inode->i_sb; inode 442 fs/ufs/dir.c unsigned long npages = ufs_dir_pages(inode); inode 444 fs/ufs/dir.c int need_revalidate = filp->f_version != inode->i_version; inode 449 fs/ufs/dir.c if (pos > inode->i_size - UFS_DIR_REC_LEN(1)) inode 456 fs/ufs/dir.c struct page *page = ufs_get_page(inode, n); inode 461 fs/ufs/dir.c inode->i_ino); inode 471 fs/ufs/dir.c filp->f_version = inode->i_version; inode 475 fs/ufs/dir.c limit = kaddr + ufs_last_byte(inode, n) - UFS_DIR_REC_LEN(1); inode 520 fs/ufs/dir.c struct super_block *sb = inode->i_sb; inode 539 fs/ufs/dir.c ufs_error(inode->i_sb, __func__, inode 559 fs/ufs/dir.c inode->i_ctime = inode->i_mtime = CURRENT_TIME_SEC; inode 560 fs/ufs/dir.c mark_inode_dirty(inode); inode 570 fs/ufs/dir.c struct address_space *mapping = inode->i_mapping; inode 593 fs/ufs/dir.c de->d_ino = cpu_to_fs32(sb, inode->i_ino); inode 594 fs/ufs/dir.c ufs_set_de_type(sb, de, inode->i_mode); inode 618 fs/ufs/dir.c struct super_block *sb = inode->i_sb; inode 620 fs/ufs/dir.c unsigned long i, npages = ufs_dir_pages(inode); inode 625 fs/ufs/dir.c page = ufs_get_page(inode, i); inode 632 fs/ufs/dir.c kaddr += ufs_last_byte(inode, i) - UFS_DIR_REC_LEN(1); inode 636 fs/ufs/dir.c ufs_error(inode->i_sb, __func__, inode 649 fs/ufs/dir.c if (inode->i_ino != inode 35 fs/ufs/file.c struct inode *inode = dentry->d_inode; inode 39 fs/ufs/file.c ret = sync_mapping_buffers(inode->i_mapping); inode 40 fs/ufs/file.c if (!(inode->i_state & I_DIRTY)) inode 42 fs/ufs/file.c if (datasync && !(inode->i_state & I_DIRTY_DATASYNC)) inode 45 fs/ufs/file.c err = ufs_sync_inode(inode); inode 67 fs/ufs/ialloc.c UFSD("ENTER, ino %lu\n", inode->i_ino); inode 69 fs/ufs/ialloc.c sb = inode->i_sb; inode 73 fs/ufs/ialloc.c ino = inode->i_ino; inode 96 fs/ufs/ialloc.c is_directory = S_ISDIR(inode->i_mode); inode 98 fs/ufs/ialloc.c DQUOT_FREE_INODE(inode); inode 99 fs/ufs/ialloc.c DQUOT_DROP(inode); inode 101 fs/ufs/ialloc.c clear_inode (inode); inode 183 fs/ufs/ialloc.c struct inode * ufs_new_inode(struct inode * dir, int mode) inode 191 fs/ufs/ialloc.c struct inode * inode; inode 202 fs/ufs/ialloc.c inode = new_inode(sb); inode 203 fs/ufs/ialloc.c if (!inode) inode 205 fs/ufs/ialloc.c ufsi = UFS_I(inode); inode 305 fs/ufs/ialloc.c inode->i_ino = cg * uspi->s_ipg + bit; inode 306 fs/ufs/ialloc.c inode->i_mode = mode; inode 307 fs/ufs/ialloc.c inode->i_uid = current->fsuid; inode 309 fs/ufs/ialloc.c inode->i_gid = dir->i_gid; inode 311 fs/ufs/ialloc.c inode->i_mode |= S_ISGID; inode 313 fs/ufs/ialloc.c inode->i_gid = current->fsgid; inode 315 fs/ufs/ialloc.c inode->i_blocks = 0; inode 316 fs/ufs/ialloc.c inode->i_generation = 0; inode 317 fs/ufs/ialloc.c inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; inode 325 fs/ufs/ialloc.c insert_inode_hash(inode); inode 326 fs/ufs/ialloc.c mark_inode_dirty(inode); inode 336 fs/ufs/ialloc.c bh = sb_bread(sb, uspi->s_sbbase + ufs_inotofsba(inode->i_ino)); inode 340 fs/ufs/ialloc.c inode->i_ino); inode 346 fs/ufs/ialloc.c ufs2_inode += ufs_inotofsbo(inode->i_ino); inode 358 fs/ufs/ialloc.c if (DQUOT_ALLOC_INODE(inode)) { inode 359 fs/ufs/ialloc.c DQUOT_DROP(inode); inode 364 fs/ufs/ialloc.c UFSD("allocating inode %lu\n", inode->i_ino); inode 366 fs/ufs/ialloc.c return inode; inode 371 fs/ufs/ialloc.c inode->i_flags |= S_NOQUOTA; inode 372 fs/ufs/ialloc.c inode->i_nlink = 0; inode 373 fs/ufs/ialloc.c iput(inode); inode 378 fs/ufs/ialloc.c make_bad_inode(inode); inode 379 fs/ufs/ialloc.c iput (inode); inode 49 fs/ufs/inode.c struct ufs_sb_private_info *uspi = UFS_SB(inode->i_sb)->s_uspi; inode 60 fs/ufs/inode.c ufs_warning(inode->i_sb, "ufs_block_to_path", "block < 0"); inode 76 fs/ufs/inode.c ufs_warning(inode->i_sb, "ufs_block_to_path", "block > big"); inode 88 fs/ufs/inode.c struct ufs_inode_info *ufsi = UFS_I(inode); inode 89 fs/ufs/inode.c struct super_block *sb = inode->i_sb; inode 94 fs/ufs/inode.c int depth = ufs_block_to_path(inode, frag >> uspi->s_fpbshift, offsets); inode 178 fs/ufs/inode.c struct ufs_inode_info *ufsi = UFS_I(inode); inode 179 fs/ufs/inode.c struct super_block *sb = inode->i_sb; inode 187 fs/ufs/inode.c "metadata %d\n", inode->i_ino, (unsigned long long)fragment, inode 232 fs/ufs/inode.c tmp = ufs_new_fragments(inode, p2, lastfrag, inode 250 fs/ufs/inode.c tmp = ufs_new_fragments (inode, p, fragment - blockoff, inode 258 fs/ufs/inode.c tmp = ufs_new_fragments(inode, p, fragment - inode 273 fs/ufs/inode.c tmp = ufs_new_fragments(inode, p, fragment - blockoff, inode 294 fs/ufs/inode.c inode->i_ctime = CURRENT_TIME_SEC; inode 295 fs/ufs/inode.c if (IS_SYNC(inode)) inode 296 fs/ufs/inode.c ufs_sync_inode (inode); inode 297 fs/ufs/inode.c mark_inode_dirty(inode); inode 335 fs/ufs/inode.c struct super_block *sb = inode->i_sb; inode 346 fs/ufs/inode.c inode->i_ino, (unsigned long long)fragment, inode 383 fs/ufs/inode.c tmp = ufs_new_fragments(inode, p, ufs_blknum(new_fragment), goal, inode 400 fs/ufs/inode.c if (IS_SYNC(inode)) inode 402 fs/ufs/inode.c inode->i_ctime = CURRENT_TIME_SEC; inode 403 fs/ufs/inode.c mark_inode_dirty(inode); inode 418 fs/ufs/inode.c struct super_block * sb = inode->i_sb; inode 426 fs/ufs/inode.c phys64 = ufs_frag_map(inode, fragment); inode 442 fs/ufs/inode.c UFSD("ENTER, ino %lu, fragment %llu\n", inode->i_ino, (unsigned long long)fragment); inode 458 fs/ufs/inode.c ufs_inode_getfrag(inode, x, fragment, 1, &err, &phys, &new,\ inode 461 fs/ufs/inode.c ufs_inode_getfrag(inode, x, fragment, uspi->s_fpb, &err, NULL, NULL,\ inode 464 fs/ufs/inode.c ufs_inode_getblock(inode, bh, x, fragment, \ inode 467 fs/ufs/inode.c ufs_inode_getblock(inode, bh, x, fragment, \ inode 525 fs/ufs/inode.c error = ufs_getfrag_block(inode, fragment, &dummy, create); inode 529 fs/ufs/inode.c bh = sb_getblk(inode->i_sb, dummy.b_blocknr); inode 531 fs/ufs/inode.c memset(bh->b_data, 0, inode->i_sb->s_blocksize); inode 545 fs/ufs/inode.c UFSD("ENTER, ino %lu, fragment %u\n", inode->i_ino, fragment); inode 546 fs/ufs/inode.c bh = ufs_getfrag (inode, fragment, create, err); inode 600 fs/ufs/inode.c if (S_ISREG(inode->i_mode)) { inode 601 fs/ufs/inode.c inode->i_op = &ufs_file_inode_operations; inode 602 fs/ufs/inode.c inode->i_fop = &ufs_file_operations; inode 603 fs/ufs/inode.c inode->i_mapping->a_ops = &ufs_aops; inode 604 fs/ufs/inode.c } else if (S_ISDIR(inode->i_mode)) { inode 605 fs/ufs/inode.c inode->i_op = &ufs_dir_inode_operations; inode 606 fs/ufs/inode.c inode->i_fop = &ufs_dir_operations; inode 607 fs/ufs/inode.c inode->i_mapping->a_ops = &ufs_aops; inode 608 fs/ufs/inode.c } else if (S_ISLNK(inode->i_mode)) { inode 609 fs/ufs/inode.c if (!inode->i_blocks) inode 610 fs/ufs/inode.c inode->i_op = &ufs_fast_symlink_inode_operations; inode 612 fs/ufs/inode.c inode->i_op = &page_symlink_inode_operations; inode 613 fs/ufs/inode.c inode->i_mapping->a_ops = &ufs_aops; inode 616 fs/ufs/inode.c init_special_inode(inode, inode->i_mode, inode 617 fs/ufs/inode.c ufs_get_inode_dev(inode->i_sb, UFS_I(inode))); inode 622 fs/ufs/inode.c struct ufs_inode_info *ufsi = UFS_I(inode); inode 623 fs/ufs/inode.c struct super_block *sb = inode->i_sb; inode 630 fs/ufs/inode.c inode->i_mode = mode = fs16_to_cpu(sb, ufs_inode->ui_mode); inode 631 fs/ufs/inode.c inode->i_nlink = fs16_to_cpu(sb, ufs_inode->ui_nlink); inode 632 fs/ufs/inode.c if (inode->i_nlink == 0) { inode 633 fs/ufs/inode.c ufs_error (sb, "ufs_read_inode", "inode %lu has zero nlink\n", inode->i_ino); inode 640 fs/ufs/inode.c inode->i_uid = ufs_get_inode_uid(sb, ufs_inode); inode 641 fs/ufs/inode.c inode->i_gid = ufs_get_inode_gid(sb, ufs_inode); inode 643 fs/ufs/inode.c inode->i_size = fs64_to_cpu(sb, ufs_inode->ui_size); inode 644 fs/ufs/inode.c inode->i_atime.tv_sec = fs32_to_cpu(sb, ufs_inode->ui_atime.tv_sec); inode 645 fs/ufs/inode.c inode->i_ctime.tv_sec = fs32_to_cpu(sb, ufs_inode->ui_ctime.tv_sec); inode 646 fs/ufs/inode.c inode->i_mtime.tv_sec = fs32_to_cpu(sb, ufs_inode->ui_mtime.tv_sec); inode 647 fs/ufs/inode.c inode->i_mtime.tv_nsec = 0; inode 648 fs/ufs/inode.c inode->i_atime.tv_nsec = 0; inode 649 fs/ufs/inode.c inode->i_ctime.tv_nsec = 0; inode 650 fs/ufs/inode.c inode->i_blocks = fs32_to_cpu(sb, ufs_inode->ui_blocks); inode 651 fs/ufs/inode.c inode->i_generation = fs32_to_cpu(sb, ufs_inode->ui_gen); inode 657 fs/ufs/inode.c if (S_ISCHR(mode) || S_ISBLK(mode) || inode->i_blocks) { inode 669 fs/ufs/inode.c struct ufs_inode_info *ufsi = UFS_I(inode); inode 670 fs/ufs/inode.c struct super_block *sb = inode->i_sb; inode 674 fs/ufs/inode.c UFSD("Reading ufs2 inode, ino %lu\n", inode->i_ino); inode 678 fs/ufs/inode.c inode->i_mode = mode = fs16_to_cpu(sb, ufs2_inode->ui_mode); inode 679 fs/ufs/inode.c inode->i_nlink = fs16_to_cpu(sb, ufs2_inode->ui_nlink); inode 680 fs/ufs/inode.c if (inode->i_nlink == 0) { inode 681 fs/ufs/inode.c ufs_error (sb, "ufs_read_inode", "inode %lu has zero nlink\n", inode->i_ino); inode 688 fs/ufs/inode.c inode->i_uid = fs32_to_cpu(sb, ufs2_inode->ui_uid); inode 689 fs/ufs/inode.c inode->i_gid = fs32_to_cpu(sb, ufs2_inode->ui_gid); inode 691 fs/ufs/inode.c inode->i_size = fs64_to_cpu(sb, ufs2_inode->ui_size); inode 692 fs/ufs/inode.c inode->i_atime.tv_sec = fs64_to_cpu(sb, ufs2_inode->ui_atime); inode 693 fs/ufs/inode.c inode->i_ctime.tv_sec = fs64_to_cpu(sb, ufs2_inode->ui_ctime); inode 694 fs/ufs/inode.c inode->i_mtime.tv_sec = fs64_to_cpu(sb, ufs2_inode->ui_mtime); inode 695 fs/ufs/inode.c inode->i_atime.tv_nsec = fs32_to_cpu(sb, ufs2_inode->ui_atimensec); inode 696 fs/ufs/inode.c inode->i_ctime.tv_nsec = fs32_to_cpu(sb, ufs2_inode->ui_ctimensec); inode 697 fs/ufs/inode.c inode->i_mtime.tv_nsec = fs32_to_cpu(sb, ufs2_inode->ui_mtimensec); inode 698 fs/ufs/inode.c inode->i_blocks = fs64_to_cpu(sb, ufs2_inode->ui_blocks); inode 699 fs/ufs/inode.c inode->i_generation = fs32_to_cpu(sb, ufs2_inode->ui_gen); inode 706 fs/ufs/inode.c if (S_ISCHR(mode) || S_ISBLK(mode) || inode->i_blocks) { inode 717 fs/ufs/inode.c struct inode *ufs_iget(struct super_block *sb, unsigned long ino) inode 722 fs/ufs/inode.c struct inode *inode; inode 733 fs/ufs/inode.c inode = iget_locked(sb, ino); inode 734 fs/ufs/inode.c if (!inode) inode 736 fs/ufs/inode.c if (!(inode->i_state & I_NEW)) inode 737 fs/ufs/inode.c return inode; inode 739 fs/ufs/inode.c ufsi = UFS_I(inode); inode 741 fs/ufs/inode.c bh = sb_bread(sb, uspi->s_sbbase + ufs_inotofsba(inode->i_ino)); inode 744 fs/ufs/inode.c inode->i_ino); inode 750 fs/ufs/inode.c err = ufs2_read_inode(inode, inode 751 fs/ufs/inode.c ufs2_inode + ufs_inotofsbo(inode->i_ino)); inode 755 fs/ufs/inode.c err = ufs1_read_inode(inode, inode 756 fs/ufs/inode.c ufs_inode + ufs_inotofsbo(inode->i_ino)); inode 761 fs/ufs/inode.c inode->i_version++; inode 763 fs/ufs/inode.c (inode->i_size + uspi->s_fsize - 1) >> uspi->s_fshift; inode 767 fs/ufs/inode.c ufs_set_inode_ops(inode); inode 772 fs/ufs/inode.c unlock_new_inode(inode); inode 773 fs/ufs/inode.c return inode; inode 776 fs/ufs/inode.c iget_failed(inode); inode 782 fs/ufs/inode.c struct super_block *sb = inode->i_sb; inode 783 fs/ufs/inode.c struct ufs_inode_info *ufsi = UFS_I(inode); inode 786 fs/ufs/inode.c ufs_inode->ui_mode = cpu_to_fs16(sb, inode->i_mode); inode 787 fs/ufs/inode.c ufs_inode->ui_nlink = cpu_to_fs16(sb, inode->i_nlink); inode 789 fs/ufs/inode.c ufs_set_inode_uid(sb, ufs_inode, inode->i_uid); inode 790 fs/ufs/inode.c ufs_set_inode_gid(sb, ufs_inode, inode->i_gid); inode 792 fs/ufs/inode.c ufs_inode->ui_size = cpu_to_fs64(sb, inode->i_size); inode 793 fs/ufs/inode.c ufs_inode->ui_atime.tv_sec = cpu_to_fs32(sb, inode->i_atime.tv_sec); inode 795 fs/ufs/inode.c ufs_inode->ui_ctime.tv_sec = cpu_to_fs32(sb, inode->i_ctime.tv_sec); inode 797 fs/ufs/inode.c ufs_inode->ui_mtime.tv_sec = cpu_to_fs32(sb, inode->i_mtime.tv_sec); inode 799 fs/ufs/inode.c ufs_inode->ui_blocks = cpu_to_fs32(sb, inode->i_blocks); inode 801 fs/ufs/inode.c ufs_inode->ui_gen = cpu_to_fs32(sb, inode->i_generation); inode 808 fs/ufs/inode.c if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) { inode 811 fs/ufs/inode.c } else if (inode->i_blocks) { inode 820 fs/ufs/inode.c if (!inode->i_nlink) inode 826 fs/ufs/inode.c struct super_block *sb = inode->i_sb; inode 827 fs/ufs/inode.c struct ufs_inode_info *ufsi = UFS_I(inode); inode 831 fs/ufs/inode.c ufs_inode->ui_mode = cpu_to_fs16(sb, inode->i_mode); inode 832 fs/ufs/inode.c ufs_inode->ui_nlink = cpu_to_fs16(sb, inode->i_nlink); inode 834 fs/ufs/inode.c ufs_inode->ui_uid = cpu_to_fs32(sb, inode->i_uid); inode 835 fs/ufs/inode.c ufs_inode->ui_gid = cpu_to_fs32(sb, inode->i_gid); inode 837 fs/ufs/inode.c ufs_inode->ui_size = cpu_to_fs64(sb, inode->i_size); inode 838 fs/ufs/inode.c ufs_inode->ui_atime = cpu_to_fs64(sb, inode->i_atime.tv_sec); inode 839 fs/ufs/inode.c ufs_inode->ui_atimensec = cpu_to_fs32(sb, inode->i_atime.tv_nsec); inode 840 fs/ufs/inode.c ufs_inode->ui_ctime = cpu_to_fs64(sb, inode->i_ctime.tv_sec); inode 841 fs/ufs/inode.c ufs_inode->ui_ctimensec = cpu_to_fs32(sb, inode->i_ctime.tv_nsec); inode 842 fs/ufs/inode.c ufs_inode->ui_mtime = cpu_to_fs64(sb, inode->i_mtime.tv_sec); inode 843 fs/ufs/inode.c ufs_inode->ui_mtimensec = cpu_to_fs32(sb, inode->i_mtime.tv_nsec); inode 845 fs/ufs/inode.c ufs_inode->ui_blocks = cpu_to_fs64(sb, inode->i_blocks); inode 847 fs/ufs/inode.c ufs_inode->ui_gen = cpu_to_fs32(sb, inode->i_generation); inode 849 fs/ufs/inode.c if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) { inode 852 fs/ufs/inode.c } else if (inode->i_blocks) { inode 860 fs/ufs/inode.c if (!inode->i_nlink) inode 867 fs/ufs/inode.c struct super_block *sb = inode->i_sb; inode 871 fs/ufs/inode.c UFSD("ENTER, ino %lu\n", inode->i_ino); inode 873 fs/ufs/inode.c if (inode->i_ino < UFS_ROOTINO || inode 874 fs/ufs/inode.c inode->i_ino > (uspi->s_ncg * uspi->s_ipg)) { inode 875 fs/ufs/inode.c ufs_warning (sb, "ufs_read_inode", "bad inode number (%lu)\n", inode->i_ino); inode 879 fs/ufs/inode.c bh = sb_bread(sb, ufs_inotofsba(inode->i_ino)); inode 881 fs/ufs/inode.c ufs_warning (sb, "ufs_read_inode", "unable to read inode %lu\n", inode->i_ino); inode 887 fs/ufs/inode.c ufs2_update_inode(inode, inode 888 fs/ufs/inode.c ufs2_inode + ufs_inotofsbo(inode->i_ino)); inode 892 fs/ufs/inode.c ufs1_update_inode(inode, ufs_inode + ufs_inotofsbo(inode->i_ino)); inode 908 fs/ufs/inode.c ret = ufs_update_inode (inode, wait); inode 915 fs/ufs/inode.c return ufs_update_inode (inode, 1); inode 922 fs/ufs/inode.c truncate_inode_pages(&inode->i_data, 0); inode 923 fs/ufs/inode.c if (is_bad_inode(inode)) inode 927 fs/ufs/inode.c mark_inode_dirty(inode); inode 928 fs/ufs/inode.c ufs_update_inode(inode, IS_SYNC(inode)); inode 929 fs/ufs/inode.c old_i_size = inode->i_size; inode 930 fs/ufs/inode.c inode->i_size = 0; inode 931 fs/ufs/inode.c if (inode->i_blocks && ufs_truncate(inode, old_i_size)) inode 932 fs/ufs/inode.c ufs_warning(inode->i_sb, __func__, "ufs_truncate failed\n"); inode 933 fs/ufs/inode.c ufs_free_inode (inode); inode 937 fs/ufs/inode.c clear_inode(inode); /* We must guarantee clearing of inode... */ inode 40 fs/ufs/namei.c int err = ufs_add_link(dentry, inode); inode 42 fs/ufs/namei.c d_instantiate(dentry, inode); inode 45 fs/ufs/namei.c inode_dec_link_count(inode); inode 46 fs/ufs/namei.c iput(inode); inode 52 fs/ufs/namei.c struct inode * inode = NULL; inode 61 fs/ufs/namei.c inode = ufs_iget(dir->i_sb, ino); inode 62 fs/ufs/namei.c if (IS_ERR(inode)) { inode 64 fs/ufs/namei.c return ERR_CAST(inode); inode 68 fs/ufs/namei.c d_add(dentry, inode); inode 83 fs/ufs/namei.c struct inode *inode; inode 87 fs/ufs/namei.c inode = ufs_new_inode(dir, mode); inode 88 fs/ufs/namei.c err = PTR_ERR(inode); inode 90 fs/ufs/namei.c if (!IS_ERR(inode)) { inode 91 fs/ufs/namei.c inode->i_op = &ufs_file_inode_operations; inode 92 fs/ufs/namei.c inode->i_fop = &ufs_file_operations; inode 93 fs/ufs/namei.c inode->i_mapping->a_ops = &ufs_aops; inode 94 fs/ufs/namei.c mark_inode_dirty(inode); inode 96 fs/ufs/namei.c err = ufs_add_nondir(dentry, inode); inode 105 fs/ufs/namei.c struct inode *inode; inode 110 fs/ufs/namei.c inode = ufs_new_inode(dir, mode); inode 111 fs/ufs/namei.c err = PTR_ERR(inode); inode 112 fs/ufs/namei.c if (!IS_ERR(inode)) { inode 113 fs/ufs/namei.c init_special_inode(inode, mode, rdev); inode 114 fs/ufs/namei.c ufs_set_inode_dev(inode->i_sb, UFS_I(inode), rdev); inode 115 fs/ufs/namei.c mark_inode_dirty(inode); inode 117 fs/ufs/namei.c err = ufs_add_nondir(dentry, inode); inode 129 fs/ufs/namei.c struct inode * inode; inode 135 fs/ufs/namei.c inode = ufs_new_inode(dir, S_IFLNK | S_IRWXUGO); inode 136 fs/ufs/namei.c err = PTR_ERR(inode); inode 137 fs/ufs/namei.c if (IS_ERR(inode)) inode 142 fs/ufs/namei.c inode->i_op = &page_symlink_inode_operations; inode 143 fs/ufs/namei.c inode->i_mapping->a_ops = &ufs_aops; inode 144 fs/ufs/namei.c err = page_symlink(inode, symname, l); inode 149 fs/ufs/namei.c inode->i_op = &ufs_fast_symlink_inode_operations; inode 150 fs/ufs/namei.c memcpy((char*)&UFS_I(inode)->i_u1.i_data,symname,l); inode 151 fs/ufs/namei.c inode->i_size = l-1; inode 153 fs/ufs/namei.c mark_inode_dirty(inode); inode 155 fs/ufs/namei.c err = ufs_add_nondir(dentry, inode); inode 162 fs/ufs/namei.c inode_dec_link_count(inode); inode 163 fs/ufs/namei.c iput(inode); inode 170 fs/ufs/namei.c struct inode *inode = old_dentry->d_inode; inode 174 fs/ufs/namei.c if (inode->i_nlink >= UFS_LINK_MAX) { inode 179 fs/ufs/namei.c inode->i_ctime = CURRENT_TIME_SEC; inode 180 fs/ufs/namei.c inode_inc_link_count(inode); inode 181 fs/ufs/namei.c atomic_inc(&inode->i_count); inode 183 fs/ufs/namei.c error = ufs_add_nondir(dentry, inode); inode 190 fs/ufs/namei.c struct inode * inode; inode 199 fs/ufs/namei.c inode = ufs_new_inode(dir, S_IFDIR|mode); inode 200 fs/ufs/namei.c err = PTR_ERR(inode); inode 201 fs/ufs/namei.c if (IS_ERR(inode)) inode 204 fs/ufs/namei.c inode->i_op = &ufs_dir_inode_operations; inode 205 fs/ufs/namei.c inode->i_fop = &ufs_dir_operations; inode 206 fs/ufs/namei.c inode->i_mapping->a_ops = &ufs_aops; inode 208 fs/ufs/namei.c inode_inc_link_count(inode); inode 210 fs/ufs/namei.c err = ufs_make_empty(inode, dir); inode 214 fs/ufs/namei.c err = ufs_add_link(dentry, inode); inode 219 fs/ufs/namei.c d_instantiate(dentry, inode); inode 224 fs/ufs/namei.c inode_dec_link_count(inode); inode 225 fs/ufs/namei.c inode_dec_link_count(inode); inode 226 fs/ufs/namei.c iput (inode); inode 235 fs/ufs/namei.c struct inode * inode = dentry->d_inode; inode 248 fs/ufs/namei.c inode->i_ctime = dir->i_ctime; inode 249 fs/ufs/namei.c inode_dec_link_count(inode); inode 257 fs/ufs/namei.c struct inode * inode = dentry->d_inode; inode 261 fs/ufs/namei.c if (ufs_empty_dir (inode)) { inode 264 fs/ufs/namei.c inode->i_size = 0; inode 265 fs/ufs/namei.c inode_dec_link_count(inode); inode 276 fs/ufs/namei.c struct inode *old_inode = old_dentry->d_inode; inode 277 fs/ufs/namei.c struct inode *new_inode = new_dentry->d_inode; inode 635 fs/ufs/super.c struct inode *inode; inode 1072 fs/ufs/super.c inode = ufs_iget(sb, UFS_ROOTINO); inode 1073 fs/ufs/super.c if (IS_ERR(inode)) { inode 1074 fs/ufs/super.c ret = PTR_ERR(inode); inode 1077 fs/ufs/super.c sb->s_root = d_alloc_root(inode); inode 1095 fs/ufs/super.c iput(inode); inode 1290 fs/ufs/super.c static struct inode *ufs_alloc_inode(struct super_block *sb) inode 1302 fs/ufs/super.c kmem_cache_free(ufs_inode_cachep, UFS_I(inode)); inode 1359 fs/ufs/super.c struct inode *inode = sb_dqopt(sb)->files[type]; inode 1366 fs/ufs/super.c loff_t i_size = i_size_read(inode); inode 1377 fs/ufs/super.c bh = ufs_bread(inode, blk, 0, &err); inode 1398 fs/ufs/super.c struct inode *inode = sb_dqopt(sb)->files[type]; inode 1406 fs/ufs/super.c mutex_lock_nested(&inode->i_mutex, I_MUTEX_QUOTA); inode 1411 fs/ufs/super.c bh = ufs_bread(inode, blk, 1, &err); inode 1428 fs/ufs/super.c mutex_unlock(&inode->i_mutex); inode 1431 fs/ufs/super.c if (inode->i_size < off+len-towrite) inode 1432 fs/ufs/super.c i_size_write(inode, off+len-towrite); inode 1433 fs/ufs/super.c inode->i_version++; inode 1434 fs/ufs/super.c inode->i_mtime = inode->i_ctime = CURRENT_TIME_SEC; inode 1435 fs/ufs/super.c mark_inode_dirty(inode); inode 1436 fs/ufs/super.c mutex_unlock(&inode->i_mutex); inode 63 fs/ufs/truncate.c #define DIRECT_BLOCK ((inode->i_size + uspi->s_bsize - 1) >> uspi->s_bshift) inode 64 fs/ufs/truncate.c #define DIRECT_FRAGMENT ((inode->i_size + uspi->s_fsize - 1) >> uspi->s_fshift) inode 69 fs/ufs/truncate.c struct ufs_inode_info *ufsi = UFS_I(inode); inode 78 fs/ufs/truncate.c UFSD("ENTER: ino %lu\n", inode->i_ino); inode 80 fs/ufs/truncate.c sb = inode->i_sb; inode 101 fs/ufs/truncate.c " frag3 %llu, frag4 %llu\n", inode->i_ino, inode 119 fs/ufs/truncate.c ufs_free_fragments(inode, tmp + frag1, frag2); inode 120 fs/ufs/truncate.c mark_inode_dirty(inode); inode 140 fs/ufs/truncate.c ufs_free_blocks (inode, frag_to_free, free_count); inode 144 fs/ufs/truncate.c mark_inode_dirty(inode); inode 148 fs/ufs/truncate.c ufs_free_blocks (inode, frag_to_free, free_count); inode 163 fs/ufs/truncate.c ufs_free_fragments (inode, tmp, frag4); inode 164 fs/ufs/truncate.c mark_inode_dirty(inode); inode 167 fs/ufs/truncate.c UFSD("EXIT: ino %lu\n", inode->i_ino); inode 183 fs/ufs/truncate.c inode->i_ino, (unsigned long long)offset, p); inode 187 fs/ufs/truncate.c sb = inode->i_sb; inode 222 fs/ufs/truncate.c ufs_free_blocks (inode, frag_to_free, free_count); inode 227 fs/ufs/truncate.c mark_inode_dirty(inode); inode 231 fs/ufs/truncate.c ufs_free_blocks (inode, frag_to_free, free_count); inode 241 fs/ufs/truncate.c ufs_free_blocks (inode, tmp, uspi->s_fpb); inode 242 fs/ufs/truncate.c mark_inode_dirty(inode); inode 246 fs/ufs/truncate.c if (IS_SYNC(inode) && ind_ubh && ubh_buffer_dirty(ind_ubh)) { inode 252 fs/ufs/truncate.c UFSD("EXIT: ino %lu\n", inode->i_ino); inode 266 fs/ufs/truncate.c UFSD("ENTER: ino %lu\n", inode->i_ino); inode 268 fs/ufs/truncate.c sb = inode->i_sb; inode 293 fs/ufs/truncate.c retry |= ufs_trunc_indirect (inode, offset + (i << uspi->s_apbshift), dind); inode 305 fs/ufs/truncate.c ufs_free_blocks(inode, tmp, uspi->s_fpb); inode 306 fs/ufs/truncate.c mark_inode_dirty(inode); inode 310 fs/ufs/truncate.c if (IS_SYNC(inode) && dind_bh && ubh_buffer_dirty(dind_bh)) { inode 316 fs/ufs/truncate.c UFSD("EXIT: ino %lu\n", inode->i_ino); inode 323 fs/ufs/truncate.c struct super_block *sb = inode->i_sb; inode 325 fs/ufs/truncate.c struct ufs_inode_info *ufsi = UFS_I(inode); inode 331 fs/ufs/truncate.c UFSD("ENTER: ino %lu\n", inode->i_ino); inode 353 fs/ufs/truncate.c retry |= ufs_trunc_dindirect(inode, UFS_NDADDR + inode 365 fs/ufs/truncate.c ufs_free_blocks(inode, tmp, uspi->s_fpb); inode 366 fs/ufs/truncate.c mark_inode_dirty(inode); inode 370 fs/ufs/truncate.c if (IS_SYNC(inode) && tind_bh && ubh_buffer_dirty(tind_bh)) { inode 376 fs/ufs/truncate.c UFSD("EXIT: ino %lu\n", inode->i_ino); inode 383 fs/ufs/truncate.c struct super_block *sb = inode->i_sb; inode 384 fs/ufs/truncate.c struct address_space *mapping = inode->i_mapping; inode 392 fs/ufs/truncate.c lastfrag = (i_size_read(inode) + uspi->s_fsize - 1) >> uspi->s_fshift; inode 400 fs/ufs/truncate.c (PAGE_CACHE_SHIFT - inode->i_blkbits)); inode 406 fs/ufs/truncate.c end = lastfrag & ((1 << (PAGE_CACHE_SHIFT - inode->i_blkbits)) - 1); inode 412 fs/ufs/truncate.c err = ufs_getfrag_block(inode, lastfrag, bh, 1); inode 452 fs/ufs/truncate.c struct ufs_inode_info *ufsi = UFS_I(inode); inode 453 fs/ufs/truncate.c struct super_block *sb = inode->i_sb; inode 458 fs/ufs/truncate.c inode->i_ino, (unsigned long long)i_size_read(inode), inode 461 fs/ufs/truncate.c if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || inode 462 fs/ufs/truncate.c S_ISLNK(inode->i_mode))) inode 464 fs/ufs/truncate.c if (IS_APPEND(inode) || IS_IMMUTABLE(inode)) inode 467 fs/ufs/truncate.c err = ufs_alloc_lastblock(inode); inode 470 fs/ufs/truncate.c i_size_write(inode, old_i_size); inode 474 fs/ufs/truncate.c block_truncate_page(inode->i_mapping, inode->i_size, ufs_getfrag_block); inode 478 fs/ufs/truncate.c retry = ufs_trunc_direct(inode); inode 479 fs/ufs/truncate.c retry |= ufs_trunc_indirect(inode, UFS_IND_BLOCK, inode 482 fs/ufs/truncate.c retry |= ufs_trunc_dindirect(inode, UFS_IND_BLOCK + uspi->s_apb, inode 485 fs/ufs/truncate.c retry |= ufs_trunc_tindirect (inode); inode 488 fs/ufs/truncate.c if (IS_SYNC(inode) && (inode->i_state & I_DIRTY)) inode 489 fs/ufs/truncate.c ufs_sync_inode (inode); inode 490 fs/ufs/truncate.c blk_run_address_space(inode->i_mapping); inode 494 fs/ufs/truncate.c inode->i_mtime = inode->i_ctime = CURRENT_TIME_SEC; inode 497 fs/ufs/truncate.c mark_inode_dirty(inode); inode 512 fs/ufs/truncate.c struct inode *inode = dentry->d_inode; inode 516 fs/ufs/truncate.c error = inode_change_ok(inode, attr); inode 521 fs/ufs/truncate.c attr->ia_size != i_size_read(inode)) { inode 522 fs/ufs/truncate.c loff_t old_i_size = inode->i_size; inode 523 fs/ufs/truncate.c error = vmtruncate(inode, attr->ia_size); inode 526 fs/ufs/truncate.c error = ufs_truncate(inode, old_i_size); inode 530 fs/ufs/truncate.c return inode_setattr(inode, attr); inode 37 fs/ufs/ufs.h struct inode vfs_inode; inode 106 fs/ufs/ufs.h extern struct inode * ufs_new_inode (struct inode *, int); inode 109 fs/ufs/ufs.h extern struct inode *ufs_iget(struct super_block *, unsigned long); inode 137 fs/ufs/ufs.h return container_of(inode, struct ufs_inode_info, vfs_inode); inode 195 fs/ufs/util.h return fs32_to_cpu(sb, inode->ui_u3.ui_44.ui_uid); inode 197 fs/ufs/util.h if (inode->ui_u1.oldids.ui_suid == 0xFFFF) inode 198 fs/ufs/util.h return fs32_to_cpu(sb, inode->ui_u3.ui_sun.ui_uid); inode 201 fs/ufs/util.h return fs16_to_cpu(sb, inode->ui_u1.oldids.ui_suid); inode 210 fs/ufs/util.h inode->ui_u3.ui_44.ui_uid = cpu_to_fs32(sb, value); inode 211 fs/ufs/util.h inode->ui_u1.oldids.ui_suid = cpu_to_fs16(sb, value); inode 214 fs/ufs/util.h inode->ui_u3.ui_sun.ui_uid = cpu_to_fs32(sb, value); inode 219 fs/ufs/util.h inode->ui_u1.oldids.ui_suid = cpu_to_fs16(sb, value); inode 229 fs/ufs/util.h return fs32_to_cpu(sb, inode->ui_u3.ui_44.ui_gid); inode 231 fs/ufs/util.h if (inode->ui_u1.oldids.ui_suid == 0xFFFF) inode 232 fs/ufs/util.h return fs32_to_cpu(sb, inode->ui_u3.ui_sun.ui_gid); inode 235 fs/ufs/util.h return fs16_to_cpu(sb, inode->ui_u1.oldids.ui_sgid); inode 244 fs/ufs/util.h inode->ui_u3.ui_44.ui_gid = cpu_to_fs32(sb, value); inode 245 fs/ufs/util.h inode->ui_u1.oldids.ui_sgid = cpu_to_fs16(sb, value); inode 248 fs/ufs/util.h inode->ui_u3.ui_sun.ui_gid = cpu_to_fs32(sb, value); inode 253 fs/ufs/util.h inode->ui_u1.oldids.ui_sgid = cpu_to_fs16(sb, value); inode 55 fs/utimes.c struct inode *inode = path->dentry->d_inode; inode 95 fs/utimes.c if (IS_IMMUTABLE(inode)) inode 98 fs/utimes.c if (!is_owner_or_cap(inode)) { inode 99 fs/utimes.c error = inode_permission(inode, MAY_WRITE); inode 104 fs/utimes.c mutex_lock(&inode->i_mutex); inode 106 fs/utimes.c mutex_unlock(&inode->i_mutex); inode 686 fs/vfat/namei.c struct inode *inode = NULL; inode 699 fs/vfat/namei.c inode = fat_build_inode(sb, sinfo.de, sinfo.i_pos); inode 701 fs/vfat/namei.c if (IS_ERR(inode)) { inode 703 fs/vfat/namei.c return ERR_CAST(inode); inode 705 fs/vfat/namei.c alias = d_find_alias(inode); inode 710 fs/vfat/namei.c iput(inode); inode 720 fs/vfat/namei.c dentry = d_splice_alias(inode, dentry); inode 732 fs/vfat/namei.c struct inode *inode; inode 745 fs/vfat/namei.c inode = fat_build_inode(sb, sinfo.de, sinfo.i_pos); inode 747 fs/vfat/namei.c if (IS_ERR(inode)) { inode 748 fs/vfat/namei.c err = PTR_ERR(inode); inode 751 fs/vfat/namei.c inode->i_version++; inode 752 fs/vfat/namei.c inode->i_mtime = inode->i_atime = inode->i_ctime = ts; inode 756 fs/vfat/namei.c d_instantiate(dentry, inode); inode 764 fs/vfat/namei.c struct inode *inode = dentry->d_inode; inode 771 fs/vfat/namei.c err = fat_dir_empty(inode); inode 783 fs/vfat/namei.c clear_nlink(inode); inode 784 fs/vfat/namei.c inode->i_mtime = inode->i_atime = CURRENT_TIME_SEC; inode 785 fs/vfat/namei.c fat_detach(inode); inode 794 fs/vfat/namei.c struct inode *inode = dentry->d_inode; inode 808 fs/vfat/namei.c clear_nlink(inode); inode 809 fs/vfat/namei.c inode->i_mtime = inode->i_atime = CURRENT_TIME_SEC; inode 810 fs/vfat/namei.c fat_detach(inode); inode 820 fs/vfat/namei.c struct inode *inode; inode 839 fs/vfat/namei.c inode = fat_build_inode(sb, sinfo.de, sinfo.i_pos); inode 841 fs/vfat/namei.c if (IS_ERR(inode)) { inode 842 fs/vfat/namei.c err = PTR_ERR(inode); inode 846 fs/vfat/namei.c inode->i_version++; inode 847 fs/vfat/namei.c inode->i_nlink = 2; inode 848 fs/vfat/namei.c inode->i_mtime = inode->i_atime = inode->i_ctime = ts; inode 852 fs/vfat/namei.c d_instantiate(dentry, inode); inode 869 fs/vfat/namei.c struct inode *old_inode, *new_inode; inode 36 fs/xattr.c if (IS_IMMUTABLE(inode) || IS_APPEND(inode)) inode 59 fs/xattr.c if (!S_ISREG(inode->i_mode) && !S_ISDIR(inode->i_mode)) inode 61 fs/xattr.c if (S_ISDIR(inode->i_mode) && (inode->i_mode & S_ISVTX) && inode 62 fs/xattr.c (mask & MAY_WRITE) && !is_owner_or_cap(inode)) inode 66 fs/xattr.c return inode_permission(inode, mask); inode 73 fs/xattr.c struct inode *inode = dentry->d_inode; inode 76 fs/xattr.c error = xattr_permission(inode, name, MAY_WRITE); inode 80 fs/xattr.c mutex_lock(&inode->i_mutex); inode 85 fs/xattr.c if (inode->i_op->setxattr) { inode 86 fs/xattr.c error = inode->i_op->setxattr(dentry, name, value, size, flags); inode 95 fs/xattr.c error = security_inode_setsecurity(inode, suffix, value, inode 101 fs/xattr.c mutex_unlock(&inode->i_mutex); inode 114 fs/xattr.c len = security_inode_getsecurity(inode, name, &buffer, false); inode 118 fs/xattr.c len = security_inode_getsecurity(inode, name, &buffer, true); inode 136 fs/xattr.c struct inode *inode = dentry->d_inode; inode 139 fs/xattr.c error = xattr_permission(inode, name, MAY_READ); inode 150 fs/xattr.c int ret = xattr_getsecurity(inode, suffix, value, size); inode 160 fs/xattr.c if (inode->i_op->getxattr) inode 161 fs/xattr.c error = inode->i_op->getxattr(dentry, name, value, size); inode 192 fs/xattr.c struct inode *inode = dentry->d_inode; inode 195 fs/xattr.c if (!inode->i_op->removexattr) inode 198 fs/xattr.c error = xattr_permission(inode, name, MAY_WRITE); inode 206 fs/xattr.c mutex_lock(&inode->i_mutex); inode 207 fs/xattr.c error = inode->i_op->removexattr(dentry, name); inode 208 fs/xattr.c mutex_unlock(&inode->i_mutex); inode 598 fs/xattr.c struct inode *inode = dentry->d_inode; inode 600 fs/xattr.c handler = xattr_resolve_name(inode->i_sb->s_xattr, &name); inode 603 fs/xattr.c return handler->get(inode, name, buffer, size); inode 613 fs/xattr.c struct inode *inode = dentry->d_inode; inode 614 fs/xattr.c struct xattr_handler *handler, **handlers = inode->i_sb->s_xattr; inode 619 fs/xattr.c size += handler->list(inode, NULL, 0, NULL, 0); inode 624 fs/xattr.c size = handler->list(inode, buf, buffer_size, NULL, 0); inode 642 fs/xattr.c struct inode *inode = dentry->d_inode; inode 646 fs/xattr.c handler = xattr_resolve_name(inode->i_sb->s_xattr, &name); inode 649 fs/xattr.c return handler->set(inode, name, value, size, flags); inode 660 fs/xattr.c struct inode *inode = dentry->d_inode; inode 662 fs/xattr.c handler = xattr_resolve_name(inode->i_sb->s_xattr, &name); inode 665 fs/xattr.c return handler->set(inode, name, NULL, 0, XATTR_REPLACE); inode 76 fs/xfs/linux-2.6/xfs_aops.c loff_t isize = i_size_read(inode); inode 83 fs/xfs/linux-2.6/xfs_aops.c ip = XFS_I(inode); inode 90 fs/xfs/linux-2.6/xfs_aops.c (void *)inode, inode 293 fs/xfs/linux-2.6/xfs_aops.c ioend->io_inode = inode; inode 320 fs/xfs/linux-2.6/xfs_aops.c xfs_inode_t *ip = XFS_I(inode); inode 540 fs/xfs/linux-2.6/xfs_aops.c ioend = xfs_alloc_ioend(inode, type); inode 650 fs/xfs/linux-2.6/xfs_aops.c tlast = i_size_read(inode) >> PAGE_CACHE_SHIFT; inode 660 fs/xfs/linux-2.6/xfs_aops.c if (!pagevec_lookup(&pvec, inode->i_mapping, tindex, len)) inode 669 fs/xfs/linux-2.6/xfs_aops.c i_size_read(inode) & (PAGE_CACHE_SIZE - 1); inode 754 fs/xfs/linux-2.6/xfs_aops.c int bbits = inode->i_blkbits; inode 765 fs/xfs/linux-2.6/xfs_aops.c if (page->mapping != inode->i_mapping) inode 785 fs/xfs/linux-2.6/xfs_aops.c i_size_read(inode)); inode 787 fs/xfs/linux-2.6/xfs_aops.c len = 1 << inode->i_blkbits; inode 820 fs/xfs/linux-2.6/xfs_aops.c xfs_add_to_ioend(inode, bh, offset, inode 833 fs/xfs/linux-2.6/xfs_aops.c xfs_add_to_ioend(inode, bh, offset, inode 850 fs/xfs/linux-2.6/xfs_aops.c bdi = inode->i_mapping->backing_dev_info; inode 891 fs/xfs/linux-2.6/xfs_aops.c if (!pagevec_lookup(&pvec, inode->i_mapping, tindex, len)) inode 895 fs/xfs/linux-2.6/xfs_aops.c done = xfs_convert_page(inode, pvec.pages[i], tindex++, inode 953 fs/xfs/linux-2.6/xfs_aops.c offset = i_size_read(inode); inode 958 fs/xfs/linux-2.6/xfs_aops.c !(i_size_read(inode) & (PAGE_CACHE_SIZE - 1))) { inode 980 fs/xfs/linux-2.6/xfs_aops.c len = 1 << inode->i_blkbits; inode 1053 fs/xfs/linux-2.6/xfs_aops.c size = xfs_probe_cluster(inode, inode 1059 fs/xfs/linux-2.6/xfs_aops.c err = xfs_map_blocks(inode, offset, size, inode 1067 fs/xfs/linux-2.6/xfs_aops.c inode->i_blkbits, &iomap); inode 1069 fs/xfs/linux-2.6/xfs_aops.c xfs_add_to_ioend(inode, bh, offset, inode 1088 fs/xfs/linux-2.6/xfs_aops.c size = xfs_probe_cluster(inode, page, bh, inode 1090 fs/xfs/linux-2.6/xfs_aops.c err = xfs_map_blocks(inode, offset, size, inode 1110 fs/xfs/linux-2.6/xfs_aops.c xfs_add_to_ioend(inode, bh, offset, type, inode 1137 fs/xfs/linux-2.6/xfs_aops.c xfs_cluster_write(inode, page->index + 1, &iomap, &ioend, inode 1191 fs/xfs/linux-2.6/xfs_aops.c struct inode *inode = page->mapping->host; inode 1193 fs/xfs/linux-2.6/xfs_aops.c xfs_page_trace(XFS_WRITEPAGE_ENTER, inode, page, 0); inode 1227 fs/xfs/linux-2.6/xfs_aops.c create_empty_buffers(page, 1 << inode->i_blkbits, 0); inode 1233 fs/xfs/linux-2.6/xfs_aops.c error = xfs_page_state_convert(inode, page, wbc, 1, unmapped); inode 1283 fs/xfs/linux-2.6/xfs_aops.c struct inode *inode = page->mapping->host; inode 1290 fs/xfs/linux-2.6/xfs_aops.c xfs_page_trace(XFS_RELEASEPAGE_ENTER, inode, page, 0); inode 1314 fs/xfs/linux-2.6/xfs_aops.c dirty = xfs_page_state_convert(inode, page, &wbc, 0, 0); inode 1338 fs/xfs/linux-2.6/xfs_aops.c offset = (xfs_off_t)iblock << inode->i_blkbits; inode 1339 fs/xfs/linux-2.6/xfs_aops.c ASSERT(bh_result->b_size >= (1 << inode->i_blkbits)); inode 1342 fs/xfs/linux-2.6/xfs_aops.c if (!create && direct && offset >= i_size_read(inode)) inode 1345 fs/xfs/linux-2.6/xfs_aops.c error = xfs_iomap(XFS_I(inode), offset, size, inode 1359 fs/xfs/linux-2.6/xfs_aops.c inode->i_blkbits); inode 1363 fs/xfs/linux-2.6/xfs_aops.c bh_result->b_private = inode; inode 1385 fs/xfs/linux-2.6/xfs_aops.c (offset >= i_size_read(inode)) || inode 1398 fs/xfs/linux-2.6/xfs_aops.c if (direct || size > (1 << inode->i_blkbits)) { inode 1415 fs/xfs/linux-2.6/xfs_aops.c return __xfs_get_blocks(inode, iblock, inode 1426 fs/xfs/linux-2.6/xfs_aops.c return __xfs_get_blocks(inode, iblock, inode 1492 fs/xfs/linux-2.6/xfs_aops.c struct inode *inode = file->f_mapping->host; inode 1496 fs/xfs/linux-2.6/xfs_aops.c bdev = xfs_find_bdev_for_inode(XFS_I(inode)); inode 1499 fs/xfs/linux-2.6/xfs_aops.c iocb->private = xfs_alloc_ioend(inode, IOMAP_UNWRITTEN); inode 1500 fs/xfs/linux-2.6/xfs_aops.c ret = blockdev_direct_IO_own_locking(rw, iocb, inode, inode 1505 fs/xfs/linux-2.6/xfs_aops.c iocb->private = xfs_alloc_ioend(inode, IOMAP_READ); inode 1506 fs/xfs/linux-2.6/xfs_aops.c ret = blockdev_direct_IO_no_locking(rw, iocb, inode, inode 1537 fs/xfs/linux-2.6/xfs_aops.c struct inode *inode = (struct inode *)mapping->host; inode 1538 fs/xfs/linux-2.6/xfs_aops.c struct xfs_inode *ip = XFS_I(inode); inode 1540 fs/xfs/linux-2.6/xfs_aops.c xfs_itrace_entry(XFS_I(inode)); inode 35 fs/xfs/linux-2.6/xfs_aops.h struct inode *io_inode; /* file being written to */ inode 1502 fs/xfs/linux-2.6/xfs_buf.c struct inode *inode; inode 1509 fs/xfs/linux-2.6/xfs_buf.c inode = new_inode(bdev->bd_inode->i_sb); inode 1510 fs/xfs/linux-2.6/xfs_buf.c if (!inode) { inode 1516 fs/xfs/linux-2.6/xfs_buf.c inode->i_mode = S_IFBLK; inode 1517 fs/xfs/linux-2.6/xfs_buf.c inode->i_bdev = bdev; inode 1518 fs/xfs/linux-2.6/xfs_buf.c inode->i_rdev = bdev->bd_dev; inode 1522 fs/xfs/linux-2.6/xfs_buf.c mapping = &inode->i_data; inode 63 fs/xfs/linux-2.6/xfs_export.c struct inode *inode = dentry->d_inode; inode 68 fs/xfs/linux-2.6/xfs_export.c if (S_ISDIR(inode->i_mode) || !connectable) inode 74 fs/xfs/linux-2.6/xfs_export.c if (!(XFS_M(inode->i_sb)->m_flags & XFS_MOUNT_SMALL_INUMS)) inode 96 fs/xfs/linux-2.6/xfs_export.c fid->i32.ino = inode->i_ino; inode 97 fs/xfs/linux-2.6/xfs_export.c fid->i32.gen = inode->i_generation; inode 106 fs/xfs/linux-2.6/xfs_export.c fid64->ino = inode->i_ino; inode 107 fs/xfs/linux-2.6/xfs_export.c fid64->gen = inode->i_generation; inode 114 fs/xfs/linux-2.6/xfs_export.c STATIC struct inode * inode 150 fs/xfs/linux-2.6/xfs_export.c struct inode *inode = NULL; inode 159 fs/xfs/linux-2.6/xfs_export.c inode = xfs_nfs_get_inode(sb, fid->i32.ino, fid->i32.gen); inode 163 fs/xfs/linux-2.6/xfs_export.c inode = xfs_nfs_get_inode(sb, fid64->ino, fid64->gen); inode 167 fs/xfs/linux-2.6/xfs_export.c if (!inode) inode 169 fs/xfs/linux-2.6/xfs_export.c if (IS_ERR(inode)) inode 170 fs/xfs/linux-2.6/xfs_export.c return ERR_CAST(inode); inode 171 fs/xfs/linux-2.6/xfs_export.c result = d_alloc_anon(inode); inode 173 fs/xfs/linux-2.6/xfs_export.c iput(inode); inode 184 fs/xfs/linux-2.6/xfs_export.c struct inode *inode = NULL; inode 189 fs/xfs/linux-2.6/xfs_export.c inode = xfs_nfs_get_inode(sb, fid->i32.parent_ino, inode 193 fs/xfs/linux-2.6/xfs_export.c inode = xfs_nfs_get_inode(sb, fid64->parent_ino, inode 198 fs/xfs/linux-2.6/xfs_export.c if (!inode) inode 200 fs/xfs/linux-2.6/xfs_export.c if (IS_ERR(inode)) inode 201 fs/xfs/linux-2.6/xfs_export.c return ERR_CAST(inode); inode 202 fs/xfs/linux-2.6/xfs_export.c result = d_alloc_anon(inode); inode 204 fs/xfs/linux-2.6/xfs_export.c iput(inode); inode 174 fs/xfs/linux-2.6/xfs_file.c if (!(filp->f_flags & O_LARGEFILE) && i_size_read(inode) > MAX_NON_LFS) inode 176 fs/xfs/linux-2.6/xfs_file.c return -xfs_open(XFS_I(inode)); inode 184 fs/xfs/linux-2.6/xfs_file.c return -xfs_release(XFS_I(inode)); inode 222 fs/xfs/linux-2.6/xfs_file.c struct inode *inode = filp->f_path.dentry->d_inode; inode 223 fs/xfs/linux-2.6/xfs_file.c xfs_inode_t *ip = XFS_I(inode); inode 239 fs/xfs/linux-2.6/xfs_file.c bufsize = (size_t)min_t(loff_t, PAGE_SIZE, inode->i_size); inode 295 fs/xfs/linux-2.6/xfs_file.c struct inode *inode = filp->f_path.dentry->d_inode; inode 296 fs/xfs/linux-2.6/xfs_file.c xfs_inode_t *ip = XFS_I(inode); inode 386 fs/xfs/linux-2.6/xfs_file.c struct inode *inode = filp->f_path.dentry->d_inode; inode 388 fs/xfs/linux-2.6/xfs_file.c error = xfs_ioctl(XFS_I(inode), filp, 0, cmd, (void __user *)p); inode 389 fs/xfs/linux-2.6/xfs_file.c xfs_iflags_set(XFS_I(inode), XFS_IMODIFIED); inode 407 fs/xfs/linux-2.6/xfs_file.c struct inode *inode = filp->f_path.dentry->d_inode; inode 409 fs/xfs/linux-2.6/xfs_file.c error = xfs_ioctl(XFS_I(inode), filp, IO_INVIS, cmd, (void __user *)p); inode 410 fs/xfs/linux-2.6/xfs_file.c xfs_iflags_set(XFS_I(inode), XFS_IMODIFIED); inode 79 fs/xfs/linux-2.6/xfs_ioctl.c struct inode *inode; inode 96 fs/xfs/linux-2.6/xfs_ioctl.c inode = igrab(path.dentry->d_inode); inode 110 fs/xfs/linux-2.6/xfs_ioctl.c inode = igrab(file->f_path.dentry->d_inode); inode 120 fs/xfs/linux-2.6/xfs_ioctl.c if (inode->i_sb->s_magic != XFS_SB_MAGIC) { inode 122 fs/xfs/linux-2.6/xfs_ioctl.c iput(inode); inode 126 fs/xfs/linux-2.6/xfs_ioctl.c switch (inode->i_mode & S_IFMT) { inode 132 fs/xfs/linux-2.6/xfs_ioctl.c iput(inode); inode 137 fs/xfs/linux-2.6/xfs_ioctl.c memcpy(&handle.ha_fsid, XFS_I(inode)->i_mount->m_fixedfsid, inode 142 fs/xfs/linux-2.6/xfs_ioctl.c xfs_inode_t *ip = XFS_I(inode); inode 163 fs/xfs/linux-2.6/xfs_ioctl.c iput(inode); inode 167 fs/xfs/linux-2.6/xfs_ioctl.c iput(inode); inode 248 fs/xfs/linux-2.6/xfs_ioctl.c *inode = VFS_I(ip); inode 263 fs/xfs/linux-2.6/xfs_ioctl.c struct inode *inode; inode 272 fs/xfs/linux-2.6/xfs_ioctl.c error = xfs_vget_fsop_handlereq(mp, parinode, &hreq, &inode); inode 277 fs/xfs/linux-2.6/xfs_ioctl.c if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode))) { inode 278 fs/xfs/linux-2.6/xfs_ioctl.c iput(inode); inode 293 fs/xfs/linux-2.6/xfs_ioctl.c (permflag & FMODE_WRITE) && IS_APPEND(inode)) { inode 294 fs/xfs/linux-2.6/xfs_ioctl.c iput(inode); inode 298 fs/xfs/linux-2.6/xfs_ioctl.c if ((permflag & FMODE_WRITE) && IS_IMMUTABLE(inode)) { inode 299 fs/xfs/linux-2.6/xfs_ioctl.c iput(inode); inode 304 fs/xfs/linux-2.6/xfs_ioctl.c if ( S_ISDIR(inode->i_mode) && (permflag & FMODE_WRITE)) { inode 305 fs/xfs/linux-2.6/xfs_ioctl.c iput(inode); inode 310 fs/xfs/linux-2.6/xfs_ioctl.c iput(inode); inode 314 fs/xfs/linux-2.6/xfs_ioctl.c dentry = d_alloc_anon(inode); inode 316 fs/xfs/linux-2.6/xfs_ioctl.c iput(inode); inode 330 fs/xfs/linux-2.6/xfs_ioctl.c if (inode->i_mode & S_IFREG) { inode 372 fs/xfs/linux-2.6/xfs_ioctl.c struct inode *inode; inode 383 fs/xfs/linux-2.6/xfs_ioctl.c error = xfs_vget_fsop_handlereq(mp, parinode, &hreq, &inode); inode 388 fs/xfs/linux-2.6/xfs_ioctl.c if (!S_ISLNK(inode->i_mode)) { inode 402 fs/xfs/linux-2.6/xfs_ioctl.c error = -xfs_readlink(XFS_I(inode), link); inode 412 fs/xfs/linux-2.6/xfs_ioctl.c iput(inode); inode 425 fs/xfs/linux-2.6/xfs_ioctl.c struct inode *inode; inode 432 fs/xfs/linux-2.6/xfs_ioctl.c error = xfs_vget_fsop_handlereq(mp, parinode, &dmhreq.hreq, &inode); inode 436 fs/xfs/linux-2.6/xfs_ioctl.c if (IS_IMMUTABLE(inode) || IS_APPEND(inode)) { inode 446 fs/xfs/linux-2.6/xfs_ioctl.c error = -xfs_set_dmattrs(XFS_I(inode), fsd.fsd_dmevmask, inode 450 fs/xfs/linux-2.6/xfs_ioctl.c iput(inode); inode 463 fs/xfs/linux-2.6/xfs_ioctl.c struct inode *inode; inode 479 fs/xfs/linux-2.6/xfs_ioctl.c error = xfs_vget_fsop_handlereq(mp, parinode, &al_hreq.hreq, &inode); inode 488 fs/xfs/linux-2.6/xfs_ioctl.c error = xfs_attr_list(XFS_I(inode), kbuf, al_hreq.buflen, inode 499 fs/xfs/linux-2.6/xfs_ioctl.c iput(inode); inode 521 fs/xfs/linux-2.6/xfs_ioctl.c error = xfs_attr_get(XFS_I(inode), name, kbuf, (int *)len, flags); inode 544 fs/xfs/linux-2.6/xfs_ioctl.c if (IS_IMMUTABLE(inode) || IS_APPEND(inode)) inode 556 fs/xfs/linux-2.6/xfs_ioctl.c error = xfs_attr_set(XFS_I(inode), name, kbuf, len, flags); inode 569 fs/xfs/linux-2.6/xfs_ioctl.c if (IS_IMMUTABLE(inode) || IS_APPEND(inode)) inode 571 fs/xfs/linux-2.6/xfs_ioctl.c return xfs_attr_remove(XFS_I(inode), name, flags); inode 584 fs/xfs/linux-2.6/xfs_ioctl.c struct inode *inode; inode 593 fs/xfs/linux-2.6/xfs_ioctl.c error = xfs_vget_fsop_handlereq(mp, parinode, &am_hreq.hreq, &inode); inode 627 fs/xfs/linux-2.6/xfs_ioctl.c ops[i].am_error = xfs_attrmulti_attr_get(inode, inode 635 fs/xfs/linux-2.6/xfs_ioctl.c ops[i].am_error = xfs_attrmulti_attr_set(inode, inode 644 fs/xfs/linux-2.6/xfs_ioctl.c ops[i].am_error = xfs_attrmulti_attr_remove(inode, inode 660 fs/xfs/linux-2.6/xfs_ioctl.c iput(inode); inode 678 fs/xfs/linux-2.6/xfs_ioctl.c if (inode->i_flags & (S_IMMUTABLE|S_APPEND)) inode 684 fs/xfs/linux-2.6/xfs_ioctl.c if (!S_ISREG(inode->i_mode)) inode 930 fs/xfs/linux-2.6/xfs_ioctl.c struct inode *inode = VFS_I(ip); inode 934 fs/xfs/linux-2.6/xfs_ioctl.c inode->i_flags |= S_IMMUTABLE; inode 936 fs/xfs/linux-2.6/xfs_ioctl.c inode->i_flags &= ~S_IMMUTABLE; inode 938 fs/xfs/linux-2.6/xfs_ioctl.c inode->i_flags |= S_APPEND; inode 940 fs/xfs/linux-2.6/xfs_ioctl.c inode->i_flags &= ~S_APPEND; inode 942 fs/xfs/linux-2.6/xfs_ioctl.c inode->i_flags |= S_SYNC; inode 944 fs/xfs/linux-2.6/xfs_ioctl.c inode->i_flags &= ~S_SYNC; inode 946 fs/xfs/linux-2.6/xfs_ioctl.c inode->i_flags |= S_NOATIME; inode 948 fs/xfs/linux-2.6/xfs_ioctl.c inode->i_flags &= ~S_NOATIME; inode 1337 fs/xfs/linux-2.6/xfs_ioctl.c struct inode *inode = filp->f_path.dentry->d_inode; inode 1341 fs/xfs/linux-2.6/xfs_ioctl.c xfs_itrace_entry(XFS_I(inode)); inode 1360 fs/xfs/linux-2.6/xfs_ioctl.c return xfs_ioc_space(ip, inode, filp, ioflags, cmd, arg); inode 1388 fs/xfs/linux-2.6/xfs_ioctl.c return put_user(inode->i_generation, (int __user *)arg); inode 1425 fs/xfs/linux-2.6/xfs_ioctl.c return xfs_open_by_handle(mp, arg, filp, inode); inode 1428 fs/xfs/linux-2.6/xfs_ioctl.c return xfs_fssetdm_by_handle(mp, arg, inode); inode 1431 fs/xfs/linux-2.6/xfs_ioctl.c return xfs_readlink_by_handle(mp, arg, inode); inode 1434 fs/xfs/linux-2.6/xfs_ioctl.c return xfs_attrlist_by_handle(mp, arg, inode); inode 1437 fs/xfs/linux-2.6/xfs_ioctl.c return xfs_attrmulti_by_handle(mp, arg, filp, inode); inode 1536 fs/xfs/linux-2.6/xfs_ioctl.c if (inode->i_sb->s_frozen == SB_UNFROZEN) inode 1537 fs/xfs/linux-2.6/xfs_ioctl.c freeze_bdev(inode->i_sb->s_bdev); inode 1543 fs/xfs/linux-2.6/xfs_ioctl.c if (inode->i_sb->s_frozen != SB_UNFROZEN) inode 1544 fs/xfs/linux-2.6/xfs_ioctl.c thaw_bdev(inode->i_sb->s_bdev, inode->i_sb); inode 377 fs/xfs/linux-2.6/xfs_ioctl32.c struct inode *inode = file->f_path.dentry->d_inode; inode 452 fs/xfs/linux-2.6/xfs_ioctl32.c return xfs_ioc_bulkstat_compat(XFS_I(inode)->i_mount, inode 466 fs/xfs/linux-2.6/xfs_ioctl32.c error = xfs_ioctl(XFS_I(inode), file, mode, cmd, (void __user *)arg); inode 467 fs/xfs/linux-2.6/xfs_ioctl32.c xfs_iflags_set(XFS_I(inode), XFS_IMODIFIED); inode 65 fs/xfs/linux-2.6/xfs_iops.c struct inode *inode = VFS_I(ip); inode 67 fs/xfs/linux-2.6/xfs_iops.c if (inode) { inode 68 fs/xfs/linux-2.6/xfs_iops.c ip->i_d.di_atime.t_sec = (__int32_t)inode->i_atime.tv_sec; inode 69 fs/xfs/linux-2.6/xfs_iops.c ip->i_d.di_atime.t_nsec = (__int32_t)inode->i_atime.tv_nsec; inode 82 fs/xfs/linux-2.6/xfs_iops.c struct inode *inode = VFS_I(ip); inode 84 fs/xfs/linux-2.6/xfs_iops.c if (inode) inode 85 fs/xfs/linux-2.6/xfs_iops.c mark_inode_dirty_sync(inode); inode 98 fs/xfs/linux-2.6/xfs_iops.c struct inode *inode = VFS_I(ip); inode 102 fs/xfs/linux-2.6/xfs_iops.c tv = current_fs_time(inode->i_sb); inode 105 fs/xfs/linux-2.6/xfs_iops.c !timespec_equal(&inode->i_mtime, &tv)) { inode 106 fs/xfs/linux-2.6/xfs_iops.c inode->i_mtime = tv; inode 112 fs/xfs/linux-2.6/xfs_iops.c !timespec_equal(&inode->i_ctime, &tv)) { inode 113 fs/xfs/linux-2.6/xfs_iops.c inode->i_ctime = tv; inode 131 fs/xfs/linux-2.6/xfs_iops.c mark_inode_dirty_sync(inode); inode 146 fs/xfs/linux-2.6/xfs_iops.c struct xfs_inode *ip = XFS_I(inode); inode 152 fs/xfs/linux-2.6/xfs_iops.c error = security_inode_init_security(inode, dir, &name, inode 193 fs/xfs/linux-2.6/xfs_iops.c xfs_remove(XFS_I(dir), &teardown, XFS_I(inode)); inode 194 fs/xfs/linux-2.6/xfs_iops.c iput(inode); inode 204 fs/xfs/linux-2.6/xfs_iops.c struct inode *inode; inode 208 fs/xfs/linux-2.6/xfs_iops.c int (*test_default_acl)(struct inode *) = _ACL_DEFAULT_EXISTS; inode 253 fs/xfs/linux-2.6/xfs_iops.c inode = VFS_I(ip); inode 255 fs/xfs/linux-2.6/xfs_iops.c error = xfs_init_security(inode, dir); inode 260 fs/xfs/linux-2.6/xfs_iops.c error = _ACL_INHERIT(inode, mode, default_acl); inode 268 fs/xfs/linux-2.6/xfs_iops.c d_instantiate(dentry, inode); inode 272 fs/xfs/linux-2.6/xfs_iops.c xfs_cleanup_inode(dir, inode, dentry); inode 369 fs/xfs/linux-2.6/xfs_iops.c struct inode *inode; /* inode of guy being linked to */ inode 373 fs/xfs/linux-2.6/xfs_iops.c inode = old_dentry->d_inode; inode 376 fs/xfs/linux-2.6/xfs_iops.c igrab(inode); inode 377 fs/xfs/linux-2.6/xfs_iops.c error = xfs_link(XFS_I(dir), XFS_I(inode), &name); inode 379 fs/xfs/linux-2.6/xfs_iops.c iput(inode); inode 384 fs/xfs/linux-2.6/xfs_iops.c d_instantiate(dentry, inode); inode 418 fs/xfs/linux-2.6/xfs_iops.c struct inode *inode; inode 432 fs/xfs/linux-2.6/xfs_iops.c inode = VFS_I(cip); inode 434 fs/xfs/linux-2.6/xfs_iops.c error = xfs_init_security(inode, dir); inode 438 fs/xfs/linux-2.6/xfs_iops.c d_instantiate(dentry, inode); inode 442 fs/xfs/linux-2.6/xfs_iops.c xfs_cleanup_inode(dir, inode, dentry); inode 454 fs/xfs/linux-2.6/xfs_iops.c struct inode *new_inode = ndentry->d_inode; inode 515 fs/xfs/linux-2.6/xfs_iops.c struct xfs_inode *ip = XFS_I(inode); inode 534 fs/xfs/linux-2.6/xfs_iops.c return generic_permission(inode, mask, xfs_check_acl); inode 546 fs/xfs/linux-2.6/xfs_iops.c struct inode *inode = dentry->d_inode; inode 547 fs/xfs/linux-2.6/xfs_iops.c struct xfs_inode *ip = XFS_I(inode); inode 556 fs/xfs/linux-2.6/xfs_iops.c stat->dev = inode->i_sb->s_dev; inode 565 fs/xfs/linux-2.6/xfs_iops.c stat->atime = inode->i_atime; inode 574 fs/xfs/linux-2.6/xfs_iops.c switch (inode->i_mode & S_IFMT) { inode 617 fs/xfs/linux-2.6/xfs_iops.c error = block_truncate_page(inode->i_mapping, inode->i_size, inode 632 fs/xfs/linux-2.6/xfs_iops.c xfs_inode_t *ip = XFS_I(inode); inode 636 fs/xfs/linux-2.6/xfs_iops.c if (S_ISDIR(inode->i_mode)) inode 647 fs/xfs/linux-2.6/xfs_iops.c offset + len > i_size_read(inode)) inode 745 fs/xfs/linux-2.6/xfs_iops.c inode->i_flags |= S_IMMUTABLE; inode 747 fs/xfs/linux-2.6/xfs_iops.c inode->i_flags &= ~S_IMMUTABLE; inode 749 fs/xfs/linux-2.6/xfs_iops.c inode->i_flags |= S_APPEND; inode 751 fs/xfs/linux-2.6/xfs_iops.c inode->i_flags &= ~S_APPEND; inode 753 fs/xfs/linux-2.6/xfs_iops.c inode->i_flags |= S_SYNC; inode 755 fs/xfs/linux-2.6/xfs_iops.c inode->i_flags &= ~S_SYNC; inode 757 fs/xfs/linux-2.6/xfs_iops.c inode->i_flags |= S_NOATIME; inode 759 fs/xfs/linux-2.6/xfs_iops.c inode->i_flags &= ~S_NOATIME; inode 774 fs/xfs/linux-2.6/xfs_iops.c struct inode *inode = ip->i_vnode; inode 776 fs/xfs/linux-2.6/xfs_iops.c inode->i_mode = ip->i_d.di_mode; inode 777 fs/xfs/linux-2.6/xfs_iops.c inode->i_nlink = ip->i_d.di_nlink; inode 778 fs/xfs/linux-2.6/xfs_iops.c inode->i_uid = ip->i_d.di_uid; inode 779 fs/xfs/linux-2.6/xfs_iops.c inode->i_gid = ip->i_d.di_gid; inode 781 fs/xfs/linux-2.6/xfs_iops.c switch (inode->i_mode & S_IFMT) { inode 784 fs/xfs/linux-2.6/xfs_iops.c inode->i_rdev = inode 789 fs/xfs/linux-2.6/xfs_iops.c inode->i_rdev = 0; inode 793 fs/xfs/linux-2.6/xfs_iops.c inode->i_generation = ip->i_d.di_gen; inode 794 fs/xfs/linux-2.6/xfs_iops.c i_size_write(inode, ip->i_d.di_size); inode 795 fs/xfs/linux-2.6/xfs_iops.c inode->i_atime.tv_sec = ip->i_d.di_atime.t_sec; inode 796 fs/xfs/linux-2.6/xfs_iops.c inode->i_atime.tv_nsec = ip->i_d.di_atime.t_nsec; inode 797 fs/xfs/linux-2.6/xfs_iops.c inode->i_mtime.tv_sec = ip->i_d.di_mtime.t_sec; inode 798 fs/xfs/linux-2.6/xfs_iops.c inode->i_mtime.tv_nsec = ip->i_d.di_mtime.t_nsec; inode 799 fs/xfs/linux-2.6/xfs_iops.c inode->i_ctime.tv_sec = ip->i_d.di_ctime.t_sec; inode 800 fs/xfs/linux-2.6/xfs_iops.c inode->i_ctime.tv_nsec = ip->i_d.di_ctime.t_nsec; inode 801 fs/xfs/linux-2.6/xfs_iops.c xfs_diflags_to_iflags(inode, ip); inode 804 fs/xfs/linux-2.6/xfs_iops.c switch (inode->i_mode & S_IFMT) { inode 806 fs/xfs/linux-2.6/xfs_iops.c inode->i_op = &xfs_inode_operations; inode 807 fs/xfs/linux-2.6/xfs_iops.c inode->i_fop = &xfs_file_operations; inode 808 fs/xfs/linux-2.6/xfs_iops.c inode->i_mapping->a_ops = &xfs_address_space_operations; inode 811 fs/xfs/linux-2.6/xfs_iops.c if (xfs_sb_version_hasasciici(&XFS_M(inode->i_sb)->m_sb)) inode 812 fs/xfs/linux-2.6/xfs_iops.c inode->i_op = &xfs_dir_ci_inode_operations; inode 814 fs/xfs/linux-2.6/xfs_iops.c inode->i_op = &xfs_dir_inode_operations; inode 815 fs/xfs/linux-2.6/xfs_iops.c inode->i_fop = &xfs_dir_file_operations; inode 818 fs/xfs/linux-2.6/xfs_iops.c inode->i_op = &xfs_symlink_inode_operations; inode 820 fs/xfs/linux-2.6/xfs_iops.c inode->i_mapping->a_ops = &xfs_address_space_operations; inode 823 fs/xfs/linux-2.6/xfs_iops.c inode->i_op = &xfs_inode_operations; inode 824 fs/xfs/linux-2.6/xfs_iops.c init_special_inode(inode, inode->i_mode, inode->i_rdev); inode 831 fs/xfs/linux-2.6/xfs_iops.c unlock_new_inode(inode); inode 179 fs/xfs/linux-2.6/xfs_lrw.c struct inode *inode = file->f_mapping->host; inode 227 fs/xfs/linux-2.6/xfs_lrw.c mutex_lock(&inode->i_mutex); inode 239 fs/xfs/linux-2.6/xfs_lrw.c mutex_unlock(&inode->i_mutex); inode 245 fs/xfs/linux-2.6/xfs_lrw.c if (inode->i_mapping->nrpages) inode 248 fs/xfs/linux-2.6/xfs_lrw.c mutex_unlock(&inode->i_mutex); inode 321 fs/xfs/linux-2.6/xfs_lrw.c struct inode *inode = outfilp->f_mapping->host; inode 355 fs/xfs/linux-2.6/xfs_lrw.c isize = i_size_read(inode); inode 570 fs/xfs/linux-2.6/xfs_lrw.c struct inode *inode = mapping->host; inode 607 fs/xfs/linux-2.6/xfs_lrw.c mutex_lock(&inode->i_mutex); inode 614 fs/xfs/linux-2.6/xfs_lrw.c S_ISBLK(inode->i_mode)); inode 661 fs/xfs/linux-2.6/xfs_lrw.c mutex_lock(&inode->i_mutex); inode 737 fs/xfs/linux-2.6/xfs_lrw.c mutex_unlock(&inode->i_mutex); inode 778 fs/xfs/linux-2.6/xfs_lrw.c mutex_unlock(&inode->i_mutex); inode 783 fs/xfs/linux-2.6/xfs_lrw.c mutex_lock(&inode->i_mutex); inode 792 fs/xfs/linux-2.6/xfs_lrw.c isize = i_size_read(inode); inode 810 fs/xfs/linux-2.6/xfs_lrw.c if ((file->f_flags & O_SYNC) || IS_SYNC(inode)) { inode 815 fs/xfs/linux-2.6/xfs_lrw.c mutex_unlock(&inode->i_mutex); inode 816 fs/xfs/linux-2.6/xfs_lrw.c error2 = sync_page_range(inode, mapping, pos, ret); inode 820 fs/xfs/linux-2.6/xfs_lrw.c mutex_lock(&inode->i_mutex); inode 845 fs/xfs/linux-2.6/xfs_lrw.c mutex_unlock(&inode->i_mutex); inode 869 fs/xfs/linux-2.6/xfs_super.c STATIC struct inode * inode 880 fs/xfs/linux-2.6/xfs_super.c kmem_zone_free(xfs_vnode_zone, inode); inode 887 fs/xfs/linux-2.6/xfs_super.c inode_init_once((struct inode *)vnode); inode 904 fs/xfs/linux-2.6/xfs_super.c xfs_itrace_entry(XFS_I(inode)); inode 906 fs/xfs/linux-2.6/xfs_super.c filemap_fdatawait(inode->i_mapping); inode 909 fs/xfs/linux-2.6/xfs_super.c error = xfs_inode_flush(XFS_I(inode), flags); inode 915 fs/xfs/linux-2.6/xfs_super.c mark_inode_dirty_sync(inode); inode 924 fs/xfs/linux-2.6/xfs_super.c xfs_inode_t *ip = XFS_I(inode); inode 940 fs/xfs/linux-2.6/xfs_super.c panic("%s: cannot reclaim 0x%p\n", __func__, inode); inode 943 fs/xfs/linux-2.6/xfs_super.c ASSERT(XFS_I(inode) == NULL); inode 983 fs/xfs/linux-2.6/xfs_super.c struct inode *inode = arg; inode 984 fs/xfs/linux-2.6/xfs_super.c filemap_flush(inode->i_mapping); inode 985 fs/xfs/linux-2.6/xfs_super.c iput(inode); inode 992 fs/xfs/linux-2.6/xfs_super.c struct inode *inode = VFS_I(ip); inode 994 fs/xfs/linux-2.6/xfs_super.c igrab(inode); inode 995 fs/xfs/linux-2.6/xfs_super.c xfs_syncd_queue_work(ip->i_mount, inode, xfs_flush_inode_work); inode 1008 fs/xfs/linux-2.6/xfs_super.c struct inode *inode = arg; inode 1010 fs/xfs/linux-2.6/xfs_super.c iput(inode); inode 1017 fs/xfs/linux-2.6/xfs_super.c struct inode *inode = VFS_I(ip); inode 1019 fs/xfs/linux-2.6/xfs_super.c igrab(inode); inode 1020 fs/xfs/linux-2.6/xfs_super.c xfs_syncd_queue_work(ip->i_mount, inode, xfs_flush_device_work); inode 1668 fs/xfs/linux-2.6/xfs_super.c struct inode *root; inode 1948 fs/xfs/linux-2.6/xfs_super.c xfs_vnode_zone = kmem_zone_init_flags(sizeof(struct inode), "xfs_vnode", inode 24 fs/xfs/linux-2.6/xfs_vfs.h struct inode; inode 93 fs/xfs/linux-2.6/xfs_vnode.c struct inode *vp = VFS_I(ip); inode 83 fs/xfs/linux-2.6/xfs_vnode.h static inline struct inode *vn_grab(struct inode *vp) inode 60 fs/xfs/linux-2.6/xfs_xattr.c return xfs_acl_vget(inode, buffer, size, acl); inode 76 fs/xfs/linux-2.6/xfs_xattr.c return xfs_acl_vremove(inode, acl); inode 78 fs/xfs/linux-2.6/xfs_xattr.c return xfs_acl_vset(inode, (void *)value, size, acl); inode 97 fs/xfs/linux-2.6/xfs_xattr.c struct xfs_inode *ip = XFS_I(inode); inode 119 fs/xfs/linux-2.6/xfs_xattr.c struct xfs_inode *ip = XFS_I(inode); inode 139 fs/xfs/linux-2.6/xfs_xattr.c return __xfs_xattr_get(inode, name, value, size, 0); inode 146 fs/xfs/linux-2.6/xfs_xattr.c return __xfs_xattr_set(inode, name, value, size, flags, 0); inode 160 fs/xfs/linux-2.6/xfs_xattr.c return __xfs_xattr_get(inode, name, value, size, ATTR_ROOT); inode 167 fs/xfs/linux-2.6/xfs_xattr.c return __xfs_xattr_set(inode, name, value, size, flags, ATTR_ROOT); inode 181 fs/xfs/linux-2.6/xfs_xattr.c return __xfs_xattr_get(inode, name, value, size, ATTR_SECURE); inode 188 fs/xfs/linux-2.6/xfs_xattr.c return __xfs_xattr_set(inode, name, value, size, flags, ATTR_SECURE); inode 287 fs/xfs/linux-2.6/xfs_xattr.c struct inode *inode = dentry->d_inode; inode 294 fs/xfs/linux-2.6/xfs_xattr.c context.dp = XFS_I(inode); inode 313 fs/xfs/linux-2.6/xfs_xattr.c if (xfs_acl_vhasacl_access(inode)) { inode 321 fs/xfs/linux-2.6/xfs_xattr.c if (xfs_acl_vhasacl_default(inode)) { inode 1037 fs/xfs/quota/xfs_qm_syscalls.c struct inode *vp; inode 980 fs/xfs/xfs_ialloc.c agno = XFS_INO_TO_AGNO(mp, inode); inode 988 fs/xfs/xfs_ialloc.c agino = XFS_INO_TO_AGINO(mp, inode); inode 989 fs/xfs/xfs_ialloc.c if (inode != XFS_AGINO_TO_INO(mp, agno, agino)) { inode 993 fs/xfs/xfs_ialloc.c (unsigned long long)inode, inode 77 fs/xfs/xfs_iget.c struct inode *old_inode; inode 154 fs/xfs/xfs_iget.c } else if (inode != old_inode) { inode 171 fs/xfs/xfs_iget.c old_inode, inode); inode 300 fs/xfs/xfs_iget.c ip->i_vnode = inode; inode 301 fs/xfs/xfs_iget.c inode->i_private = ip; inode 327 fs/xfs/xfs_iget.c struct inode *inode; inode 334 fs/xfs/xfs_iget.c inode = iget_locked(mp->m_super, ino); inode 335 fs/xfs/xfs_iget.c if (!inode) inode 339 fs/xfs/xfs_iget.c if (inode->i_state & I_NEW) { inode 343 fs/xfs/xfs_iget.c error = xfs_iget_core(inode, mp, tp, ino, flags, inode 346 fs/xfs/xfs_iget.c make_bad_inode(inode); inode 347 fs/xfs/xfs_iget.c if (inode->i_state & I_NEW) inode 348 fs/xfs/xfs_iget.c unlock_new_inode(inode); inode 349 fs/xfs/xfs_iget.c iput(inode); inode 362 fs/xfs/xfs_iget.c if (is_bad_inode(inode)) { inode 363 fs/xfs/xfs_iget.c iput(inode); inode 368 fs/xfs/xfs_iget.c ip = XFS_I(inode); inode 370 fs/xfs/xfs_iget.c iput(inode); inode 432 fs/xfs/xfs_iget.c struct inode *inode = VFS_I(ip); inode 438 fs/xfs/xfs_iget.c make_bad_inode(inode); inode 440 fs/xfs/xfs_iget.c if (inode->i_state & I_NEW) inode 441 fs/xfs/xfs_iget.c unlock_new_inode(inode); inode 206 fs/xfs/xfs_inode.h struct inode *i_vnode; /* vnode backpointer */ inode 268 fs/xfs/xfs_inode.h return (struct xfs_inode *)inode->i_private; inode 272 fs/xfs/xfs_inode.h static inline struct inode *VFS_I(struct xfs_inode *ip) inode 274 fs/xfs/xfs_inode.h return (struct inode *)ip->i_vnode; inode 286 fs/xfs/xfs_vfsops.c struct inode *vp = NULL; inode 6 fs/xfs/xfs_vfsops.h struct inode; inode 86 fs/xfs/xfs_vnodeops.c struct inode *inode = VFS_I(ip); inode 450 fs/xfs/xfs_vnodeops.c inode->i_mode &= S_IFMT; inode 451 fs/xfs/xfs_vnodeops.c inode->i_mode |= iattr->ia_mode & ~S_IFMT; inode 488 fs/xfs/xfs_vnodeops.c inode->i_uid = uid; inode 499 fs/xfs/xfs_vnodeops.c inode->i_gid = gid; inode 512 fs/xfs/xfs_vnodeops.c inode->i_atime = iattr->ia_atime; inode 518 fs/xfs/xfs_vnodeops.c inode->i_mtime = iattr->ia_mtime; inode 534 fs/xfs/xfs_vnodeops.c inode->i_ctime = iattr->ia_ctime; inode 2860 fs/xfs/xfs_vnodeops.c struct inode *vp = VFS_I(ip); inode 8 fs/xfs/xfs_vnodeops.h struct inode; inode 71 include/linux/adfs_fs.h return container_of(inode, struct adfs_inode_info, vfs_inode); inode 21 include/linux/adfs_fs_i.h struct inode vfs_inode; inode 351 include/linux/audit.h struct inode; inode 9 include/linux/cdev.h struct inode; inode 23 include/linux/cgroup.h struct inode; inode 217 include/linux/cgroup.h int (*open)(struct inode *inode, struct file *file); inode 275 include/linux/cgroup.h int (*release)(struct inode *inode, struct file *file); inode 332 include/linux/coda.h ino_t inode; inode 26 include/linux/coda_fs_i.h struct inode vfs_inode; inode 48 include/linux/coda_fs_i.h struct inode *coda_iget(struct super_block *sb, struct CodaFid *fid, struct coda_vattr *attr); inode 50 include/linux/coda_fs_i.h struct inode *coda_fid_to_inode(struct CodaFid *fid, struct super_block *sb); inode 76 include/linux/coda_linux.h return list_entry(inode, struct coda_inode_info, vfs_inode); inode 81 include/linux/coda_linux.h return &(ITOC(inode)->c_fid); inode 86 include/linux/coda_linux.h return coda_f2s(&(ITOC(inode)->c_fid)); inode 92 include/linux/coda_linux.h ITOC(inode)->c_flags |= flag; inode 86 include/linux/dcache.h struct inode *d_inode; /* Where the name belongs to - NULL is inode 135 include/linux/dcache.h void (*d_iput)(struct dentry *, struct inode *); inode 267 include/linux/dcache.h d_instantiate(entry, inode); inode 283 include/linux/dcache.h res = d_instantiate_unique(entry, inode); inode 31 include/linux/dnotify.h if (inode->i_dnotify_mask & (event)) inode 32 include/linux/dnotify.h __inode_dir_notify(inode, event); inode 7 include/linux/exportfs.h struct inode; inode 519 include/linux/ext2_fs.h __le32 inode; /* Inode number */ inode 532 include/linux/ext2_fs.h __le32 inode; /* Inode number */ inode 502 include/linux/ext3_fs.h return container_of(inode, struct ext3_inode_info, vfs_inode); inode 520 include/linux/ext3_fs.h #define NEXT_ORPHAN(inode) EXT3_I(inode)->i_dtime inode 615 include/linux/ext3_fs.h __le32 inode; /* Inode number */ inode 628 include/linux/ext3_fs.h __le32 inode; /* Inode number */ inode 808 include/linux/ext3_fs.h extern struct inode * ext3_new_inode (handle_t *, struct inode *, int); inode 810 include/linux/ext3_fs.h extern struct inode * ext3_orphan_get (struct super_block *, unsigned long); inode 826 include/linux/ext3_fs.h extern struct inode *ext3_iget(struct super_block *, unsigned long); inode 144 include/linux/ext3_fs_i.h struct inode vfs_inode; inode 71 include/linux/ext3_fs_sb.h struct inode * s_journal_inode; inode 22 include/linux/ext3_jbd.h #define EXT3_JOURNAL(inode) (EXT3_SB((inode)->i_sb)->s_journal) inode 159 include/linux/ext3_jbd.h return ext3_journal_start_sb(inode->i_sb, nblocks); inode 182 include/linux/ext3_jbd.h return journal_blocks_per_page(inode); inode 195 include/linux/ext3_jbd.h if (!S_ISREG(inode->i_mode)) inode 197 include/linux/ext3_jbd.h if (test_opt(inode->i_sb, DATA_FLAGS) == EXT3_MOUNT_JOURNAL_DATA) inode 199 include/linux/ext3_jbd.h if (EXT3_I(inode)->i_flags & EXT3_JOURNAL_DATA_FL) inode 206 include/linux/ext3_jbd.h if (!S_ISREG(inode->i_mode)) inode 208 include/linux/ext3_jbd.h if (EXT3_I(inode)->i_flags & EXT3_JOURNAL_DATA_FL) inode 210 include/linux/ext3_jbd.h if (test_opt(inode->i_sb, DATA_FLAGS) == EXT3_MOUNT_ORDERED_DATA) inode 217 include/linux/ext3_jbd.h if (!S_ISREG(inode->i_mode)) inode 219 include/linux/ext3_jbd.h if (EXT3_I(inode)->i_flags & EXT3_JOURNAL_DATA_FL) inode 221 include/linux/ext3_jbd.h if (test_opt(inode->i_sb, DATA_FLAGS) == EXT3_MOUNT_WRITEBACK_DATA) inode 173 include/linux/fs.h #define __IS_FLG(inode,flg) ((inode)->i_sb->s_flags & (flg)) inode 175 include/linux/fs.h #define IS_RDONLY(inode) ((inode)->i_sb->s_flags & MS_RDONLY) inode 176 include/linux/fs.h #define IS_SYNC(inode) (__IS_FLG(inode, MS_SYNCHRONOUS) || \ inode 177 include/linux/fs.h ((inode)->i_flags & S_SYNC)) inode 178 include/linux/fs.h #define IS_DIRSYNC(inode) (__IS_FLG(inode, MS_SYNCHRONOUS|MS_DIRSYNC) || \ inode 179 include/linux/fs.h ((inode)->i_flags & (S_SYNC|S_DIRSYNC))) inode 180 include/linux/fs.h #define IS_MANDLOCK(inode) __IS_FLG(inode, MS_MANDLOCK) inode 181 include/linux/fs.h #define IS_NOATIME(inode) __IS_FLG(inode, MS_RDONLY|MS_NOATIME) inode 182 include/linux/fs.h #define IS_I_VERSION(inode) __IS_FLG(inode, MS_I_VERSION) inode 184 include/linux/fs.h #define IS_NOQUOTA(inode) ((inode)->i_flags & S_NOQUOTA) inode 185 include/linux/fs.h #define IS_APPEND(inode) ((inode)->i_flags & S_APPEND) inode 186 include/linux/fs.h #define IS_IMMUTABLE(inode) ((inode)->i_flags & S_IMMUTABLE) inode 187 include/linux/fs.h #define IS_POSIXACL(inode) __IS_FLG(inode, MS_POSIXACL) inode 189 include/linux/fs.h #define IS_DEADDIR(inode) ((inode)->i_flags & S_DEAD) inode 190 include/linux/fs.h #define IS_NOCMTIME(inode) ((inode)->i_flags & S_NOCMTIME) inode 191 include/linux/fs.h #define IS_SWAPFILE(inode) ((inode)->i_flags & S_SWAPFILE) inode 192 include/linux/fs.h #define IS_PRIVATE(inode) ((inode)->i_flags & S_PRIVATE) inode 531 include/linux/fs.h struct inode *host; /* owner: inode, block_device */ inode 556 include/linux/fs.h struct inode * bd_inode; /* will die */ inode 619 include/linux/fs.h #define i_size_ordered_init(inode) seqcount_init(&inode->i_size_seqcount) inode 731 include/linux/fs.h seq = read_seqcount_begin(&inode->i_size_seqcount); inode 732 include/linux/fs.h i_size = inode->i_size; inode 733 include/linux/fs.h } while (read_seqcount_retry(&inode->i_size_seqcount, seq)); inode 739 include/linux/fs.h i_size = inode->i_size; inode 743 include/linux/fs.h return inode->i_size; inode 755 include/linux/fs.h write_seqcount_begin(&inode->i_size_seqcount); inode 756 include/linux/fs.h inode->i_size = i_size; inode 757 include/linux/fs.h write_seqcount_end(&inode->i_size_seqcount); inode 760 include/linux/fs.h inode->i_size = i_size; inode 763 include/linux/fs.h inode->i_size = i_size; inode 769 include/linux/fs.h return MINOR(inode->i_rdev); inode 774 include/linux/fs.h return MAJOR(inode->i_rdev); inode 1198 include/linux/fs.h ((current->fsuid == (inode)->i_uid) || capable(CAP_FOWNER)) inode 1271 include/linux/fs.h int (*open) (struct inode *, struct file *); inode 1272 include/linux/fs.h int (*release) (struct inode *, struct file *); inode 1273 include/linux/fs.h int (*ioctl) (struct inode *, struct file *, unsigned, unsigned long); inode 1304 include/linux/fs.h int (*ioctl) (struct inode *, struct file *, unsigned int, unsigned long); inode 1308 include/linux/fs.h int (*open) (struct inode *, struct file *); inode 1310 include/linux/fs.h int (*release) (struct inode *, struct file *); inode 1326 include/linux/fs.h int (*create) (struct inode *,struct dentry *,int, struct nameidata *); inode 1327 include/linux/fs.h struct dentry * (*lookup) (struct inode *,struct dentry *, struct nameidata *); inode 1328 include/linux/fs.h int (*link) (struct dentry *,struct inode *,struct dentry *); inode 1329 include/linux/fs.h int (*unlink) (struct inode *,struct dentry *); inode 1330 include/linux/fs.h int (*symlink) (struct inode *,struct dentry *,const char *); inode 1331 include/linux/fs.h int (*mkdir) (struct inode *,struct dentry *,int); inode 1332 include/linux/fs.h int (*rmdir) (struct inode *,struct dentry *); inode 1333 include/linux/fs.h int (*mknod) (struct inode *,struct dentry *,int,dev_t); inode 1334 include/linux/fs.h int (*rename) (struct inode *, struct dentry *, inode 1335 include/linux/fs.h struct inode *, struct dentry *); inode 1339 include/linux/fs.h void (*truncate) (struct inode *); inode 1340 include/linux/fs.h int (*permission) (struct inode *, int); inode 1347 include/linux/fs.h void (*truncate_range)(struct inode *, loff_t, loff_t); inode 1348 include/linux/fs.h long (*fallocate)(struct inode *inode, int mode, loff_t offset, inode 1350 include/linux/fs.h int (*fiemap)(struct inode *, struct fiemap_extent_info *, u64 start, inode 1369 include/linux/fs.h struct inode *(*alloc_inode)(struct super_block *sb); inode 1370 include/linux/fs.h void (*destroy_inode)(struct inode *); inode 1372 include/linux/fs.h void (*dirty_inode) (struct inode *); inode 1373 include/linux/fs.h int (*write_inode) (struct inode *, int); inode 1374 include/linux/fs.h void (*drop_inode) (struct inode *); inode 1375 include/linux/fs.h void (*delete_inode) (struct inode *); inode 1383 include/linux/fs.h void (*clear_inode) (struct inode *); inode 1464 include/linux/fs.h __mark_inode_dirty(inode, I_DIRTY); inode 1469 include/linux/fs.h __mark_inode_dirty(inode, I_DIRTY_SYNC); inode 1482 include/linux/fs.h inode->i_nlink++; inode 1487 include/linux/fs.h inc_nlink(inode); inode 1488 include/linux/fs.h mark_inode_dirty(inode); inode 1504 include/linux/fs.h inode->i_nlink--; inode 1517 include/linux/fs.h inode->i_nlink = 0; inode 1522 include/linux/fs.h drop_nlink(inode); inode 1523 include/linux/fs.h mark_inode_dirty(inode); inode 1536 include/linux/fs.h spin_lock(&inode->i_lock); inode 1537 include/linux/fs.h inode->i_version++; inode 1538 include/linux/fs.h spin_unlock(&inode->i_lock); inode 1650 include/linux/fs.h if (mandatory_lock(inode)) inode 1651 include/linux/fs.h return locks_mandatory_locked(inode); inode 1659 include/linux/fs.h if (inode->i_flock && mandatory_lock(inode)) inode 1661 include/linux/fs.h FLOCK_VERIFY_WRITE, inode, filp, inode 1662 include/linux/fs.h size < inode->i_size ? size : inode->i_size, inode 1663 include/linux/fs.h (size < inode->i_size ? inode->i_size - size inode 1664 include/linux/fs.h : size - inode->i_size) inode 1671 include/linux/fs.h if (inode->i_flock) inode 1672 include/linux/fs.h return __break_lease(inode, mode); inode 1816 include/linux/fs.h if (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || inode 1817 include/linux/fs.h S_ISLNK(inode->i_mode)) inode 1818 include/linux/fs.h invalidate_mapping_pages(inode->i_mapping, 0, -1); inode 1859 include/linux/fs.h atomic_dec(&inode->i_writecount); inode 1892 include/linux/fs.h extern struct inode * igrab(struct inode *); inode 1898 include/linux/fs.h extern struct inode *ilookup5_nowait(struct super_block *sb, inode 1901 include/linux/fs.h extern struct inode *ilookup5(struct super_block *sb, unsigned long hashval, inode 1903 include/linux/fs.h extern struct inode *ilookup(struct super_block *sb, unsigned long ino); inode 1905 include/linux/fs.h extern struct inode * iget5_locked(struct super_block *, unsigned long, int (*test)(struct inode *, void *), int (*set)(struct inode *, void *), void *); inode 1906 include/linux/fs.h extern struct inode * iget_locked(struct super_block *, unsigned long); inode 1913 include/linux/fs.h extern struct inode *new_inode(struct super_block *); inode 1920 include/linux/fs.h __insert_inode_hash(inode, inode->i_ino); inode 2005 include/linux/fs.h return __blockdev_direct_IO(rw, iocb, inode, bdev, iov, offset, inode 2014 include/linux/fs.h return __blockdev_direct_IO(rw, iocb, inode, bdev, iov, offset, inode 2023 include/linux/fs.h return __blockdev_direct_IO(rw, iocb, inode, bdev, iov, offset, inode 2180 include/linux/fs.h static int __fops ## _open(struct inode *inode, struct file *file) \ inode 2183 include/linux/fs.h return simple_attr_open(inode, file, __get, __set, __fmt); \ inode 25 include/linux/fsnotify.h inotify_d_instantiate(entry, inode); inode 44 include/linux/fsnotify.h struct inode *source = moved->d_inode; inode 88 include/linux/fsnotify.h inotify_inode_queue_event(inode, IN_DELETE_SELF, 0, NULL, NULL); inode 89 include/linux/fsnotify.h inotify_inode_is_dead(inode); inode 97 include/linux/fsnotify.h inotify_inode_queue_event(inode, IN_ATTRIB, 0, NULL, NULL); inode 105 include/linux/fsnotify.h inode_dir_notify(inode, DN_CREATE); inode 106 include/linux/fsnotify.h inotify_inode_queue_event(inode, IN_CREATE, 0, dentry->d_name.name, inode 108 include/linux/fsnotify.h audit_inode_child(dentry->d_name.name, dentry, inode); inode 120 include/linux/fsnotify.h inode); inode 121 include/linux/fsnotify.h fsnotify_link_count(inode); inode 130 include/linux/fsnotify.h inode_dir_notify(inode, DN_CREATE); inode 131 include/linux/fsnotify.h inotify_inode_queue_event(inode, IN_CREATE | IN_ISDIR, 0, inode 133 include/linux/fsnotify.h audit_inode_child(dentry->d_name.name, dentry, inode); inode 141 include/linux/fsnotify.h struct inode *inode = dentry->d_inode; inode 144 include/linux/fsnotify.h if (S_ISDIR(inode->i_mode)) inode 149 include/linux/fsnotify.h inotify_inode_queue_event(inode, mask, 0, NULL, NULL); inode 157 include/linux/fsnotify.h struct inode *inode = dentry->d_inode; inode 160 include/linux/fsnotify.h if (S_ISDIR(inode->i_mode)) inode 165 include/linux/fsnotify.h inotify_inode_queue_event(inode, mask, 0, NULL, NULL); inode 173 include/linux/fsnotify.h struct inode *inode = dentry->d_inode; inode 176 include/linux/fsnotify.h if (S_ISDIR(inode->i_mode)) inode 180 include/linux/fsnotify.h inotify_inode_queue_event(inode, mask, 0, NULL, NULL); inode 189 include/linux/fsnotify.h struct inode *inode = dentry->d_inode; inode 194 include/linux/fsnotify.h if (S_ISDIR(inode->i_mode)) inode 198 include/linux/fsnotify.h inotify_inode_queue_event(inode, mask, 0, NULL, NULL); inode 206 include/linux/fsnotify.h struct inode *inode = dentry->d_inode; inode 209 include/linux/fsnotify.h if (S_ISDIR(inode->i_mode)) inode 213 include/linux/fsnotify.h inotify_inode_queue_event(inode, mask, 0, NULL, NULL); inode 222 include/linux/fsnotify.h struct inode *inode = dentry->d_inode; inode 258 include/linux/fsnotify.h if (S_ISDIR(inode->i_mode)) inode 260 include/linux/fsnotify.h inotify_inode_queue_event(inode, in_mask, 0, NULL, NULL); inode 7 include/linux/futex.h struct inode; inode 152 include/linux/futex.h struct inode *inode; inode 22 include/linux/generic_acl.h struct posix_acl *(*getacl)(struct inode *, int); inode 23 include/linux/generic_acl.h void (*setacl)(struct inode *, int, struct posix_acl *); inode 124 include/linux/hugetlb.h struct inode vfs_inode; inode 129 include/linux/hugetlb.h return container_of(inode, struct hugetlbfs_inode_info, vfs_inode); inode 93 include/linux/inotify.h struct inode *inode; /* associated inode */ inode 100 include/linux/inotify.h const char *, struct inode *); inode 738 include/linux/jbd.h struct inode *j_inode; inode 410 include/linux/jbd2.h struct inode *i_vfs_inode; inode 873 include/linux/jbd2.h struct inode *j_inode; inode 275 include/linux/lockd/lockd.h static inline struct inode *nlmsvc_file_inode(struct nlm_file *file) inode 97 include/linux/minix_fs.h __u16 inode; inode 102 include/linux/minix_fs.h __u32 inode; inode 212 include/linux/mm.h struct inode; inode 266 include/linux/msdos_fs.h struct inode vfs_inode; inode 284 include/linux/msdos_fs.h return container_of(inode, struct msdos_inode_info, vfs_inode); inode 290 include/linux/msdos_fs.h return ((inode->i_mode & S_IWUGO) ? ATTR_NONE : ATTR_RO) | inode 291 include/linux/msdos_fs.h (S_ISDIR(inode->i_mode) ? ATTR_DIR : ATTR_NONE) | inode 292 include/linux/msdos_fs.h MSDOS_I(inode)->i_attrs; inode 425 include/linux/msdos_fs.h extern struct inode *fat_iget(struct super_block *sb, loff_t i_pos); inode 426 include/linux/msdos_fs.h extern struct inode *fat_build_inode(struct super_block *sb, inode 17 include/linux/mtd/blktrans.h struct inode; inode 192 include/linux/ncp_fs.h #define NCP_SERVER(inode) NCP_SBP((inode)->i_sb) inode 195 include/linux/ncp_fs.h return container_of(inode, struct ncp_inode_info, vfs_inode); inode 200 include/linux/ncp_fs.h struct inode *ncp_iget(struct super_block *, struct ncp_entry_info *); inode 26 include/linux/ncp_fs_i.h struct inode vfs_inode; inode 63 include/linux/net.h struct inode; inode 186 include/linux/nfs_fs.h struct inode vfs_inode; inode 211 include/linux/nfs_fs.h return container_of(inode, struct nfs_inode, vfs_inode); inode 221 include/linux/nfs_fs.h return &NFS_I(inode)->fh; inode 226 include/linux/nfs_fs.h return NFS_SB(inode->i_sb); inode 231 include/linux/nfs_fs.h return NFS_SERVER(inode)->client; inode 236 include/linux/nfs_fs.h return NFS_SERVER(inode)->nfs_client->rpc_ops; inode 241 include/linux/nfs_fs.h return NFS_I(inode)->cookieverf; inode 246 include/linux/nfs_fs.h struct nfs_server *nfss = NFS_SERVER(inode); inode 247 include/linux/nfs_fs.h return S_ISDIR(inode->i_mode) ? nfss->acdirmin : nfss->acregmin; inode 252 include/linux/nfs_fs.h struct nfs_server *nfss = NFS_SERVER(inode); inode 253 include/linux/nfs_fs.h return S_ISDIR(inode->i_mode) ? nfss->acdirmax : nfss->acregmax; inode 258 include/linux/nfs_fs.h return test_bit(NFS_INO_STALE, &NFS_I(inode)->flags); inode 263 include/linux/nfs_fs.h return NFS_I(inode)->fileid; inode 268 include/linux/nfs_fs.h NFS_I(inode)->fileid = fileid; inode 273 include/linux/nfs_fs.h struct nfs_inode *nfsi = NFS_I(inode); inode 275 include/linux/nfs_fs.h spin_lock(&inode->i_lock); inode 277 include/linux/nfs_fs.h if (S_ISDIR(inode->i_mode)) inode 279 include/linux/nfs_fs.h spin_unlock(&inode->i_lock); inode 284 include/linux/nfs_fs.h return NFS_SERVER(inode)->caps & cap; inode 289 include/linux/nfs_fs.h return test_bit(NFS_INO_ADVISE_RDPLUS, &NFS_I(inode)->flags); inode 328 include/linux/nfs_fs.h extern struct inode *nfs_fhget(struct super_block *, struct nfs_fh *, inode 491 include/linux/nfs_fs.h return NFS_I(inode)->npages != 0; inode 59 include/linux/nfs_page.h struct inode *pg_inode; inode 60 include/linux/nfs_page.h int (*pg_doio)(struct inode *, struct list_head *, unsigned int, size_t, int); inode 403 include/linux/nfs_xdr.h struct inode * inode; inode 743 include/linux/nfs_xdr.h struct inode *inode; inode 761 include/linux/nfs_xdr.h struct inode *inode; inode 797 include/linux/nfs_xdr.h int (*lookup) (struct inode *, struct qstr *, inode 799 include/linux/nfs_xdr.h int (*access) (struct inode *, struct nfs_access_entry *); inode 800 include/linux/nfs_xdr.h int (*readlink)(struct inode *, struct page *, unsigned int, inode 802 include/linux/nfs_xdr.h int (*create) (struct inode *, struct dentry *, inode 804 include/linux/nfs_xdr.h int (*remove) (struct inode *, struct qstr *); inode 805 include/linux/nfs_xdr.h void (*unlink_setup) (struct rpc_message *, struct inode *dir); inode 806 include/linux/nfs_xdr.h int (*unlink_done) (struct rpc_task *, struct inode *); inode 807 include/linux/nfs_xdr.h int (*rename) (struct inode *, struct qstr *, inode 808 include/linux/nfs_xdr.h struct inode *, struct qstr *); inode 809 include/linux/nfs_xdr.h int (*link) (struct inode *, struct inode *, struct qstr *); inode 810 include/linux/nfs_xdr.h int (*symlink) (struct inode *, struct dentry *, struct page *, inode 812 include/linux/nfs_xdr.h int (*mkdir) (struct inode *, struct dentry *, struct iattr *); inode 813 include/linux/nfs_xdr.h int (*rmdir) (struct inode *, struct qstr *); inode 816 include/linux/nfs_xdr.h int (*mknod) (struct inode *, struct dentry *, struct iattr *, inode 834 include/linux/nfs_xdr.h void (*clear_acl_cache)(struct inode *); inode 842 include/linux/nfs_xdr.h #define NFS_CALL(op, inode, args) NFS_PROTO(inode)->op args inode 284 include/linux/nfsd/nfsfh.h struct inode *inode; inode 286 include/linux/nfsd/nfsfh.h inode = fhp->fh_dentry->d_inode; inode 288 include/linux/nfsd/nfsfh.h fhp->fh_pre_mtime = inode->i_mtime; inode 289 include/linux/nfsd/nfsfh.h fhp->fh_pre_ctime = inode->i_ctime; inode 290 include/linux/nfsd/nfsfh.h fhp->fh_pre_size = inode->i_size; inode 313 include/linux/nfsd/nfsfh.h struct inode *inode; inode 326 include/linux/nfsd/nfsfh.h inode = dentry->d_inode; inode 327 include/linux/nfsd/nfsfh.h mutex_lock_nested(&inode->i_mutex, subclass); inode 222 include/linux/nfsd/state.h struct inode *fi_inode; inode 56 include/linux/pipe_fs_i.h struct inode *inode; inode 129 include/linux/proc_fs.h extern struct inode *proc_get_inode(struct super_block *, unsigned int, struct proc_dir_entry *); inode 277 include/linux/proc_fs.h int (*proc_get_link)(struct inode *, struct path *); inode 294 include/linux/proc_fs.h struct inode vfs_inode; inode 299 include/linux/proc_fs.h return container_of(inode, struct proc_inode, vfs_inode); inode 304 include/linux/proc_fs.h return PROC_I(inode)->pde; inode 110 include/linux/qnx4_fs.h struct inode vfs_inode; inode 113 include/linux/qnx4_fs.h extern struct inode *qnx4_iget(struct super_block *, unsigned long); inode 141 include/linux/qnx4_fs.h return container_of(inode, struct qnx4_inode_info, vfs_inode); inode 146 include/linux/qnx4_fs.h return &qnx4_i(inode)->raw; inode 289 include/linux/quota.h int (*initialize) (struct inode *, int); inode 290 include/linux/quota.h int (*drop) (struct inode *); inode 291 include/linux/quota.h int (*alloc_space) (struct inode *, qsize_t, int); inode 292 include/linux/quota.h int (*alloc_inode) (const struct inode *, unsigned long); inode 293 include/linux/quota.h int (*free_space) (struct inode *, qsize_t); inode 294 include/linux/quota.h int (*free_inode) (const struct inode *, unsigned long); inode 295 include/linux/quota.h int (*transfer) (struct inode *, struct iattr *); inode 337 include/linux/quota.h struct inode *files[MAXQUOTAS]; /* inodes of quotafiles */ inode 109 include/linux/quotaops.h BUG_ON(!inode->i_sb); inode 110 include/linux/quotaops.h if (sb_any_quota_enabled(inode->i_sb) && !IS_NOQUOTA(inode)) inode 111 include/linux/quotaops.h inode->i_sb->dq_op->initialize(inode, -1); inode 118 include/linux/quotaops.h if (sb_any_quota_enabled(inode->i_sb)) { inode 120 include/linux/quotaops.h if (inode->i_sb->dq_op->alloc_space(inode, nr, 1) == NO_QUOTA) inode 124 include/linux/quotaops.h inode_add_bytes(inode, nr); inode 131 include/linux/quotaops.h if (!(ret = vfs_dq_prealloc_space_nodirty(inode, nr))) inode 132 include/linux/quotaops.h mark_inode_dirty(inode); inode 138 include/linux/quotaops.h if (sb_any_quota_enabled(inode->i_sb)) { inode 140 include/linux/quotaops.h if (inode->i_sb->dq_op->alloc_space(inode, nr, 0) == NO_QUOTA) inode 144 include/linux/quotaops.h inode_add_bytes(inode, nr); inode 151 include/linux/quotaops.h if (!(ret = vfs_dq_alloc_space_nodirty(inode, nr))) inode 152 include/linux/quotaops.h mark_inode_dirty(inode); inode 158 include/linux/quotaops.h if (sb_any_quota_enabled(inode->i_sb)) { inode 159 include/linux/quotaops.h vfs_dq_init(inode); inode 160 include/linux/quotaops.h if (inode->i_sb->dq_op->alloc_inode(inode, 1) == NO_QUOTA) inode 168 include/linux/quotaops.h if (sb_any_quota_enabled(inode->i_sb)) inode 169 include/linux/quotaops.h inode->i_sb->dq_op->free_space(inode, nr); inode 171 include/linux/quotaops.h inode_sub_bytes(inode, nr); inode 176 include/linux/quotaops.h vfs_dq_free_space_nodirty(inode, nr); inode 177 include/linux/quotaops.h mark_inode_dirty(inode); inode 182 include/linux/quotaops.h if (sb_any_quota_enabled(inode->i_sb)) inode 183 include/linux/quotaops.h inode->i_sb->dq_op->free_inode(inode, 1); inode 267 include/linux/quotaops.h inode_add_bytes(inode, nr); inode 273 include/linux/quotaops.h vfs_dq_prealloc_space_nodirty(inode, nr); inode 274 include/linux/quotaops.h mark_inode_dirty(inode); inode 280 include/linux/quotaops.h inode_add_bytes(inode, nr); inode 286 include/linux/quotaops.h vfs_dq_alloc_space_nodirty(inode, nr); inode 287 include/linux/quotaops.h mark_inode_dirty(inode); inode 293 include/linux/quotaops.h inode_sub_bytes(inode, nr); inode 298 include/linux/quotaops.h vfs_dq_free_space_nodirty(inode, nr); inode 299 include/linux/quotaops.h mark_inode_dirty(inode); inode 306 include/linux/quotaops.h return vfs_dq_prealloc_space_nodirty(inode, inode 307 include/linux/quotaops.h nr << inode->i_sb->s_blocksize_bits); inode 312 include/linux/quotaops.h return vfs_dq_prealloc_space(inode, inode 313 include/linux/quotaops.h nr << inode->i_sb->s_blocksize_bits); inode 318 include/linux/quotaops.h return vfs_dq_alloc_space_nodirty(inode, inode 319 include/linux/quotaops.h nr << inode->i_sb->s_blocksize_bits); inode 324 include/linux/quotaops.h return vfs_dq_alloc_space(inode, inode 325 include/linux/quotaops.h nr << inode->i_sb->s_blocksize_bits); inode 330 include/linux/quotaops.h vfs_dq_free_space_nodirty(inode, nr << inode->i_sb->s_blocksize_bits); inode 335 include/linux/quotaops.h vfs_dq_free_space(inode, nr << inode->i_sb->s_blocksize_bits); inode 342 include/linux/quotaops.h #define DQUOT_INIT(inode) vfs_dq_init(inode) inode 343 include/linux/quotaops.h #define DQUOT_DROP(inode) vfs_dq_drop(inode) inode 345 include/linux/quotaops.h vfs_dq_prealloc_space_nodirty(inode, nr) inode 346 include/linux/quotaops.h #define DQUOT_PREALLOC_SPACE(inode, nr) vfs_dq_prealloc_space(inode, nr) inode 348 include/linux/quotaops.h vfs_dq_alloc_space_nodirty(inode, nr) inode 349 include/linux/quotaops.h #define DQUOT_ALLOC_SPACE(inode, nr) vfs_dq_alloc_space(inode, nr) inode 351 include/linux/quotaops.h vfs_dq_prealloc_block_nodirty(inode, nr) inode 352 include/linux/quotaops.h #define DQUOT_PREALLOC_BLOCK(inode, nr) vfs_dq_prealloc_block(inode, nr) inode 354 include/linux/quotaops.h vfs_dq_alloc_block_nodirty(inode, nr) inode 355 include/linux/quotaops.h #define DQUOT_ALLOC_BLOCK(inode, nr) vfs_dq_alloc_block(inode, nr) inode 356 include/linux/quotaops.h #define DQUOT_ALLOC_INODE(inode) vfs_dq_alloc_inode(inode) inode 358 include/linux/quotaops.h vfs_dq_free_space_nodirty(inode, nr) inode 359 include/linux/quotaops.h #define DQUOT_FREE_SPACE(inode, nr) vfs_dq_free_space(inode, nr) inode 361 include/linux/quotaops.h vfs_dq_free_block_nodirty(inode, nr) inode 362 include/linux/quotaops.h #define DQUOT_FREE_BLOCK(inode, nr) vfs_dq_free_block(inode, nr) inode 363 include/linux/quotaops.h #define DQUOT_FREE_INODE(inode) vfs_dq_free_inode(inode) inode 364 include/linux/quotaops.h #define DQUOT_TRANSFER(inode, iattr) vfs_dq_transfer(inode, iattr) inode 4 include/linux/ramfs.h struct inode *ramfs_get_inode(struct super_block *sb, int mode, dev_t dev); inode 62 include/linux/reiserfs_acl.h REISERFS_I(inode)->i_acl_access = NULL; inode 67 include/linux/reiserfs_acl.h REISERFS_I(inode)->i_acl_default = NULL; inode 280 include/linux/reiserfs_fs.h return container_of(inode, struct reiserfs_inode_info, vfs_inode); inode 303 include/linux/reiserfs_fs.h ((REISERFS_I(inode)->i_flags & i_item_key_version_mask) ? KEY_FORMAT_3_6 : KEY_FORMAT_3_5) inode 307 include/linux/reiserfs_fs.h REISERFS_I(inode)->i_flags |= i_item_key_version_mask; \ inode 309 include/linux/reiserfs_fs.h REISERFS_I(inode)->i_flags &= ~i_item_key_version_mask; }) inode 312 include/linux/reiserfs_fs.h ((REISERFS_I(inode)->i_flags & i_stat_data_version_mask) ? STAT_DATA_V2 : STAT_DATA_V1) inode 316 include/linux/reiserfs_fs.h REISERFS_I(inode)->i_flags |= i_stat_data_version_mask; \ inode 318 include/linux/reiserfs_fs.h REISERFS_I(inode)->i_flags &= ~i_stat_data_version_mask; }) inode 1235 include/linux/reiserfs_fs.h #define INODE_PKEY(inode) ((struct reiserfs_key *)(REISERFS_I(inode)->i_key)) inode 1246 include/linux/reiserfs_fs.h if (get_inode_item_key_version(inode) == KEY_FORMAT_3_5) inode 1699 include/linux/reiserfs_fs.h if (reiserfs_data_log(inode->i_sb) || inode 1700 include/linux/reiserfs_fs.h (REISERFS_I(inode)->i_flags & i_data_log)) inode 1856 include/linux/reiserfs_fs.h #define i_block_size(inode) ((inode)->i_sb->s_blocksize) inode 1857 include/linux/reiserfs_fs.h #define file_size(inode) ((inode)->i_size) inode 1858 include/linux/reiserfs_fs.h #define tail_size(inode) (file_size (inode) & (i_block_size (inode) - 1)) inode 1860 include/linux/reiserfs_fs.h #define tail_has_to_be_packed(inode) (have_large_tails ((inode)->i_sb)?\ inode 1861 include/linux/reiserfs_fs.h !STORE_TAIL_IN_UNFM_S1(file_size (inode), tail_size(inode), inode->i_sb->s_blocksize):have_small_tails ((inode)->i_sb)?!STORE_TAIL_IN_UNFM_S2(file_size (inode), tail_size(inode), inode->i_sb->s_blocksize):0 ) inode 1895 include/linux/reiserfs_fs.h struct inode *reiserfs_iget(struct super_block *s, const struct cpu_key *key); inode 1908 include/linux/reiserfs_fs.h reiserfs_update_sd_size(th, inode, inode->i_size); inode 2055 include/linux/reiserfs_fs.h struct inode *inode; /* inode passed to allocator, if we allocate unf. nodes */ inode 2102 include/linux/reiserfs_fs.h .inode = NULL, inode 2120 include/linux/reiserfs_fs.h .inode = inode, inode 2138 include/linux/reiserfs_fs.h .inode = inode, inode 64 include/linux/reiserfs_fs_i.h struct inode vfs_inode; inode 26 include/linux/reiserfs_xattr.h struct inode; inode 36 include/linux/reiserfs_xattr.h int (*get) (struct inode * inode, const char *name, void *buffer, inode 38 include/linux/reiserfs_xattr.h int (*set) (struct inode * inode, const char *name, const void *buffer, inode 40 include/linux/reiserfs_xattr.h int (*del) (struct inode * inode, const char *name); inode 41 include/linux/reiserfs_xattr.h int (*list) (struct inode * inode, const char *name, int namelen, inode 47 include/linux/reiserfs_xattr.h #define is_reiserfs_priv_object(inode) IS_PRIVATE(inode) inode 48 include/linux/reiserfs_xattr.h #define has_xattr_dir(inode) (REISERFS_I(inode)->i_flags & i_has_xattr_dir) inode 91 include/linux/reiserfs_xattr.h down_write(&REISERFS_I(inode)->xattr_sem); inode 95 include/linux/reiserfs_xattr.h up_write(&REISERFS_I(inode)->xattr_sem); inode 99 include/linux/reiserfs_xattr.h down_read(&REISERFS_I(inode)->xattr_sem); inode 104 include/linux/reiserfs_xattr.h up_read(&REISERFS_I(inode)->xattr_sem); inode 109 include/linux/reiserfs_xattr.h inode->i_flags |= S_PRIVATE; inode 114 include/linux/reiserfs_xattr.h init_rwsem(&REISERFS_I(inode)->xattr_sem); inode 1353 include/linux/security.h int (*inode_alloc_security) (struct inode *inode); inode 1354 include/linux/security.h void (*inode_free_security) (struct inode *inode); inode 1355 include/linux/security.h int (*inode_init_security) (struct inode *inode, struct inode *dir, inode 1357 include/linux/security.h int (*inode_create) (struct inode *dir, inode 1360 include/linux/security.h struct inode *dir, struct dentry *new_dentry); inode 1361 include/linux/security.h int (*inode_unlink) (struct inode *dir, struct dentry *dentry); inode 1362 include/linux/security.h int (*inode_symlink) (struct inode *dir, inode 1364 include/linux/security.h int (*inode_mkdir) (struct inode *dir, struct dentry *dentry, int mode); inode 1365 include/linux/security.h int (*inode_rmdir) (struct inode *dir, struct dentry *dentry); inode 1366 include/linux/security.h int (*inode_mknod) (struct inode *dir, struct dentry *dentry, inode 1368 include/linux/security.h int (*inode_rename) (struct inode *old_dir, struct dentry *old_dentry, inode 1369 include/linux/security.h struct inode *new_dir, struct dentry *new_dentry); inode 1372 include/linux/security.h int (*inode_permission) (struct inode *inode, int mask); inode 1375 include/linux/security.h void (*inode_delete) (struct inode *inode); inode 1385 include/linux/security.h int (*inode_getsecurity) (const struct inode *inode, const char *name, void **buffer, bool alloc); inode 1386 include/linux/security.h int (*inode_setsecurity) (struct inode *inode, const char *name, const void *value, size_t size, int flags); inode 1387 include/linux/security.h int (*inode_listsecurity) (struct inode *inode, char *buffer, size_t buffer_size); inode 1388 include/linux/security.h void (*inode_getsecid) (const struct inode *inode, u32 *secid); inode 1438 include/linux/security.h void (*task_to_inode) (struct task_struct *p, struct inode *inode); inode 1474 include/linux/security.h void (*d_instantiate) (struct dentry *dentry, struct inode *inode); inode 13 include/linux/seq_file.h struct inode; inode 21 include/linux/shmem_fs.h struct inode vfs_inode; inode 42 include/linux/shmem_fs.h return container_of(inode, struct shmem_inode_info, vfs_inode); inode 42 include/linux/smb_fs.h return container_of(inode, struct smb_inode_info, vfs_inode); inode 122 include/linux/smb_fs.h int (*read)(struct inode *inode, loff_t offset, int count, inode 124 include/linux/smb_fs.h int (*write)(struct inode *inode, loff_t offset, int count, const inode 133 include/linux/smb_fs.h int (*truncate)(struct inode *inode, loff_t length); inode 34 include/linux/smb_fs_i.h struct inode vfs_inode; /* must be at the end */ inode 32 include/linux/smb_fs_sb.h #define server_from_inode(inode) SMB_SB((inode)->i_sb) inode 17 include/linux/sunrpc/rpc_pipe_fs.h void (*release_pipe)(struct inode *); inode 22 include/linux/sunrpc/rpc_pipe_fs.h struct inode vfs_inode; inode 41 include/linux/sunrpc/rpc_pipe_fs.h return container_of(inode, struct rpc_inode, vfs_inode); inode 16 include/linux/syscalls.h struct inode; inode 196 include/linux/sysv_fs.h sysv_ino_t inode; inode 229 include/linux/tty_driver.h struct inode *inode, int idx); inode 68 include/linux/uio_driver.h int (*open)(struct uio_info *info, struct inode *inode); inode 69 include/linux/uio_driver.h int (*release)(struct uio_info *info, struct inode *inode); inode 81 include/linux/writeback.h wait_on_bit(&inode->i_state, __I_LOCK, inode_wait, inode 87 include/linux/writeback.h wait_on_bit(&inode->i_state, __I_SYNC, inode_wait, inode 36 include/linux/xattr.h struct inode; inode 41 include/linux/xattr.h size_t (*list)(struct inode *inode, char *list, size_t list_size, inode 43 include/linux/xattr.h int (*get)(struct inode *inode, const char *name, void *buffer, inode 45 include/linux/xattr.h int (*set)(struct inode *inode, const char *name, const void *buffer, inode 704 include/net/sock.h struct inode vfs_inode; inode 709 include/net/sock.h return &container_of(inode, struct socket_alloc, vfs_inode)->socket; inode 712 include/net/sock.h static inline struct inode *SOCK_INODE(struct socket *socket) inode 65 include/sound/info.h struct inode * inode, struct file * file, inode 65 ipc/mqueue.c struct inode vfs_inode; inode 101 ipc/mqueue.c return container_of(inode, struct mqueue_inode_info, vfs_inode); inode 104 ipc/mqueue.c static struct inode *mqueue_get_inode(struct super_block *sb, int mode, inode 107 ipc/mqueue.c struct inode *inode; inode 109 ipc/mqueue.c inode = new_inode(sb); inode 110 ipc/mqueue.c if (inode) { inode 111 ipc/mqueue.c inode->i_mode = mode; inode 112 ipc/mqueue.c inode->i_uid = current->fsuid; inode 113 ipc/mqueue.c inode->i_gid = current->fsgid; inode 114 ipc/mqueue.c inode->i_blocks = 0; inode 115 ipc/mqueue.c inode->i_mtime = inode->i_ctime = inode->i_atime = inode 124 ipc/mqueue.c inode->i_fop = &mqueue_file_operations; inode 125 ipc/mqueue.c inode->i_size = FILENT_SIZE; inode 127 ipc/mqueue.c info = MQUEUE_I(inode); inode 167 ipc/mqueue.c inc_nlink(inode); inode 169 ipc/mqueue.c inode->i_size = 2 * DIRENT_SIZE; inode 170 ipc/mqueue.c inode->i_op = &mqueue_dir_inode_operations; inode 171 ipc/mqueue.c inode->i_fop = &simple_dir_operations; inode 174 ipc/mqueue.c return inode; inode 176 ipc/mqueue.c make_bad_inode(inode); inode 177 ipc/mqueue.c iput(inode); inode 183 ipc/mqueue.c struct inode *inode; inode 190 ipc/mqueue.c inode = mqueue_get_inode(sb, S_IFDIR | S_ISVTX | S_IRWXUGO, NULL); inode 191 ipc/mqueue.c if (!inode) inode 194 ipc/mqueue.c sb->s_root = d_alloc_root(inode); inode 196 ipc/mqueue.c iput(inode); inode 217 ipc/mqueue.c static struct inode *mqueue_alloc_inode(struct super_block *sb) inode 229 ipc/mqueue.c kmem_cache_free(mqueue_inode_cachep, MQUEUE_I(inode)); inode 239 ipc/mqueue.c if (S_ISDIR(inode->i_mode)) { inode 240 ipc/mqueue.c clear_inode(inode); inode 243 ipc/mqueue.c info = MQUEUE_I(inode); inode 250 ipc/mqueue.c clear_inode(inode); inode 267 ipc/mqueue.c struct inode *inode; inode 279 ipc/mqueue.c inode = mqueue_get_inode(dir->i_sb, mode, attr); inode 280 ipc/mqueue.c if (!inode) { inode 290 ipc/mqueue.c d_instantiate(dentry, inode); inode 300 ipc/mqueue.c struct inode *inode = dentry->d_inode; inode 304 ipc/mqueue.c drop_nlink(inode); inode 723 ipc/mqueue.c struct inode *inode = NULL; inode 742 ipc/mqueue.c inode = dentry->d_inode; inode 743 ipc/mqueue.c if (inode) inode 744 ipc/mqueue.c atomic_inc(&inode->i_count); inode 756 ipc/mqueue.c if (inode) inode 757 ipc/mqueue.c iput(inode); inode 816 ipc/mqueue.c struct inode *inode; inode 838 ipc/mqueue.c inode = filp->f_path.dentry->d_inode; inode 841 ipc/mqueue.c info = MQUEUE_I(inode); inode 888 ipc/mqueue.c inode->i_atime = inode->i_mtime = inode->i_ctime = inode 907 ipc/mqueue.c struct inode *inode; inode 922 ipc/mqueue.c inode = filp->f_path.dentry->d_inode; inode 925 ipc/mqueue.c info = MQUEUE_I(inode); inode 956 ipc/mqueue.c inode->i_atime = inode->i_mtime = inode->i_ctime = inode 990 ipc/mqueue.c struct inode *inode; inode 1062 ipc/mqueue.c inode = filp->f_path.dentry->d_inode; inode 1065 ipc/mqueue.c info = MQUEUE_I(inode); inode 1072 ipc/mqueue.c inode->i_atime = inode->i_ctime = CURRENT_TIME; inode 1096 ipc/mqueue.c inode->i_atime = inode->i_ctime = CURRENT_TIME; inode 1117 ipc/mqueue.c struct inode *inode; inode 1132 ipc/mqueue.c inode = filp->f_path.dentry->d_inode; inode 1135 ipc/mqueue.c info = MQUEUE_I(inode); inode 1152 ipc/mqueue.c inode->i_atime = inode->i_ctime = CURRENT_TIME; inode 555 ipc/shm.c struct inode *inode; inode 561 ipc/shm.c inode = shp->shm_file->f_path.dentry->d_inode; inode 564 ipc/shm.c struct address_space *mapping = inode->i_mapping; inode 568 ipc/shm.c struct shmem_inode_info *info = SHMEM_I(inode); inode 570 ipc/shm.c *rss += inode->i_mapping->nrpages; inode 975 ipc/util.c iter->iface = PDE(inode)->data; inode 989 ipc/util.c return seq_release_private(inode, file); inode 160 kernel/audit_tree.c unsigned long n = (unsigned long)inode / L1_CACHE_BYTES; inode 167 kernel/audit_tree.c struct list_head *list = chunk_hash(chunk->watch.inode); inode 174 kernel/audit_tree.c struct list_head *list = chunk_hash(inode); inode 178 kernel/audit_tree.c if (p->watch.inode == inode) { inode 204 kernel/audit_tree.c mutex_lock(&chunk->watch.inode->inotify_mutex); inode 206 kernel/audit_tree.c mutex_unlock(&chunk->watch.inode->inotify_mutex); inode 222 kernel/audit_tree.c mutex_unlock(&chunk->watch.inode->inotify_mutex); inode 264 kernel/audit_tree.c mutex_unlock(&chunk->watch.inode->inotify_mutex); inode 279 kernel/audit_tree.c mutex_unlock(&chunk->watch.inode->inotify_mutex); inode 288 kernel/audit_tree.c if (inotify_add_watch(rtree_ih, &chunk->watch, inode, IN_IGNORED | IN_DELETE_SELF) < 0) { inode 293 kernel/audit_tree.c mutex_lock(&inode->inotify_mutex); inode 299 kernel/audit_tree.c mutex_unlock(&inode->inotify_mutex); inode 313 kernel/audit_tree.c mutex_unlock(&inode->inotify_mutex); inode 326 kernel/audit_tree.c if (inotify_find_watch(rtree_ih, inode, &watch) < 0) inode 327 kernel/audit_tree.c return create_chunk(inode, tree); inode 346 kernel/audit_tree.c mutex_lock(&inode->inotify_mutex); inode 348 kernel/audit_tree.c mutex_unlock(&inode->inotify_mutex); inode 357 kernel/audit_tree.c mutex_unlock(&inode->inotify_mutex); inode 385 kernel/audit_tree.c mutex_unlock(&inode->inotify_mutex); inode 560 kernel/audit_tree.c struct inode *inode = chunk->watch.inode; inode 564 kernel/audit_tree.c if (mnt->mnt_root->d_inode == inode) { inode 1836 kernel/auditfilter.c if (mask & (IN_CREATE|IN_MOVED_TO) && inode) inode 1837 kernel/auditfilter.c audit_update_watch(parent, dname, inode->i_sb->s_dev, inode 1838 kernel/auditfilter.c inode->i_ino, 0); inode 1605 kernel/auditsc.c if (likely(list_empty(&inode->inotify_watches))) inode 1611 kernel/auditsc.c chunk = audit_tree_lookup(inode); inode 1647 kernel/auditsc.c struct inode *inode = d->d_inode; inode 1648 kernel/auditsc.c if (inode && unlikely(!list_empty(&inode->inotify_watches))) { inode 1650 kernel/auditsc.c chunk = audit_tree_lookup(inode); inode 1772 kernel/auditsc.c if (inode) inode 1775 kernel/auditsc.c MAJOR(inode->i_sb->s_dev), inode 1776 kernel/auditsc.c MINOR(inode->i_sb->s_dev), inode 1777 kernel/auditsc.c inode->i_ino); inode 1793 kernel/auditsc.c name->ino = inode->i_ino; inode 1794 kernel/auditsc.c name->dev = inode->i_sb->s_dev; inode 1795 kernel/auditsc.c name->mode = inode->i_mode; inode 1796 kernel/auditsc.c name->uid = inode->i_uid; inode 1797 kernel/auditsc.c name->gid = inode->i_gid; inode 1798 kernel/auditsc.c name->rdev = inode->i_rdev; inode 1799 kernel/auditsc.c security_inode_getsecid(inode, &name->osid); inode 1813 kernel/auditsc.c const struct inode *inode = dentry->d_inode; inode 1828 kernel/auditsc.c if (audit_inc_name_count(context, inode)) inode 1834 kernel/auditsc.c audit_copy_inode(&context->names[idx], inode); inode 1857 kernel/auditsc.c const struct inode *inode = dentry->d_inode; inode 1863 kernel/auditsc.c if (inode) inode 1864 kernel/auditsc.c handle_one(inode); inode 1894 kernel/auditsc.c if (inode) inode 1895 kernel/auditsc.c audit_copy_inode(n, inode); inode 1913 kernel/auditsc.c if (audit_inc_name_count(context, inode)) inode 1929 kernel/auditsc.c if (inode) inode 1930 kernel/auditsc.c audit_copy_inode(&context->names[idx], inode); inode 570 kernel/cgroup.c static struct inode *cgroup_new_inode(mode_t mode, struct super_block *sb) inode 572 kernel/cgroup.c struct inode *inode = new_inode(sb); inode 574 kernel/cgroup.c if (inode) { inode 575 kernel/cgroup.c inode->i_mode = mode; inode 576 kernel/cgroup.c inode->i_uid = current->fsuid; inode 577 kernel/cgroup.c inode->i_gid = current->fsgid; inode 578 kernel/cgroup.c inode->i_blocks = 0; inode 579 kernel/cgroup.c inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; inode 580 kernel/cgroup.c inode->i_mapping->backing_dev_info = &cgroup_backing_dev_info; inode 582 kernel/cgroup.c return inode; inode 601 kernel/cgroup.c if (S_ISDIR(inode->i_mode)) { inode 631 kernel/cgroup.c iput(inode); inode 925 kernel/cgroup.c struct inode *inode = inode 929 kernel/cgroup.c if (!inode) inode 932 kernel/cgroup.c inode->i_fop = &simple_dir_operations; inode 933 kernel/cgroup.c inode->i_op = &cgroup_dir_inode_operations; inode 935 kernel/cgroup.c inc_nlink(inode); inode 936 kernel/cgroup.c dentry = d_alloc_root(inode); inode 938 kernel/cgroup.c iput(inode); inode 993 kernel/cgroup.c struct inode *inode; inode 1001 kernel/cgroup.c inode = sb->s_root->d_inode; inode 1003 kernel/cgroup.c mutex_lock(&inode->i_mutex); inode 1016 kernel/cgroup.c mutex_unlock(&inode->i_mutex); inode 1023 kernel/cgroup.c mutex_unlock(&inode->i_mutex); inode 1067 kernel/cgroup.c mutex_unlock(&inode->i_mutex); inode 1534 kernel/cgroup.c return single_release(inode, file); inode 1549 kernel/cgroup.c err = generic_file_open(inode, file); inode 1568 kernel/cgroup.c err = cft->open(inode, file); inode 1579 kernel/cgroup.c return cft->release(inode, file); inode 1620 kernel/cgroup.c struct inode *inode; inode 1627 kernel/cgroup.c inode = cgroup_new_inode(mode, sb); inode 1628 kernel/cgroup.c if (!inode) inode 1632 kernel/cgroup.c inode->i_op = &cgroup_dir_inode_operations; inode 1633 kernel/cgroup.c inode->i_fop = &simple_dir_operations; inode 1636 kernel/cgroup.c inc_nlink(inode); inode 1640 kernel/cgroup.c mutex_lock_nested(&inode->i_mutex, I_MUTEX_CHILD); inode 1642 kernel/cgroup.c inode->i_size = 0; inode 1643 kernel/cgroup.c inode->i_fop = &cgroup_file_operations; inode 1646 kernel/cgroup.c d_instantiate(dentry, inode); inode 2645 kernel/cgroup.c struct pid *pid = PROC_I(inode)->pid; inode 2862 kernel/cgroup.c struct inode *inode; inode 2893 kernel/cgroup.c inode = parent->dentry->d_inode; inode 2897 kernel/cgroup.c mutex_lock(&inode->i_mutex); inode 2908 kernel/cgroup.c ret = vfs_mkdir(inode, dentry, S_IFDIR | 0755); inode 2932 kernel/cgroup.c mutex_unlock(&inode->i_mutex); inode 2956 kernel/cgroup.c mutex_unlock(&inode->i_mutex); inode 2424 kernel/cpuset.c struct pid *pid = PROC_I(inode)->pid; inode 315 kernel/fork.c struct inode *inode = file->f_path.dentry->d_inode; inode 318 kernel/fork.c atomic_dec(&inode->i_writecount); inode 246 kernel/futex.c key->shared.inode = vma->vm_file->f_path.dentry->d_inode; inode 281 kernel/futex.c atomic_inc(&key->shared.inode->i_count); inode 299 kernel/futex.c iput(key->shared.inode); inode 74 kernel/irq/proc.c return single_open(file, irq_affinity_proc_show, PDE(inode)->data); inode 716 kernel/lockdep_proc.c return seq_release(inode, file); inode 356 kernel/pm_qos_params.c pm_qos_class = find_pm_qos_object_by_minor(iminor(inode)); inode 90 kernel/power/user.c nonseekable_open(inode, filp); inode 876 kernel/relay.c struct rchan_buf *buf = inode->i_private; inode 880 kernel/relay.c return nonseekable_open(inode, filp); inode 708 kernel/sched.c filp->private_data = inode->i_private; inode 1011 kernel/trace/ftrace.c seq_release(inode, file); inode 1024 kernel/trace/ftrace.c ret = ftrace_avail_open(inode, file); inode 1099 kernel/trace/ftrace.c return ftrace_regex_open(inode, file, 1); inode 1105 kernel/trace/ftrace.c return ftrace_regex_open(inode, file, 0); inode 1358 kernel/trace/ftrace.c seq_release(inode, file); inode 1383 kernel/trace/ftrace.c return ftrace_regex_release(inode, file, 1); inode 1389 kernel/trace/ftrace.c return ftrace_regex_release(inode, file, 0); inode 1888 kernel/trace/trace.c iter->tr = inode->i_private; inode 1921 kernel/trace/trace.c filp->private_data = inode->i_private; inode 1945 kernel/trace/trace.c seq_release(inode, file); inode 1954 kernel/trace/trace.c __tracing_open(inode, file, &ret); inode 1964 kernel/trace/trace.c iter = __tracing_open(inode, file, &ret); inode 52 mm/backing-dev.c return single_open(file, bdi_debug_stats_show, inode->i_private); inode 333 mm/filemap.c mutex_lock(&inode->i_mutex); inode 334 mm/filemap.c ret = generic_osync_inode(inode, mapping, OSYNC_METADATA); inode 335 mm/filemap.c mutex_unlock(&inode->i_mutex); inode 365 mm/filemap.c ret = generic_osync_inode(inode, mapping, OSYNC_METADATA); inode 989 mm/filemap.c struct inode *inode = mapping->host; inode 1027 mm/filemap.c if (inode->i_blkbits == PAGE_CACHE_SHIFT || inode 1047 mm/filemap.c isize = i_size_read(inode); inode 1299 mm/filemap.c struct inode *inode; inode 1302 mm/filemap.c inode = mapping->host; inode 1305 mm/filemap.c size = i_size_read(inode); inode 1429 mm/filemap.c struct inode *inode = mapping->host; inode 1435 mm/filemap.c size = (i_size_read(inode) + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT; inode 1510 mm/filemap.c size = (i_size_read(inode) + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT; inode 1940 mm/filemap.c struct inode *inode = file->f_mapping->host; inode 1949 mm/filemap.c *pos = i_size_read(inode); inode 1983 mm/filemap.c if (unlikely(*pos >= inode->i_sb->s_maxbytes)) { inode 1984 mm/filemap.c if (*count || *pos > inode->i_sb->s_maxbytes) { inode 1990 mm/filemap.c if (unlikely(*pos + *count > inode->i_sb->s_maxbytes)) inode 1991 mm/filemap.c *count = inode->i_sb->s_maxbytes - *pos; inode 1995 mm/filemap.c if (bdev_read_only(I_BDEV(inode))) inode 1997 mm/filemap.c isize = i_size_read(inode); inode 2026 mm/filemap.c struct inode *inode = mapping->host; inode 2056 mm/filemap.c if (pos + len > inode->i_size) inode 2057 mm/filemap.c vmtruncate(inode, inode->i_size); inode 2077 mm/filemap.c struct inode *inode = mapping->host; inode 2086 mm/filemap.c if (pos + len > inode->i_size) inode 2087 mm/filemap.c vmtruncate(inode, inode->i_size); inode 2105 mm/filemap.c struct inode *inode = mapping->host; inode 2165 mm/filemap.c if (end > i_size_read(inode) && !S_ISBLK(inode->i_mode)) { inode 2166 mm/filemap.c i_size_write(inode, end); inode 2167 mm/filemap.c mark_inode_dirty(inode); inode 2180 mm/filemap.c ((file->f_flags & O_SYNC) || IS_SYNC(inode))) { inode 2181 mm/filemap.c int err = generic_osync_inode(inode, mapping, OSYNC_METADATA); inode 2221 mm/filemap.c struct inode *inode = mapping->host; inode 2376 mm/filemap.c if (pos + bytes > inode->i_size) inode 2377 mm/filemap.c vmtruncate(inode, inode->i_size); inode 2479 mm/filemap.c struct inode *inode = mapping->host; inode 2497 mm/filemap.c if (unlikely((file->f_flags & O_SYNC) || IS_SYNC(inode))) { inode 2499 mm/filemap.c status = generic_osync_inode(inode, mapping, inode 2524 mm/filemap.c struct inode *inode = mapping->host; inode 2537 mm/filemap.c vfs_check_frozen(inode->i_sb, SB_FREEZE_WRITE); inode 2543 mm/filemap.c err = generic_write_checks(file, &pos, &count, S_ISBLK(inode->i_mode)); inode 2621 mm/filemap.c struct inode *inode = mapping->host; inode 2629 mm/filemap.c if (ret > 0 && ((file->f_flags & O_SYNC) || IS_SYNC(inode))) { inode 2632 mm/filemap.c err = sync_page_range_nolock(inode, mapping, pos, ret); inode 2645 mm/filemap.c struct inode *inode = mapping->host; inode 2650 mm/filemap.c mutex_lock(&inode->i_mutex); inode 2653 mm/filemap.c mutex_unlock(&inode->i_mutex); inode 2655 mm/filemap.c if (ret > 0 && ((file->f_flags & O_SYNC) || IS_SYNC(inode))) { inode 2658 mm/filemap.c err = sync_page_range(inode, mapping, pos, ret); inode 58 mm/filemap_xip.c struct inode *inode = mapping->host; inode 70 mm/filemap_xip.c isize = i_size_read(inode); inode 224 mm/filemap_xip.c struct inode *inode = mapping->host; inode 233 mm/filemap_xip.c size = (i_size_read(inode) + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT; inode 320 mm/filemap_xip.c struct inode *inode = mapping->host; inode 380 mm/filemap_xip.c if (pos > inode->i_size) { inode 381 mm/filemap_xip.c i_size_write(inode, pos); inode 382 mm/filemap_xip.c mark_inode_dirty(inode); inode 393 mm/filemap_xip.c struct inode *inode = mapping->host; inode 398 mm/filemap_xip.c mutex_lock(&inode->i_mutex); inode 408 mm/filemap_xip.c vfs_check_frozen(inode->i_sb, SB_FREEZE_WRITE); inode 413 mm/filemap_xip.c ret = generic_write_checks(filp, &pos, &count, S_ISBLK(inode->i_mode)); inode 430 mm/filemap_xip.c mutex_unlock(&inode->i_mutex); inode 854 mm/hugetlb.c struct inode *inode = mapping->host; inode 858 mm/hugetlb.c return region_chg(&inode->i_mapping->private_list, inode 879 mm/hugetlb.c struct inode *inode = mapping->host; inode 883 mm/hugetlb.c region_add(&inode->i_mapping->private_list, idx, idx + 1); inode 900 mm/hugetlb.c struct inode *inode = mapping->host; inode 914 mm/hugetlb.c if (hugetlb_get_quota(inode->i_mapping, chg)) inode 924 mm/hugetlb.c hugetlb_put_quota(inode->i_mapping, chg); inode 1928 mm/hugetlb.c struct inode *inode = mapping->host; inode 1938 mm/hugetlb.c spin_lock(&inode->i_lock); inode 1939 mm/hugetlb.c inode->i_blocks += blocks_per_huge_page(h); inode 1940 mm/hugetlb.c spin_unlock(&inode->i_lock); inode 2169 mm/hugetlb.c struct hstate *h = hstate_inode(inode); inode 2181 mm/hugetlb.c chg = region_chg(&inode->i_mapping->private_list, from, to); inode 2196 mm/hugetlb.c if (hugetlb_get_quota(inode->i_mapping, chg)) inode 2200 mm/hugetlb.c hugetlb_put_quota(inode->i_mapping, chg); inode 2204 mm/hugetlb.c region_add(&inode->i_mapping->private_list, from, to); inode 2210 mm/hugetlb.c struct hstate *h = hstate_inode(inode); inode 2211 mm/hugetlb.c long chg = region_truncate(&inode->i_mapping->private_list, offset); inode 2213 mm/hugetlb.c spin_lock(&inode->i_lock); inode 2214 mm/hugetlb.c inode->i_blocks -= blocks_per_huge_page(h); inode 2215 mm/hugetlb.c spin_unlock(&inode->i_lock); inode 2217 mm/hugetlb.c hugetlb_put_quota(inode->i_mapping, (chg - freed)); inode 2175 mm/memory.c if (inode->i_size < offset) { inode 2181 mm/memory.c if (offset > inode->i_sb->s_maxbytes) inode 2183 mm/memory.c i_size_write(inode, offset); inode 2185 mm/memory.c struct address_space *mapping = inode->i_mapping; inode 2192 mm/memory.c if (IS_SWAPFILE(inode)) inode 2194 mm/memory.c i_size_write(inode, offset); inode 2210 mm/memory.c if (inode->i_op && inode->i_op->truncate) inode 2211 mm/memory.c inode->i_op->truncate(inode); inode 2223 mm/memory.c struct address_space *mapping = inode->i_mapping; inode 2230 mm/memory.c if (!inode->i_op || !inode->i_op->truncate_range) inode 2233 mm/memory.c mutex_lock(&inode->i_mutex); inode 2234 mm/memory.c down_write(&inode->i_alloc_sem); inode 2238 mm/memory.c inode->i_op->truncate_range(inode, offset, end); inode 2239 mm/memory.c up_write(&inode->i_alloc_sem); inode 2240 mm/memory.c mutex_unlock(&inode->i_mutex); inode 917 mm/mmap.c struct inode *inode; inode 986 mm/mmap.c inode = file ? file->f_path.dentry->d_inode : NULL; inode 998 mm/mmap.c if (IS_APPEND(inode) && (file->f_mode & FMODE_WRITE)) inode 1004 mm/mmap.c if (locks_verify_locked(inode)) inode 1102 mm/mmap.c struct inode *inode = file ? file->f_path.dentry->d_inode : NULL; inode 1222 mm/mmap.c atomic_inc(&inode->i_writecount); inode 1236 mm/mmap.c atomic_inc(&inode->i_writecount); inode 68 mm/nommu.c struct address_space *mapping = inode->i_mapping; inode 71 mm/nommu.c if (inode->i_size < offset) inode 73 mm/nommu.c i_size_write(inode, offset); inode 82 mm/nommu.c if (offset > inode->i_sb->s_maxbytes) inode 84 mm/nommu.c i_size_write(inode, offset); inode 87 mm/nommu.c if (inode->i_op && inode->i_op->truncate) inode 88 mm/nommu.c inode->i_op->truncate(inode); inode 128 mm/readahead.c struct inode *inode = mapping->host; inode 134 mm/readahead.c loff_t isize = i_size_read(inode); inode 211 mm/shmem.c struct shmem_sb_info *sbinfo = SHMEM_SB(inode->i_sb); inode 215 mm/shmem.c inode->i_blocks -= pages*BLOCKS_PER_PAGE; inode 259 mm/shmem.c struct shmem_inode_info *info = SHMEM_I(inode); inode 262 mm/shmem.c freed = info->alloced - info->swapped - inode->i_mapping->nrpages; inode 266 mm/shmem.c shmem_free_blocks(inode, freed); inode 383 mm/shmem.c struct inode *inode = &info->vfs_inode; inode 384 mm/shmem.c struct shmem_sb_info *sbinfo = SHMEM_SB(inode->i_sb); inode 389 mm/shmem.c ((loff_t) index << PAGE_CACHE_SHIFT) >= i_size_read(inode)) inode 407 mm/shmem.c inode->i_blocks += BLOCKS_PER_PAGE; inode 412 mm/shmem.c page = shmem_dir_alloc(mapping_gfp_mask(inode->i_mapping)); inode 418 mm/shmem.c shmem_free_blocks(inode, 1); inode 422 mm/shmem.c ((loff_t) index << PAGE_CACHE_SHIFT) >= i_size_read(inode)) { inode 431 mm/shmem.c shmem_free_blocks(inode, 1); inode 517 mm/shmem.c struct shmem_inode_info *info = SHMEM_I(inode); inode 538 mm/shmem.c inode->i_ctime = inode->i_mtime = CURRENT_TIME; inode 552 mm/shmem.c if (end + 1 >= inode->i_size) { /* we may free a little more */ inode 553 mm/shmem.c limit = (inode->i_size + PAGE_CACHE_SIZE - 1) >> inode 706 mm/shmem.c if (inode->i_mapping->nrpages && (info->flags & SHMEM_PAGEIN)) { inode 719 mm/shmem.c truncate_inode_pages_range(inode->i_mapping, start, end); inode 721 mm/shmem.c unmap_mapping_range(inode->i_mapping, start, inode 729 mm/shmem.c shmem_free_blocks(inode, nr_pages_to_free); inode 730 mm/shmem.c shmem_recalc_inode(inode); inode 744 mm/shmem.c shmem_truncate_range(inode, inode->i_size, (loff_t)-1); inode 749 mm/shmem.c struct inode *inode = dentry->d_inode; inode 753 mm/shmem.c if (S_ISREG(inode->i_mode) && (attr->ia_valid & ATTR_SIZE)) { inode 754 mm/shmem.c if (attr->ia_size < inode->i_size) { inode 763 mm/shmem.c (void) shmem_getpage(inode, inode 777 mm/shmem.c struct shmem_inode_info *info = SHMEM_I(inode); inode 785 mm/shmem.c error = inode_change_ok(inode, attr); inode 787 mm/shmem.c error = inode_setattr(inode, attr); inode 790 mm/shmem.c error = generic_acl_chmod(inode, &shmem_acl_ops); inode 799 mm/shmem.c struct shmem_inode_info *info = SHMEM_I(inode); inode 801 mm/shmem.c if (inode->i_op->truncate == shmem_truncate) { inode 802 mm/shmem.c truncate_inode_pages(inode->i_mapping, 0); inode 803 mm/shmem.c shmem_unacct_size(info->flags, inode->i_size); inode 804 mm/shmem.c inode->i_size = 0; inode 805 mm/shmem.c shmem_truncate(inode); inode 812 mm/shmem.c BUG_ON(inode->i_blocks); inode 813 mm/shmem.c shmem_free_inode(inode->i_sb); inode 814 mm/shmem.c clear_inode(inode); inode 830 mm/shmem.c struct inode *inode; inode 906 mm/shmem.c inode = igrab(&info->vfs_inode); inode 921 mm/shmem.c if (!inode) inode 937 mm/shmem.c error = add_to_page_cache_locked(page, inode->i_mapping, inode 944 mm/shmem.c struct page *filepage = find_get_page(inode->i_mapping, idx); inode 971 mm/shmem.c iput(inode); /* allows for NULL */ inode 1005 mm/shmem.c struct inode *inode; inode 1010 mm/shmem.c inode = mapping->host; inode 1011 mm/shmem.c info = SHMEM_I(inode); inode 1044 mm/shmem.c shmem_recalc_inode(inode); inode 1051 mm/shmem.c inode = igrab(inode); inode 1053 mm/shmem.c inode = NULL; inode 1060 mm/shmem.c if (inode) { inode 1065 mm/shmem.c iput(inode); inode 1181 mm/shmem.c struct address_space *mapping = inode->i_mapping; inode 1182 mm/shmem.c struct shmem_inode_info *info = SHMEM_I(inode); inode 1224 mm/shmem.c shmem_recalc_inode(inode); inode 1340 mm/shmem.c sbinfo = SHMEM_SB(inode->i_sb); inode 1351 mm/shmem.c inode->i_blocks += BLOCKS_PER_PAGE; inode 1366 mm/shmem.c shmem_free_blocks(inode, 1); inode 1377 mm/shmem.c shmem_free_blocks(inode, 1); inode 1404 mm/shmem.c shmem_free_blocks(inode, 1); inode 1435 mm/shmem.c struct inode *inode = vma->vm_file->f_path.dentry->d_inode; inode 1439 mm/shmem.c if (((loff_t)vmf->pgoff << PAGE_CACHE_SHIFT) >= i_size_read(inode)) inode 1442 mm/shmem.c error = shmem_getpage(inode, vmf->pgoff, &vmf->page, SGP_CACHE, &ret); inode 1453 mm/shmem.c struct inode *i = vma->vm_file->f_path.dentry->d_inode; inode 1460 mm/shmem.c struct inode *i = vma->vm_file->f_path.dentry->d_inode; inode 1470 mm/shmem.c struct inode *inode = file->f_path.dentry->d_inode; inode 1471 mm/shmem.c struct shmem_inode_info *info = SHMEM_I(inode); inode 1476 mm/shmem.c if (!user_shm_lock(inode->i_size, user)) inode 1481 mm/shmem.c user_shm_unlock(inode->i_size, user); inode 1498 mm/shmem.c static struct inode * inode 1501 mm/shmem.c struct inode *inode; inode 1508 mm/shmem.c inode = new_inode(sb); inode 1509 mm/shmem.c if (inode) { inode 1510 mm/shmem.c inode->i_mode = mode; inode 1511 mm/shmem.c inode->i_uid = current->fsuid; inode 1512 mm/shmem.c inode->i_gid = current->fsgid; inode 1513 mm/shmem.c inode->i_blocks = 0; inode 1514 mm/shmem.c inode->i_mapping->backing_dev_info = &shmem_backing_dev_info; inode 1515 mm/shmem.c inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; inode 1516 mm/shmem.c inode->i_generation = get_seconds(); inode 1517 mm/shmem.c info = SHMEM_I(inode); inode 1518 mm/shmem.c memset(info, 0, (char *)inode - (char *)info); inode 1524 mm/shmem.c inode->i_op = &shmem_special_inode_operations; inode 1525 mm/shmem.c init_special_inode(inode, mode, dev); inode 1528 mm/shmem.c inode->i_mapping->a_ops = &shmem_aops; inode 1529 mm/shmem.c inode->i_op = &shmem_inode_operations; inode 1530 mm/shmem.c inode->i_fop = &shmem_file_operations; inode 1535 mm/shmem.c inc_nlink(inode); inode 1537 mm/shmem.c inode->i_size = 2 * BOGO_DIRENT_SIZE; inode 1538 mm/shmem.c inode->i_op = &shmem_dir_inode_operations; inode 1539 mm/shmem.c inode->i_fop = &simple_dir_operations; inode 1551 mm/shmem.c return inode; inode 1565 mm/shmem.c struct inode *inode = page->mapping->host; inode 1566 mm/shmem.c int error = shmem_getpage(inode, page->index, &page, SGP_CACHE, NULL); inode 1576 mm/shmem.c struct inode *inode = mapping->host; inode 1579 mm/shmem.c return shmem_getpage(inode, index, pagep, SGP_WRITE, NULL); inode 1587 mm/shmem.c struct inode *inode = mapping->host; inode 1589 mm/shmem.c if (pos + copied > inode->i_size) inode 1590 mm/shmem.c i_size_write(inode, pos + copied); inode 1601 mm/shmem.c struct inode *inode = filp->f_path.dentry->d_inode; inode 1602 mm/shmem.c struct address_space *mapping = inode->i_mapping; inode 1620 mm/shmem.c loff_t i_size = i_size_read(inode); inode 1631 mm/shmem.c desc->error = shmem_getpage(inode, index, &page, sgp, NULL); inode 1645 mm/shmem.c i_size = i_size_read(inode); inode 1762 mm/shmem.c struct inode *inode = shmem_get_inode(dir->i_sb, mode, dev); inode 1765 mm/shmem.c if (inode) { inode 1766 mm/shmem.c error = security_inode_init_security(inode, dir, NULL, NULL, inode 1770 mm/shmem.c iput(inode); inode 1774 mm/shmem.c error = shmem_acl_init(inode, dir); inode 1776 mm/shmem.c iput(inode); inode 1780 mm/shmem.c inode->i_gid = dir->i_gid; inode 1782 mm/shmem.c inode->i_mode |= S_ISGID; inode 1786 mm/shmem.c d_instantiate(dentry, inode); inode 1813 mm/shmem.c struct inode *inode = old_dentry->d_inode; inode 1821 mm/shmem.c ret = shmem_reserve_inode(inode->i_sb); inode 1826 mm/shmem.c inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; inode 1827 mm/shmem.c inc_nlink(inode); inode 1828 mm/shmem.c atomic_inc(&inode->i_count); /* New dentry reference */ inode 1830 mm/shmem.c d_instantiate(dentry, inode); inode 1837 mm/shmem.c struct inode *inode = dentry->d_inode; inode 1839 mm/shmem.c if (inode->i_nlink > 1 && !S_ISDIR(inode->i_mode)) inode 1840 mm/shmem.c shmem_free_inode(inode->i_sb); inode 1843 mm/shmem.c inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; inode 1844 mm/shmem.c drop_nlink(inode); inode 1867 mm/shmem.c struct inode *inode = old_dentry->d_inode; inode 1868 mm/shmem.c int they_are_dirs = S_ISDIR(inode->i_mode); inode 1886 mm/shmem.c inode->i_ctime = CURRENT_TIME; inode 1894 mm/shmem.c struct inode *inode; inode 1903 mm/shmem.c inode = shmem_get_inode(dir->i_sb, S_IFLNK|S_IRWXUGO, 0); inode 1904 mm/shmem.c if (!inode) inode 1907 mm/shmem.c error = security_inode_init_security(inode, dir, NULL, NULL, inode 1911 mm/shmem.c iput(inode); inode 1917 mm/shmem.c info = SHMEM_I(inode); inode 1918 mm/shmem.c inode->i_size = len-1; inode 1919 mm/shmem.c if (len <= (char *)inode - (char *)info) { inode 1922 mm/shmem.c inode->i_op = &shmem_symlink_inline_operations; inode 1924 mm/shmem.c error = shmem_getpage(inode, 0, &page, SGP_WRITE, NULL); inode 1926 mm/shmem.c iput(inode); inode 1930 mm/shmem.c inode->i_mapping->a_ops = &shmem_aops; inode 1931 mm/shmem.c inode->i_op = &shmem_symlink_inode_operations; inode 1939 mm/shmem.c inode->i_gid = dir->i_gid; inode 1942 mm/shmem.c d_instantiate(dentry, inode); inode 1997 mm/shmem.c return security_inode_listsecurity(inode, list, list_len); inode 2005 mm/shmem.c return xattr_getsecurity(inode, name, buffer, size); inode 2013 mm/shmem.c return security_inode_setsecurity(inode, name, value, size, flags); inode 2047 mm/shmem.c struct inode *inode; inode 2055 mm/shmem.c inode = ilookup5(sb, (unsigned long)(inum + fid->raw[0]), inode 2057 mm/shmem.c if (inode) { inode 2058 mm/shmem.c dentry = d_find_alias(inode); inode 2059 mm/shmem.c iput(inode); inode 2068 mm/shmem.c struct inode *inode = dentry->d_inode; inode 2073 mm/shmem.c if (hlist_unhashed(&inode->i_hash)) { inode 2081 mm/shmem.c if (hlist_unhashed(&inode->i_hash)) inode 2082 mm/shmem.c __insert_inode_hash(inode, inode 2083 mm/shmem.c inode->i_ino + inode->i_generation); inode 2087 mm/shmem.c fh[0] = inode->i_generation; inode 2088 mm/shmem.c fh[1] = inode->i_ino; inode 2089 mm/shmem.c fh[2] = ((__u64)inode->i_ino) >> 32; inode 2262 mm/shmem.c struct inode *inode; inode 2315 mm/shmem.c inode = shmem_get_inode(sb, S_IFDIR | sbinfo->mode, 0); inode 2316 mm/shmem.c if (!inode) inode 2318 mm/shmem.c inode->i_uid = sbinfo->uid; inode 2319 mm/shmem.c inode->i_gid = sbinfo->gid; inode 2320 mm/shmem.c root = d_alloc_root(inode); inode 2327 mm/shmem.c iput(inode); inode 2335 mm/shmem.c static struct inode *shmem_alloc_inode(struct super_block *sb) inode 2346 mm/shmem.c if ((inode->i_mode & S_IFMT) == S_IFREG) { inode 2348 mm/shmem.c mpol_free_shared_policy(&SHMEM_I(inode)->policy); inode 2350 mm/shmem.c shmem_acl_destroy_inode(inode); inode 2351 mm/shmem.c kmem_cache_free(shmem_inode_cachep, SHMEM_I(inode)); inode 2535 mm/shmem.c struct inode *inode; inode 2563 mm/shmem.c inode = shmem_get_inode(root->d_sb, S_IFREG | S_IRWXUGO, 0); inode 2564 mm/shmem.c if (!inode) inode 2567 mm/shmem.c SHMEM_I(inode)->flags = flags & VM_ACCOUNT; inode 2568 mm/shmem.c d_instantiate(dentry, inode); inode 2569 mm/shmem.c inode->i_size = size; inode 2570 mm/shmem.c inode->i_nlink = 0; /* It is unlinked */ inode 22 mm/shmem_acl.c spin_lock(&inode->i_lock); inode 25 mm/shmem_acl.c acl = posix_acl_dup(SHMEM_I(inode)->i_acl); inode 29 mm/shmem_acl.c acl = posix_acl_dup(SHMEM_I(inode)->i_default_acl); inode 32 mm/shmem_acl.c spin_unlock(&inode->i_lock); inode 45 mm/shmem_acl.c spin_lock(&inode->i_lock); inode 48 mm/shmem_acl.c free = SHMEM_I(inode)->i_acl; inode 49 mm/shmem_acl.c SHMEM_I(inode)->i_acl = posix_acl_dup(acl); inode 53 mm/shmem_acl.c free = SHMEM_I(inode)->i_default_acl; inode 54 mm/shmem_acl.c SHMEM_I(inode)->i_default_acl = posix_acl_dup(acl); inode 57 mm/shmem_acl.c spin_unlock(&inode->i_lock); inode 76 mm/shmem_acl.c return generic_acl_list(inode, &shmem_acl_ops, ACL_TYPE_ACCESS, inode 86 mm/shmem_acl.c return generic_acl_get(inode, &shmem_acl_ops, ACL_TYPE_ACCESS, buffer, inode 96 mm/shmem_acl.c return generic_acl_set(inode, &shmem_acl_ops, ACL_TYPE_ACCESS, value, inode 117 mm/shmem_acl.c return generic_acl_list(inode, &shmem_acl_ops, ACL_TYPE_DEFAULT, inode 127 mm/shmem_acl.c return generic_acl_get(inode, &shmem_acl_ops, ACL_TYPE_DEFAULT, buffer, inode 137 mm/shmem_acl.c return generic_acl_set(inode, &shmem_acl_ops, ACL_TYPE_DEFAULT, value, inode 154 mm/shmem_acl.c return generic_acl_init(inode, dir, &shmem_acl_ops); inode 166 mm/shmem_acl.c if (SHMEM_I(inode)->i_acl) inode 167 mm/shmem_acl.c posix_acl_release(SHMEM_I(inode)->i_acl); inode 168 mm/shmem_acl.c SHMEM_I(inode)->i_acl = NULL; inode 169 mm/shmem_acl.c if (SHMEM_I(inode)->i_default_acl) inode 170 mm/shmem_acl.c posix_acl_release(SHMEM_I(inode)->i_default_acl); inode 171 mm/shmem_acl.c SHMEM_I(inode)->i_default_acl = NULL; inode 180 mm/shmem_acl.c struct posix_acl *acl = shmem_get_acl(inode, ACL_TYPE_ACCESS); inode 183 mm/shmem_acl.c int error = posix_acl_permission(inode, acl, mask); inode 196 mm/shmem_acl.c return generic_permission(inode, mask, shmem_check_acl); inode 1090 mm/swapfile.c struct inode *inode; inode 1101 mm/swapfile.c inode = sis->swap_file->f_mapping->host; inode 1102 mm/swapfile.c if (S_ISBLK(inode->i_mode)) { inode 1108 mm/swapfile.c blkbits = inode->i_blkbits; inode 1117 mm/swapfile.c last_block = i_size_read(inode) >> blkbits; inode 1123 mm/swapfile.c first_block = bmap(inode, probe_block); inode 1139 mm/swapfile.c block = bmap(inode, probe_block + block_in_page); inode 1213 mm/swapfile.c struct inode *inode; inode 1327 mm/swapfile.c inode = mapping->host; inode 1328 mm/swapfile.c if (S_ISBLK(inode->i_mode)) { inode 1329 mm/swapfile.c struct block_device *bdev = I_BDEV(inode); inode 1333 mm/swapfile.c mutex_lock(&inode->i_mutex); inode 1334 mm/swapfile.c inode->i_flags &= ~S_SWAPFILE; inode 1335 mm/swapfile.c mutex_unlock(&inode->i_mutex); inode 1470 mm/swapfile.c struct inode *inode = NULL; inode 1507 mm/swapfile.c inode = mapping->host; inode 1520 mm/swapfile.c if (S_ISBLK(inode->i_mode)) { inode 1521 mm/swapfile.c bdev = I_BDEV(inode); inode 1533 mm/swapfile.c } else if (S_ISREG(inode->i_mode)) { inode 1534 mm/swapfile.c p->bdev = inode->i_sb->s_bdev; inode 1535 mm/swapfile.c mutex_lock(&inode->i_mutex); inode 1537 mm/swapfile.c if (IS_SWAPFILE(inode)) { inode 1545 mm/swapfile.c swapfilesize = i_size_read(inode) >> PAGE_SHIFT; inode 1627 mm/swapfile.c if (swap_header->info.nr_badpages && S_ISREG(inode->i_mode)) inode 1730 mm/swapfile.c inode->i_flags |= S_SWAPFILE; inode 1731 mm/swapfile.c mutex_unlock(&inode->i_mutex); inode 52 mm/tiny-shmem.c struct inode *inode; inode 74 mm/tiny-shmem.c inode = ramfs_get_inode(root->d_sb, S_IFREG | S_IRWXUGO, 0); inode 75 mm/tiny-shmem.c if (!inode) inode 78 mm/tiny-shmem.c d_instantiate(dentry, inode); inode 79 mm/tiny-shmem.c inode->i_size = size; inode 80 mm/tiny-shmem.c inode->i_nlink = 0; /* It is unlinked */ inode 85 mm/tiny-shmem.c error = ramfs_nommu_expand_for_mapping(inode, size); inode 76 net/8021q/vlanproc.c return seq_open_net(inode, file, &vlan_seq_ops, inode 94 net/8021q/vlanproc.c return single_open(file, vlandev_seq_show, PDE(inode)->data); inode 933 net/atm/clip.c return seq_open_net(inode, file, &arp_seq_ops, inode 292 net/atm/proc.c return __vcc_seq_open(inode, file, PF_ATMPVC, &pvc_seq_ops); inode 326 net/atm/proc.c return __vcc_seq_open(inode, file, 0, &vcc_seq_ops); inode 361 net/atm/proc.c return __vcc_seq_open(inode, file, PF_ATMSVC, &svc_seq_ops); inode 2701 net/core/dev.c return seq_open_net(inode, file, &dev_seq_ops, inode 2852 net/core/dev.c return seq_open_net(inode, file, &ptype_seq_ops, inode 192 net/core/dev_mcast.c return seq_open_net(inode, file, &dev_mc_seq_ops, inode 2503 net/core/neighbour.c sf->private = PDE(inode); inode 494 net/core/pktgen.c return single_open(file, pgctrl_show, PDE(inode)->data); inode 1655 net/core/pktgen.c return single_open(file, pktgen_if_show, PDE(inode)->data); inode 1791 net/core/pktgen.c return single_open(file, pktgen_thread_show, PDE(inode)->data); inode 583 net/decnet/dn_neigh.c return seq_open_net(inode, file, &dn_neigh_seq_ops, inode 1366 net/ipv4/arp.c return seq_open_net(inode, file, &arp_seq_ops, inode 1052 net/ipv4/fib_hash.c return seq_open_net(inode, file, &fib_seq_ops, inode 701 net/ipv4/fib_trie.c struct tnode *inode; inode 703 net/ipv4/fib_trie.c inode = (struct tnode *) tnode_get_child(oldtnode, i); inode 704 net/ipv4/fib_trie.c if (inode && inode 705 net/ipv4/fib_trie.c IS_TNODE(inode) && inode 706 net/ipv4/fib_trie.c inode->pos == oldtnode->pos + oldtnode->bits && inode 707 net/ipv4/fib_trie.c inode->bits > 1) { inode 709 net/ipv4/fib_trie.c t_key m = ~0U << (KEYLENGTH - 1) >> inode->pos; inode 711 net/ipv4/fib_trie.c left = tnode_new(inode->key&(~m), inode->pos + 1, inode 712 net/ipv4/fib_trie.c inode->bits - 1); inode 716 net/ipv4/fib_trie.c right = tnode_new(inode->key|m, inode->pos + 1, inode 717 net/ipv4/fib_trie.c inode->bits - 1); inode 730 net/ipv4/fib_trie.c struct tnode *inode; inode 753 net/ipv4/fib_trie.c inode = (struct tnode *) node; inode 755 net/ipv4/fib_trie.c if (inode->bits == 1) { inode 756 net/ipv4/fib_trie.c put_child(t, tn, 2*i, inode->child[0]); inode 757 net/ipv4/fib_trie.c put_child(t, tn, 2*i+1, inode->child[1]); inode 759 net/ipv4/fib_trie.c tnode_free(inode); inode 798 net/ipv4/fib_trie.c put_child(t, left, j, inode->child[j]); inode 799 net/ipv4/fib_trie.c put_child(t, right, j, inode->child[j + size]); inode 804 net/ipv4/fib_trie.c tnode_free(inode); inode 2254 net/ipv4/fib_trie.c return single_open_net(inode, file, fib_triestat_seq_show); inode 2446 net/ipv4/fib_trie.c return seq_open_net(inode, file, &fib_trie_seq_ops, inode 2622 net/ipv4/fib_trie.c return seq_open_net(inode, file, &fib_route_seq_ops, inode 636 net/ipv4/netfilter/ipt_CLUSTERIP.c struct proc_dir_entry *pde = PDE(inode); inode 649 net/ipv4/netfilter/ipt_CLUSTERIP.c struct proc_dir_entry *pde = PDE(inode); inode 653 net/ipv4/netfilter/ipt_CLUSTERIP.c ret = seq_release(inode, file); inode 164 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c return seq_open_net(inode, file, &ct_seq_ops, inode 274 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c return seq_open_net(inode, file, &exp_seq_ops, inode 366 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c return seq_open_net(inode, file, &ct_cpu_seq_ops, inode 74 net/ipv4/proc.c return single_open_net(inode, file, sockstat_seq_show); inode 377 net/ipv4/proc.c return single_open_net(inode, file, snmp_seq_show); inode 424 net/ipv4/proc.c return single_open_net(inode, file, netstat_seq_show); inode 979 net/ipv4/raw.c return raw_seq_open(inode, file, &raw_v4_hashinfo, &raw_seq_ops); inode 410 net/ipv4/route.c return seq_open_net(inode, file, &rt_cache_seq_ops, inode 2148 net/ipv4/tcp_ipv4.c struct tcp_seq_afinfo *afinfo = PDE(inode)->data; inode 2152 net/ipv4/tcp_ipv4.c err = seq_open_net(inode, file, &afinfo->seq_ops, inode 1577 net/ipv4/udp.c struct udp_seq_afinfo *afinfo = PDE(inode)->data; inode 1581 net/ipv4/udp.c err = seq_open_net(inode, file, &afinfo->seq_ops, inode 3009 net/ipv6/addrconf.c return seq_open_net(inode, file, &if6_seq_ops, inode 532 net/ipv6/anycast.c return seq_open_net(inode, file, &ac6_seq_ops, inode 721 net/ipv6/ip6_flowlabel.c return seq_open_net(inode, file, &ip6fl_seq_ops, inode 2451 net/ipv6/mcast.c return seq_open_net(inode, file, &igmp6_mc_seq_ops, inode 2613 net/ipv6/mcast.c return seq_open_net(inode, file, &igmp6_mcf_seq_ops, inode 51 net/ipv6/proc.c return single_open_net(inode, file, sockstat6_seq_show); inode 194 net/ipv6/proc.c return single_open_net(inode, file, snmp6_seq_show); inode 218 net/ipv6/proc.c return single_open(file, snmp6_dev_seq_show, PDE(inode)->data); inode 1269 net/ipv6/raw.c return raw_seq_open(inode, file, &raw_v6_hashinfo, &raw6_seq_ops); inode 2443 net/ipv6/route.c return single_open_net(inode, file, ipv6_route_show); inode 2471 net/ipv6/route.c return single_open_net(inode, file, rt6_stats_seq_show); inode 18 net/mac80211/debugfs.c file->private_data = inode->i_private; inode 64 net/mac80211/rc80211_minstrel_debugfs.c struct minstrel_sta_info *mi = inode->i_private; inode 85 net/mac80211/rc80211_pid_debugfs.c struct rc_pid_sta_info *sinfo = inode->i_private; inode 528 net/netfilter/nf_conntrack_expect.c return seq_open_net(inode, file, &exp_seq_ops, inode 183 net/netfilter/nf_conntrack_standalone.c return seq_open_net(inode, file, &ct_seq_ops, inode 275 net/netfilter/nf_conntrack_standalone.c return seq_open_net(inode, file, &ct_cpu_seq_ops, inode 805 net/netfilter/x_tables.c ret = seq_open_net(inode, file, &xt_table_seq_ops, inode 809 net/netfilter/x_tables.c priv->af = (unsigned long)PDE(inode)->data; inode 872 net/netfilter/x_tables.c seq->private = PDE(inode); inode 935 net/netfilter/x_tables.c seq->private = PDE(inode); inode 952 net/netfilter/xt_hashlimit.c sf->private = PDE(inode); inode 449 net/netfilter/xt_recent.c struct proc_dir_entry *pde = PDE(inode); inode 470 net/netfilter/xt_recent.c return recent_seq_open(inode, filp); inode 739 net/netlink/af_netlink.c struct inode *inode = filp->f_path.dentry->d_inode; inode 742 net/netlink/af_netlink.c if (!S_ISSOCK(inode->i_mode)) inode 745 net/netlink/af_netlink.c sock = SOCKET_I(inode)->sk; inode 1867 net/netlink/af_netlink.c return seq_open_net(inode, file, &netlink_seq_ops, inode 2070 net/packet/af_packet.c return seq_open_net(inode, file, &packet_seq_ops, inode 1689 net/sched/sch_api.c return single_open(file, psched_show, PDE(inode)->data); inode 243 net/socket.c static struct inode *sock_alloc_inode(struct super_block *sb) inode 265 net/socket.c container_of(inode, struct socket_alloc, vfs_inode)); inode 484 net/socket.c struct inode *inode; inode 487 net/socket.c inode = new_inode(sock_mnt->mnt_sb); inode 488 net/socket.c if (!inode) inode 491 net/socket.c sock = SOCKET_I(inode); inode 493 net/socket.c inode->i_mode = S_IFSOCK | S_IRWXUGO; inode 494 net/socket.c inode->i_uid = current->fsuid; inode 495 net/socket.c inode->i_gid = current->fsgid; inode 989 net/socket.c if (!inode) { inode 994 net/socket.c sock_release(SOCKET_I(inode)); inode 269 net/sunrpc/auth_gss/auth_gss.c struct inode *inode = gss_auth->dentry->d_inode; inode 270 net/sunrpc/auth_gss/auth_gss.c struct rpc_inode *rpci = RPC_I(inode); inode 273 net/sunrpc/auth_gss/auth_gss.c spin_lock(&inode->i_lock); inode 280 net/sunrpc/auth_gss/auth_gss.c spin_unlock(&inode->i_lock); inode 297 net/sunrpc/auth_gss/auth_gss.c struct inode *inode = gss_auth->dentry->d_inode; inode 301 net/sunrpc/auth_gss/auth_gss.c spin_lock(&inode->i_lock); inode 304 net/sunrpc/auth_gss/auth_gss.c spin_unlock(&inode->i_lock); inode 313 net/sunrpc/auth_gss/auth_gss.c struct inode *inode = gss_msg->auth->dentry->d_inode; inode 315 net/sunrpc/auth_gss/auth_gss.c spin_lock(&inode->i_lock); inode 322 net/sunrpc/auth_gss/auth_gss.c spin_unlock(&inode->i_lock); inode 381 net/sunrpc/auth_gss/auth_gss.c struct inode *inode = gss_auth->dentry->d_inode; inode 391 net/sunrpc/auth_gss/auth_gss.c spin_lock(&inode->i_lock); inode 406 net/sunrpc/auth_gss/auth_gss.c spin_unlock(&inode->i_lock); inode 417 net/sunrpc/auth_gss/auth_gss.c struct inode *inode = gss_auth->dentry->d_inode; inode 431 net/sunrpc/auth_gss/auth_gss.c spin_lock(&inode->i_lock); inode 435 net/sunrpc/auth_gss/auth_gss.c spin_unlock(&inode->i_lock); inode 446 net/sunrpc/auth_gss/auth_gss.c spin_unlock(&inode->i_lock); inode 484 net/sunrpc/auth_gss/auth_gss.c struct inode *inode = filp->f_path.dentry->d_inode; inode 514 net/sunrpc/auth_gss/auth_gss.c spin_lock(&inode->i_lock); inode 515 net/sunrpc/auth_gss/auth_gss.c gss_msg = __gss_find_upcall(RPC_I(inode), uid); inode 517 net/sunrpc/auth_gss/auth_gss.c spin_unlock(&inode->i_lock); inode 521 net/sunrpc/auth_gss/auth_gss.c spin_unlock(&inode->i_lock); inode 533 net/sunrpc/auth_gss/auth_gss.c spin_lock(&inode->i_lock); inode 535 net/sunrpc/auth_gss/auth_gss.c spin_unlock(&inode->i_lock); inode 549 net/sunrpc/auth_gss/auth_gss.c struct rpc_inode *rpci = RPC_I(inode); inode 552 net/sunrpc/auth_gss/auth_gss.c spin_lock(&inode->i_lock); inode 560 net/sunrpc/auth_gss/auth_gss.c spin_unlock(&inode->i_lock); inode 562 net/sunrpc/auth_gss/auth_gss.c spin_lock(&inode->i_lock); inode 564 net/sunrpc/auth_gss/auth_gss.c spin_unlock(&inode->i_lock); inode 864 net/sunrpc/cache.c nonseekable_open(inode, filp); inode 866 net/sunrpc/cache.c struct cache_detail *cd = PDE(inode)->data; inode 886 net/sunrpc/cache.c struct cache_detail *cd = PDE(inode)->data; inode 1252 net/sunrpc/cache.c struct cache_detail *cd = PDE(inode)->data; inode 62 net/sunrpc/rpc_pipe.c struct inode *inode = &rpci->vfs_inode; inode 65 net/sunrpc/rpc_pipe.c spin_lock(&inode->i_lock); inode 67 net/sunrpc/rpc_pipe.c spin_unlock(&inode->i_lock); inode 75 net/sunrpc/rpc_pipe.c spin_unlock(&inode->i_lock); inode 92 net/sunrpc/rpc_pipe.c struct rpc_inode *rpci = RPC_I(inode); inode 95 net/sunrpc/rpc_pipe.c spin_lock(&inode->i_lock); inode 112 net/sunrpc/rpc_pipe.c spin_unlock(&inode->i_lock); inode 121 net/sunrpc/rpc_pipe.c RPC_I(inode)->private = private; inode 127 net/sunrpc/rpc_pipe.c struct rpc_inode *rpci = RPC_I(inode); inode 130 net/sunrpc/rpc_pipe.c mutex_lock(&inode->i_mutex); inode 135 net/sunrpc/rpc_pipe.c spin_lock(&inode->i_lock); inode 141 net/sunrpc/rpc_pipe.c spin_unlock(&inode->i_lock); inode 145 net/sunrpc/rpc_pipe.c ops->release_pipe(inode); inode 148 net/sunrpc/rpc_pipe.c rpc_inode_setowner(inode, NULL); inode 149 net/sunrpc/rpc_pipe.c mutex_unlock(&inode->i_mutex); inode 152 net/sunrpc/rpc_pipe.c static struct inode * inode 165 net/sunrpc/rpc_pipe.c kmem_cache_free(rpc_inode_cachep, RPC_I(inode)); inode 171 net/sunrpc/rpc_pipe.c struct rpc_inode *rpci = RPC_I(inode); inode 174 net/sunrpc/rpc_pipe.c mutex_lock(&inode->i_mutex); inode 182 net/sunrpc/rpc_pipe.c mutex_unlock(&inode->i_mutex); inode 189 net/sunrpc/rpc_pipe.c struct rpc_inode *rpci = RPC_I(inode); inode 192 net/sunrpc/rpc_pipe.c mutex_lock(&inode->i_mutex); inode 197 net/sunrpc/rpc_pipe.c spin_lock(&inode->i_lock); inode 200 net/sunrpc/rpc_pipe.c spin_unlock(&inode->i_lock); inode 209 net/sunrpc/rpc_pipe.c spin_lock(&inode->i_lock); inode 212 net/sunrpc/rpc_pipe.c spin_unlock(&inode->i_lock); inode 218 net/sunrpc/rpc_pipe.c rpci->ops->release_pipe(inode); inode 220 net/sunrpc/rpc_pipe.c mutex_unlock(&inode->i_mutex); inode 227 net/sunrpc/rpc_pipe.c struct inode *inode = filp->f_path.dentry->d_inode; inode 228 net/sunrpc/rpc_pipe.c struct rpc_inode *rpci = RPC_I(inode); inode 232 net/sunrpc/rpc_pipe.c mutex_lock(&inode->i_mutex); inode 239 net/sunrpc/rpc_pipe.c spin_lock(&inode->i_lock); inode 249 net/sunrpc/rpc_pipe.c spin_unlock(&inode->i_lock); inode 257 net/sunrpc/rpc_pipe.c spin_lock(&inode->i_lock); inode 259 net/sunrpc/rpc_pipe.c spin_unlock(&inode->i_lock); inode 263 net/sunrpc/rpc_pipe.c mutex_unlock(&inode->i_mutex); inode 270 net/sunrpc/rpc_pipe.c struct inode *inode = filp->f_path.dentry->d_inode; inode 271 net/sunrpc/rpc_pipe.c struct rpc_inode *rpci = RPC_I(inode); inode 274 net/sunrpc/rpc_pipe.c mutex_lock(&inode->i_mutex); inode 278 net/sunrpc/rpc_pipe.c mutex_unlock(&inode->i_mutex); inode 355 net/sunrpc/rpc_pipe.c mutex_lock(&inode->i_mutex); inode 356 net/sunrpc/rpc_pipe.c clnt = RPC_I(inode)->private; inode 361 net/sunrpc/rpc_pipe.c single_release(inode, file); inode 364 net/sunrpc/rpc_pipe.c mutex_unlock(&inode->i_mutex); inode 377 net/sunrpc/rpc_pipe.c return single_release(inode, file); inode 502 net/sunrpc/rpc_pipe.c static struct inode * inode 505 net/sunrpc/rpc_pipe.c struct inode *inode = new_inode(sb); inode 506 net/sunrpc/rpc_pipe.c if (!inode) inode 508 net/sunrpc/rpc_pipe.c inode->i_mode = mode; inode 509 net/sunrpc/rpc_pipe.c inode->i_uid = inode->i_gid = 0; inode 510 net/sunrpc/rpc_pipe.c inode->i_blocks = 0; inode 511 net/sunrpc/rpc_pipe.c inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; inode 514 net/sunrpc/rpc_pipe.c inode->i_fop = &simple_dir_operations; inode 515 net/sunrpc/rpc_pipe.c inode->i_op = &simple_dir_inode_operations; inode 516 net/sunrpc/rpc_pipe.c inc_nlink(inode); inode 520 net/sunrpc/rpc_pipe.c return inode; inode 529 net/sunrpc/rpc_pipe.c struct inode *dir = parent->d_inode; inode 575 net/sunrpc/rpc_pipe.c struct inode *inode, *dir = parent->d_inode; inode 587 net/sunrpc/rpc_pipe.c inode = rpc_get_inode(dir->i_sb, mode); inode 588 net/sunrpc/rpc_pipe.c if (!inode) { inode 592 net/sunrpc/rpc_pipe.c inode->i_ino = i; inode 594 net/sunrpc/rpc_pipe.c inode->i_fop = files[i].i_fop; inode 596 net/sunrpc/rpc_pipe.c rpc_inode_setowner(inode, private); inode 599 net/sunrpc/rpc_pipe.c d_add(dentry, inode); inode 614 net/sunrpc/rpc_pipe.c struct inode *inode; inode 616 net/sunrpc/rpc_pipe.c inode = rpc_get_inode(dir->i_sb, S_IFDIR | S_IRUGO | S_IXUGO); inode 617 net/sunrpc/rpc_pipe.c if (!inode) inode 619 net/sunrpc/rpc_pipe.c inode->i_ino = iunique(dir->i_sb, 100); inode 620 net/sunrpc/rpc_pipe.c d_instantiate(dentry, inode); inode 643 net/sunrpc/rpc_pipe.c struct inode *dir = parent->d_inode; inode 693 net/sunrpc/rpc_pipe.c struct inode *dir; inode 731 net/sunrpc/rpc_pipe.c struct inode *dir; inode 769 net/sunrpc/rpc_pipe.c struct inode *dir, *inode; inode 787 net/sunrpc/rpc_pipe.c inode = rpc_get_inode(dir->i_sb, S_IFIFO | S_IRUSR | S_IWUSR); inode 788 net/sunrpc/rpc_pipe.c if (!inode) inode 790 net/sunrpc/rpc_pipe.c inode->i_ino = iunique(dir->i_sb, 100); inode 791 net/sunrpc/rpc_pipe.c inode->i_fop = &rpc_pipe_fops; inode 792 net/sunrpc/rpc_pipe.c d_instantiate(dentry, inode); inode 793 net/sunrpc/rpc_pipe.c rpci = RPC_I(inode); inode 825 net/sunrpc/rpc_pipe.c struct inode *dir; inode 858 net/sunrpc/rpc_pipe.c struct inode *inode; inode 867 net/sunrpc/rpc_pipe.c inode = rpc_get_inode(sb, S_IFDIR | 0755); inode 868 net/sunrpc/rpc_pipe.c if (!inode) inode 870 net/sunrpc/rpc_pipe.c root = d_alloc_root(inode); inode 872 net/sunrpc/rpc_pipe.c iput(inode); inode 66 net/sunrpc/stats.c return single_open(file, rpc_proc_show, PDE(inode)->data); inode 2177 net/unix/af_unix.c return seq_open_net(inode, file, &unix_seq_ops, inode 101 net/unix/garbage.c struct inode *inode = filp->f_path.dentry->d_inode; inode 106 net/unix/garbage.c if (S_ISSOCK(inode->i_mode)) { inode 107 net/unix/garbage.c struct socket * sock = SOCKET_I(inode); inode 354 net/wanrouter/wanmain.c struct inode *inode = file->f_path.dentry->d_inode; inode 366 net/wanrouter/wanmain.c dent = PDE(inode); inode 272 net/wanrouter/wanproc.c return single_open(file, wandev_show, PDE(inode)->data); inode 661 net/wireless/wext.c return seq_open_net(inode, file, &wireless_seq_ops, inode 183 security/commoncap.c struct inode *inode = dentry->d_inode; inode 186 security/commoncap.c if (!inode->i_op || !inode->i_op->getxattr) inode 189 security/commoncap.c error = inode->i_op->getxattr(dentry, XATTR_NAME_CAPS, NULL, 0); inode 197 security/commoncap.c struct inode *inode = dentry->d_inode; inode 199 security/commoncap.c if (!inode->i_op || !inode->i_op->removexattr) inode 202 security/commoncap.c return inode->i_op->removexattr(dentry, XATTR_NAME_CAPS); inode 280 security/commoncap.c struct inode *inode; inode 288 security/commoncap.c inode = dentry->d_inode; inode 289 security/commoncap.c if (!inode->i_op || !inode->i_op->getxattr) inode 292 security/commoncap.c rc = inode->i_op->getxattr(dentry, XATTR_NAME_CAPS, &vcaps, inode 506 security/device_cgroup.c dev_t device = inode->i_rdev; inode 509 security/device_cgroup.c if (!S_ISBLK(inode->i_mode) && !S_ISCHR(inode->i_mode)) inode 519 security/device_cgroup.c if ((wh->type & DEV_BLOCK) && !S_ISBLK(inode->i_mode)) inode 521 security/device_cgroup.c if ((wh->type & DEV_CHAR) && !S_ISCHR(inode->i_mode)) inode 523 security/device_cgroup.c if (wh->major != ~0 && wh->major != imajor(inode)) inode 525 security/device_cgroup.c if (wh->minor != ~0 && wh->minor != iminor(inode)) inode 46 security/inode.c if (inode->i_private) inode 47 security/inode.c file->private_data = inode->i_private; inode 58 security/inode.c static struct inode *get_inode(struct super_block *sb, int mode, dev_t dev) inode 60 security/inode.c struct inode *inode = new_inode(sb); inode 62 security/inode.c if (inode) { inode 63 security/inode.c inode->i_mode = mode; inode 64 security/inode.c inode->i_uid = 0; inode 65 security/inode.c inode->i_gid = 0; inode 66 security/inode.c inode->i_blocks = 0; inode 67 security/inode.c inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; inode 70 security/inode.c init_special_inode(inode, mode, dev); inode 73 security/inode.c inode->i_fop = &default_file_ops; inode 76 security/inode.c inode->i_op = &simple_dir_inode_operations; inode 77 security/inode.c inode->i_fop = &simple_dir_operations; inode 80 security/inode.c inc_nlink(inode); inode 84 security/inode.c return inode; inode 91 security/inode.c struct inode *inode; inode 97 security/inode.c inode = get_inode(dir->i_sb, mode, dev); inode 98 security/inode.c if (inode) { inode 99 security/inode.c d_instantiate(dentry, inode); inode 343 security/security.c inode->i_security = NULL; inode 344 security/security.c return security_ops->inode_alloc_security(inode); inode 349 security/security.c security_ops->inode_free_security(inode); inode 355 security/security.c if (unlikely(IS_PRIVATE(inode))) inode 357 security/security.c return security_ops->inode_init_security(inode, dir, name, value, len); inode 438 security/security.c if (unlikely(IS_PRIVATE(inode))) inode 440 security/security.c return security_ops->inode_permission(inode, mask); inode 460 security/security.c if (unlikely(IS_PRIVATE(inode))) inode 462 security/security.c security_ops->inode_delete(inode); inode 514 security/security.c if (unlikely(IS_PRIVATE(inode))) inode 516 security/security.c return security_ops->inode_getsecurity(inode, name, buffer, alloc); inode 521 security/security.c if (unlikely(IS_PRIVATE(inode))) inode 523 security/security.c return security_ops->inode_setsecurity(inode, name, value, size, flags); inode 528 security/security.c if (unlikely(IS_PRIVATE(inode))) inode 530 security/security.c return security_ops->inode_listsecurity(inode, buffer, buffer_size); inode 535 security/security.c security_ops->inode_getsecid(inode, secid); inode 719 security/security.c security_ops->task_to_inode(p, inode); inode 827 security/security.c if (unlikely(inode && IS_PRIVATE(inode))) inode 829 security/security.c security_ops->d_instantiate(dentry, inode); inode 536 security/selinux/avc.c struct inode *inode = NULL; inode 583 security/selinux/avc.c inode = dentry->d_inode; inode 584 security/selinux/avc.c } else if (a->u.fs.inode) { inode 586 security/selinux/avc.c inode = a->u.fs.inode; inode 587 security/selinux/avc.c dentry = d_find_alias(inode); inode 594 security/selinux/avc.c if (inode) inode 596 security/selinux/avc.c inode->i_sb->s_id, inode 597 security/selinux/avc.c inode->i_ino); inode 192 security/selinux/hooks.c isec->inode = inode; inode 196 security/selinux/hooks.c inode->i_security = isec; inode 203 security/selinux/hooks.c struct inode_security_struct *isec = inode->i_security; inode 204 security/selinux/hooks.c struct superblock_security_struct *sbsec = inode->i_sb->s_security; inode 211 security/selinux/hooks.c inode->i_security = NULL; inode 317 security/selinux/hooks.c return inode_doinit_with_dentry(inode, NULL); inode 373 security/selinux/hooks.c struct inode *root_inode = root->d_inode; inode 425 security/selinux/hooks.c struct inode *inode = isec->inode; inode 427 security/selinux/hooks.c inode = igrab(inode); inode 428 security/selinux/hooks.c if (inode) { inode 429 security/selinux/hooks.c if (!IS_PRIVATE(inode)) inode 430 security/selinux/hooks.c inode_doinit(inode); inode 431 security/selinux/hooks.c iput(inode); inode 511 security/selinux/hooks.c struct inode *root = sbsec->sb->s_root->d_inode; inode 559 security/selinux/hooks.c struct inode *inode = sbsec->sb->s_root->d_inode; inode 560 security/selinux/hooks.c struct inode_security_struct *root_isec = inode->i_security; inode 795 security/selinux/hooks.c struct inode *newinode = newsb->s_root->d_inode; inode 802 security/selinux/hooks.c const struct inode *oldinode = oldsb->s_root->d_inode; inode 804 security/selinux/hooks.c struct inode *newinode = newsb->s_root->d_inode; inode 1162 security/selinux/hooks.c struct inode_security_struct *isec = inode->i_security; inode 1177 security/selinux/hooks.c sbsec = inode->i_sb->s_security; inode 1191 security/selinux/hooks.c if (!inode->i_op->getxattr) { inode 1203 security/selinux/hooks.c dentry = d_find_alias(inode); inode 1207 security/selinux/hooks.c "ino=%ld\n", __func__, inode->i_sb->s_id, inode 1208 security/selinux/hooks.c inode->i_ino); inode 1219 security/selinux/hooks.c rc = inode->i_op->getxattr(dentry, XATTR_NAME_SELINUX, inode 1223 security/selinux/hooks.c rc = inode->i_op->getxattr(dentry, XATTR_NAME_SELINUX, inode 1237 security/selinux/hooks.c rc = inode->i_op->getxattr(dentry, inode 1246 security/selinux/hooks.c -rc, inode->i_sb->s_id, inode->i_ino); inode 1261 security/selinux/hooks.c inode->i_sb->s_id, inode->i_ino); inode 1279 security/selinux/hooks.c isec->sclass = inode_mode_to_security_class(inode->i_mode); inode 1295 security/selinux/hooks.c if (sbsec->proc && !S_ISLNK(inode->i_mode)) { inode 1296 security/selinux/hooks.c struct proc_inode *proci = PROC_I(inode); inode 1298 security/selinux/hooks.c isec->sclass = inode_mode_to_security_class(inode->i_mode); inode 1316 security/selinux/hooks.c isec->sclass = inode_mode_to_security_class(inode->i_mode); inode 1419 security/selinux/hooks.c if (unlikely(IS_PRIVATE(inode))) inode 1423 security/selinux/hooks.c isec = inode->i_security; inode 1428 security/selinux/hooks.c ad.u.fs.inode = inode; inode 1442 security/selinux/hooks.c struct inode *inode = dentry->d_inode; inode 1447 security/selinux/hooks.c return inode_has_perm(tsk, inode, av, &ad); inode 1464 security/selinux/hooks.c struct inode *inode = file->f_path.dentry->d_inode; inode 1482 security/selinux/hooks.c return inode_has_perm(tsk, inode, av, &ad); inode 2010 security/selinux/hooks.c struct inode *inode = bprm->file->f_path.dentry->d_inode; inode 2027 security/selinux/hooks.c isec = inode->i_security; inode 2135 security/selinux/hooks.c struct inode *inode = file->f_path.dentry->d_inode; inode 2136 security/selinux/hooks.c if (inode_has_perm(current, inode, inode 2500 security/selinux/hooks.c return inode_alloc_security(inode); inode 2505 security/selinux/hooks.c inode_free_security(inode); inode 2527 security/selinux/hooks.c inode_mode_to_security_class(inode->i_mode), inode 2534 security/selinux/hooks.c -rc, inode->i_sb->s_id, inode->i_ino); inode 2541 security/selinux/hooks.c struct inode_security_struct *isec = inode->i_security; inode 2542 security/selinux/hooks.c isec->sclass = inode_mode_to_security_class(inode->i_mode); inode 2646 security/selinux/hooks.c rc = secondary_ops->inode_permission(inode, mask); inode 2655 security/selinux/hooks.c return inode_has_perm(current, inode, inode 2656 security/selinux/hooks.c open_file_mask_to_av(inode->i_mode, mask), NULL); inode 2705 security/selinux/hooks.c struct inode *inode = dentry->d_inode; inode 2706 security/selinux/hooks.c struct inode_security_struct *isec = inode->i_security; inode 2715 security/selinux/hooks.c sbsec = inode->i_sb->s_security; inode 2719 security/selinux/hooks.c if (!is_owner_or_cap(inode)) inode 2760 security/selinux/hooks.c struct inode *inode = dentry->d_inode; inode 2761 security/selinux/hooks.c struct inode_security_struct *isec = inode->i_security; inode 2774 security/selinux/hooks.c inode->i_sb->s_id, inode->i_ino, -rc); inode 2813 security/selinux/hooks.c struct inode_security_struct *isec = inode->i_security; inode 2854 security/selinux/hooks.c struct inode_security_struct *isec = inode->i_security; inode 2892 security/selinux/hooks.c struct inode_security_struct *isec = inode->i_security; inode 2901 security/selinux/hooks.c struct inode *inode = file->f_path.dentry->d_inode; inode 2913 security/selinux/hooks.c file_mask_to_av(inode->i_mode, mask)); inode 2917 security/selinux/hooks.c return selinux_netlbl_inode_permission(inode, mask); inode 2922 security/selinux/hooks.c struct inode *inode = file->f_path.dentry->d_inode; inode 2925 security/selinux/hooks.c struct inode_security_struct *isec = inode->i_security; inode 2934 security/selinux/hooks.c return selinux_netlbl_inode_permission(inode, mask); inode 3150 security/selinux/hooks.c struct inode *inode; inode 3152 security/selinux/hooks.c inode = file->f_path.dentry->d_inode; inode 3154 security/selinux/hooks.c isec = inode->i_security; inode 3172 security/selinux/hooks.c return inode_has_perm(current, inode, file_to_av(file), NULL); inode 3390 security/selinux/hooks.c struct inode_security_struct *isec = inode->i_security; inode 5211 security/selinux/hooks.c if (inode) inode 5212 security/selinux/hooks.c inode_doinit_with_dentry(inode, dentry); inode 35 security/selinux/include/avc.h struct inode; inode 50 security/selinux/include/avc.h struct inode *inode; inode 40 security/selinux/include/objsec.h struct inode *inode; /* back pointer to inode object */ inode 386 security/selinux/netlabel.c if (!S_ISSOCK(inode->i_mode) || inode 390 security/selinux/netlabel.c sock = SOCKET_I(inode); inode 839 security/selinux/selinuxfs.c static struct inode *sel_make_inode(struct super_block *sb, int mode) inode 841 security/selinux/selinuxfs.c struct inode *ret = new_inode(sb); inode 859 security/selinux/selinuxfs.c struct inode *inode = filep->f_path.dentry->d_inode; inode 860 security/selinux/selinuxfs.c unsigned index = inode->i_ino & SEL_INO_MASK; inode 901 security/selinux/selinuxfs.c struct inode *inode = filep->f_path.dentry->d_inode; inode 902 security/selinux/selinuxfs.c unsigned index = inode->i_ino & SEL_INO_MASK; inode 1042 security/selinux/selinuxfs.c struct inode *inode = NULL; inode 1071 security/selinux/selinuxfs.c inode = sel_make_inode(dir->d_sb, S_IFREG | S_IRUGO | S_IWUSR); inode 1072 security/selinux/selinuxfs.c if (!inode) { inode 1085 security/selinux/selinuxfs.c isec = (struct inode_security_struct *)inode->i_security; inode 1091 security/selinux/selinuxfs.c inode->i_fop = &sel_bool_ops; inode 1092 security/selinux/selinuxfs.c inode->i_ino = i|SEL_BOOL_INO_OFFSET; inode 1093 security/selinux/selinuxfs.c d_add(dentry, inode); inode 1283 security/selinux/selinuxfs.c struct inode *inode; inode 1292 security/selinux/selinuxfs.c inode = sel_make_inode(dir->d_sb, S_IFREG|files[i].mode); inode 1293 security/selinux/selinuxfs.c if (!inode) { inode 1297 security/selinux/selinuxfs.c inode->i_fop = files[i].ops; inode 1298 security/selinux/selinuxfs.c inode->i_ino = ++sel_last_ino; inode 1299 security/selinux/selinuxfs.c d_add(dentry, inode); inode 1308 security/selinux/selinuxfs.c struct inode *inode; inode 1313 security/selinux/selinuxfs.c inode = file->f_path.dentry->d_inode; inode 1314 security/selinux/selinuxfs.c sid = inode->i_ino&SEL_INO_MASK; inode 1333 security/selinux/selinuxfs.c struct inode *inode; inode 1341 security/selinux/selinuxfs.c inode = sel_make_inode(dir->d_sb, S_IFREG|S_IRUGO); inode 1342 security/selinux/selinuxfs.c if (!inode) { inode 1346 security/selinux/selinuxfs.c inode->i_fop = &sel_initcon_ops; inode 1347 security/selinux/selinuxfs.c inode->i_ino = i|SEL_INITCON_INO_OFFSET; inode 1348 security/selinux/selinuxfs.c d_add(dentry, inode); inode 1456 security/selinux/selinuxfs.c struct inode *inode; inode 1465 security/selinux/selinuxfs.c inode = sel_make_inode(dir->d_sb, S_IFREG|S_IRUGO); inode 1466 security/selinux/selinuxfs.c if (!inode) { inode 1470 security/selinux/selinuxfs.c inode->i_fop = &sel_perm_ops; inode 1472 security/selinux/selinuxfs.c inode->i_ino = sel_perm_to_ino(classvalue, i+1); inode 1473 security/selinux/selinuxfs.c d_add(dentry, inode); inode 1488 security/selinux/selinuxfs.c struct inode *inode = NULL; inode 1497 security/selinux/selinuxfs.c inode = sel_make_inode(dir->d_sb, S_IFREG|S_IRUGO); inode 1498 security/selinux/selinuxfs.c if (!inode) { inode 1503 security/selinux/selinuxfs.c inode->i_fop = &sel_class_ops; inode 1504 security/selinux/selinuxfs.c inode->i_ino = sel_class_to_ino(index); inode 1505 security/selinux/selinuxfs.c d_add(dentry, inode); inode 1595 security/selinux/selinuxfs.c struct inode *inode = NULL; inode 1609 security/selinux/selinuxfs.c inode = sel_make_inode(policycap_dir->d_sb, S_IFREG | S_IRUGO); inode 1610 security/selinux/selinuxfs.c if (inode == NULL) inode 1613 security/selinux/selinuxfs.c inode->i_fop = &sel_policycap_ops; inode 1614 security/selinux/selinuxfs.c inode->i_ino = iter | SEL_POLICYCAP_INO_OFFSET; inode 1615 security/selinux/selinuxfs.c d_add(dentry, inode); inode 1625 security/selinux/selinuxfs.c struct inode *inode; inode 1627 security/selinux/selinuxfs.c inode = sel_make_inode(dir->i_sb, S_IFDIR | S_IRUGO | S_IXUGO); inode 1628 security/selinux/selinuxfs.c if (!inode) { inode 1632 security/selinux/selinuxfs.c inode->i_op = &simple_dir_inode_operations; inode 1633 security/selinux/selinuxfs.c inode->i_fop = &simple_dir_operations; inode 1634 security/selinux/selinuxfs.c inode->i_ino = ++(*ino); inode 1636 security/selinux/selinuxfs.c inc_nlink(inode); inode 1637 security/selinux/selinuxfs.c d_add(dentry, inode); inode 1648 security/selinux/selinuxfs.c struct inode *inode, *root_inode; inode 1694 security/selinux/selinuxfs.c inode = sel_make_inode(sb, S_IFCHR | S_IRUGO | S_IWUGO); inode 1695 security/selinux/selinuxfs.c if (!inode) { inode 1699 security/selinux/selinuxfs.c inode->i_ino = ++sel_last_ino; inode 1700 security/selinux/selinuxfs.c isec = (struct inode_security_struct *)inode->i_security; inode 1705 security/selinux/selinuxfs.c init_special_inode(inode, S_IFCHR | S_IRUGO | S_IWUGO, MKDEV(MEM_MAJOR, 3)); inode 1706 security/selinux/selinuxfs.c d_add(dentry, inode); inode 258 security/smack/smack_lsm.c struct inode *inode = root->d_inode; inode 305 security/smack/smack_lsm.c isp = inode->i_security; inode 307 security/smack/smack_lsm.c inode->i_security = new_inode_smack(sp->smk_root); inode 376 security/smack/smack_lsm.c inode->i_security = new_inode_smack(current->security); inode 377 security/smack/smack_lsm.c if (inode->i_security == NULL) inode 390 security/smack/smack_lsm.c kfree(inode->i_security); inode 391 security/smack/smack_lsm.c inode->i_security = NULL; inode 407 security/smack/smack_lsm.c char *isp = smk_of_inode(inode); inode 462 security/smack/smack_lsm.c struct inode *ip = dentry->d_inode; inode 552 security/smack/smack_lsm.c return smk_curacc(smk_of_inode(inode), mask); inode 713 security/smack/smack_lsm.c struct inode *ip = (struct inode *)inode; inode 719 security/smack/smack_lsm.c isp = smk_of_inode(inode); inode 782 security/smack/smack_lsm.c struct inode_smack *isp = inode->i_security; inode 1206 security/smack/smack_lsm.c struct inode_smack *isp = inode->i_security; inode 1358 security/smack/smack_lsm.c struct inode_smack *nsp = inode->i_security; inode 1377 security/smack/smack_lsm.c if (inode->i_sb->s_magic != SOCKFS_MAGIC) inode 1380 security/smack/smack_lsm.c sock = SOCKET_I(inode); inode 1860 security/smack/smack_lsm.c if (inode == NULL) inode 1863 security/smack/smack_lsm.c isp = inode->i_security; inode 1873 security/smack/smack_lsm.c sbp = inode->i_sb; inode 1959 security/smack/smack_lsm.c if (inode->i_op->getxattr == NULL) inode 1965 security/smack/smack_lsm.c dp = d_find_alias(inode); inode 1974 security/smack/smack_lsm.c fetched = smk_fetch(inode, dp); inode 2074 security/smack/smack_lsm.c struct inode *sp = SOCK_INODE(sock); inode 2075 security/smack/smack_lsm.c struct inode *op = SOCK_INODE(other); inode 2090 security/smack/smack_lsm.c struct inode *sp = SOCK_INODE(sock); inode 2091 security/smack/smack_lsm.c struct inode *op = SOCK_INODE(other); inode 999 security/smack/smackfs.c struct inode *root_inode; inode 53 sound/core/control.c card = snd_lookup_minor_data(iminor(inode), SNDRV_DEVICE_TYPE_CONTROL); inode 84 sound/core/hwdep.c int major = imajor(inode); inode 90 sound/core/hwdep.c hw = snd_lookup_minor_data(iminor(inode), inode 94 sound/core/hwdep.c hw = snd_lookup_oss_minor_data(iminor(inode), inode 311 sound/core/info.c p = PDE(inode); inode 493 sound/core/info.c struct inode *inode = file->f_path.dentry->d_inode; inode 506 sound/core/info.c inode, file, vma); inode 268 sound/core/init.c return df->disconnected_f_op->release(inode, file); inode 270 sound/core/init.c panic("%s(%p, %p) failed!", __func__, inode, file); inode 46 sound/core/oss/mixer_oss.c card = snd_lookup_oss_minor_data(iminor(inode), inode 2357 sound/core/oss/pcm_oss.c pcm = snd_lookup_oss_minor_data(iminor(inode), inode 2391 sound/core/oss/pcm_oss.c iminor(inode), setup); inode 1564 sound/core/pcm_native.c struct inode *inode; inode 1570 sound/core/pcm_native.c inode = file->f_path.dentry->d_inode; inode 1571 sound/core/pcm_native.c if (!S_ISCHR(inode->i_mode) || inode 1572 sound/core/pcm_native.c imajor(inode) != snd_major) { inode 1576 sound/core/pcm_native.c minor = iminor(inode); inode 2101 sound/core/pcm_native.c pcm = snd_lookup_minor_data(iminor(inode), inode 2110 sound/core/pcm_native.c pcm = snd_lookup_minor_data(iminor(inode), inode 378 sound/core/rawmidi.c int maj = imajor(inode); inode 389 sound/core/rawmidi.c rmidi = snd_lookup_minor_data(iminor(inode), inode 393 sound/core/rawmidi.c rmidi = snd_lookup_oss_minor_data(iminor(inode), inode 133 sound/core/seq/oss/seq_oss.c if (iminor(inode) == SNDRV_MINOR_OSS_MUSIC) inode 125 sound/core/sound.c unsigned int minor = iminor(inode); inode 156 sound/core/sound.c err = file->f_op->open(inode, file); inode 172 sound/core/sound.c ret = __snd_open(inode, file); inode 1781 sound/oss/au1550_ac97.c int minor = MINOR(inode->i_rdev); inode 757 sound/oss/dmasound/dmasound_core.c dmasound.minDev = iminor(inode) & 0x0f; inode 1115 sound/oss/dmasound/dmasound_core.c return mixer_ioctl(inode, file, cmd, arg); inode 644 sound/oss/msnd_pinnacle.c int minor = iminor(inode); inode 756 sound/oss/msnd_pinnacle.c int minor = iminor(inode); inode 791 sound/oss/msnd_pinnacle.c int minor = iminor(inode); inode 206 sound/oss/soundcard.c int dev = iminor(inode); inode 255 sound/oss/soundcard.c int dev = iminor(inode); inode 335 sound/oss/soundcard.c int dev = iminor(inode); inode 398 sound/oss/soundcard.c struct inode *inode = file->f_path.dentry->d_inode; inode 399 sound/oss/soundcard.c int dev = iminor(inode); inode 1533 sound/oss/swarm_cs4297a.c int minor = iminor(inode); inode 1558 sound/oss/swarm_cs4297a.c return nonseekable_open(inode, file); inode 2349 sound/oss/swarm_cs4297a.c (unsigned) inode, (unsigned) file, file->f_mode)); inode 2375 sound/oss/swarm_cs4297a.c int minor = iminor(inode); inode 2381 sound/oss/swarm_cs4297a.c (unsigned) inode, (unsigned) file, file->f_mode)); inode 2463 sound/oss/swarm_cs4297a.c cs4297a_release(inode, file); inode 2481 sound/oss/swarm_cs4297a.c cs4297a_release(inode, file); inode 2487 sound/oss/swarm_cs4297a.c return nonseekable_open(inode, file); inode 2449 sound/oss/vwsnd.c inode, file, cmd, arg); inode 2894 sound/oss/vwsnd.c ret = vwsnd_audio_do_ioctl(inode, file, cmd, arg); inode 2916 sound/oss/vwsnd.c int minor = iminor(inode); inode 2919 sound/oss/vwsnd.c DBGE("(inode=0x%p, file=0x%p)\n", inode, file); inode 3009 sound/oss/vwsnd.c DBGEV("(inode=0x%p, file=0x%p)\n", inode, file); inode 3059 sound/oss/vwsnd.c DBGEV("(inode=0x%p, file=0x%p)\n", inode, file); inode 3063 sound/oss/vwsnd.c if (devc->mixer_minor == iminor(inode)) inode 3078 sound/oss/vwsnd.c DBGEV("(inode=0x%p, file=0x%p)\n", inode, file); inode 514 sound/sound_core.c int unit = iminor(inode); inode 561 sound/sound_core.c err = file->f_op->open(inode,file);