linux_dsm_epyc7002/fs/ceph
Sage Weil 09adc80c61 ceph: preserve I_COMPLETE across rename
d_move puts the renamed dentry at the end of d_subdirs, screwing with our
cached dentry directory offsets.  We were just clearing I_COMPLETE to avoid
any possibility of trouble.  However, assigning the renamed dentry an
offset at the end of the directory (to match it's new d_subdirs position)
is sufficient to maintain correct behavior and hold onto I_COMPLETE.

This is especially important for workloads like rsync, which renames files
into place.  Before, we would lose I_COMPLETE and do MDS lookups for each
file.  With this patch we only talk to the MDS on create and rename.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-03-15 09:14:03 -07:00
..
addr.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client 2010-11-19 15:32:22 -08:00
caps.c ceph: avoid immediate cap check after import 2011-01-19 09:23:26 -08:00
ceph_frag.c ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
debugfs.c ceph: drop redundant r_mds field 2011-01-12 15:15:13 -08:00
dir.c ceph: fix d_revalidate oopsen on NFS exports 2011-03-10 03:44:05 -05:00
export.c ceph: add dir_layout to inode 2011-01-12 15:15:12 -08:00
file.c ceph: mark user pages dirty on direct-io reads 2010-12-17 09:54:40 -08:00
inode.c ceph: preserve I_COMPLETE across rename 2011-03-15 09:14:03 -07:00
ioctl.c ceph: add CEPH_MDS_OP_SETDIRLAYOUT and associated ioctl. 2010-10-20 15:38:23 -07:00
ioctl.h ceph: fix ioctl magic 2010-12-06 09:45:22 -08:00
Kconfig ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
locks.c ceph: Behave better when handling file lock replies. 2010-12-01 14:22:34 -08:00
Makefile ceph: Makefile: Remove unnessary code 2011-01-12 15:15:13 -08:00
mds_client.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client 2011-01-28 12:12:58 +10:00
mds_client.h ceph: drop redundant r_mds field 2011-01-12 15:15:13 -08:00
mdsmap.c ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
snap.c ceph: queue cap_snaps once per realm 2011-02-04 20:45:58 -08:00
strings.c ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
super.c ceph: fix cap_wanted_delay_{min,max} mount option initialization 2011-01-19 09:23:22 -08:00
super.h Revert "ceph: keep reference to parent inode on ceph_dentry" 2011-03-03 10:09:50 -08:00
xattr.c ceph: fix xattr rbtree search 2011-01-13 15:50:11 -08:00