diff options
Diffstat (limited to 'fs/autofs4/autofs_i.h')
-rw-r--r-- | fs/autofs4/autofs_i.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/autofs4/autofs_i.h b/fs/autofs4/autofs_i.h index d10e619632ab..5b700ef1e59d 100644 --- a/fs/autofs4/autofs_i.h +++ b/fs/autofs4/autofs_i.h | |||
@@ -235,12 +235,12 @@ static inline u32 autofs4_get_dev(struct autofs_sb_info *sbi) | |||
235 | 235 | ||
236 | static inline u64 autofs4_get_ino(struct autofs_sb_info *sbi) | 236 | static inline u64 autofs4_get_ino(struct autofs_sb_info *sbi) |
237 | { | 237 | { |
238 | return sbi->sb->s_root->d_inode->i_ino; | 238 | return d_inode(sbi->sb->s_root)->i_ino; |
239 | } | 239 | } |
240 | 240 | ||
241 | static inline int simple_positive(struct dentry *dentry) | 241 | static inline int simple_positive(struct dentry *dentry) |
242 | { | 242 | { |
243 | return dentry->d_inode && !d_unhashed(dentry); | 243 | return d_really_is_positive(dentry) && !d_unhashed(dentry); |
244 | } | 244 | } |
245 | 245 | ||
246 | static inline void __autofs4_add_expiring(struct dentry *dentry) | 246 | static inline void __autofs4_add_expiring(struct dentry *dentry) |