]> 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)
commit71dd0fd1369433cfaa31f61a93df594ebf4d9ec9
treecc2fa751ec6f0f2b0efb2ec15c7a12327f98157c
parentb3442325492a8b37d81c8bea8d19c363139997ed
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