dlmfs_file_write(): fix the bogosity in handling non-zero *ppos
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 23 Apr 2020 17:45:27 +0000 (13:45 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 23 Apr 2020 17:45:27 +0000 (13:45 -0400)
commit3815f1be546e752327b5868af103ccdddcc4db77
tree1aa45836cbf25923241e5221d070af52edb36867
parent8f3d9f354286745c751374f5f1fcafee6b3f3136
dlmfs_file_write(): fix the bogosity in handling non-zero *ppos

'count' is how much you want written, not the final position.
Moreover, it can legitimately be less than the current position...

Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ocfs2/dlmfs/dlmfs.c