• Home
  • Raw
  • Download

Lines Matching refs:obj

239 				      struct yaffs_obj *obj);
260 struct yaffs_obj *obj; in yaffs_readpage_nolock() local
271 obj = yaffs_dentry_to_obj(f->f_dentry); in yaffs_readpage_nolock()
273 dev = obj->my_dev; in yaffs_readpage_nolock()
287 ret = yaffs_file_rd(obj, pg_buf, pos, PAGE_CACHE_SIZE); in yaffs_readpage_nolock()
385 struct yaffs_obj *obj; in yaffs_writepage() local
427 obj = yaffs_inode_to_obj(inode); in yaffs_writepage()
428 dev = obj->my_dev; in yaffs_writepage()
436 obj->variant.file_variant.file_size, inode->i_size); in yaffs_writepage()
438 n_written = yaffs_wr_file(obj, buffer, in yaffs_writepage()
445 obj->variant.file_variant.file_size, inode->i_size); in yaffs_writepage()
464 struct yaffs_obj *obj; in yaffs_hold_space() local
469 obj = yaffs_dentry_to_obj(f->f_dentry); in yaffs_hold_space()
471 dev = obj->my_dev; in yaffs_hold_space()
484 struct yaffs_obj *obj; in yaffs_release_space() local
487 obj = yaffs_dentry_to_obj(f->f_dentry); in yaffs_release_space()
489 dev = obj->my_dev; in yaffs_release_space()
573 struct yaffs_obj *obj; in yaffs_file_write() local
579 obj = yaffs_dentry_to_obj(f->f_dentry); in yaffs_file_write()
581 if (!obj) { in yaffs_file_write()
587 dev = obj->my_dev; in yaffs_file_write()
600 (unsigned)n, (unsigned)n, obj->obj_id, ipos); in yaffs_file_write()
602 n_written = yaffs_wr_file(obj, buf, ipos, n, 0); in yaffs_file_write()
715 struct yaffs_obj *obj = yaffs_dentry_to_obj(file->f_dentry); in yaffs_file_flush() local
717 struct yaffs_dev *dev = obj->my_dev; in yaffs_file_flush()
721 obj->obj_id, in yaffs_file_flush()
722 obj->dirty ? "dirty" : "clean"); in yaffs_file_flush()
726 yaffs_flush_file(obj, 1, 0); in yaffs_file_flush()
743 struct yaffs_obj *obj; in yaffs_sync_object() local
749 obj = yaffs_dentry_to_obj(dentry); in yaffs_sync_object()
751 dev = obj->my_dev; in yaffs_sync_object()
756 yaffs_flush_file(obj, 1, datasync); in yaffs_sync_object()
897 struct yaffs_obj *obj = yaffs_inode_to_obj(inode); in yaffs_setxattr() local
899 yaffs_trace(YAFFS_TRACE_OS, "yaffs_setxattr of object %d", obj->obj_id); in yaffs_setxattr()
903 dev = obj->my_dev; in yaffs_setxattr()
905 result = yaffs_set_xattrib(obj, name, value, size, flags); in yaffs_setxattr()
924 struct yaffs_obj *obj = yaffs_inode_to_obj(inode); in yaffs_getxattr() local
928 name, obj->obj_id); in yaffs_getxattr()
931 dev = obj->my_dev; in yaffs_getxattr()
933 error = yaffs_get_xattrib(obj, name, buff, size); in yaffs_getxattr()
947 struct yaffs_obj *obj = yaffs_inode_to_obj(inode); in yaffs_removexattr() local
950 "yaffs_removexattr of object %d", obj->obj_id); in yaffs_removexattr()
954 dev = obj->my_dev; in yaffs_removexattr()
956 result = yaffs_remove_xattrib(obj, name); in yaffs_removexattr()
975 struct yaffs_obj *obj = yaffs_inode_to_obj(inode); in yaffs_listxattr() local
978 "yaffs_listxattr of object %d", obj->obj_id); in yaffs_listxattr()
981 dev = obj->my_dev; in yaffs_listxattr()
983 error = yaffs_list_xattrib(obj, buff, size); in yaffs_listxattr()
1104 struct yaffs_obj *obj; local
1122 obj = yaffs_find_by_number(dev, inode->i_ino);
1124 yaffs_fill_inode_from_obj(inode, obj);
1141 struct yaffs_obj *obj; local
1150 obj = yaffs_find_by_number(dev, inode->i_ino);
1152 yaffs_fill_inode_from_obj(inode, obj);
1163 struct yaffs_obj *obj) argument
1174 if (!obj) {
1182 "yaffs_get_inode for object %d", obj->obj_id);
1184 inode = Y_IGET(sb, obj->obj_id);
1216 struct yaffs_obj *obj = NULL; local
1252 obj =
1256 obj =
1263 obj = yaffs_create_file(parent, dentry->d_name.name, mode, uid,
1268 obj = yaffs_create_dir(parent, dentry->d_name.name, mode,
1273 obj = NULL; /* Do we ever get here? */
1280 if (obj) {
1281 inode = yaffs_get_inode(dir->i_sb, mode, rdev, obj);
1286 obj->obj_id, atomic_read(&inode->i_count));
1337 struct yaffs_obj *obj; local
1348 obj = yaffs_find_by_name(yaffs_inode_to_obj(dir), dentry->d_name.name);
1350 obj = yaffs_get_equivalent_obj(obj); /* in case it was a hardlink */
1356 if (obj) {
1358 "yaffs_lookup found %d", obj->obj_id);
1360 inode = yaffs_get_inode(dir->i_sb, obj->yst_mode, 0, obj);
1380 struct yaffs_obj *obj = NULL; local
1386 obj = yaffs_inode_to_obj(inode);
1387 dev = obj->my_dev;
1394 obj);
1397 set_nlink(old_dentry->d_inode, yaffs_get_obj_link_count(obj));
1419 struct yaffs_obj *obj; local
1437 obj = yaffs_create_symlink(yaffs_inode_to_obj(dir), dentry->d_name.name,
1441 if (obj) {
1444 inode = yaffs_get_inode(dir->i_sb, obj->yst_mode, 0, obj);
1515 struct yaffs_obj *obj; local
1519 obj = yaffs_inode_to_obj(dir);
1520 dev = obj->my_dev;
1524 ret_val = yaffs_unlinker(obj, dentry->d_name.name);
1648 static void yaffs_remove_obj_callback(struct yaffs_obj *obj) argument
1654 &(yaffs_dev_to_lc(obj->my_dev)->search_contexts);
1662 if (sc->next_return == obj)
1673 struct yaffs_obj *obj; local
1683 obj = yaffs_dentry_to_obj(f->f_dentry);
1684 dev = obj->my_dev;
1692 sc = yaffs_new_search(obj);
1786 struct yaffs_obj *obj) argument
1788 if (inode && obj) {
1791 u32 mode = obj->yst_mode;
1792 switch (obj->variant_type) {
1795 obj->yst_mode &= ~S_IFMT;
1796 obj->yst_mode |= S_IFREG;
1802 obj->yst_mode &= ~S_IFMT;
1803 obj->yst_mode |= S_IFLNK;
1809 obj->yst_mode &= ~S_IFMT;
1810 obj->yst_mode |= S_IFDIR;
1824 inode->i_ino = obj->obj_id;
1825 inode->i_mode = obj->yst_mode;
1826 inode->i_uid = obj->yst_uid;
1827 inode->i_gid = obj->yst_gid;
1833 inode->i_rdev = old_decode_dev(obj->yst_rdev);
1834 inode->i_atime.tv_sec = (time_t) (obj->yst_atime);
1836 inode->i_mtime.tv_sec = (time_t) obj->yst_mtime;
1838 inode->i_ctime.tv_sec = (time_t) obj->yst_ctime;
1841 inode->i_rdev = obj->yst_rdev;
1842 inode->i_atime = obj->yst_atime;
1843 inode->i_mtime = obj->yst_mtime;
1844 inode->i_ctime = obj->yst_ctime;
1846 inode->i_size = yaffs_get_obj_length(obj);
1849 set_nlink(inode, yaffs_get_obj_link_count(obj));
1856 switch (obj->yst_mode & S_IFMT) {
1859 init_special_inode(inode, obj->yst_mode,
1860 old_decode_dev(obj->yst_rdev));
1862 init_special_inode(inode, obj->yst_mode,
1863 (dev_t) (obj->yst_rdev));
1881 yaffs_inode_to_obj_lv(inode) = obj;
1883 obj->my_inode = inode;
2069 struct yaffs_obj *obj; local
2072 obj = yaffs_inode_to_obj(iptr);
2073 if (obj) {
2076 obj->obj_id);
2077 yaffs_flush_file(obj, 1, 0);
2213 static void yaffs_unstitch_obj(struct inode *inode, struct yaffs_obj *obj) argument
2218 obj->my_inode = NULL;
2225 yaffs_handle_defered_free(obj);
2235 struct yaffs_obj *obj; local
2239 obj = yaffs_inode_to_obj(inode);
2244 obj ? "object exists" : "null object");
2251 if (deleteme && obj) {
2252 dev = obj->my_dev;
2254 yaffs_del_obj(obj);
2257 if (obj) {
2258 dev = obj->my_dev;
2260 yaffs_unstitch_obj(inode, obj);
2275 struct yaffs_obj *obj; local
2278 obj = yaffs_inode_to_obj(inode);
2283 obj ? "object exists" : "null object");
2285 if (obj) {
2286 dev = obj->my_dev;
2288 yaffs_unstitch_obj(inode, obj);
2301 struct yaffs_obj *obj = yaffs_inode_to_obj(inode); local
2307 obj ? "object exists" : "null object");
2309 if (obj) {
2310 dev = obj->my_dev;
2312 yaffs_del_obj(obj);