Thread (7 messages) 7 messages, 3 authors, 2011-09-20

2.6.39 Kernel Changes for FileSystem, get_sb removed

From: Abhijit Pawar <hidden>
Date: 2011-09-20 12:24:07

On 09/20/2011 05:50 PM, rohan puri wrote:

On Tue, Sep 20, 2011 at 5:14 PM, Abhijit Pawar <apawar.linux@gmail.com 
<mailto:apawar.linux@gmail.com>> wrote:

    Hi list,
    It seems that the support for get_sb function is removed from
    kernel 2.6.39 onwards. My code which is working till 2.6.38 series
    is failing with new kernels.

    I tried finding out but there isnt anything mentioned. So if this
    function itself is removed then how kernel is going to find out
    the superblock and use it?

    Are we supposed to use the mount function provided? This is what i
    got from one of the kernel patch email.

    +[mandatory]
    +	->get_sb() is gone.  Switch to use of ->mount().  Typically it's just
    +a matter of switching from calling get_sb_... to mount_... and changing the
    +function type.  If you were doing it manually, just switch from setting ->mnt_root
    +to some pointer to returning that pointer.  On errors return ERR_PTR(...).
    diff --git a/Documentation/filesystems/vfs.txt b/Documentation/filesystems/vfs.txt


    It looks like there are other changes related to Pages are also done.


    Regards,
    Abhijit Pawar

    _______________________________________________
    Kernelnewbies mailing list
    Kernelnewbies at kernelnewbies.org
    <mailto:Kernelnewbies@kernelnewbies.org>
    http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Hi Abhijit,

Yes you have to make use of mount function pointer in the struct 
file_system_type.

NOTE : - change is only in one parameter of type struct vfsmount which 
is basically removed from this function pointer.

Regards,
Rohan Puri
Thanks Rohan. Yes, i have made the changes and things are looking good. 
struct address_space_operation's sync_page is also removed.

Regards,
Abhijit Pawar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110920/9eef6fb6/attachment-0001.html 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help