Hi all, Today's linux-next merge of the fs-next tree got a conflict in: mm/filemap.c between commit: caa76be2dac5a ("mm: report all-zero cachestat for DAX mappings") from the mm tree and commit: f9b088d910e88 ("fs: add ->f_real() file operation") from the fs-next tree. I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts. diff --cc mm/filemap.c index 5f0c52939805d,beb15d48c5dfd..0000000000000 --- a/mm/filemap.c +++ b/mm/filemap.c @@@ -4826,11 -4841,8 +4834,11 @@@ SYSCALL_DEFINE4(cachestat, unsigned int last_index = csr.len == 0 ? ULONG_MAX : (csr.off + csr.len - 1) >> PAGE_SHIFT; memset(&cs, 0, sizeof(struct cachestat)); - mapping = fd_file(f)->f_mapping; + mapping = real_file->f_mapping; - filemap_cachestat(mapping, first_index, last_index, &cs); + + /* DAX mappings have no page cache; report all zeros. */ + if (!dax_mapping(mapping)) + filemap_cachestat(mapping, first_index, last_index, &cs); if (copy_to_user(cstat, &cs, sizeof(struct cachestat))) return -EFAULT;