diff options
author | Jeff Layton <jlayton@redhat.com> | 2010-10-06 19:51:12 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2010-10-07 23:31:21 -0400 |
commit | 2de970ff69bbcc5a4b7440df669a595b2b1acd73 (patch) | |
tree | ec710893fcd1aa6313a3bbe2eafb3f463b364afc /fs/cifs/cifs_fs_sb.h | |
parent | 3aa1c8c2900065a51268430ab48a1b42fdfe5b45 (diff) |
cifs: implement recurring workqueue job to prune old tcons
Create a workqueue job that cleans out unused tlinks. For now, it uses
a hardcoded expire time of 10 minutes. When it's done, the work rearms
itself. On umount, the work is cancelled before tearing down the tlink
tree.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifs_fs_sb.h')
-rw-r--r-- | fs/cifs/cifs_fs_sb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/cifs_fs_sb.h b/fs/cifs/cifs_fs_sb.h index 5ce57bdf1865..586ee3d527d2 100644 --- a/fs/cifs/cifs_fs_sb.h +++ b/fs/cifs/cifs_fs_sb.h | |||
@@ -59,5 +59,6 @@ struct cifs_sb_info { | |||
59 | char *mountdata; /* mount options received at mount time */ | 59 | char *mountdata; /* mount options received at mount time */ |
60 | #endif | 60 | #endif |
61 | struct backing_dev_info bdi; | 61 | struct backing_dev_info bdi; |
62 | struct delayed_work prune_tlinks; | ||
62 | }; | 63 | }; |
63 | #endif /* _CIFS_FS_SB_H */ | 64 | #endif /* _CIFS_FS_SB_H */ |