X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=fs%2Fautofs4%2Fexpire.c;h=11dd118f75e25e6a8f25f2143724901fb64c72a0;hb=8eb6dcf9d2b15bb1ac066d378e503f79efcbe65c;hp=bfdbaba9c2ba40e7216d7435d69d45016c9ec5ff;hpb=4f2f2777892fdfe5f6999ae6b882ba5c0fa4bd60;p=cascardo%2Flinux.git diff --git a/fs/autofs4/expire.c b/fs/autofs4/expire.c index bfdbaba9c2ba..11dd118f75e2 100644 --- a/fs/autofs4/expire.c +++ b/fs/autofs4/expire.c @@ -374,7 +374,7 @@ static struct dentry *should_expire(struct dentry *dentry, return NULL; } - if (dentry->d_inode && S_ISLNK(dentry->d_inode->i_mode)) { + if (dentry->d_inode && d_is_symlink(dentry)) { DPRINTK("checking symlink %p %pd", dentry, dentry); /* * A symlink can't be "busy" in the usual sense so