Signed-off-by: Martin Brandenburg <martin@xxxxxxxxxxxx> --- fs/orangefs/file.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/orangefs/file.c b/fs/orangefs/file.c index 9e0d334..0de41a3 100644 --- a/fs/orangefs/file.c +++ b/fs/orangefs/file.c @@ -599,8 +599,6 @@ static int orangefs_file_mmap(struct file *file, struct vm_area_struct *vma) return generic_file_readonly_mmap(file, vma); } -#define mapping_nrpages(idata) ((idata)->nrpages) - /* * Called to notify the module that there are no more references to * this file (i.e. no processes have it open). @@ -622,7 +620,7 @@ static int orangefs_file_release(struct inode *inode, struct file *file) */ if (file_inode(file) && file_inode(file)->i_mapping && - mapping_nrpages(&file_inode(file)->i_data)) { + file_inode(file)->i_mapping->nrpages) { if (orangefs_features & ORANGEFS_FEATURE_READAHEAD) { gossip_debug(GOSSIP_INODE_DEBUG, "calling flush_racache on %pU\n", -- 2.1.4