From: Chas Williams Date: Tue, 9 Aug 2005 14:41:13 +0000 (+0000) Subject: linux26-umount-force-doesnt-work-20050809 X-Git-Tag: openafs-devel-1_5_0~393 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=0c931ef444c03fc1cc5fcb1a55fec0d32f4dda61;p=packages%2Fo%2Fopenafs.git linux26-umount-force-doesnt-work-20050809 this was never finished, just revoke it for now --- diff --git a/src/afs/LINUX/osi_vfsops.c b/src/afs/LINUX/osi_vfsops.c index a18ecbda4..e79871e7b 100644 --- a/src/afs/LINUX/osi_vfsops.c +++ b/src/afs/LINUX/osi_vfsops.c @@ -358,8 +358,6 @@ afs_put_inode(struct inode *ip) static void afs_put_super(struct super_block *sbp) { - int code = 0; - AFS_GLOCK(); AFS_STATCNT(afs_unmount); @@ -382,14 +380,12 @@ afs_put_super(struct super_block *sbp) osi_linux_verify_alloced_memory(); AFS_GUNLOCK(); - if (!code) { - sbp->s_dev = 0; + sbp->s_dev = 0; #if defined(AFS_LINUX26_ENV) - module_put(THIS_MODULE); + module_put(THIS_MODULE); #else - MOD_DEC_USE_COUNT; + MOD_DEC_USE_COUNT; #endif - } } @@ -436,12 +432,6 @@ afs_statfs(struct super_block *sbp, struct statfs *__statp, int size) return 0; } -void -afs_umount_begin(struct super_block *sbp) -{ - afs_shuttingdown = 1; -} - struct super_operations afs_sops = { #if defined(STRUCT_SUPER_HAS_ALLOC_INODE) .alloc_inode = afs_alloc_inode, @@ -451,7 +441,6 @@ struct super_operations afs_sops = { .put_inode = afs_put_inode, .put_super = afs_put_super, .statfs = afs_statfs, - .umount_begin = afs_umount_begin #if !defined(AFS_LINUX24_ENV) .notify_change = afs_notify_change, #endif