<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 09/20/2011 05:14 PM, Abhijit Pawar wrote:
<blockquote cite="mid:4E787C97.80000@gmail.com" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
Hi list,<br>
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.<br>
<br>
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?<br>
<br>
Are we supposed to use the mount function provided? This is what i
got from one of the kernel patch email.<br>
<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<span class="Apple-style-span" style="color: rgb(0, 0, 0);
font-family: 'Times New Roman'; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: normal; orphans: 2; text-align:
-webkit-auto; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
font-size: medium; ">
<pre style="word-wrap: break-word; white-space: pre-wrap; ">+[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
</pre>
</span><br class="Apple-interchange-newline">
It looks like there are other changes related to Pages are also
done.<br>
<br>
<br>
Regards,<br>
Abhijit Pawar<br>
</blockquote>
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.<br>
<br>
The code is working now.<br>
<br>
Regards,<br>
Abhijit Pawar<br>
<br>
</body>
</html>