]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
ceph: do not set I_COMPLETE
authorSage Weil <sage@newdream.net>
Mon, 28 Feb 2011 20:46:46 +0000 (12:46 -0800)
committerSage Weil <sage@newdream.net>
Thu, 3 Mar 2011 18:09:51 +0000 (10:09 -0800)
Do not set the I_COMPLETE flag on directories until we resolve races with
dcache pruning.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/dir.c
fs/ceph/inode.c

index 0bc68de8edd7baa27af0de76cdae1f6eb1e29fea..9b4f9d9947b36e0c217208319b8d80d6da4e8b83 100644 (file)
@@ -409,7 +409,7 @@ more:
        spin_lock(&inode->i_lock);
        if (ci->i_release_count == fi->dir_release_count) {
                dout(" marking %p complete\n", inode);
-               ci->i_ceph_flags |= CEPH_I_COMPLETE;
+               /* ci->i_ceph_flags |= CEPH_I_COMPLETE; */
                ci->i_max_offset = filp->f_pos;
        }
        spin_unlock(&inode->i_lock);
index 5625463aa4796f3df3678dd29ed1bfb1135a32af..193bfa5e9cbd7943bcb2a8124b5fa9ed6717cac4 100644 (file)
@@ -707,7 +707,7 @@ static int fill_inode(struct inode *inode,
                    (issued & CEPH_CAP_FILE_EXCL) == 0 &&
                    (ci->i_ceph_flags & CEPH_I_COMPLETE) == 0) {
                        dout(" marking %p complete (empty)\n", inode);
-                       ci->i_ceph_flags |= CEPH_I_COMPLETE;
+                       /* ci->i_ceph_flags |= CEPH_I_COMPLETE; */
                        ci->i_max_offset = 2;
                }
                break;