Files
linux/fs/smb/client
Paulo Alcantara 23b5df09c2 smb: client: fix generic/694 due to wrong ->i_blocks
When updating ->i_size, make sure to always update ->i_blocks as well
until we query new allocation size from the server.

generic/694 was failing because smb3_simple_falloc() was missing the
update of ->i_blocks after calling cifs_setsize().  So, fix this by
updating ->i_blocks directly in cifs_setsize(), so all places that
call it doesn't need to worry about updating ->i_blocks later.

Reported-by: Shyam Prasad N <sprasad@microsoft.com>
Closes: https://lore.kernel.org/r/CANT5p=rqgRwaADB=b_PhJkqXjtfq3SFv41SSTXSVEHnuh871pA@mail.gmail.com
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Cc: David Howells <dhowells@redhat.com>
Cc: linux-cifs@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
2026-03-19 13:56:25 -05:00
..
2025-01-31 12:51:44 -06:00
2026-02-08 17:07:45 -06:00
2026-02-08 17:07:45 -06:00
2026-02-08 17:07:46 -06:00
2026-03-10 17:22:03 -05:00
2026-02-08 17:07:45 -06:00
2026-02-08 17:07:45 -06:00
2026-02-08 17:07:45 -06:00
2026-03-16 21:12:40 -05:00
2026-03-01 17:59:52 -06:00