projects
/
linux-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-block.git]
/
fs
/
hostfs
/
hostfs_kern.c
diff --git
a/fs/hostfs/hostfs_kern.c
b/fs/hostfs/hostfs_kern.c
index 457addc5c91f2f2da42092d9f193a47aa8f678dd..ba6de25771ac09e1099dfd73fb8229e5aaeb3148 100644
(file)
--- a/
fs/hostfs/hostfs_kern.c
+++ b/
fs/hostfs/hostfs_kern.c
@@
-30,7
+30,7
@@
static inline struct hostfs_inode_info *HOSTFS_I(struct inode *inode)
return list_entry(inode, struct hostfs_inode_info, vfs_inode);
}
-#define FILE_HOSTFS_I(file) HOSTFS_I(
(file)->f_path.dentry->d_inode
)
+#define FILE_HOSTFS_I(file) HOSTFS_I(
file_inode(file)
)
static int hostfs_d_delete(const struct dentry *dentry)
{