diff options
Diffstat (limited to 'fs/ntfs3/run.c')
-rw-r--r-- | fs/ntfs3/run.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ntfs3/run.c b/fs/ntfs3/run.c index 60c64deab738..a9989f7536ba 100644 --- a/fs/ntfs3/run.c +++ b/fs/ntfs3/run.c @@ -254,7 +254,7 @@ void run_truncate_head(struct runs_tree *run, CLST vcn) run->count -= index; if (!run->count) { - ntfs_vfree(run->runs); + kvfree(run->runs); run->runs = NULL; run->allocated = 0; } @@ -293,7 +293,7 @@ void run_truncate(struct runs_tree *run, CLST vcn) /* Do not reallocate array 'runs'. Only free if possible */ if (!index) { - ntfs_vfree(run->runs); + kvfree(run->runs); run->runs = NULL; run->allocated = 0; } @@ -388,7 +388,7 @@ requires_new_range: WARN_ON(!is_mft && bytes > NTFS3_RUN_MAX_BYTES); - new_ptr = ntfs_vmalloc(bytes); + new_ptr = kvmalloc(bytes, GFP_KERNEL); if (!new_ptr) return false; @@ -399,7 +399,7 @@ requires_new_range: memcpy(r + 1, run->runs + index, sizeof(struct ntfs_run) * (run->count - index)); - ntfs_vfree(run->runs); + kvfree(run->runs); run->runs = new_ptr; run->allocated = bytes; |