Re: [PATCH 6/8] nfs: don't use ->d_time
From: Al Viro
Date: Wed Jun 22 2016 - 12:48:14 EST
On Wed, Jun 22, 2016 at 04:35:08PM +0200, Miklos Szeredi wrote:
> static void nfs_d_release(struct dentry *dentry)
> {
> /* free cached devname value, if it survived that far */
> - if (unlikely(dentry->d_fsdata)) {
> + if (unlikely(NFS_D(dentry)->devname)) {
> if (dentry->d_flags & DCACHE_NFSFS_RENAMED)
> WARN_ON(1);
> else
> - kfree(dentry->d_fsdata);
> + kfree(NFS_D(dentry)->devname);
> }
> + kfree(dentry->d_fsdata);
Again, is that safe wrt RCU delays?