From 3d3e4576b68bb285236891412901a9eb3cb6b385 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 11 Nov 2009 15:22:37 -0800 Subject: [PATCH] --- yaml --- r: 188616 b: refs/heads/master c: b377ff13b31778c19203f3089d14080beb40a692 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/ceph/inode.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 0e905c1dfe8c..38e3ff21049a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 09b8a7d2af83ae96dc052f9708e50140d06a9b6c +refs/heads/master: b377ff13b31778c19203f3089d14080beb40a692 diff --git a/trunk/fs/ceph/inode.c b/trunk/fs/ceph/inode.c index 036873c42a78..074ee42bd344 100644 --- a/trunk/fs/ceph/inode.c +++ b/trunk/fs/ceph/inode.c @@ -62,6 +62,7 @@ struct inode *ceph_get_snapdir(struct inode *parent) .snap = CEPH_SNAPDIR, }; struct inode *inode = ceph_get_inode(parent->i_sb, vino); + struct ceph_inode_info *ci = ceph_inode(inode); BUG_ON(!S_ISDIR(parent->i_mode)); if (IS_ERR(inode)) @@ -71,7 +72,8 @@ struct inode *ceph_get_snapdir(struct inode *parent) inode->i_gid = parent->i_gid; inode->i_op = &ceph_dir_iops; inode->i_fop = &ceph_dir_fops; - ceph_inode(inode)->i_snap_caps = CEPH_CAP_PIN; /* so we can open */ + ci->i_snap_caps = CEPH_CAP_PIN; /* so we can open */ + ci->i_rbytes = 0; return inode; }