dlmfs: clean up dlmfs_file_{read,write}() a bit
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 14 Jun 2020 23:04:42 +0000 (19:04 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 14 Jun 2020 23:04:42 +0000 (19:04 -0400)
commit067c054fb9c90811ae38898ce649f8dafa13354c
tree43d5ab6f4005b6e53d9a52e4cc7e8a5ffd6329fe
parentb3a9e3b9622ae10064826dccb4f7a52bd88c7407
dlmfs: clean up dlmfs_file_{read,write}() a bit

The damn file is constant-sized - 64 bytes.  IOW,
* i_size_read() is pointless
* so's dynamic allocation
* so's the 'size' argument of user_dlm_read_lvb()
* ... and so's open-coding simple_read_from_buffer(), while we are at it.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ocfs2/dlmfs/dlmfs.c
fs/ocfs2/dlmfs/userdlm.c
fs/ocfs2/dlmfs/userdlm.h