diff options
Diffstat (limited to 'fs/ceph/inode.c')
-rw-r--r-- | fs/ceph/inode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c index 25283e7a37f8..2c489378b4cd 100644 --- a/fs/ceph/inode.c +++ b/fs/ceph/inode.c | |||
@@ -850,11 +850,12 @@ static void ceph_set_dentry_offset(struct dentry *dn) | |||
850 | { | 850 | { |
851 | struct dentry *dir = dn->d_parent; | 851 | struct dentry *dir = dn->d_parent; |
852 | struct inode *inode = dir->d_inode; | 852 | struct inode *inode = dir->d_inode; |
853 | struct ceph_inode_info *ci = ceph_inode(inode); | 853 | struct ceph_inode_info *ci; |
854 | struct ceph_dentry_info *di; | 854 | struct ceph_dentry_info *di; |
855 | 855 | ||
856 | BUG_ON(!inode); | 856 | BUG_ON(!inode); |
857 | 857 | ||
858 | ci = ceph_inode(inode); | ||
858 | di = ceph_dentry(dn); | 859 | di = ceph_dentry(dn); |
859 | 860 | ||
860 | spin_lock(&ci->i_ceph_lock); | 861 | spin_lock(&ci->i_ceph_lock); |