projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Staging: udlfb: fix printk format warning
[linux-2.6-block.git]
/
fs
/
cifs
/
inode.c
diff --git
a/fs/cifs/inode.c
b/fs/cifs/inode.c
index 82d83839655eed195fa91dd10120e048309bd287..1f09c7619319d794dd10a3d58a3543aa34e36ca9 100644
(file)
--- a/
fs/cifs/inode.c
+++ b/
fs/cifs/inode.c
@@
-800,7
+800,7
@@
set_via_filehandle:
if (open_file == NULL)
CIFSSMBClose(xid, pTcon, netfid);
else
if (open_file == NULL)
CIFSSMBClose(xid, pTcon, netfid);
else
-
atomic_dec(&open_file->wrtPending
);
+
cifsFileInfo_put(open_file
);
out:
return rc;
}
out:
return rc;
}
@@
-1635,7
+1635,7
@@
cifs_set_file_size(struct inode *inode, struct iattr *attrs,
__u32 npid = open_file->pid;
rc = CIFSSMBSetFileSize(xid, pTcon, attrs->ia_size, nfid,
npid, false);
__u32 npid = open_file->pid;
rc = CIFSSMBSetFileSize(xid, pTcon, attrs->ia_size, nfid,
npid, false);
-
atomic_dec(&open_file->wrtPending
);
+
cifsFileInfo_put(open_file
);
cFYI(1, ("SetFSize for attrs rc = %d", rc));
if ((rc == -EINVAL) || (rc == -EOPNOTSUPP)) {
unsigned int bytes_written;
cFYI(1, ("SetFSize for attrs rc = %d", rc));
if ((rc == -EINVAL) || (rc == -EOPNOTSUPP)) {
unsigned int bytes_written;
@@
-1790,7
+1790,7
@@
cifs_setattr_unix(struct dentry *direntry, struct iattr *attrs)
u16 nfid = open_file->netfid;
u32 npid = open_file->pid;
rc = CIFSSMBUnixSetFileInfo(xid, pTcon, args, nfid, npid);
u16 nfid = open_file->netfid;
u32 npid = open_file->pid;
rc = CIFSSMBUnixSetFileInfo(xid, pTcon, args, nfid, npid);
-
atomic_dec(&open_file->wrtPending
);
+
cifsFileInfo_put(open_file
);
} else {
rc = CIFSSMBUnixSetPathInfo(xid, pTcon, full_path, args,
cifs_sb->local_nls,
} else {
rc = CIFSSMBUnixSetPathInfo(xid, pTcon, full_path, args,
cifs_sb->local_nls,