projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
new helper: file_inode(file)
[linux-2.6-block.git]
/
fs
/
notify
/
fanotify
/
fanotify_user.c
diff --git
a/fs/notify/fanotify/fanotify_user.c
b/fs/notify/fanotify/fanotify_user.c
index 9ff4a5ee6e208fcccac9f3dc6393be18ffac3e1b..5d8444268a1673a58a2fedc386c26f3f8ba26cbc 100644
(file)
--- a/
fs/notify/fanotify/fanotify_user.c
+++ b/
fs/notify/fanotify/fanotify_user.c
@@
-466,7
+466,7
@@
static int fanotify_find_path(int dfd, const char __user *filename,
ret = -ENOTDIR;
if ((flags & FAN_MARK_ONLYDIR) &&
- !(S_ISDIR(f
.file->f_path.dentry->d_inode
->i_mode))) {
+ !(S_ISDIR(f
ile_inode(f.file)
->i_mode))) {
fdput(f);
goto out;
}