X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=fs%2Fnamei.c;h=2f730ef9b4b3da78afd6a830c13c7ba13c706ffe;hb=9c225f2655e36a4;hp=385f7817bfccbd12fbc352c39827586d4cf953d7;hpb=c1b8ae03c38281e442c2ad3725e921b09f23290a;p=~andy%2Flinux diff --git a/fs/namei.c b/fs/namei.c index 385f7817bfc..2f730ef9b4b 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -1884,7 +1884,7 @@ static int path_init(int dfd, const char *name, unsigned int flags, nd->path = f.file->f_path; if (flags & LOOKUP_RCU) { - if (f.need_put) + if (f.flags & FDPUT_FPUT) *fp = f.file; nd->seq = __read_seqcount_begin(&nd->path.dentry->d_seq); rcu_read_lock();