[Unionfs] RT kernel 2.6.23

Paul Hewlett paul at gccs.co.za
Wed Nov 14 03:11:19 EST 2007


Hi Erez

I upgraded to the RT kernel 2.6.23 from the pro-audio overlay of gentoo and 
applied unionfs 2.1.9 cleanly. The compile failed in dentry.c and super.c. In 
both cases a reference to the nrpages entry of the struct address_space was 
made - this entry does not exist in the RT kernel but an access function 
does.

To fix dentry.c at line 271 change 

        if (inode->i_data.nrpages)
                truncate_inode_pages(&inode->i_data, 0);
to

#ifdef CONFIG_PREEMPT_RT
        if (mapping_nrpages(&inode->i_data))
#else /* not CONFIG_PREEMPT_RT */
        if (inode->i_data.nrpages)
#endif /* not CONFIG_PREEMPT_RT */
                truncate_inode_pages(&inode->i_data, 0);

To fix super.c at line 74(approx) change

       if (inode->i_data.nrpages)
              truncate_inode_pages(&inode->i_data, 0);

to

#ifdef CONFIG_PREEMPT_RT
        if (mapping_nrpages(&inode->i_data))
#else /* not CONFIG_PREEMPT_RT */
         if (inode->i_data.nrpages)
#endif /* not CONFIG_PREEMPT_RT */
                 truncate_inode_pages(&inode->i_data, 0);

I will test this over the next 2 weeks

Regards Paul
-- 
Paul Hewlett  Technical Director 
Global Call Center Solutions Ltd, 2nd Floor, Milnerton Mall
Cnr Loxton & Koeberg Roads, 7435 Milnerton
www.gccs.co.za
Tel: +27 86 111 3433 Fax: +27 86 111 3520 Cel: +27 76 072 7906
VOIP: 087 750 7474



More information about the unionfs mailing list