X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=fs%2Fnamei.c;h=2f730ef9b4b3da78afd6a830c13c7ba13c706ffe;hb=18f2af2d68815e1c4d5c275ebd030e27ef627582;hp=385f7817bfccbd12fbc352c39827586d4cf953d7;hpb=a87af778d847dc085c06c98b7e6d1ca441f7f087;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();