summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsproto.h
diff options
context:
space:
mode:
authorJeff Layton2010-02-12 13:44:16 +0100
committerSteve French2010-03-06 05:38:02 +0100
commitbcd5357f430363376565d07ca542127d6d36602c (patch)
treed92d915029eb1b06946de9deb91e5ab7604efa84 /fs/cifs/cifsproto.h
parentcifs: overhaul cifs_revalidate and rename to cifs_revalidate_dentry (diff)
downloadkernel-qcow2-linux-bcd5357f430363376565d07ca542127d6d36602c.tar.gz
kernel-qcow2-linux-bcd5357f430363376565d07ca542127d6d36602c.tar.xz
kernel-qcow2-linux-bcd5357f430363376565d07ca542127d6d36602c.zip
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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h
index 88e2bc44ac58..bf2bff14c24f 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,