configfs: restore the kernel v5.13 text attribute write behavior
authorBart Van Assche <bvanassche@acm.org>
Thu, 5 Aug 2021 04:35:01 +0000 (21:35 -0700)
committerChristoph Hellwig <hch@lst.de>
Mon, 9 Aug 2021 14:56:00 +0000 (16:56 +0200)
commit769f52676756b8c5feb302d2d95af59577fc69ec
treee78fc8a0e265b49566098e96a9d33740304aa471
parent36a21d51725af2ce0700c6ebcb6b9594aac658a6
configfs: restore the kernel v5.13 text attribute write behavior

Instead of appending new text attribute data at the offset specified by the
write() system call, only pass the newly written data to the .store()
callback.

Reported-by: Bodo Stroesser <bostroesser@gmail.com>
Tested-by: Bodo Stroesser <bostroesser@gmail.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/configfs/file.c