fuse: fix large stack use
authorFang Wenqi <anton.fang@gmail.com>
Wed, 30 Dec 2009 10:37:13 +0000 (18:37 +0800)
committerMiklos Szeredi <mszeredi@suse.cz>
Fri, 5 Feb 2010 11:08:31 +0000 (12:08 +0100)
commitb2d82ee3c8b2193ee5bc7eca4687ee9be30abd34
tree41986357886eda7e8e92c33ed32a743afee3f3e6
parentb21dda438baa450a76a375a35653ae0377793fab
fuse: fix large stack use

gcc 4.4 warns about:
  fs/fuse/dev.c: In function ‘fuse_notify_inval_entry’:
  fs/fuse/dev.c:925: warning: the frame size of 1060 bytes is larger than 1024 bytes

The problem is we declare two structures and a large array on the stack,
I move the array alway from the stack and allocate memory for it dynamically.

Signed-off-by: Fang Wenqi <antonf@turbolinux.com.cn>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/fuse/dev.c