diff options
| -rw-r--r-- | fs/autofs4/autofs_i.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/fs/autofs4/autofs_i.h b/fs/autofs4/autofs_i.h index 22a280151e45..9e359fb20c0a 100644 --- a/fs/autofs4/autofs_i.h +++ b/fs/autofs4/autofs_i.h | |||
| @@ -177,55 +177,6 @@ extern const struct file_operations autofs4_root_operations; | |||
| 177 | extern const struct dentry_operations autofs4_dentry_operations; | 177 | extern const struct dentry_operations autofs4_dentry_operations; |
| 178 | 178 | ||
| 179 | /* VFS automount flags management functions */ | 179 | /* VFS automount flags management functions */ |
| 180 | |||
| 181 | static inline void __managed_dentry_set_automount(struct dentry *dentry) | ||
| 182 | { | ||
| 183 | dentry->d_flags |= DCACHE_NEED_AUTOMOUNT; | ||
| 184 | } | ||
| 185 | |||
| 186 | static inline void managed_dentry_set_automount(struct dentry *dentry) | ||
| 187 | { | ||
| 188 | spin_lock(&dentry->d_lock); | ||
| 189 | __managed_dentry_set_automount(dentry); | ||
| 190 | spin_unlock(&dentry->d_lock); | ||
| 191 | } | ||
| 192 | |||
| 193 | static inline void __managed_dentry_clear_automount(struct dentry *dentry) | ||
| 194 | { | ||
| 195 | dentry->d_flags &= ~DCACHE_NEED_AUTOMOUNT; | ||
| 196 | } | ||
| 197 | |||
| 198 | static inline void managed_dentry_clear_automount(struct dentry *dentry) | ||
| 199 | { | ||
| 200 | spin_lock(&dentry->d_lock); | ||
| 201 | __managed_dentry_clear_automount(dentry); | ||
| 202 | spin_unlock(&dentry->d_lock); | ||
| 203 | } | ||
| 204 | |||
| 205 | static inline void __managed_dentry_set_transit(struct dentry *dentry) | ||
| 206 | { | ||
| 207 | dentry->d_flags |= DCACHE_MANAGE_TRANSIT; | ||
| 208 | } | ||
| 209 | |||
| 210 | static inline void managed_dentry_set_transit(struct dentry *dentry) | ||
| 211 | { | ||
| 212 | spin_lock(&dentry->d_lock); | ||
| 213 | __managed_dentry_set_transit(dentry); | ||
| 214 | spin_unlock(&dentry->d_lock); | ||
| 215 | } | ||
| 216 | |||
| 217 | static inline void __managed_dentry_clear_transit(struct dentry *dentry) | ||
| 218 | { | ||
| 219 | dentry->d_flags &= ~DCACHE_MANAGE_TRANSIT; | ||
| 220 | } | ||
| 221 | |||
| 222 | static inline void managed_dentry_clear_transit(struct dentry *dentry) | ||
| 223 | { | ||
| 224 | spin_lock(&dentry->d_lock); | ||
| 225 | __managed_dentry_clear_transit(dentry); | ||
| 226 | spin_unlock(&dentry->d_lock); | ||
| 227 | } | ||
| 228 | |||
| 229 | static inline void __managed_dentry_set_managed(struct dentry *dentry) | 180 | static inline void __managed_dentry_set_managed(struct dentry *dentry) |
| 230 | { | 181 | { |
| 231 | dentry->d_flags |= (DCACHE_NEED_AUTOMOUNT|DCACHE_MANAGE_TRANSIT); | 182 | dentry->d_flags |= (DCACHE_NEED_AUTOMOUNT|DCACHE_MANAGE_TRANSIT); |
