Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188616
b: refs/heads/master
c: b377ff1
h: refs/heads/master
v: v3
  • Loading branch information
Sage Weil committed Nov 11, 2009
1 parent 112d3b1 commit 3d3e457
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 09b8a7d2af83ae96dc052f9708e50140d06a9b6c
refs/heads/master: b377ff13b31778c19203f3089d14080beb40a692
4 changes: 3 additions & 1 deletion trunk/fs/ceph/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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;
}

Expand Down

0 comments on commit 3d3e457

Please sign in to comment.