From: Martin Brandenburg <mar...@omnibond.com> Signed-off-by: Martin Brandenburg <mar...@omnibond.com> --- fs/orangefs/inode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/fs/orangefs/inode.c b/fs/orangefs/inode.c index 5c451e245cf7..cf6924c36a22 100644 --- a/fs/orangefs/inode.c +++ b/fs/orangefs/inode.c @@ -187,12 +187,11 @@ const struct inode_operations orangefs_file_inode_operations = { static int orangefs_init_iops(struct inode *inode) { - inode->i_mapping->a_ops = &orangefs_address_operations; - switch (inode->i_mode & S_IFMT) { case S_IFREG: inode->i_op = &orangefs_file_inode_operations; inode->i_fop = &orangefs_file_operations; + inode->i_data.a_ops = &orangefs_address_operations; inode->i_blkbits = PAGE_SHIFT; break; case S_IFLNK: -- 2.15.1