From c0b88a09a663b5bcda389b6f6b898881bb5f0dec Mon Sep 17 00:00:00 2001 From: Alexander Viro Date: Tue, 2 Apr 2002 01:17:27 -0800 Subject: [PATCH] restoring block size upon umount get_sb_bdev() stores original block size in ->s_old_blocksize and kill_block_super() restores it. This kills 99% of crap with "oh, I've mounted/umounted that device and its behaviour had changed" (remaining 1% can be dealt in pretty similar ways; ideally I'd like to see ioctls that get/set block size dead and gone). --- include/linux/fs.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/linux/fs.h b/include/linux/fs.h index 85ae3dcb6496..cac7a59f6462 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -664,6 +664,7 @@ struct super_block { kdev_t s_dev; unsigned long s_blocksize; unsigned char s_blocksize_bits; + unsigned long s_old_blocksize; unsigned char s_dirt; unsigned long long s_maxbytes; /* Max file size */ struct file_system_type *s_type; -- cgit v1.2.3