diff options
author | Jeff Layton <jlayton@redhat.com> | 2010-02-12 12:44:16 (GMT) |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2010-03-06 04:38:02 (GMT) |
commit | bcd5357f430363376565d07ca542127d6d36602c (patch) | |
tree | d92d915029eb1b06946de9deb91e5ab7604efa84 /fs/cifs/cifsproto.h | |
parent | df2cf170c823ba779ca339e3ede347c87f4dc6a9 (diff) | |
download | linux-fsl-qoriq-bcd5357f430363376565d07ca542127d6d36602c.tar.xz |
cifs: add a CIFSSMBQFileInfo function
...to get inode attributes via filehandle instead of by path.
In some places, we need to revalidate an inode on an open filehandle,
but we can't necessarily guarantee that the dentry associated with it
will still be valid. When we have an open filehandle already, it makes
more sense to do a filehandle based operation anyway.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsproto.h')
-rw-r--r-- | fs/cifs/cifsproto.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h index 88e2bc4..bf2bff1 100644 --- a/fs/cifs/cifsproto.h +++ b/fs/cifs/cifsproto.h @@ -142,6 +142,8 @@ extern int CIFSFindNext(const int xid, struct cifsTconInfo *tcon, extern int CIFSFindClose(const int, struct cifsTconInfo *tcon, const __u16 search_handle); +extern int CIFSSMBQFileInfo(const int xid, struct cifsTconInfo *tcon, + u16 netfid, FILE_ALL_INFO *pFindData); extern int CIFSSMBQPathInfo(const int xid, struct cifsTconInfo *tcon, const unsigned char *searchName, FILE_ALL_INFO *findData, |