summaryrefslogtreecommitdiffstats
path: root/fs/cifs/inode.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2008-10-18 03:03:20 +0200
committerSteve French <sfrench@us.ibm.com>2008-10-20 02:33:52 +0200
commit9a8165fce724d1aba21e2c713ac6ba11dbfecafa (patch)
treeb3c359a5d0428f3fccf6da73a59210f6514f4c7c /fs/cifs/inode.c
parentcifs: don't use CREATE_DELETE_ON_CLOSE in cifs_rename_pending_delete (diff)
downloadlinux-9a8165fce724d1aba21e2c713ac6ba11dbfecafa.tar.xz
linux-9a8165fce724d1aba21e2c713ac6ba11dbfecafa.zip
cifs: track DeletePending flag in cifsInodeInfo
cifs: track DeletePending flag in cifsInodeInfo The QPathInfo call returns a flag that indicates whether DELETE_ON_CLOSE is set. Track it in the cifsInodeInfo. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/inode.c')
-rw-r--r--fs/cifs/inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c
index fe4f2ee97b6c..dea9eeb58b00 100644
--- a/fs/cifs/inode.c
+++ b/fs/cifs/inode.c
@@ -506,6 +506,7 @@ int cifs_get_inode_info(struct inode **pinode,
inode = *pinode;
cifsInfo = CIFS_I(inode);
cifsInfo->cifsAttrs = attr;
+ cifsInfo->delete_pending = pfindData->DeletePending ? true : false;
cFYI(1, ("Old time %ld", cifsInfo->time));
cifsInfo->time = jiffies;
cFYI(1, ("New time %ld", cifsInfo->time));