diff options
Diffstat (limited to 'fs/libfs.c')
-rw-r--r-- | fs/libfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/libfs.c b/fs/libfs.c index b2ffdb045be4..0ab65122ee45 100644 --- a/fs/libfs.c +++ b/fs/libfs.c | |||
@@ -329,7 +329,7 @@ int simple_rename(struct inode *old_dir, struct dentry *old_dentry, | |||
329 | struct inode *new_dir, struct dentry *new_dentry) | 329 | struct inode *new_dir, struct dentry *new_dentry) |
330 | { | 330 | { |
331 | struct inode *inode = old_dentry->d_inode; | 331 | struct inode *inode = old_dentry->d_inode; |
332 | int they_are_dirs = S_ISDIR(old_dentry->d_inode->i_mode); | 332 | int they_are_dirs = d_is_dir(old_dentry); |
333 | 333 | ||
334 | if (!simple_empty(new_dentry)) | 334 | if (!simple_empty(new_dentry)) |
335 | return -ENOTEMPTY; | 335 | return -ENOTEMPTY; |