Some fixes for pstore
authorTony Luck <tony.luck@gmail.com>
Thu, 17 Mar 2011 23:29:15 +0000 (16:29 -0700)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 18 Mar 2011 02:08:13 +0000 (22:08 -0400)
commitfbe0aa1f3d16fac5b641c0c1697371dcbe45b569
treefc4dc844d89ea78ec134fbe1bbcad3af00bad344
parent474a00ee1306eb7e82329fdc28b6471a99facba1
Some fixes for pstore

1) Change from ->get_sb() to ->mount()
2) Use mount_single() instead of mount_nodev()
3) Pulled in ramfs_get_inode() & trimmed to what I need for pstore
4) Drop the ugly pstore_writefile() Just save data using kmalloc() and
   provide a pstore_file_read() that uses simple_read_from_buffer().

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/pstore/inode.c