Lines Matching refs:res
88 int res; in __hfsplus_ext_write_extent() local
92 res = hfs_brec_find(fd); in __hfsplus_ext_write_extent()
94 if (res != -ENOENT) in __hfsplus_ext_write_extent()
99 if (res) in __hfsplus_ext_write_extent()
121 int res; in __hfsplus_ext_read_extent() local
125 res = hfs_brec_find(fd); in __hfsplus_ext_read_extent()
126 if (res && res != -ENOENT) in __hfsplus_ext_read_extent()
127 return res; in __hfsplus_ext_read_extent()
139 int res; in __hfsplus_ext_cache_extent() local
144 res = __hfsplus_ext_read_extent(fd, HFSPLUS_I(inode).cached_extents, inode->i_ino, in __hfsplus_ext_cache_extent()
146 if (!res) { in __hfsplus_ext_cache_extent()
153 return res; in __hfsplus_ext_cache_extent()
159 int res; in hfsplus_ext_read_extent() local
166 res = __hfsplus_ext_cache_extent(&fd, inode, block); in hfsplus_ext_read_extent()
168 return res; in hfsplus_ext_read_extent()
176 int res = -EIO; in hfsplus_get_block() local
190 res = hfsplus_file_extend(inode); in hfsplus_get_block()
191 if (res) in hfsplus_get_block()
192 return res; in hfsplus_get_block()
206 res = hfsplus_ext_read_extent(inode, ablock); in hfsplus_get_block()
207 if (!res) { in hfsplus_get_block()
314 int res, i; in hfsplus_free_fork() local
324 res = hfsplus_free_extents(sb, fork->extents, blocks, blocks); in hfsplus_free_fork()
325 if (res) in hfsplus_free_fork()
326 return res; in hfsplus_free_fork()
332 res = __hfsplus_ext_read_extent(&fd, ext_entry, cnid, in hfsplus_free_fork()
334 if (res) in hfsplus_free_fork()
345 return res; in hfsplus_free_fork()
352 int res; in hfsplus_file_extend() local
365 res = hfsplus_ext_read_extent(inode, HFSPLUS_I(inode).alloc_blocks); in hfsplus_file_extend()
366 if (res) in hfsplus_file_extend()
376 res = -ENOSPC; in hfsplus_file_extend()
388 res = 0; in hfsplus_file_extend()
391 res = hfsplus_add_extent(HFSPLUS_I(inode).first_extents, in hfsplus_file_extend()
394 if (res == -ENOSPC) in hfsplus_file_extend()
397 if (!res) { in hfsplus_file_extend()
402 res = hfsplus_add_extent(HFSPLUS_I(inode).cached_extents, in hfsplus_file_extend()
406 if (!res) { in hfsplus_file_extend()
410 } else if (res == -ENOSPC) in hfsplus_file_extend()
415 if (!res) { in hfsplus_file_extend()
419 return res; in hfsplus_file_extend()
433 res = 0; in hfsplus_file_extend()
442 int res; in hfsplus_file_truncate() local
451 int res; in hfsplus_file_truncate() local
453 res = pagecache_write_begin(NULL, mapping, size, 0, in hfsplus_file_truncate()
456 if (res) in hfsplus_file_truncate()
458 res = pagecache_write_end(NULL, mapping, size, 0, 0, page, fsdata); in hfsplus_file_truncate()
459 if (res < 0) in hfsplus_file_truncate()
481 res = __hfsplus_ext_cache_extent(&fd, inode, alloc_cnt); in hfsplus_file_truncate()
482 if (res) in hfsplus_file_truncate()