From: Sage Weil Date: Sat, 5 Feb 2011 05:38:47 +0000 (-0800) Subject: ceph: preserve I_COMPLETE across rename X-Git-Tag: v2.6.39-rc1~382^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09adc80c611bb8902daa8ccfe34dbbc009d6befe;p=pandora-kernel.git 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 --- Reading git-diff-tree failed