aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/inode.c')
-rw-r--r--fs/cifs/inode.c104
1 files changed, 52 insertions, 52 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c
index 29b9ea244c81..5b042fc46450 100644
--- a/fs/cifs/inode.c
+++ b/fs/cifs/inode.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * fs/cifs/inode.c 2 * fs/cifs/inode.c
3 * 3 *
4 * Copyright (C) International Business Machines Corp., 2002,2008 4 * Copyright (C) International Business Machines Corp., 2002,2010
5 * Author(s): Steve French (sfrench@us.ibm.com) 5 * Author(s): Steve French (sfrench@us.ibm.com)
6 * 6 *
7 * This library is free software; you can redistribute it and/or modify 7 * This library is free software; you can redistribute it and/or modify
@@ -86,30 +86,30 @@ cifs_revalidate_cache(struct inode *inode, struct cifs_fattr *fattr)
86{ 86{
87 struct cifsInodeInfo *cifs_i = CIFS_I(inode); 87 struct cifsInodeInfo *cifs_i = CIFS_I(inode);
88 88
89 cFYI(1, ("%s: revalidating inode %llu", __func__, cifs_i->uniqueid)); 89 cFYI(1, "%s: revalidating inode %llu", __func__, cifs_i->uniqueid);
90 90
91 if (inode->i_state & I_NEW) { 91 if (inode->i_state & I_NEW) {
92 cFYI(1, ("%s: inode %llu is new", __func__, cifs_i->uniqueid)); 92 cFYI(1, "%s: inode %llu is new", __func__, cifs_i->uniqueid);
93 return; 93 return;
94 } 94 }
95 95
96 /* don't bother with revalidation if we have an oplock */ 96 /* don't bother with revalidation if we have an oplock */
97 if (cifs_i->clientCanCacheRead) { 97 if (cifs_i->clientCanCacheRead) {
98 cFYI(1, ("%s: inode %llu is oplocked", __func__, 98 cFYI(1, "%s: inode %llu is oplocked", __func__,
99 cifs_i->uniqueid)); 99 cifs_i->uniqueid);
100 return; 100 return;
101 } 101 }
102 102
103 /* revalidate if mtime or size have changed */ 103 /* revalidate if mtime or size have changed */
104 if (timespec_equal(&inode->i_mtime, &fattr->cf_mtime) && 104 if (timespec_equal(&inode->i_mtime, &fattr->cf_mtime) &&
105 cifs_i->server_eof == fattr->cf_eof) { 105 cifs_i->server_eof == fattr->cf_eof) {
106 cFYI(1, ("%s: inode %llu is unchanged", __func__, 106 cFYI(1, "%s: inode %llu is unchanged", __func__,
107 cifs_i->uniqueid)); 107 cifs_i->uniqueid);
108 return; 108 return;
109 } 109 }
110 110
111 cFYI(1, ("%s: invalidating inode %llu mapping", __func__, 111 cFYI(1, "%s: invalidating inode %llu mapping", __func__,
112 cifs_i->uniqueid)); 112 cifs_i->uniqueid);
113 cifs_i->invalid_mapping = true; 113 cifs_i->invalid_mapping = true;
114} 114}
115 115
@@ -144,8 +144,8 @@ cifs_fattr_to_inode(struct inode *inode, struct cifs_fattr *fattr)
144 else 144 else
145 cifs_i->time = jiffies; 145 cifs_i->time = jiffies;
146 146
147 cFYI(1, ("inode 0x%p old_time=%ld new_time=%ld", inode, 147 cFYI(1, "inode 0x%p old_time=%ld new_time=%ld", inode,
148 oldtime, cifs_i->time)); 148 oldtime, cifs_i->time);
149 149
150 cifs_i->delete_pending = fattr->cf_flags & CIFS_FATTR_DELETE_PENDING; 150 cifs_i->delete_pending = fattr->cf_flags & CIFS_FATTR_DELETE_PENDING;
151 151
@@ -227,7 +227,7 @@ cifs_unix_basic_to_fattr(struct cifs_fattr *fattr, FILE_UNIX_BASIC_INFO *info,
227 /* safest to call it a file if we do not know */ 227 /* safest to call it a file if we do not know */
228 fattr->cf_mode |= S_IFREG; 228 fattr->cf_mode |= S_IFREG;
229 fattr->cf_dtype = DT_REG; 229 fattr->cf_dtype = DT_REG;
230 cFYI(1, ("unknown type %d", le32_to_cpu(info->Type))); 230 cFYI(1, "unknown type %d", le32_to_cpu(info->Type));
231 break; 231 break;
232 } 232 }
233 233
@@ -256,7 +256,7 @@ cifs_create_dfs_fattr(struct cifs_fattr *fattr, struct super_block *sb)
256{ 256{
257 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); 257 struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
258 258
259 cFYI(1, ("creating fake fattr for DFS referral")); 259 cFYI(1, "creating fake fattr for DFS referral");
260 260
261 memset(fattr, 0, sizeof(*fattr)); 261 memset(fattr, 0, sizeof(*fattr));
262 fattr->cf_mode = S_IFDIR | S_IXUGO | S_IRWXU; 262 fattr->cf_mode = S_IFDIR | S_IXUGO | S_IRWXU;
@@ -305,7 +305,7 @@ int cifs_get_inode_info_unix(struct inode **pinode,
305 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); 305 struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
306 306
307 tcon = cifs_sb->tcon; 307 tcon = cifs_sb->tcon;
308 cFYI(1, ("Getting info on %s", full_path)); 308 cFYI(1, "Getting info on %s", full_path);
309 309
310 /* could have done a find first instead but this returns more info */ 310 /* could have done a find first instead but this returns more info */
311 rc = CIFSSMBUnixQPathInfo(xid, tcon, full_path, &find_data, 311 rc = CIFSSMBUnixQPathInfo(xid, tcon, full_path, &find_data,
@@ -373,7 +373,7 @@ cifs_sfu_type(struct cifs_fattr *fattr, const unsigned char *path,
373 &bytes_read, &pbuf, &buf_type); 373 &bytes_read, &pbuf, &buf_type);
374 if ((rc == 0) && (bytes_read >= 8)) { 374 if ((rc == 0) && (bytes_read >= 8)) {
375 if (memcmp("IntxBLK", pbuf, 8) == 0) { 375 if (memcmp("IntxBLK", pbuf, 8) == 0) {
376 cFYI(1, ("Block device")); 376 cFYI(1, "Block device");
377 fattr->cf_mode |= S_IFBLK; 377 fattr->cf_mode |= S_IFBLK;
378 fattr->cf_dtype = DT_BLK; 378 fattr->cf_dtype = DT_BLK;
379 if (bytes_read == 24) { 379 if (bytes_read == 24) {
@@ -385,7 +385,7 @@ cifs_sfu_type(struct cifs_fattr *fattr, const unsigned char *path,
385 fattr->cf_rdev = MKDEV(mjr, mnr); 385 fattr->cf_rdev = MKDEV(mjr, mnr);
386 } 386 }
387 } else if (memcmp("IntxCHR", pbuf, 8) == 0) { 387 } else if (memcmp("IntxCHR", pbuf, 8) == 0) {
388 cFYI(1, ("Char device")); 388 cFYI(1, "Char device");
389 fattr->cf_mode |= S_IFCHR; 389 fattr->cf_mode |= S_IFCHR;
390 fattr->cf_dtype = DT_CHR; 390 fattr->cf_dtype = DT_CHR;
391 if (bytes_read == 24) { 391 if (bytes_read == 24) {
@@ -397,7 +397,7 @@ cifs_sfu_type(struct cifs_fattr *fattr, const unsigned char *path,
397 fattr->cf_rdev = MKDEV(mjr, mnr); 397 fattr->cf_rdev = MKDEV(mjr, mnr);
398 } 398 }
399 } else if (memcmp("IntxLNK", pbuf, 7) == 0) { 399 } else if (memcmp("IntxLNK", pbuf, 7) == 0) {
400 cFYI(1, ("Symlink")); 400 cFYI(1, "Symlink");
401 fattr->cf_mode |= S_IFLNK; 401 fattr->cf_mode |= S_IFLNK;
402 fattr->cf_dtype = DT_LNK; 402 fattr->cf_dtype = DT_LNK;
403 } else { 403 } else {
@@ -439,10 +439,10 @@ static int cifs_sfu_mode(struct cifs_fattr *fattr, const unsigned char *path,
439 else if (rc > 3) { 439 else if (rc > 3) {
440 mode = le32_to_cpu(*((__le32 *)ea_value)); 440 mode = le32_to_cpu(*((__le32 *)ea_value));
441 fattr->cf_mode &= ~SFBITS_MASK; 441 fattr->cf_mode &= ~SFBITS_MASK;
442 cFYI(1, ("special bits 0%o org mode 0%o", mode, 442 cFYI(1, "special bits 0%o org mode 0%o", mode,
443 fattr->cf_mode)); 443 fattr->cf_mode);
444 fattr->cf_mode = (mode & SFBITS_MASK) | fattr->cf_mode; 444 fattr->cf_mode = (mode & SFBITS_MASK) | fattr->cf_mode;
445 cFYI(1, ("special mode bits 0%o", mode)); 445 cFYI(1, "special mode bits 0%o", mode);
446 } 446 }
447 447
448 return 0; 448 return 0;
@@ -548,11 +548,11 @@ int cifs_get_inode_info(struct inode **pinode,
548 struct cifs_fattr fattr; 548 struct cifs_fattr fattr;
549 549
550 pTcon = cifs_sb->tcon; 550 pTcon = cifs_sb->tcon;
551 cFYI(1, ("Getting info on %s", full_path)); 551 cFYI(1, "Getting info on %s", full_path);
552 552
553 if ((pfindData == NULL) && (*pinode != NULL)) { 553 if ((pfindData == NULL) && (*pinode != NULL)) {
554 if (CIFS_I(*pinode)->clientCanCacheRead) { 554 if (CIFS_I(*pinode)->clientCanCacheRead) {
555 cFYI(1, ("No need to revalidate cached inode sizes")); 555 cFYI(1, "No need to revalidate cached inode sizes");
556 return rc; 556 return rc;
557 } 557 }
558 } 558 }
@@ -618,7 +618,7 @@ int cifs_get_inode_info(struct inode **pinode,
618 cifs_sb->mnt_cifs_flags & 618 cifs_sb->mnt_cifs_flags &
619 CIFS_MOUNT_MAP_SPECIAL_CHR); 619 CIFS_MOUNT_MAP_SPECIAL_CHR);
620 if (rc1 || !fattr.cf_uniqueid) { 620 if (rc1 || !fattr.cf_uniqueid) {
621 cFYI(1, ("GetSrvInodeNum rc %d", rc1)); 621 cFYI(1, "GetSrvInodeNum rc %d", rc1);
622 fattr.cf_uniqueid = iunique(sb, ROOT_I); 622 fattr.cf_uniqueid = iunique(sb, ROOT_I);
623 cifs_autodisable_serverino(cifs_sb); 623 cifs_autodisable_serverino(cifs_sb);
624 } 624 }
@@ -634,13 +634,13 @@ int cifs_get_inode_info(struct inode **pinode,
634 cifs_sb->mnt_cifs_flags & CIFS_MOUNT_UNX_EMUL) { 634 cifs_sb->mnt_cifs_flags & CIFS_MOUNT_UNX_EMUL) {
635 tmprc = cifs_sfu_type(&fattr, full_path, cifs_sb, xid); 635 tmprc = cifs_sfu_type(&fattr, full_path, cifs_sb, xid);
636 if (tmprc) 636 if (tmprc)
637 cFYI(1, ("cifs_sfu_type failed: %d", tmprc)); 637 cFYI(1, "cifs_sfu_type failed: %d", tmprc);
638 } 638 }
639 639
640#ifdef CONFIG_CIFS_EXPERIMENTAL 640#ifdef CONFIG_CIFS_EXPERIMENTAL
641 /* fill in 0777 bits from ACL */ 641 /* fill in 0777 bits from ACL */
642 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_CIFS_ACL) { 642 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_CIFS_ACL) {
643 cFYI(1, ("Getting mode bits from ACL")); 643 cFYI(1, "Getting mode bits from ACL");
644 cifs_acl_to_fattr(cifs_sb, &fattr, *pinode, full_path, pfid); 644 cifs_acl_to_fattr(cifs_sb, &fattr, *pinode, full_path, pfid);
645 } 645 }
646#endif 646#endif
@@ -745,7 +745,7 @@ cifs_iget(struct super_block *sb, struct cifs_fattr *fattr)
745 struct inode *inode; 745 struct inode *inode;
746 746
747retry_iget5_locked: 747retry_iget5_locked:
748 cFYI(1, ("looking for uniqueid=%llu", fattr->cf_uniqueid)); 748 cFYI(1, "looking for uniqueid=%llu", fattr->cf_uniqueid);
749 749
750 /* hash down to 32-bits on 32-bit arch */ 750 /* hash down to 32-bits on 32-bit arch */
751 hash = cifs_uniqueid_to_ino_t(fattr->cf_uniqueid); 751 hash = cifs_uniqueid_to_ino_t(fattr->cf_uniqueid);
@@ -797,7 +797,7 @@ struct inode *cifs_root_iget(struct super_block *sb, unsigned long ino)
797 return ERR_PTR(-ENOMEM); 797 return ERR_PTR(-ENOMEM);
798 798
799 if (rc && cifs_sb->tcon->ipc) { 799 if (rc && cifs_sb->tcon->ipc) {
800 cFYI(1, ("ipc connection - fake read inode")); 800 cFYI(1, "ipc connection - fake read inode");
801 inode->i_mode |= S_IFDIR; 801 inode->i_mode |= S_IFDIR;
802 inode->i_nlink = 2; 802 inode->i_nlink = 2;
803 inode->i_op = &cifs_ipc_inode_ops; 803 inode->i_op = &cifs_ipc_inode_ops;
@@ -859,7 +859,7 @@ cifs_set_file_info(struct inode *inode, struct iattr *attrs, int xid,
859 * server times. 859 * server times.
860 */ 860 */
861 if (set_time && (attrs->ia_valid & ATTR_CTIME)) { 861 if (set_time && (attrs->ia_valid & ATTR_CTIME)) {
862 cFYI(1, ("CIFS - CTIME changed")); 862 cFYI(1, "CIFS - CTIME changed");
863 info_buf.ChangeTime = 863 info_buf.ChangeTime =
864 cpu_to_le64(cifs_UnixTimeToNT(attrs->ia_ctime)); 864 cpu_to_le64(cifs_UnixTimeToNT(attrs->ia_ctime));
865 } else 865 } else
@@ -894,8 +894,8 @@ cifs_set_file_info(struct inode *inode, struct iattr *attrs, int xid,
894 goto out; 894 goto out;
895 } 895 }
896 896
897 cFYI(1, ("calling SetFileInfo since SetPathInfo for " 897 cFYI(1, "calling SetFileInfo since SetPathInfo for "
898 "times not supported by this server")); 898 "times not supported by this server");
899 rc = CIFSSMBOpen(xid, pTcon, full_path, FILE_OPEN, 899 rc = CIFSSMBOpen(xid, pTcon, full_path, FILE_OPEN,
900 SYNCHRONIZE | FILE_WRITE_ATTRIBUTES, 900 SYNCHRONIZE | FILE_WRITE_ATTRIBUTES,
901 CREATE_NOT_DIR, &netfid, &oplock, 901 CREATE_NOT_DIR, &netfid, &oplock,
@@ -1053,7 +1053,7 @@ int cifs_unlink(struct inode *dir, struct dentry *dentry)
1053 struct iattr *attrs = NULL; 1053 struct iattr *attrs = NULL;
1054 __u32 dosattr = 0, origattr = 0; 1054 __u32 dosattr = 0, origattr = 0;
1055 1055
1056 cFYI(1, ("cifs_unlink, dir=0x%p, dentry=0x%p", dir, dentry)); 1056 cFYI(1, "cifs_unlink, dir=0x%p, dentry=0x%p", dir, dentry);
1057 1057
1058 xid = GetXid(); 1058 xid = GetXid();
1059 1059
@@ -1072,7 +1072,7 @@ int cifs_unlink(struct inode *dir, struct dentry *dentry)
1072 rc = CIFSPOSIXDelFile(xid, tcon, full_path, 1072 rc = CIFSPOSIXDelFile(xid, tcon, full_path,
1073 SMB_POSIX_UNLINK_FILE_TARGET, cifs_sb->local_nls, 1073 SMB_POSIX_UNLINK_FILE_TARGET, cifs_sb->local_nls,
1074 cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR); 1074 cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR);
1075 cFYI(1, ("posix del rc %d", rc)); 1075 cFYI(1, "posix del rc %d", rc);
1076 if ((rc == 0) || (rc == -ENOENT)) 1076 if ((rc == 0) || (rc == -ENOENT))
1077 goto psx_del_no_retry; 1077 goto psx_del_no_retry;
1078 } 1078 }
@@ -1146,7 +1146,7 @@ int cifs_mkdir(struct inode *inode, struct dentry *direntry, int mode)
1146 struct inode *newinode = NULL; 1146 struct inode *newinode = NULL;
1147 struct cifs_fattr fattr; 1147 struct cifs_fattr fattr;
1148 1148
1149 cFYI(1, ("In cifs_mkdir, mode = 0x%x inode = 0x%p", mode, inode)); 1149 cFYI(1, "In cifs_mkdir, mode = 0x%x inode = 0x%p", mode, inode);
1150 1150
1151 xid = GetXid(); 1151 xid = GetXid();
1152 1152
@@ -1181,7 +1181,7 @@ int cifs_mkdir(struct inode *inode, struct dentry *direntry, int mode)
1181 kfree(pInfo); 1181 kfree(pInfo);
1182 goto mkdir_retry_old; 1182 goto mkdir_retry_old;
1183 } else if (rc) { 1183 } else if (rc) {
1184 cFYI(1, ("posix mkdir returned 0x%x", rc)); 1184 cFYI(1, "posix mkdir returned 0x%x", rc);
1185 d_drop(direntry); 1185 d_drop(direntry);
1186 } else { 1186 } else {
1187 if (pInfo->Type == cpu_to_le32(-1)) { 1187 if (pInfo->Type == cpu_to_le32(-1)) {
@@ -1207,12 +1207,12 @@ int cifs_mkdir(struct inode *inode, struct dentry *direntry, int mode)
1207 d_instantiate(direntry, newinode); 1207 d_instantiate(direntry, newinode);
1208 1208
1209#ifdef CONFIG_CIFS_DEBUG2 1209#ifdef CONFIG_CIFS_DEBUG2
1210 cFYI(1, ("instantiated dentry %p %s to inode %p", 1210 cFYI(1, "instantiated dentry %p %s to inode %p",
1211 direntry, direntry->d_name.name, newinode)); 1211 direntry, direntry->d_name.name, newinode);
1212 1212
1213 if (newinode->i_nlink != 2) 1213 if (newinode->i_nlink != 2)
1214 cFYI(1, ("unexpected number of links %d", 1214 cFYI(1, "unexpected number of links %d",
1215 newinode->i_nlink)); 1215 newinode->i_nlink);
1216#endif 1216#endif
1217 } 1217 }
1218 kfree(pInfo); 1218 kfree(pInfo);
@@ -1223,7 +1223,7 @@ mkdir_retry_old:
1223 rc = CIFSSMBMkDir(xid, pTcon, full_path, cifs_sb->local_nls, 1223 rc = CIFSSMBMkDir(xid, pTcon, full_path, cifs_sb->local_nls,
1224 cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR); 1224 cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR);
1225 if (rc) { 1225 if (rc) {
1226 cFYI(1, ("cifs_mkdir returned 0x%x", rc)); 1226 cFYI(1, "cifs_mkdir returned 0x%x", rc);
1227 d_drop(direntry); 1227 d_drop(direntry);
1228 } else { 1228 } else {
1229mkdir_get_info: 1229mkdir_get_info:
@@ -1326,7 +1326,7 @@ int cifs_rmdir(struct inode *inode, struct dentry *direntry)
1326 char *full_path = NULL; 1326 char *full_path = NULL;
1327 struct cifsInodeInfo *cifsInode; 1327 struct cifsInodeInfo *cifsInode;
1328 1328
1329 cFYI(1, ("cifs_rmdir, inode = 0x%p", inode)); 1329 cFYI(1, "cifs_rmdir, inode = 0x%p", inode);
1330 1330
1331 xid = GetXid(); 1331 xid = GetXid();
1332 1332
@@ -1594,9 +1594,9 @@ int cifs_revalidate_dentry(struct dentry *dentry)
1594 goto check_inval; 1594 goto check_inval;
1595 } 1595 }
1596 1596
1597 cFYI(1, ("Revalidate: %s inode 0x%p count %d dentry: 0x%p d_time %ld " 1597 cFYI(1, "Revalidate: %s inode 0x%p count %d dentry: 0x%p d_time %ld "
1598 "jiffies %ld", full_path, inode, inode->i_count.counter, 1598 "jiffies %ld", full_path, inode, inode->i_count.counter,
1599 dentry, dentry->d_time, jiffies)); 1599 dentry, dentry->d_time, jiffies);
1600 1600
1601 if (CIFS_SB(sb)->tcon->unix_ext) 1601 if (CIFS_SB(sb)->tcon->unix_ext)
1602 rc = cifs_get_inode_info_unix(&inode, full_path, sb, xid); 1602 rc = cifs_get_inode_info_unix(&inode, full_path, sb, xid);
@@ -1690,12 +1690,12 @@ cifs_set_file_size(struct inode *inode, struct iattr *attrs,
1690 rc = CIFSSMBSetFileSize(xid, pTcon, attrs->ia_size, nfid, 1690 rc = CIFSSMBSetFileSize(xid, pTcon, attrs->ia_size, nfid,
1691 npid, false); 1691 npid, false);
1692 cifsFileInfo_put(open_file); 1692 cifsFileInfo_put(open_file);
1693 cFYI(1, ("SetFSize for attrs rc = %d", rc)); 1693 cFYI(1, "SetFSize for attrs rc = %d", rc);
1694 if ((rc == -EINVAL) || (rc == -EOPNOTSUPP)) { 1694 if ((rc == -EINVAL) || (rc == -EOPNOTSUPP)) {
1695 unsigned int bytes_written; 1695 unsigned int bytes_written;
1696 rc = CIFSSMBWrite(xid, pTcon, nfid, 0, attrs->ia_size, 1696 rc = CIFSSMBWrite(xid, pTcon, nfid, 0, attrs->ia_size,
1697 &bytes_written, NULL, NULL, 1); 1697 &bytes_written, NULL, NULL, 1);
1698 cFYI(1, ("Wrt seteof rc %d", rc)); 1698 cFYI(1, "Wrt seteof rc %d", rc);
1699 } 1699 }
1700 } else 1700 } else
1701 rc = -EINVAL; 1701 rc = -EINVAL;
@@ -1709,7 +1709,7 @@ cifs_set_file_size(struct inode *inode, struct iattr *attrs,
1709 false, cifs_sb->local_nls, 1709 false, cifs_sb->local_nls,
1710 cifs_sb->mnt_cifs_flags & 1710 cifs_sb->mnt_cifs_flags &
1711 CIFS_MOUNT_MAP_SPECIAL_CHR); 1711 CIFS_MOUNT_MAP_SPECIAL_CHR);
1712 cFYI(1, ("SetEOF by path (setattrs) rc = %d", rc)); 1712 cFYI(1, "SetEOF by path (setattrs) rc = %d", rc);
1713 if ((rc == -EINVAL) || (rc == -EOPNOTSUPP)) { 1713 if ((rc == -EINVAL) || (rc == -EOPNOTSUPP)) {
1714 __u16 netfid; 1714 __u16 netfid;
1715 int oplock = 0; 1715 int oplock = 0;
@@ -1726,7 +1726,7 @@ cifs_set_file_size(struct inode *inode, struct iattr *attrs,
1726 attrs->ia_size, 1726 attrs->ia_size,
1727 &bytes_written, NULL, 1727 &bytes_written, NULL,
1728 NULL, 1); 1728 NULL, 1);
1729 cFYI(1, ("wrt seteof rc %d", rc)); 1729 cFYI(1, "wrt seteof rc %d", rc);
1730 CIFSSMBClose(xid, pTcon, netfid); 1730 CIFSSMBClose(xid, pTcon, netfid);
1731 } 1731 }
1732 } 1732 }
@@ -1754,8 +1754,8 @@ cifs_setattr_unix(struct dentry *direntry, struct iattr *attrs)
1754 struct cifs_unix_set_info_args *args = NULL; 1754 struct cifs_unix_set_info_args *args = NULL;
1755 struct cifsFileInfo *open_file; 1755 struct cifsFileInfo *open_file;
1756 1756
1757 cFYI(1, ("setattr_unix on file %s attrs->ia_valid=0x%x", 1757 cFYI(1, "setattr_unix on file %s attrs->ia_valid=0x%x",
1758 direntry->d_name.name, attrs->ia_valid)); 1758 direntry->d_name.name, attrs->ia_valid);
1759 1759
1760 xid = GetXid(); 1760 xid = GetXid();
1761 1761
@@ -1885,8 +1885,8 @@ cifs_setattr_nounix(struct dentry *direntry, struct iattr *attrs)
1885 1885
1886 xid = GetXid(); 1886 xid = GetXid();
1887 1887
1888 cFYI(1, ("setattr on file %s attrs->iavalid 0x%x", 1888 cFYI(1, "setattr on file %s attrs->iavalid 0x%x",
1889 direntry->d_name.name, attrs->ia_valid)); 1889 direntry->d_name.name, attrs->ia_valid);
1890 1890
1891 if ((cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_PERM) == 0) { 1891 if ((cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_PERM) == 0) {
1892 /* check if we have permission to change attrs */ 1892 /* check if we have permission to change attrs */
@@ -1943,7 +1943,7 @@ cifs_setattr_nounix(struct dentry *direntry, struct iattr *attrs)
1943 attrs->ia_valid &= ~ATTR_MODE; 1943 attrs->ia_valid &= ~ATTR_MODE;
1944 1944
1945 if (attrs->ia_valid & ATTR_MODE) { 1945 if (attrs->ia_valid & ATTR_MODE) {
1946 cFYI(1, ("Mode changed to 0%o", attrs->ia_mode)); 1946 cFYI(1, "Mode changed to 0%o", attrs->ia_mode);
1947 mode = attrs->ia_mode; 1947 mode = attrs->ia_mode;
1948 } 1948 }
1949 1949
@@ -2029,7 +2029,7 @@ cifs_setattr(struct dentry *direntry, struct iattr *attrs)
2029#if 0 2029#if 0
2030void cifs_delete_inode(struct inode *inode) 2030void cifs_delete_inode(struct inode *inode)
2031{ 2031{
2032 cFYI(1, ("In cifs_delete_inode, inode = 0x%p", inode)); 2032 cFYI(1, "In cifs_delete_inode, inode = 0x%p", inode);
2033 /* may have to add back in if and when safe distributed caching of 2033 /* may have to add back in if and when safe distributed caching of
2034 directories added e.g. via FindNotify */ 2034 directories added e.g. via FindNotify */
2035} 2035}