Changeset 40900 in vbox
- Timestamp:
- Apr 13, 2012 12:33:25 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/sharedfolders/regops.c
r39789 r40900 1 /* $Id$ */ 1 2 /** @file 2 * 3 * vboxsf -- VirtualBox Guest Additions for Linux: 4 * Regular file inode and file operations 3 * vboxsf - VBox Linux Shared Folders, Regular file inode and file operations. 5 4 */ 6 5 … … 23 22 #include "vfsmod.h" 24 23 25 static void *alloc_bounc h_buffer(size_t *tmp_sizep, PRTCCPHYS physp, size_t24 static void *alloc_bounce_buffer(size_t *tmp_sizep, PRTCCPHYS physp, size_t 26 25 xfer_size, const char *caller) 27 26 { … … 51 50 } 52 51 53 static void free_bounc h_buffer(void *tmp)52 static void free_bounce_buffer(void *tmp) 54 53 { 55 54 kfree (tmp); … … 127 126 return 0; 128 127 129 tmp = alloc_bounc h_buffer(&tmp_size, &tmp_phys, size, __PRETTY_FUNCTION__);128 tmp = alloc_bounce_buffer(&tmp_size, &tmp_phys, size, __PRETTY_FUNCTION__); 130 129 if (!tmp) 131 130 return -ENOMEM; … … 160 159 161 160 *off += total_bytes_read; 162 free_bounc h_buffer(tmp);161 free_bounce_buffer(tmp); 163 162 return total_bytes_read; 164 163 165 164 fail: 166 free_bounc h_buffer(tmp);165 free_bounce_buffer(tmp); 167 166 return err; 168 167 } … … 214 213 return 0; 215 214 216 tmp = alloc_bounc h_buffer(&tmp_size, &tmp_phys, size, __PRETTY_FUNCTION__);215 tmp = alloc_bounce_buffer(&tmp_size, &tmp_phys, size, __PRETTY_FUNCTION__); 217 216 if (!tmp) 218 217 return -ENOMEM; … … 260 259 261 260 sf_i->force_restat = 1; 262 free_bounc h_buffer(tmp);261 free_bounce_buffer(tmp); 263 262 return total_bytes_written; 264 263 265 264 fail: 266 free_bounc h_buffer(tmp);265 free_bounce_buffer(tmp); 267 266 return err; 268 267 }
Note:
See TracChangeset
for help on using the changeset viewer.