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 f011ed295bf7..74fd74719dc2 100644 --- a/fs/ceph/dir.c +++ b/fs/ceph/dir.c | |||
@@ -870,7 +870,7 @@ static int ceph_unlink(struct inode *dir, struct dentry *dentry) | |||
870 | } else if (ceph_snap(dir) == CEPH_NOSNAP) { | 870 | } else if (ceph_snap(dir) == CEPH_NOSNAP) { |
871 | dout("unlink/rmdir dir %p dn %p inode %p\n", | 871 | dout("unlink/rmdir dir %p dn %p inode %p\n", |
872 | dir, dentry, inode); | 872 | dir, dentry, inode); |
873 | op = ((dentry->d_inode->i_mode & S_IFMT) == S_IFDIR) ? | 873 | op = S_ISDIR(dentry->d_inode->i_mode) ? |
874 | CEPH_MDS_OP_RMDIR : CEPH_MDS_OP_UNLINK; | 874 | CEPH_MDS_OP_RMDIR : CEPH_MDS_OP_UNLINK; |
875 | } else | 875 | } else |
876 | goto out; | 876 | goto out; |