diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-06-09 09:34:18 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-06-09 09:34:18 -0400 |
commit | 8b512d9a88875affe584bb3d2a7a235f84343b9e (patch) | |
tree | 80c46a675aeffaedd8d18e2bb6361768f4f4845a /fs/fuse/inode.c | |
parent | 5528f911b4c43a5de5da34bcbd7e3f2a62503617 (diff) |
VFS: Remove dependency of ->umount_begin() call on MNT_FORCE
Allow filesystems to decide to perform pre-umount processing whether or not
MNT_FORCE is set.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/fuse/inode.c')
-rw-r--r-- | fs/fuse/inode.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index 7627022446b2..13ebe5780c93 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c | |||
@@ -195,9 +195,10 @@ struct inode *fuse_iget(struct super_block *sb, unsigned long nodeid, | |||
195 | return inode; | 195 | return inode; |
196 | } | 196 | } |
197 | 197 | ||
198 | static void fuse_umount_begin(struct super_block *sb) | 198 | static void fuse_umount_begin(struct vfsmount *vfsmnt, int flags) |
199 | { | 199 | { |
200 | fuse_abort_conn(get_fuse_conn_super(sb)); | 200 | if (flags & MNT_FORCE) |
201 | fuse_abort_conn(get_fuse_conn_super(vfsmnt->mnt_sb)); | ||
201 | } | 202 | } |
202 | 203 | ||
203 | static void fuse_put_super(struct super_block *sb) | 204 | static void fuse_put_super(struct super_block *sb) |