aboutsummaryrefslogtreecommitdiffstats
path: root/fs/reiserfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/reiserfs/inode.c')
-rw-r--r--fs/reiserfs/inode.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/reiserfs/inode.c b/fs/reiserfs/inode.c
index a625688de454..254239e6f9e3 100644
--- a/fs/reiserfs/inode.c
+++ b/fs/reiserfs/inode.c
@@ -929,15 +929,12 @@ int reiserfs_get_block(struct inode *inode, sector_t block,
929 if (blocks_needed == 1) { 929 if (blocks_needed == 1) {
930 un = &unf_single; 930 un = &unf_single;
931 } else { 931 } else {
932 un = kmalloc(min(blocks_needed, max_to_insert) * UNFM_P_SIZE, GFP_ATOMIC); // We need to avoid scheduling. 932 un = kzalloc(min(blocks_needed, max_to_insert) * UNFM_P_SIZE, GFP_ATOMIC); // We need to avoid scheduling.
933 if (!un) { 933 if (!un) {
934 un = &unf_single; 934 un = &unf_single;
935 blocks_needed = 1; 935 blocks_needed = 1;
936 max_to_insert = 0; 936 max_to_insert = 0;
937 } else 937 }
938 memset(un, 0,
939 UNFM_P_SIZE * min(blocks_needed,
940 max_to_insert));
941 } 938 }
942 if (blocks_needed <= max_to_insert) { 939 if (blocks_needed <= max_to_insert) {
943 /* we are going to add target block to the file. Use allocated 940 /* we are going to add target block to the file. Use allocated