}
+void
+afs_umount_begin(struct super_block *sbp)
+{
+ afs_shuttingdown=1;
+ afs_put_super(sbp);
+ afs_was_mounted=0;
+}
+
#if defined(AFS_LINUX24_ENV)
struct super_operations afs_sops = {
read_inode: afs_read_inode,
delete_inode: afs_delete_inode,
put_super: afs_put_super,
statfs: afs_statfs,
+ umount_begin: afs_umount_begin,
};
#else
struct super_operations afs_sops = {
afs_statfs,
NULL, /* afs_remount_fs - see doc above */
NULL, /* afs_clear_inode */
- NULL, /* afs_umount_begin */
+ afs_umount_begin,
};
#endif