diff options
Diffstat (limited to 'fs/autofs4/autofs_i.h')
-rw-r--r-- | fs/autofs4/autofs_i.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/autofs4/autofs_i.h b/fs/autofs4/autofs_i.h index 3912dcf047e5..9d2ae9b30d9f 100644 --- a/fs/autofs4/autofs_i.h +++ b/fs/autofs4/autofs_i.h | |||
@@ -254,6 +254,17 @@ static inline int simple_positive(struct dentry *dentry) | |||
254 | return dentry->d_inode && !d_unhashed(dentry); | 254 | return dentry->d_inode && !d_unhashed(dentry); |
255 | } | 255 | } |
256 | 256 | ||
257 | static inline void __autofs4_add_expiring(struct dentry *dentry) | ||
258 | { | ||
259 | struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb); | ||
260 | struct autofs_info *ino = autofs4_dentry_ino(dentry); | ||
261 | if (ino) { | ||
262 | if (list_empty(&ino->expiring)) | ||
263 | list_add(&ino->expiring, &sbi->expiring_list); | ||
264 | } | ||
265 | return; | ||
266 | } | ||
267 | |||
257 | static inline void autofs4_add_expiring(struct dentry *dentry) | 268 | static inline void autofs4_add_expiring(struct dentry *dentry) |
258 | { | 269 | { |
259 | struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb); | 270 | struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb); |