/* If the accounting is turned on for a file in the filesystem pointed to by sb, turn accounting off.  */
void acct_auto_close(struct super_block *sb)
/* If the accounting is turned on for a file in the filesystem pointed to by sb, turn accounting off.  */
void acct_auto_close(struct super_block *sb)
{
	struct bsd_acct_struct *acct;
	spin_lock(&acct_lock);
restart:
	list_for_each_entry(acct, &acct_list, list)
		if (acct->file && acct->file->f_path.mnt->mnt_sb == sb) {
			acct_file_reopen(acct, NULL, NULL);
			goto restart;
		}
	spin_unlock(&acct_lock);
}