aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/inode.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-04-20 23:50:45 -0400
committerSteve French <sfrench@us.ibm.com>2010-04-20 23:50:45 -0400
commitb6b38f704a8193daba520493ebdaf7e819962fc8 (patch)
treec38f4557b51b33573e36817888afa2accf3da9ca /fs/cifs/inode.c
parent315e995c63a15cb4d4efdbfd70fe2db191917f7a (diff)
[CIFS] Neaten cERROR and cFYI macros, reduce text space
Neaten cERROR and cFYI macros, reduce text space ~2.5K Convert '__FILE__ ": " fmt' to '"%s: " fmt', __FILE__' to save text space Surround macros with do {} while Add parentheses to macros Make statement expression macro from macro with assign Remove now unnecessary parentheses from cFYI and cERROR uses defconfig with CIFS support old $ size fs/cifs/built-in.o text data bss dec hex filename 156012 1760 148 157920 268e0 fs/cifs/built-in.o defconfig with CIFS support old $ size fs/cifs/built-in.o text data bss dec hex filename 153508 1760 148 155416 25f18 fs/cifs/built-in.o allyesconfig old: $ size fs/cifs/built-in.o text data bss dec hex filename 309138 3864 74824 387826 5eaf2 fs/cifs/built-in.o allyesconfig new $ size fs/cifs/built-in.o text data bss dec hex filename 305655 3864 74824 384343 5dd57 fs/cifs/built-in.o Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/inode.c')
-rw-r--r--fs/cifs/inode.c82
1 files changed, 41 insertions, 41 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c
index 35ec11716213..7524a90aa94f 100644
--- a/fs/cifs/inode.c
+++ b/fs/cifs/inode.c
@@ -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
@@ -734,7 +734,7 @@ cifs_iget(struct super_block *sb, struct cifs_fattr *fattr)
734 unsigned long hash; 734 unsigned long hash;
735 struct inode *inode; 735 struct inode *inode;
736 736
737 cFYI(1, ("looking for uniqueid=%llu", fattr->cf_uniqueid)); 737 cFYI(1, "looking for uniqueid=%llu", fattr->cf_uniqueid);
738 738
739 /* hash down to 32-bits on 32-bit arch */ 739 /* hash down to 32-bits on 32-bit arch */
740 hash = cifs_uniqueid_to_ino_t(fattr->cf_uniqueid); 740 hash = cifs_uniqueid_to_ino_t(fattr->cf_uniqueid);
@@ -780,7 +780,7 @@ struct inode *cifs_root_iget(struct super_block *sb, unsigned long ino)
780 return ERR_PTR(-ENOMEM); 780 return ERR_PTR(-ENOMEM);
781 781
782 if (rc && cifs_sb->tcon->ipc) { 782 if (rc && cifs_sb->tcon->ipc) {
783 cFYI(1, ("ipc connection - fake read inode")); 783 cFYI(1, "ipc connection - fake read inode");
784 inode->i_mode |= S_IFDIR; 784 inode->i_mode |= S_IFDIR;
785 inode->i_nlink = 2; 785 inode->i_nlink = 2;
786 inode->i_op = &cifs_ipc_inode_ops; 786 inode->i_op = &cifs_ipc_inode_ops;
@@ -842,7 +842,7 @@ cifs_set_file_info(struct inode *inode, struct iattr *attrs, int xid,
842 * server times. 842 * server times.
843 */ 843 */
844 if (set_time && (attrs->ia_valid & ATTR_CTIME)) { 844 if (set_time && (attrs->ia_valid & ATTR_CTIME)) {
845 cFYI(1, ("CIFS - CTIME changed")); 845 cFYI(1, "CIFS - CTIME changed");
846 info_buf.ChangeTime = 846 info_buf.ChangeTime =
847 cpu_to_le64(cifs_UnixTimeToNT(attrs->ia_ctime)); 847 cpu_to_le64(cifs_UnixTimeToNT(attrs->ia_ctime));
848 } else 848 } else
@@ -877,8 +877,8 @@ cifs_set_file_info(struct inode *inode, struct iattr *attrs, int xid,
877 goto out; 877 goto out;
878 } 878 }
879 879
880 cFYI(1, ("calling SetFileInfo since SetPathInfo for " 880 cFYI(1, "calling SetFileInfo since SetPathInfo for "
881 "times not supported by this server")); 881 "times not supported by this server");
882 rc = CIFSSMBOpen(xid, pTcon, full_path, FILE_OPEN, 882 rc = CIFSSMBOpen(xid, pTcon, full_path, FILE_OPEN,
883 SYNCHRONIZE | FILE_WRITE_ATTRIBUTES, 883 SYNCHRONIZE | FILE_WRITE_ATTRIBUTES,
884 CREATE_NOT_DIR, &netfid, &oplock, 884 CREATE_NOT_DIR, &netfid, &oplock,
@@ -1036,7 +1036,7 @@ int cifs_unlink(struct inode *dir, struct dentry *dentry)
1036 struct iattr *attrs = NULL; 1036 struct iattr *attrs = NULL;
1037 __u32 dosattr = 0, origattr = 0; 1037 __u32 dosattr = 0, origattr = 0;
1038 1038
1039 cFYI(1, ("cifs_unlink, dir=0x%p, dentry=0x%p", dir, dentry)); 1039 cFYI(1, "cifs_unlink, dir=0x%p, dentry=0x%p", dir, dentry);
1040 1040
1041 xid = GetXid(); 1041 xid = GetXid();
1042 1042
@@ -1055,7 +1055,7 @@ int cifs_unlink(struct inode *dir, struct dentry *dentry)
1055 rc = CIFSPOSIXDelFile(xid, tcon, full_path, 1055 rc = CIFSPOSIXDelFile(xid, tcon, full_path,
1056 SMB_POSIX_UNLINK_FILE_TARGET, cifs_sb->local_nls, 1056 SMB_POSIX_UNLINK_FILE_TARGET, cifs_sb->local_nls,
1057 cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR); 1057 cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR);
1058 cFYI(1, ("posix del rc %d", rc)); 1058 cFYI(1, "posix del rc %d", rc);
1059 if ((rc == 0) || (rc == -ENOENT)) 1059 if ((rc == 0) || (rc == -ENOENT))
1060 goto psx_del_no_retry; 1060 goto psx_del_no_retry;
1061 } 1061 }
@@ -1129,7 +1129,7 @@ int cifs_mkdir(struct inode *inode, struct dentry *direntry, int mode)
1129 struct inode *newinode = NULL; 1129 struct inode *newinode = NULL;
1130 struct cifs_fattr fattr; 1130 struct cifs_fattr fattr;
1131 1131
1132 cFYI(1, ("In cifs_mkdir, mode = 0x%x inode = 0x%p", mode, inode)); 1132 cFYI(1, "In cifs_mkdir, mode = 0x%x inode = 0x%p", mode, inode);
1133 1133
1134 xid = GetXid(); 1134 xid = GetXid();
1135 1135
@@ -1164,7 +1164,7 @@ int cifs_mkdir(struct inode *inode, struct dentry *direntry, int mode)
1164 kfree(pInfo); 1164 kfree(pInfo);
1165 goto mkdir_retry_old; 1165 goto mkdir_retry_old;
1166 } else if (rc) { 1166 } else if (rc) {
1167 cFYI(1, ("posix mkdir returned 0x%x", rc)); 1167 cFYI(1, "posix mkdir returned 0x%x", rc);
1168 d_drop(direntry); 1168 d_drop(direntry);
1169 } else { 1169 } else {
1170 if (pInfo->Type == cpu_to_le32(-1)) { 1170 if (pInfo->Type == cpu_to_le32(-1)) {
@@ -1190,12 +1190,12 @@ int cifs_mkdir(struct inode *inode, struct dentry *direntry, int mode)
1190 d_instantiate(direntry, newinode); 1190 d_instantiate(direntry, newinode);
1191 1191
1192#ifdef CONFIG_CIFS_DEBUG2 1192#ifdef CONFIG_CIFS_DEBUG2
1193 cFYI(1, ("instantiated dentry %p %s to inode %p", 1193 cFYI(1, "instantiated dentry %p %s to inode %p",
1194 direntry, direntry->d_name.name, newinode)); 1194 direntry, direntry->d_name.name, newinode);
1195 1195
1196 if (newinode->i_nlink != 2) 1196 if (newinode->i_nlink != 2)
1197 cFYI(1, ("unexpected number of links %d", 1197 cFYI(1, "unexpected number of links %d",
1198 newinode->i_nlink)); 1198 newinode->i_nlink);
1199#endif 1199#endif
1200 } 1200 }
1201 kfree(pInfo); 1201 kfree(pInfo);
@@ -1206,7 +1206,7 @@ mkdir_retry_old:
1206 rc = CIFSSMBMkDir(xid, pTcon, full_path, cifs_sb->local_nls, 1206 rc = CIFSSMBMkDir(xid, pTcon, full_path, cifs_sb->local_nls,
1207 cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR); 1207 cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR);
1208 if (rc) { 1208 if (rc) {
1209 cFYI(1, ("cifs_mkdir returned 0x%x", rc)); 1209 cFYI(1, "cifs_mkdir returned 0x%x", rc);
1210 d_drop(direntry); 1210 d_drop(direntry);
1211 } else { 1211 } else {
1212mkdir_get_info: 1212mkdir_get_info:
@@ -1309,7 +1309,7 @@ int cifs_rmdir(struct inode *inode, struct dentry *direntry)
1309 char *full_path = NULL; 1309 char *full_path = NULL;
1310 struct cifsInodeInfo *cifsInode; 1310 struct cifsInodeInfo *cifsInode;
1311 1311
1312 cFYI(1, ("cifs_rmdir, inode = 0x%p", inode)); 1312 cFYI(1, "cifs_rmdir, inode = 0x%p", inode);
1313 1313
1314 xid = GetXid(); 1314 xid = GetXid();
1315 1315
@@ -1673,12 +1673,12 @@ cifs_set_file_size(struct inode *inode, struct iattr *attrs,
1673 rc = CIFSSMBSetFileSize(xid, pTcon, attrs->ia_size, nfid, 1673 rc = CIFSSMBSetFileSize(xid, pTcon, attrs->ia_size, nfid,
1674 npid, false); 1674 npid, false);
1675 cifsFileInfo_put(open_file); 1675 cifsFileInfo_put(open_file);
1676 cFYI(1, ("SetFSize for attrs rc = %d", rc)); 1676 cFYI(1, "SetFSize for attrs rc = %d", rc);
1677 if ((rc == -EINVAL) || (rc == -EOPNOTSUPP)) { 1677 if ((rc == -EINVAL) || (rc == -EOPNOTSUPP)) {
1678 unsigned int bytes_written; 1678 unsigned int bytes_written;
1679 rc = CIFSSMBWrite(xid, pTcon, nfid, 0, attrs->ia_size, 1679 rc = CIFSSMBWrite(xid, pTcon, nfid, 0, attrs->ia_size,
1680 &bytes_written, NULL, NULL, 1); 1680 &bytes_written, NULL, NULL, 1);
1681 cFYI(1, ("Wrt seteof rc %d", rc)); 1681 cFYI(1, "Wrt seteof rc %d", rc);
1682 } 1682 }
1683 } else 1683 } else
1684 rc = -EINVAL; 1684 rc = -EINVAL;
@@ -1692,7 +1692,7 @@ cifs_set_file_size(struct inode *inode, struct iattr *attrs,
1692 false, cifs_sb->local_nls, 1692 false, cifs_sb->local_nls,
1693 cifs_sb->mnt_cifs_flags & 1693 cifs_sb->mnt_cifs_flags &
1694 CIFS_MOUNT_MAP_SPECIAL_CHR); 1694 CIFS_MOUNT_MAP_SPECIAL_CHR);
1695 cFYI(1, ("SetEOF by path (setattrs) rc = %d", rc)); 1695 cFYI(1, "SetEOF by path (setattrs) rc = %d", rc);
1696 if ((rc == -EINVAL) || (rc == -EOPNOTSUPP)) { 1696 if ((rc == -EINVAL) || (rc == -EOPNOTSUPP)) {
1697 __u16 netfid; 1697 __u16 netfid;
1698 int oplock = 0; 1698 int oplock = 0;
@@ -1709,7 +1709,7 @@ cifs_set_file_size(struct inode *inode, struct iattr *attrs,
1709 attrs->ia_size, 1709 attrs->ia_size,
1710 &bytes_written, NULL, 1710 &bytes_written, NULL,
1711 NULL, 1); 1711 NULL, 1);
1712 cFYI(1, ("wrt seteof rc %d", rc)); 1712 cFYI(1, "wrt seteof rc %d", rc);
1713 CIFSSMBClose(xid, pTcon, netfid); 1713 CIFSSMBClose(xid, pTcon, netfid);
1714 } 1714 }
1715 } 1715 }
@@ -1737,8 +1737,8 @@ cifs_setattr_unix(struct dentry *direntry, struct iattr *attrs)
1737 struct cifs_unix_set_info_args *args = NULL; 1737 struct cifs_unix_set_info_args *args = NULL;
1738 struct cifsFileInfo *open_file; 1738 struct cifsFileInfo *open_file;
1739 1739
1740 cFYI(1, ("setattr_unix on file %s attrs->ia_valid=0x%x", 1740 cFYI(1, "setattr_unix on file %s attrs->ia_valid=0x%x",
1741 direntry->d_name.name, attrs->ia_valid)); 1741 direntry->d_name.name, attrs->ia_valid);
1742 1742
1743 xid = GetXid(); 1743 xid = GetXid();
1744 1744
@@ -1868,8 +1868,8 @@ cifs_setattr_nounix(struct dentry *direntry, struct iattr *attrs)
1868 1868
1869 xid = GetXid(); 1869 xid = GetXid();
1870 1870
1871 cFYI(1, ("setattr on file %s attrs->iavalid 0x%x", 1871 cFYI(1, "setattr on file %s attrs->iavalid 0x%x",
1872 direntry->d_name.name, attrs->ia_valid)); 1872 direntry->d_name.name, attrs->ia_valid);
1873 1873
1874 if ((cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_PERM) == 0) { 1874 if ((cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_PERM) == 0) {
1875 /* check if we have permission to change attrs */ 1875 /* check if we have permission to change attrs */
@@ -1926,7 +1926,7 @@ cifs_setattr_nounix(struct dentry *direntry, struct iattr *attrs)
1926 attrs->ia_valid &= ~ATTR_MODE; 1926 attrs->ia_valid &= ~ATTR_MODE;
1927 1927
1928 if (attrs->ia_valid & ATTR_MODE) { 1928 if (attrs->ia_valid & ATTR_MODE) {
1929 cFYI(1, ("Mode changed to 0%o", attrs->ia_mode)); 1929 cFYI(1, "Mode changed to 0%o", attrs->ia_mode);
1930 mode = attrs->ia_mode; 1930 mode = attrs->ia_mode;
1931 } 1931 }
1932 1932
@@ -2012,7 +2012,7 @@ cifs_setattr(struct dentry *direntry, struct iattr *attrs)
2012#if 0 2012#if 0
2013void cifs_delete_inode(struct inode *inode) 2013void cifs_delete_inode(struct inode *inode)
2014{ 2014{
2015 cFYI(1, ("In cifs_delete_inode, inode = 0x%p", inode)); 2015 cFYI(1, "In cifs_delete_inode, inode = 0x%p", inode);
2016 /* may have to add back in if and when safe distributed caching of 2016 /* may have to add back in if and when safe distributed caching of
2017 directories added e.g. via FindNotify */ 2017 directories added e.g. via FindNotify */
2018} 2018}