Hello Saurabh,

Saurabh Jain:
> I am in the situation of having to make aufs work on CentOS 6 / RHEL
> 6. This is unfortunate because I'm not a fan of backporting stuff. My
        :::
Me either. I don't like backporting.


> On this, I apply two changes. One is along the lines of
> https://github.com/aia/kernel-patches/blob/master/2.6.32/aufs-vfs-compatibility.patch
> to fix the vfs_statfs() calls. The other is to replace calls to
> __getname_gfp(GFP_NOFS) with calls to (void
> *)__get_free_page(GFP_NOFS);

If you mean
- you replaced  __getname_gfp(GFP_NOFS) by __get_free_page(GFP_NOFS)
- but you didn't replace __putname() by free_page()
then it is a problem.

I'd suggest you to
- replace __getname_gfp(GFP_NOFS) by kmem_cache_alloc(names_cachep, GFP_NOFS)
- and leave __putname() as it is


J. R. Okajima

------------------------------------------------------------------------------

Reply via email to