diff options
Diffstat (limited to 'fs/ntfs/index.c')
| -rw-r--r-- | fs/ntfs/index.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/fs/ntfs/index.c b/fs/ntfs/index.c index 71bd2cd7a4d9..11fd5307d780 100644 --- a/fs/ntfs/index.c +++ b/fs/ntfs/index.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * index.c - NTFS kernel index handling. Part of the Linux-NTFS project. | 2 | * index.c - NTFS kernel index handling. Part of the Linux-NTFS project. |
| 3 | * | 3 | * |
| 4 | * Copyright (c) 2004 Anton Altaparmakov | 4 | * Copyright (c) 2004-2005 Anton Altaparmakov |
| 5 | * | 5 | * |
| 6 | * This program/include file is free software; you can redistribute it and/or | 6 | * This program/include file is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public License as published | 7 | * modify it under the terms of the GNU General Public License as published |
| @@ -39,18 +39,8 @@ ntfs_index_context *ntfs_index_ctx_get(ntfs_inode *idx_ni) | |||
| 39 | ntfs_index_context *ictx; | 39 | ntfs_index_context *ictx; |
| 40 | 40 | ||
| 41 | ictx = kmem_cache_alloc(ntfs_index_ctx_cache, SLAB_NOFS); | 41 | ictx = kmem_cache_alloc(ntfs_index_ctx_cache, SLAB_NOFS); |
| 42 | if (ictx) { | 42 | if (ictx) |
| 43 | ictx->idx_ni = idx_ni; | 43 | *ictx = (ntfs_index_context){ .idx_ni = idx_ni }; |
| 44 | ictx->entry = NULL; | ||
| 45 | ictx->data = NULL; | ||
| 46 | ictx->data_len = 0; | ||
| 47 | ictx->is_in_root = 0; | ||
| 48 | ictx->ir = NULL; | ||
| 49 | ictx->actx = NULL; | ||
| 50 | ictx->base_ni = NULL; | ||
| 51 | ictx->ia = NULL; | ||
| 52 | ictx->page = NULL; | ||
| 53 | } | ||
| 54 | return ictx; | 44 | return ictx; |
| 55 | } | 45 | } |
| 56 | 46 | ||
