author: Linus Torvalds <torvalds@linux-foundation.org> 2015-04-26 15:48:49 -0700
committer: Linus Torvalds <torvalds@linux-foundation.org> 2015-04-26 17:22:07 -0700
commit: 9ec3a646fe09970f801ab15e0f1694060b9f19af
parent: c8b3fd0ce313443731e8fd6d5a541085eb465f99
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c
index b83a0343378b..ef263174acd2 100644
--- a/fs/hostfs/hostfs_kern.c
+++ b/fs/hostfs/hostfs_kern.c
@@ -807,7 +807,7 @@ static int hostfs_permission(struct inode *ino, int desired)
static int hostfs_setattr(struct dentry *dentry, struct iattr *attr)
{
- struct inode *inode = dentry->d_inode;
+ struct inode *inode = d_inode(dentry);
struct hostfs_iattr attrs;
char *name;
int err;