]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
smb: fix bytes written value in /proc/fs/cifs/Stats
authorBharath SM <bharathsm.hsk@gmail.com>
Thu, 19 Dec 2024 17:58:50 +0000 (23:28 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Jan 2025 09:34:11 +0000 (10:34 +0100)
commit987cf3869d7763a31fd808409ab03a6283952072
tree2a278d0c7b9528bab110c9699f00734d69cfba32
parent825aaa75f7859838c1fb2de1746b86991f7b687a
smb: fix bytes written value in /proc/fs/cifs/Stats

[ Upstream commit 92941c7f2c9529fac1b2670482d0ced3b46eac70 ]

With recent netfs apis changes, the bytes written
value was not getting updated in /proc/fs/cifs/Stats.
Fix this by updating tcon->bytes in write operations.

Fixes: 3ee1a1fc3981 ("cifs: Cut over to using netfslib")
Signed-off-by: Bharath SM <bharathsm@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/client/smb2pdu.c