From: phil Date: Fri, 27 Feb 2004 07:09:36 +0000 (+0000) Subject: - hook GNS vfsmounts into a list in the superblock X-Git-Tag: v1_7_0_51~2^20~14 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=2081ffffe524e5beca666f918838eae1094cfa1c;p=fs%2Flustre-release.git - hook GNS vfsmounts into a list in the superblock - when the root (lustre) FS is unmounted, automatically unmount the underlying GNS mounts --- diff --git a/lustre/llite/llite_internal.h b/lustre/llite/llite_internal.h index 4ad7333..d0447b1 100644 --- a/lustre/llite/llite_internal.h +++ b/lustre/llite/llite_internal.h @@ -41,6 +41,9 @@ struct ll_sb_info { spinlock_t ll_pglist_lock; unsigned long ll_pglist_gen; struct list_head ll_pglist; + + /* list of GNS mounts; protected by the dcache_lock */ + struct list_head ll_mnt_list; }; struct ll_readahead_state { @@ -127,6 +130,7 @@ void lprocfs_unregister_mountpoint(struct ll_sb_info *sbi); /* llite/dir.c */ extern struct file_operations ll_dir_operations; extern struct inode_operations ll_dir_inode_operations; +int fill_page_with_path(struct dentry *, struct vfsmount *, char **pagep); /* llite/namei.c */ int ll_objects_destroy(struct ptlrpc_request *request, struct inode *dir);