Signed-off-by: Martin Brandenburg <martin@xxxxxxxxxxxx> --- 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 a277aeb8..a9681b0 100644 --- a/fs/orangefs/inode.c +++ b/fs/orangefs/inode.c @@ -169,12 +169,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.1.4