]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: don't use intents for checking atomic open
authorMiklos Szeredi <mszeredi@suse.cz>
Tue, 5 Jun 2012 13:10:21 +0000 (15:10 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 14 Jul 2012 12:33:12 +0000 (16:33 +0400)
commit2a6fa539271801b72225da15dcc7ecfe56fc5e14
treecc2fa751ec6f0f2b0efb2ec15c7a12327f98157c
parent3d58b5d3d4c29a8efffc74681a829273e32fbae7
nfs: don't use intents for checking atomic open

is_atomic_open() is now only used by nfs4_lookup_revalidate() to check whether
it's okay to skip normal revalidation.

It does a racy check for mount read-onlyness and falls back to normal
revalidation if the open would fail.  This makes little sense now that this
function isn't used for determining whether to actually open the file or not.

The d_mountpoint() check still makes sense since it is an indication that we
might be following a mount and so open may not revalidate the dentry.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
CC: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/nfs/dir.c