]> git.ipfire.org Git - thirdparty/linux.git/commit
smb: client: set ATTR_TEMPORARY with O_TMPFILE | O_EXCL
authorPaulo Alcantara <pc@manguebit.org>
Tue, 7 Apr 2026 22:51:35 +0000 (19:51 -0300)
committerSteve French <stfrench@microsoft.com>
Fri, 10 Apr 2026 16:25:35 +0000 (11:25 -0500)
commit62e02084ab93c31c53dd38f149782ce8349a2d90
tree461dc16865181ee073d7722ea2ace2448b5c7b56
parent3e7d63037a2b1715f70b7454630f3b2b8a922ec8
smb: client: set ATTR_TEMPORARY with O_TMPFILE | O_EXCL

Set ATTR_TEMPORARY attribute on temporary delete-on-close files when
O_EXCL is specified in conjunction with O_TMPFILE to let some servers
cache as much data as possible and possibly never persist them into
storage, thereby improving performance.

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>
fs/smb/client/dir.c
fs/smb/client/smb2inode.c