Whamcloud - gitweb
debugfs: fixup the hard-coded buffer length in dump_file
authorZheng Liu <wenqing.lz@taobao.com>
Tue, 1 Jan 2013 12:30:14 +0000 (20:30 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 1 Jan 2013 20:12:14 +0000 (15:12 -0500)
commitd3b4de412c7710b7d5f05774dedd1e298d2c750b
tree81aca93e194283533ad23d9083e003d0dc197f75
parentcc5f27eb387fb2e33b4d83caca89a0471bf09863
debugfs: fixup the hard-coded buffer length in dump_file

Allocate the block buffer in dump_file() instead of assuming that the
block size is no more than 8k.

CC: George Spelvin <linux@horizon.com>
Signed-off-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
debugfs/dump.c