diff options
Diffstat (limited to 'fs/ceph/dir.c')
-rw-r--r-- | fs/ceph/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c index c241603764fd..f099aefb0d19 100644 --- a/fs/ceph/dir.c +++ b/fs/ceph/dir.c | |||
@@ -902,7 +902,7 @@ static int ceph_unlink(struct inode *dir, struct dentry *dentry) | |||
902 | } else if (ceph_snap(dir) == CEPH_NOSNAP) { | 902 | } else if (ceph_snap(dir) == CEPH_NOSNAP) { |
903 | dout("unlink/rmdir dir %p dn %p inode %p\n", | 903 | dout("unlink/rmdir dir %p dn %p inode %p\n", |
904 | dir, dentry, inode); | 904 | dir, dentry, inode); |
905 | op = S_ISDIR(dentry->d_inode->i_mode) ? | 905 | op = d_is_dir(dentry) ? |
906 | CEPH_MDS_OP_RMDIR : CEPH_MDS_OP_UNLINK; | 906 | CEPH_MDS_OP_RMDIR : CEPH_MDS_OP_UNLINK; |
907 | } else | 907 | } else |
908 | goto out; | 908 | goto out; |