author: David Howells <dhowells@redhat.com> 2015-03-17 22:25:59 +0000
committer: Al Viro <viro@zeniv.linux.org.uk> 2015-04-15 15:06:57 -0400
commit: 2b0143b5c986be1ce8408b3aadc4709e0a94429d
parent: ce0b16ddf18df35026164fda4a642ef10c01f442
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/omfs/file.c b/fs/omfs/file.c
index f993be7f2156..d9e26cfbb793 100644
--- a/fs/omfs/file.c
+++ b/fs/omfs/file.c
@@ -346,7 +346,7 @@ const struct file_operations omfs_file_operations = {
static int omfs_setattr(struct dentry *dentry, struct iattr *attr)
{
- struct inode *inode = dentry->d_inode;
+ struct inode *inode = d_inode(dentry);
int error;
error = inode_change_ok(inode, attr);