staging: lustre: remove kmalloc from fld_proc_hash_seq_write
authorTristan Lelong <tristan@lelong.xyz>
Sun, 18 Jan 2015 07:44:49 +0000 (23:44 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Jan 2015 11:59:14 +0000 (19:59 +0800)
commit41dff7ac1a7c97f5532931154bfdf505d7ce1631
tree9b10dfaf34376abea30d93165283743ccedbf7d1
parent9ef6a8331219b0242ac423cf9629d4f6377d4993
staging: lustre: remove kmalloc from fld_proc_hash_seq_write

This patch simplifies the fld_proc_hash_seq_write function
by removing the dynamic memory allocation.
The longest fh_name used so far in lustre is 4 characters.
We use a 8 bytes variable to be on the safe side.

Signed-off-by: Tristan Lelong <tristan@lelong.xyz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/fld/lproc_fld.c