]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4b8ea48fc1278a33eb35445f044245d71f8ddbb6
treee78fc8a0e265b49566098e96a9d33740304aa471
parent45b992ef006d74ad4ece6c30745c0f626619dd0e
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