An error occurred while fetching folder content.
ceph: don't truncate file in atomic_open
Hu Weiwen authored
commit 7cb99947 upstream.

Clear O_TRUNC from the flags sent in the MDS create request.

`atomic_open' is called before permission check. We should not do any
modification to the file here. The caller will do the truncation
afterward.

Fixes: 124e68e7

 ("ceph: file operations")
Signed-off-by: default avatarHu Weiwen <sehuww@mail.scut.edu.cn>
Reviewed-by: default avatarXiubo Li <xiubli@redhat.com>
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
[Xiubo: fixed a trivial conflict for 5.19 backport]
Signed-off-by: default avatarXiubo Li <xiubli@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
6c58865f
Name Last commit Last update
..
9p 9p: fix EBADF errors in cached mode
adfs fs: Convert block_read_full_page() to block_read_full_folio()
affs affs: Convert affs to read_folio
afs afs: Use the operation issue time instead of the reply time for callbacks
autofs autofs: fix wait name hash calculation in autofs_wait()
befs befs: Convert befs to read_folio
bfs fs: Convert block_read_full_page() to block_read_full_folio()
btrfs btrfs: zoned: wait for extent buffer IOs before finishing a zone
cachefiles cachefiles: make on-demand request distribution fairer
ceph ceph: don't truncate file in atomic_open
cifs smb3: use filemap_write_and_wait_range instead of filemap_write_and_wait
coda coda: Convert coda to read_folio
configfs configfs: fix a race in configfs_{,un}register_subsystem()
cramfs cramfs: Convert cramfs to read_folio
crypto fscrypt: add new helper functions for test_dummy_encryption
debugfs debugfs: add debugfs_lookup_and_remove()
devpts fsnotify: fix fsnotify hooks in pseudo filesystems
dlm dlm: use kref_put_lock in __put_lkb
ecryptfs ecryptfs: Convert ecryptfs to read_folio
efivarfs efivars: convert to fileattr
efs efs: Convert efs symlinks to read_folio
erofs erofs: fix pcluster use-after-free on UP platforms
exfat exfat: fix overflow for large capacity partition
exportfs exportfs: support idmapped mounts
ext2 ext2: Add more validity checks for inode counts
ext4
f2fs
fat
freevxfs
fscache
fuse
gfs2
hfs
hfsplus
hostfs
hpfs
hugetlbfs
iomap
isofs
jbd2
jffs2
jfs
kernfs
ksmbd
lockd
minix
netfs
nfs
nfs_common
nfsd
nilfs2
nls
notify
ntfs
ntfs3
ocfs2
omfs
openpromfs
orangefs
overlayfs
proc
pstore
qnx4
qnx6
quota
ramfs
reiserfs
romfs
smbfs_common
squashfs
sysfs
sysv
tracefs
ubifs
udf
ufs
unicode
vboxsf
verity
xfs
zonefs
Kconfig
Kconfig.binfmt
Makefile
aio.c
anon_inodes.c
attr.c
bad_inode.c
binfmt_aout.c
binfmt_elf.c
binfmt_elf_fdpic.c
binfmt_elf_test.c
binfmt_flat.c
binfmt_misc.c
binfmt_script.c
buffer.c
char_dev.c
compat_binfmt_elf.c
coredump.c
d_path.c