From 81aeb3a22c3d9a310f6b0b6429ce4e057d47eab3 Mon Sep 17 00:00:00 2001 From: Chas Williams Date: Tue, 9 Aug 2005 14:42:12 +0000 Subject: [PATCH] STABLE14-linux26-umount-force-doesnt-work-20050809 this was never finished, just revoke it for now (cherry picked from commit 0c931ef444c03fc1cc5fcb1a55fec0d32f4dda61) --- src/afs/LINUX/osi_vfsops.c | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/src/afs/LINUX/osi_vfsops.c b/src/afs/LINUX/osi_vfsops.c index f81dc5d62..94245fde2 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 -- 2.39.5