diff options
author | Al Viro | 2011-07-25 20:49:29 -0400 |
---|---|---|
committer | Al Viro | 2012-01-03 22:55:12 -0500 |
commit | dba19c6064766730dd64757a010ec3aec503ecdb (patch) | |
tree | 2071835ccfcb169b6219be7d5a4692fcfdcbd2c5 /fs/ceph/dir.c | |
parent | 1b9d5ff7644ddf2723c9205f4726c95ec01bf033 (diff) |
get rid of open-coded S_ISREG(), etc.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
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) } else if (ceph_snap(dir) == CEPH_NOSNAP) { dout("unlink/rmdir dir %p dn %p inode %p\n", dir, dentry, inode); - op = ((dentry->d_inode->i_mode & S_IFMT) == S_IFDIR) ? + op = S_ISDIR(dentry->d_inode->i_mode) ? CEPH_MDS_OP_RMDIR : CEPH_MDS_OP_UNLINK; } else goto out; |