• Home
  • Raw
  • Download

Lines Matching refs:obj

435 				yaffs_Object *obj);
448 yaffs_Object *obj; in yaffs_lookup() local
459 obj = yaffs_FindObjectByName(yaffs_InodeToObject(dir), in yaffs_lookup()
462 obj = yaffs_GetEquivalentObject(obj); /* in case it was a hardlink */ in yaffs_lookup()
467 if (obj) { in yaffs_lookup()
469 ("yaffs_lookup found %d\n", obj->objectId)); in yaffs_lookup()
471 inode = yaffs_get_inode(dir->i_sb, obj->yst_mode, 0, obj); in yaffs_lookup()
517 yaffs_Object *obj; in yaffs_clear_inode() local
520 obj = yaffs_InodeToObject(inode); in yaffs_clear_inode()
525 obj ? "object exists" : "null object")); in yaffs_clear_inode()
527 if (obj) { in yaffs_clear_inode()
528 dev = obj->myDev; in yaffs_clear_inode()
534 obj->myInode = NULL; in yaffs_clear_inode()
542 yaffs_HandleDeferedFree(obj); in yaffs_clear_inode()
556 yaffs_Object *obj = yaffs_InodeToObject(inode); in yaffs_delete_inode() local
562 obj ? "object exists" : "null object")); in yaffs_delete_inode()
564 if (obj) { in yaffs_delete_inode()
565 dev = obj->myDev; in yaffs_delete_inode()
567 yaffs_DeleteObject(obj); in yaffs_delete_inode()
582 yaffs_Object *obj = yaffs_DentryToObject(file->f_dentry); in yaffs_file_flush() local
584 yaffs_Device *dev = obj->myDev; in yaffs_file_flush()
587 ("yaffs_file_flush object %d (%s)\n", obj->objectId, in yaffs_file_flush()
588 obj->dirty ? "dirty" : "clean")); in yaffs_file_flush()
592 yaffs_FlushFile(obj, 1); in yaffs_file_flush()
603 yaffs_Object *obj; in yaffs_readpage_nolock() local
613 obj = yaffs_DentryToObject(f->f_dentry); in yaffs_readpage_nolock()
615 dev = obj->myDev; in yaffs_readpage_nolock()
629 ret = yaffs_ReadDataFromFile(obj, pg_buf, in yaffs_readpage_nolock()
678 yaffs_Object *obj; in yaffs_writepage() local
711 obj = yaffs_InodeToObject(inode); in yaffs_writepage()
712 yaffs_GrossLock(obj->myDev); in yaffs_writepage()
719 (int)obj->variant.fileVariant.fileSize, (int)inode->i_size)); in yaffs_writepage()
721 nWritten = yaffs_WriteDataToFile(obj, buffer, in yaffs_writepage()
726 (int)obj->variant.fileVariant.fileSize, (int)inode->i_size)); in yaffs_writepage()
728 yaffs_GrossUnlock(obj->myDev); in yaffs_writepage()
892 static void yaffs_FillInodeFromObject(struct inode *inode, yaffs_Object *obj) in yaffs_FillInodeFromObject() argument
894 if (inode && obj) { in yaffs_FillInodeFromObject()
898 __u32 mode = obj->yst_mode; in yaffs_FillInodeFromObject()
899 switch (obj->variantType) { in yaffs_FillInodeFromObject()
902 obj->yst_mode &= ~S_IFMT; in yaffs_FillInodeFromObject()
903 obj->yst_mode |= S_IFREG; in yaffs_FillInodeFromObject()
909 obj->yst_mode &= ~S_IFMT; in yaffs_FillInodeFromObject()
910 obj->yst_mode |= S_IFLNK; in yaffs_FillInodeFromObject()
916 obj->yst_mode &= ~S_IFMT; in yaffs_FillInodeFromObject()
917 obj->yst_mode |= S_IFDIR; in yaffs_FillInodeFromObject()
931 inode->i_ino = obj->objectId; in yaffs_FillInodeFromObject()
932 inode->i_mode = obj->yst_mode; in yaffs_FillInodeFromObject()
933 inode->i_uid = obj->yst_uid; in yaffs_FillInodeFromObject()
934 inode->i_gid = obj->yst_gid; in yaffs_FillInodeFromObject()
940 inode->i_rdev = old_decode_dev(obj->yst_rdev); in yaffs_FillInodeFromObject()
941 inode->i_atime.tv_sec = (time_t) (obj->yst_atime); in yaffs_FillInodeFromObject()
943 inode->i_mtime.tv_sec = (time_t) obj->yst_mtime; in yaffs_FillInodeFromObject()
945 inode->i_ctime.tv_sec = (time_t) obj->yst_ctime; in yaffs_FillInodeFromObject()
948 inode->i_rdev = obj->yst_rdev; in yaffs_FillInodeFromObject()
949 inode->i_atime = obj->yst_atime; in yaffs_FillInodeFromObject()
950 inode->i_mtime = obj->yst_mtime; in yaffs_FillInodeFromObject()
951 inode->i_ctime = obj->yst_ctime; in yaffs_FillInodeFromObject()
953 inode->i_size = yaffs_GetObjectFileLength(obj); in yaffs_FillInodeFromObject()
956 inode->i_nlink = yaffs_GetObjectLinkCount(obj); in yaffs_FillInodeFromObject()
963 switch (obj->yst_mode & S_IFMT) { in yaffs_FillInodeFromObject()
966 init_special_inode(inode, obj->yst_mode, in yaffs_FillInodeFromObject()
967 old_decode_dev(obj->yst_rdev)); in yaffs_FillInodeFromObject()
969 init_special_inode(inode, obj->yst_mode, in yaffs_FillInodeFromObject()
970 (dev_t) (obj->yst_rdev)); in yaffs_FillInodeFromObject()
988 yaffs_InodeToObjectLV(inode) = obj; in yaffs_FillInodeFromObject()
990 obj->myInode = inode; in yaffs_FillInodeFromObject()
1000 yaffs_Object *obj) in yaffs_get_inode() argument
1011 if (!obj) { in yaffs_get_inode()
1019 ("yaffs_get_inode for object %d\n", obj->objectId)); in yaffs_get_inode()
1021 inode = Y_IGET(sb, obj->objectId); in yaffs_get_inode()
1035 yaffs_Object *obj; in yaffs_file_write() local
1040 obj = yaffs_DentryToObject(f->f_dentry); in yaffs_file_write()
1042 dev = obj->myDev; in yaffs_file_write()
1053 if (!obj) in yaffs_file_write()
1060 n, obj->objectId, ipos)); in yaffs_file_write()
1062 nWritten = yaffs_WriteDataToFile(obj, buf, ipos, n, 0); in yaffs_file_write()
1092 yaffs_Object *obj; in yaffs_hold_space() local
1098 obj = yaffs_DentryToObject(f->f_dentry); in yaffs_hold_space()
1100 dev = obj->myDev; in yaffs_hold_space()
1113 yaffs_Object *obj; in yaffs_release_space() local
1117 obj = yaffs_DentryToObject(f->f_dentry); in yaffs_release_space()
1119 dev = obj->myDev; in yaffs_release_space()
1129 yaffs_Object *obj; in yaffs_readdir() local
1138 obj = yaffs_DentryToObject(f->f_dentry); in yaffs_readdir()
1139 dev = obj->myDev; in yaffs_readdir()
1178 ylist_for_each(i, &obj->variant.directoryVariant.children) { in yaffs_readdir()
1229 yaffs_Object *obj = NULL; in yaffs_mknod() local
1264 obj = yaffs_MknodSpecial(parent, dentry->d_name.name, mode, uid, in yaffs_mknod()
1267 obj = yaffs_MknodSpecial(parent, dentry->d_name.name, mode, uid, in yaffs_mknod()
1273 obj = yaffs_MknodFile(parent, dentry->d_name.name, mode, uid, in yaffs_mknod()
1279 obj = yaffs_MknodDirectory(parent, dentry->d_name.name, mode, in yaffs_mknod()
1284 obj = NULL; /* Do we ever get here? */ in yaffs_mknod()
1291 if (obj) { in yaffs_mknod()
1292 inode = yaffs_get_inode(dir->i_sb, mode, rdev, obj); in yaffs_mknod()
1297 obj->objectId, atomic_read(&inode->i_count))); in yaffs_mknod()
1362 yaffs_Object *obj = NULL; in yaffs_link() local
1368 obj = yaffs_InodeToObject(inode); in yaffs_link()
1369 dev = obj->myDev; in yaffs_link()
1375 obj); in yaffs_link()
1378 old_dentry->d_inode->i_nlink = yaffs_GetObjectLinkCount(obj); in yaffs_link()
1400 yaffs_Object *obj; in yaffs_symlink() local
1409 obj = yaffs_MknodSymLink(yaffs_InodeToObject(dir), dentry->d_name.name, in yaffs_symlink()
1413 if (obj) { in yaffs_symlink()
1416 inode = yaffs_get_inode(dir->i_sb, obj->yst_mode, 0, obj); in yaffs_symlink()
1432 yaffs_Object *obj; in yaffs_sync_object() local
1435 obj = yaffs_DentryToObject(dentry); in yaffs_sync_object()
1437 dev = obj->myDev; in yaffs_sync_object()
1441 yaffs_FlushFile(obj, 1); in yaffs_sync_object()
1656 yaffs_Object *obj; local
1675 obj = yaffs_FindObjectByNumber(dev, inode->i_ino);
1677 yaffs_FillInodeFromObject(inode, obj);
1694 yaffs_Object *obj; local
1702 obj = yaffs_FindObjectByNumber(dev, inode->i_ino);
1704 yaffs_FillInodeFromObject(inode, obj);