* You should have received a copy of the GNU General Public License
* along with Lustre; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
/* OBD devices materialize in /proc as a directory:
* /proc/lustre/obd/<number>
while ((lh = lh->next) != &obddev->obd_exports) {
p += sprintf(&page[p],
((export == NULL) ? ", connections(" : ",") );
- export = list_entry(lh, struct obd_export, exp_chain);
+ export = list_entry(lh, struct obd_export,
+ exp_obd_chain);
p += sprintf(&page[p], "%p", export);
}
if (export != 0) { /* there was at least one export */
remove_proc_entry(obd_entry->name, obd_dir);
}
+ obd->obd_proc_entry = NULL;
}
void proc_lustre_release_obd_device(struct obd_device *obd)