Lines Matching refs:retval
177 static inline int allocation_needed(int retval, b_blocknr_t allocated, in allocation_needed() argument
183 if (retval == POSITION_FOUND && is_indirect_le_ih(ih) && in allocation_needed()
189 static inline int indirect_item_found(int retval, struct item_head *ih) in indirect_item_found() argument
191 return (retval == POSITION_FOUND) && is_indirect_le_ih(ih); in indirect_item_found()
522 int retval = 0; in convert_tail_for_hole() local
537 retval = -ENOMEM; in convert_tail_for_hole()
555 retval = reiserfs_prepare_write(NULL, tail_page, tail_start, tail_end); in convert_tail_for_hole()
556 if (retval) in convert_tail_for_hole()
562 retval = reiserfs_commit_write(NULL, tail_page, tail_start, tail_end); in convert_tail_for_hole()
570 return retval; in convert_tail_for_hole()
594 int repeat, retval = 0; in reiserfs_get_block() local
662 retval = -ENOMEM; in reiserfs_get_block()
669 retval = search_for_position_by_key(inode->i_sb, &key, &path); in reiserfs_get_block()
670 if (retval == IO_ERROR) { in reiserfs_get_block()
671 retval = -EIO; in reiserfs_get_block()
684 (retval, allocated_block_nr, ih, item, pos_in_item)) { in reiserfs_get_block()
701 retval = restart_transaction(th, inode, &path); in reiserfs_get_block()
702 if (retval) in reiserfs_get_block()
712 retval = -EDQUOT; in reiserfs_get_block()
714 retval = -ENOSPC; in reiserfs_get_block()
724 if (indirect_item_found(retval, ih)) { in reiserfs_get_block()
750 retval = 0; in reiserfs_get_block()
752 retval = reiserfs_end_persistent_transaction(th); in reiserfs_get_block()
760 return retval; in reiserfs_get_block()
795 retval = in reiserfs_get_block()
798 if (retval) { in reiserfs_get_block()
831 retval = in reiserfs_get_block()
835 if (retval) in reiserfs_get_block()
839 retval = in reiserfs_get_block()
842 if (retval) { in reiserfs_get_block()
843 if (retval != -ENOSPC) in reiserfs_get_block()
847 retval); in reiserfs_get_block()
862 retval = in reiserfs_get_block()
865 if (retval) { in reiserfs_get_block()
959 retval = in reiserfs_get_block()
968 if (retval) { in reiserfs_get_block()
994 retval = restart_transaction(th, inode, &path); in reiserfs_get_block()
995 if (retval) in reiserfs_get_block()
1003 retval = search_for_position_by_key(inode->i_sb, &key, &path); in reiserfs_get_block()
1004 if (retval == IO_ERROR) { in reiserfs_get_block()
1005 retval = -EIO; in reiserfs_get_block()
1008 if (retval == POSITION_FOUND) { in reiserfs_get_block()
1012 retval = -EEXIST; in reiserfs_get_block()
1025 retval = 0; in reiserfs_get_block()
1028 if (th && (!dangle || (retval && !th->t_trans_id))) { in reiserfs_get_block()
1034 retval = err; in reiserfs_get_block()
1039 return retval; in reiserfs_get_block()
1324 int retval; in reiserfs_update_sd_size() local
1333 retval = search_item(inode->i_sb, &key, &path); in reiserfs_update_sd_size()
1334 if (retval == IO_ERROR) { in reiserfs_update_sd_size()
1341 if (retval == ITEM_NOT_FOUND) { in reiserfs_update_sd_size()
1412 int retval; in reiserfs_read_locked_inode() local
1425 retval = search_item(inode->i_sb, &key, &path_to_sd); in reiserfs_read_locked_inode()
1426 if (retval == IO_ERROR) { in reiserfs_read_locked_inode()
1434 if (retval != ITEM_FOUND) { in reiserfs_read_locked_inode()
1651 int retval; in reiserfs_new_directory() local
1681 retval = search_item(sb, &key, path); in reiserfs_new_directory()
1682 if (retval == IO_ERROR) { in reiserfs_new_directory()
1687 if (retval == ITEM_FOUND) { in reiserfs_new_directory()
1708 int retval; in reiserfs_new_symlink() local
1721 retval = search_item(sb, &key, path); in reiserfs_new_symlink()
1722 if (retval == IO_ERROR) { in reiserfs_new_symlink()
1727 if (retval == ITEM_FOUND) { in reiserfs_new_symlink()
1761 int retval; in reiserfs_new_inode() local
1849 retval = search_item(sb, &key, &path_to_key); in reiserfs_new_inode()
1850 if (retval == IO_ERROR) { in reiserfs_new_inode()
1854 if (retval == ITEM_FOUND) { in reiserfs_new_inode()
1887 retval = in reiserfs_new_inode()
1890 if (retval) { in reiserfs_new_inode()
1891 err = retval; in reiserfs_new_inode()
1901 retval = in reiserfs_new_inode()
1909 retval = in reiserfs_new_inode()
1913 if (retval) { in reiserfs_new_inode()
1914 err = retval; in reiserfs_new_inode()
1922 retval = reiserfs_inherit_default_acl(dir, dentry, inode); in reiserfs_new_inode()
1923 if (retval) { in reiserfs_new_inode()
1924 err = retval; in reiserfs_new_inode()
2178 int retval; in map_block_for_writepage() local
2197 retval = search_for_position_by_key(inode->i_sb, &key, &path); in map_block_for_writepage()
2198 if (retval != POSITION_FOUND) { in map_block_for_writepage()
2209 if (indirect_item_found(retval, ih)) { in map_block_for_writepage()
2233 retval = journal_begin(&th, inode->i_sb, jbegin_count); in map_block_for_writepage()
2234 if (retval) in map_block_for_writepage()
2273 retval = -EIO; in map_block_for_writepage()
2276 retval = 0; in map_block_for_writepage()
2283 retval = err; in map_block_for_writepage()
2290 retval = reiserfs_get_block(inode, block, bh_result, in map_block_for_writepage()
2293 if (!retval) { in map_block_for_writepage()
2304 if (!retval && buffer_mapped(bh_result) && bh_result->b_blocknr == 0) { in map_block_for_writepage()
2312 return retval; in map_block_for_writepage()