From mboxrd@z Thu Jan 1 00:00:00 1970 From: apawar.linux@gmail.com (Abhijit Pawar) Date: Tue, 20 Sep 2011 17:43:57 +0530 Subject: 2.6.39 Kernel Changes for FileSystem, get_sb removed In-Reply-To: <4E787C97.80000@gmail.com> References: <4E787C97.80000@gmail.com> Message-ID: <4E788385.3030006@gmail.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On 09/20/2011 05:14 PM, Abhijit Pawar 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 I have modified the code to use the mount function and its working correctly. There is one more change I noticed for struct address_space_operations: The sync_page is removed. The code is working now. Regards, Abhijit Pawar -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110920/7e0f24d1/attachment.html