Commit 11dcb0e2 authored by Anton Altaparmakov's avatar Anton Altaparmakov

NTFS: Make it compile...

parent 6e3ea49e
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
*/ */
#include <linux/dcache.h> #include <linux/dcache.h>
#include <linux/security.h>
#include "ntfs.h" #include "ntfs.h"
#include "dir.h" #include "dir.h"
...@@ -280,7 +281,7 @@ static struct dentry *ntfs_lookup(struct inode *dir_ino, struct dentry *dent, st ...@@ -280,7 +281,7 @@ static struct dentry *ntfs_lookup(struct inode *dir_ino, struct dentry *dent, st
* has a 'disconnected' dentry (i.e. IS_ROOT and DCACHE_DISCONNECTED), * has a 'disconnected' dentry (i.e. IS_ROOT and DCACHE_DISCONNECTED),
* in which case d_move() that in place of the found dentry. * in which case d_move() that in place of the found dentry.
*/ */
if (!S_ISDIR(dent_inode)) { if (!S_ISDIR(dent_inode->i_mode)) {
/* Not a directory; everything is easy. */ /* Not a directory; everything is easy. */
d_instantiate(real_dent, dent_inode); d_instantiate(real_dent, dent_inode);
return real_dent; return real_dent;
...@@ -304,7 +305,7 @@ static struct dentry *ntfs_lookup(struct inode *dir_ino, struct dentry *dent, st ...@@ -304,7 +305,7 @@ static struct dentry *ntfs_lookup(struct inode *dir_ino, struct dentry *dent, st
*/ */
new_dent = list_entry(dent_inode->i_dentry.next, struct dentry, new_dent = list_entry(dent_inode->i_dentry.next, struct dentry,
d_alias); d_alias);
__dget_locked(new_dent); dget_locked(new_dent);
spin_unlock(&dcache_lock); spin_unlock(&dcache_lock);
/* Do security vodoo. */ /* Do security vodoo. */
security_d_instantiate(real_dent, dent_inode); security_d_instantiate(real_dent, dent_inode);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment