diff options
author | Niels de Vos <ndevos@redhat.com> | 2013-12-17 12:20:16 -0500 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-01-05 15:51:23 -0500 |
commit | 1e8968c5b0582392d5f132422f581e3ebc24e627 (patch) | |
tree | 1fbb842ca0b18d421f1e74b046324e38dbcb58c3 | |
parent | a8c2275493b866961f4429a741251c630c4fc6d7 (diff) |
NFS: dprintk() should not print negative fileids and inode numbers
A fileid in NFS is a uint64. There are some occurrences where dprintk()
outputs a signed fileid. This leads to confusion and more difficult to
read debugging (negative fileids matching positive inode numbers).
Signed-off-by: Niels de Vos <ndevos@redhat.com>
CC: Santosh Pradhan <spradhan@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
-rw-r--r-- | fs/nfs/dir.c | 18 | ||||
-rw-r--r-- | fs/nfs/direct.c | 4 | ||||
-rw-r--r-- | fs/nfs/file.c | 6 | ||||
-rw-r--r-- | fs/nfs/inode.c | 29 | ||||
-rw-r--r-- | fs/nfs/nfs3acl.c | 4 | ||||
-rw-r--r-- | fs/nfs/nfs4filelayout.c | 8 | ||||
-rw-r--r-- | fs/nfs/read.c | 12 | ||||
-rw-r--r-- | fs/nfs/write.c | 8 |
8 files changed, 45 insertions, 44 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 812154aff981..b266f734bd53 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c | |||
@@ -1404,7 +1404,7 @@ int nfs_atomic_open(struct inode *dir, struct dentry *dentry, | |||
1404 | /* Expect a negative dentry */ | 1404 | /* Expect a negative dentry */ |
1405 | BUG_ON(dentry->d_inode); | 1405 | BUG_ON(dentry->d_inode); |
1406 | 1406 | ||
1407 | dfprintk(VFS, "NFS: atomic_open(%s/%ld), %pd\n", | 1407 | dfprintk(VFS, "NFS: atomic_open(%s/%lu), %pd\n", |
1408 | dir->i_sb->s_id, dir->i_ino, dentry); | 1408 | dir->i_sb->s_id, dir->i_ino, dentry); |
1409 | 1409 | ||
1410 | err = nfs_check_flags(open_flags); | 1410 | err = nfs_check_flags(open_flags); |
@@ -1594,7 +1594,7 @@ int nfs_create(struct inode *dir, struct dentry *dentry, | |||
1594 | int open_flags = excl ? O_CREAT | O_EXCL : O_CREAT; | 1594 | int open_flags = excl ? O_CREAT | O_EXCL : O_CREAT; |
1595 | int error; | 1595 | int error; |
1596 | 1596 | ||
1597 | dfprintk(VFS, "NFS: create(%s/%ld), %pd\n", | 1597 | dfprintk(VFS, "NFS: create(%s/%lu), %pd\n", |
1598 | dir->i_sb->s_id, dir->i_ino, dentry); | 1598 | dir->i_sb->s_id, dir->i_ino, dentry); |
1599 | 1599 | ||
1600 | attr.ia_mode = mode; | 1600 | attr.ia_mode = mode; |
@@ -1621,7 +1621,7 @@ nfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t rdev) | |||
1621 | struct iattr attr; | 1621 | struct iattr attr; |
1622 | int status; | 1622 | int status; |
1623 | 1623 | ||
1624 | dfprintk(VFS, "NFS: mknod(%s/%ld), %pd\n", | 1624 | dfprintk(VFS, "NFS: mknod(%s/%lu), %pd\n", |
1625 | dir->i_sb->s_id, dir->i_ino, dentry); | 1625 | dir->i_sb->s_id, dir->i_ino, dentry); |
1626 | 1626 | ||
1627 | if (!new_valid_dev(rdev)) | 1627 | if (!new_valid_dev(rdev)) |
@@ -1650,7 +1650,7 @@ int nfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) | |||
1650 | struct iattr attr; | 1650 | struct iattr attr; |
1651 | int error; | 1651 | int error; |
1652 | 1652 | ||
1653 | dfprintk(VFS, "NFS: mkdir(%s/%ld), %pd\n", | 1653 | dfprintk(VFS, "NFS: mkdir(%s/%lu), %pd\n", |
1654 | dir->i_sb->s_id, dir->i_ino, dentry); | 1654 | dir->i_sb->s_id, dir->i_ino, dentry); |
1655 | 1655 | ||
1656 | attr.ia_valid = ATTR_MODE; | 1656 | attr.ia_valid = ATTR_MODE; |
@@ -1678,7 +1678,7 @@ int nfs_rmdir(struct inode *dir, struct dentry *dentry) | |||
1678 | { | 1678 | { |
1679 | int error; | 1679 | int error; |
1680 | 1680 | ||
1681 | dfprintk(VFS, "NFS: rmdir(%s/%ld), %pd\n", | 1681 | dfprintk(VFS, "NFS: rmdir(%s/%lu), %pd\n", |
1682 | dir->i_sb->s_id, dir->i_ino, dentry); | 1682 | dir->i_sb->s_id, dir->i_ino, dentry); |
1683 | 1683 | ||
1684 | trace_nfs_rmdir_enter(dir, dentry); | 1684 | trace_nfs_rmdir_enter(dir, dentry); |
@@ -1747,7 +1747,7 @@ int nfs_unlink(struct inode *dir, struct dentry *dentry) | |||
1747 | int error; | 1747 | int error; |
1748 | int need_rehash = 0; | 1748 | int need_rehash = 0; |
1749 | 1749 | ||
1750 | dfprintk(VFS, "NFS: unlink(%s/%ld, %pd)\n", dir->i_sb->s_id, | 1750 | dfprintk(VFS, "NFS: unlink(%s/%lu, %pd)\n", dir->i_sb->s_id, |
1751 | dir->i_ino, dentry); | 1751 | dir->i_ino, dentry); |
1752 | 1752 | ||
1753 | trace_nfs_unlink_enter(dir, dentry); | 1753 | trace_nfs_unlink_enter(dir, dentry); |
@@ -1798,7 +1798,7 @@ int nfs_symlink(struct inode *dir, struct dentry *dentry, const char *symname) | |||
1798 | unsigned int pathlen = strlen(symname); | 1798 | unsigned int pathlen = strlen(symname); |
1799 | int error; | 1799 | int error; |
1800 | 1800 | ||
1801 | dfprintk(VFS, "NFS: symlink(%s/%ld, %pd, %s)\n", dir->i_sb->s_id, | 1801 | dfprintk(VFS, "NFS: symlink(%s/%lu, %pd, %s)\n", dir->i_sb->s_id, |
1802 | dir->i_ino, dentry, symname); | 1802 | dir->i_ino, dentry, symname); |
1803 | 1803 | ||
1804 | if (pathlen > PAGE_SIZE) | 1804 | if (pathlen > PAGE_SIZE) |
@@ -1821,7 +1821,7 @@ int nfs_symlink(struct inode *dir, struct dentry *dentry, const char *symname) | |||
1821 | error = NFS_PROTO(dir)->symlink(dir, dentry, page, pathlen, &attr); | 1821 | error = NFS_PROTO(dir)->symlink(dir, dentry, page, pathlen, &attr); |
1822 | trace_nfs_symlink_exit(dir, dentry, error); | 1822 | trace_nfs_symlink_exit(dir, dentry, error); |
1823 | if (error != 0) { | 1823 | if (error != 0) { |
1824 | dfprintk(VFS, "NFS: symlink(%s/%ld, %pd, %s) error %d\n", | 1824 | dfprintk(VFS, "NFS: symlink(%s/%lu, %pd, %s) error %d\n", |
1825 | dir->i_sb->s_id, dir->i_ino, | 1825 | dir->i_sb->s_id, dir->i_ino, |
1826 | dentry, symname, error); | 1826 | dentry, symname, error); |
1827 | d_drop(dentry); | 1827 | d_drop(dentry); |
@@ -2304,7 +2304,7 @@ out: | |||
2304 | if (!res && (mask & MAY_EXEC) && !execute_ok(inode)) | 2304 | if (!res && (mask & MAY_EXEC) && !execute_ok(inode)) |
2305 | res = -EACCES; | 2305 | res = -EACCES; |
2306 | 2306 | ||
2307 | dfprintk(VFS, "NFS: permission(%s/%ld), mask=0x%x, res=%d\n", | 2307 | dfprintk(VFS, "NFS: permission(%s/%lu), mask=0x%x, res=%d\n", |
2308 | inode->i_sb->s_id, inode->i_ino, mask, res); | 2308 | inode->i_sb->s_id, inode->i_ino, mask, res); |
2309 | return res; | 2309 | return res; |
2310 | out_notsup: | 2310 | out_notsup: |
diff --git a/fs/nfs/direct.c b/fs/nfs/direct.c index d71d66c9e0a1..049b3408fb9d 100644 --- a/fs/nfs/direct.c +++ b/fs/nfs/direct.c | |||
@@ -237,9 +237,9 @@ static void nfs_direct_complete(struct nfs_direct_req *dreq) | |||
237 | 237 | ||
238 | static void nfs_direct_readpage_release(struct nfs_page *req) | 238 | static void nfs_direct_readpage_release(struct nfs_page *req) |
239 | { | 239 | { |
240 | dprintk("NFS: direct read done (%s/%lld %d@%lld)\n", | 240 | dprintk("NFS: direct read done (%s/%llu %d@%lld)\n", |
241 | req->wb_context->dentry->d_inode->i_sb->s_id, | 241 | req->wb_context->dentry->d_inode->i_sb->s_id, |
242 | (long long)NFS_FILEID(req->wb_context->dentry->d_inode), | 242 | (unsigned long long)NFS_FILEID(req->wb_context->dentry->d_inode), |
243 | req->wb_bytes, | 243 | req->wb_bytes, |
244 | (long long)req_offset(req)); | 244 | (long long)req_offset(req)); |
245 | nfs_release_request(req); | 245 | nfs_release_request(req); |
diff --git a/fs/nfs/file.c b/fs/nfs/file.c index e2fcacf07de3..5bb790a69c71 100644 --- a/fs/nfs/file.c +++ b/fs/nfs/file.c | |||
@@ -354,7 +354,7 @@ static int nfs_write_begin(struct file *file, struct address_space *mapping, | |||
354 | struct page *page; | 354 | struct page *page; |
355 | int once_thru = 0; | 355 | int once_thru = 0; |
356 | 356 | ||
357 | dfprintk(PAGECACHE, "NFS: write_begin(%pD2(%ld), %u@%lld)\n", | 357 | dfprintk(PAGECACHE, "NFS: write_begin(%pD2(%lu), %u@%lld)\n", |
358 | file, mapping->host->i_ino, len, (long long) pos); | 358 | file, mapping->host->i_ino, len, (long long) pos); |
359 | 359 | ||
360 | start: | 360 | start: |
@@ -395,7 +395,7 @@ static int nfs_write_end(struct file *file, struct address_space *mapping, | |||
395 | struct nfs_open_context *ctx = nfs_file_open_context(file); | 395 | struct nfs_open_context *ctx = nfs_file_open_context(file); |
396 | int status; | 396 | int status; |
397 | 397 | ||
398 | dfprintk(PAGECACHE, "NFS: write_end(%pD2(%ld), %u@%lld)\n", | 398 | dfprintk(PAGECACHE, "NFS: write_end(%pD2(%lu), %u@%lld)\n", |
399 | file, mapping->host->i_ino, len, (long long) pos); | 399 | file, mapping->host->i_ino, len, (long long) pos); |
400 | 400 | ||
401 | /* | 401 | /* |
@@ -585,7 +585,7 @@ static int nfs_vm_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf) | |||
585 | int ret = VM_FAULT_NOPAGE; | 585 | int ret = VM_FAULT_NOPAGE; |
586 | struct address_space *mapping; | 586 | struct address_space *mapping; |
587 | 587 | ||
588 | dfprintk(PAGECACHE, "NFS: vm_page_mkwrite(%pD2(%ld), offset %lld)\n", | 588 | dfprintk(PAGECACHE, "NFS: vm_page_mkwrite(%pD2(%lu), offset %lld)\n", |
589 | filp, filp->f_mapping->host->i_ino, | 589 | filp, filp->f_mapping->host->i_ino, |
590 | (long long)page_offset(page)); | 590 | (long long)page_offset(page)); |
591 | 591 | ||
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 00ad1c2b217d..5feec233895d 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c | |||
@@ -458,9 +458,9 @@ nfs_fhget(struct super_block *sb, struct nfs_fh *fh, struct nfs_fattr *fattr, st | |||
458 | unlock_new_inode(inode); | 458 | unlock_new_inode(inode); |
459 | } else | 459 | } else |
460 | nfs_refresh_inode(inode, fattr); | 460 | nfs_refresh_inode(inode, fattr); |
461 | dprintk("NFS: nfs_fhget(%s/%Ld fh_crc=0x%08x ct=%d)\n", | 461 | dprintk("NFS: nfs_fhget(%s/%Lu fh_crc=0x%08x ct=%d)\n", |
462 | inode->i_sb->s_id, | 462 | inode->i_sb->s_id, |
463 | (long long)NFS_FILEID(inode), | 463 | (unsigned long long)NFS_FILEID(inode), |
464 | nfs_display_fhandle_hash(fh), | 464 | nfs_display_fhandle_hash(fh), |
465 | atomic_read(&inode->i_count)); | 465 | atomic_read(&inode->i_count)); |
466 | 466 | ||
@@ -870,8 +870,8 @@ __nfs_revalidate_inode(struct nfs_server *server, struct inode *inode) | |||
870 | struct nfs_fattr *fattr = NULL; | 870 | struct nfs_fattr *fattr = NULL; |
871 | struct nfs_inode *nfsi = NFS_I(inode); | 871 | struct nfs_inode *nfsi = NFS_I(inode); |
872 | 872 | ||
873 | dfprintk(PAGECACHE, "NFS: revalidating (%s/%Ld)\n", | 873 | dfprintk(PAGECACHE, "NFS: revalidating (%s/%Lu)\n", |
874 | inode->i_sb->s_id, (long long)NFS_FILEID(inode)); | 874 | inode->i_sb->s_id, (unsigned long long)NFS_FILEID(inode)); |
875 | 875 | ||
876 | trace_nfs_revalidate_inode_enter(inode); | 876 | trace_nfs_revalidate_inode_enter(inode); |
877 | 877 | ||
@@ -895,9 +895,9 @@ __nfs_revalidate_inode(struct nfs_server *server, struct inode *inode) | |||
895 | 895 | ||
896 | status = NFS_PROTO(inode)->getattr(server, NFS_FH(inode), fattr, label); | 896 | status = NFS_PROTO(inode)->getattr(server, NFS_FH(inode), fattr, label); |
897 | if (status != 0) { | 897 | if (status != 0) { |
898 | dfprintk(PAGECACHE, "nfs_revalidate_inode: (%s/%Ld) getattr failed, error=%d\n", | 898 | dfprintk(PAGECACHE, "nfs_revalidate_inode: (%s/%Lu) getattr failed, error=%d\n", |
899 | inode->i_sb->s_id, | 899 | inode->i_sb->s_id, |
900 | (long long)NFS_FILEID(inode), status); | 900 | (unsigned long long)NFS_FILEID(inode), status); |
901 | if (status == -ESTALE) { | 901 | if (status == -ESTALE) { |
902 | nfs_zap_caches(inode); | 902 | nfs_zap_caches(inode); |
903 | if (!S_ISDIR(inode->i_mode)) | 903 | if (!S_ISDIR(inode->i_mode)) |
@@ -908,9 +908,9 @@ __nfs_revalidate_inode(struct nfs_server *server, struct inode *inode) | |||
908 | 908 | ||
909 | status = nfs_refresh_inode(inode, fattr); | 909 | status = nfs_refresh_inode(inode, fattr); |
910 | if (status) { | 910 | if (status) { |
911 | dfprintk(PAGECACHE, "nfs_revalidate_inode: (%s/%Ld) refresh failed, error=%d\n", | 911 | dfprintk(PAGECACHE, "nfs_revalidate_inode: (%s/%Lu) refresh failed, error=%d\n", |
912 | inode->i_sb->s_id, | 912 | inode->i_sb->s_id, |
913 | (long long)NFS_FILEID(inode), status); | 913 | (unsigned long long)NFS_FILEID(inode), status); |
914 | goto err_out; | 914 | goto err_out; |
915 | } | 915 | } |
916 | 916 | ||
@@ -919,9 +919,9 @@ __nfs_revalidate_inode(struct nfs_server *server, struct inode *inode) | |||
919 | 919 | ||
920 | nfs_setsecurity(inode, fattr, label); | 920 | nfs_setsecurity(inode, fattr, label); |
921 | 921 | ||
922 | dfprintk(PAGECACHE, "NFS: (%s/%Ld) revalidation complete\n", | 922 | dfprintk(PAGECACHE, "NFS: (%s/%Lu) revalidation complete\n", |
923 | inode->i_sb->s_id, | 923 | inode->i_sb->s_id, |
924 | (long long)NFS_FILEID(inode)); | 924 | (unsigned long long)NFS_FILEID(inode)); |
925 | 925 | ||
926 | err_out: | 926 | err_out: |
927 | nfs4_label_free(label); | 927 | nfs4_label_free(label); |
@@ -985,8 +985,9 @@ static int nfs_invalidate_mapping(struct inode *inode, struct address_space *map | |||
985 | nfs_inc_stats(inode, NFSIOS_DATAINVALIDATE); | 985 | nfs_inc_stats(inode, NFSIOS_DATAINVALIDATE); |
986 | nfs_fscache_wait_on_invalidate(inode); | 986 | nfs_fscache_wait_on_invalidate(inode); |
987 | 987 | ||
988 | dfprintk(PAGECACHE, "NFS: (%s/%Ld) data cache invalidated\n", | 988 | dfprintk(PAGECACHE, "NFS: (%s/%Lu) data cache invalidated\n", |
989 | inode->i_sb->s_id, (long long)NFS_FILEID(inode)); | 989 | inode->i_sb->s_id, |
990 | (unsigned long long)NFS_FILEID(inode)); | ||
990 | return 0; | 991 | return 0; |
991 | } | 992 | } |
992 | 993 | ||
@@ -1434,7 +1435,7 @@ static int nfs_update_inode(struct inode *inode, struct nfs_fattr *fattr) | |||
1434 | unsigned long now = jiffies; | 1435 | unsigned long now = jiffies; |
1435 | unsigned long save_cache_validity; | 1436 | unsigned long save_cache_validity; |
1436 | 1437 | ||
1437 | dfprintk(VFS, "NFS: %s(%s/%ld fh_crc=0x%08x ct=%d info=0x%x)\n", | 1438 | dfprintk(VFS, "NFS: %s(%s/%lu fh_crc=0x%08x ct=%d info=0x%x)\n", |
1438 | __func__, inode->i_sb->s_id, inode->i_ino, | 1439 | __func__, inode->i_sb->s_id, inode->i_ino, |
1439 | nfs_display_fhandle_hash(NFS_FH(inode)), | 1440 | nfs_display_fhandle_hash(NFS_FH(inode)), |
1440 | atomic_read(&inode->i_count), fattr->valid); | 1441 | atomic_read(&inode->i_count), fattr->valid); |
@@ -1455,7 +1456,7 @@ static int nfs_update_inode(struct inode *inode, struct nfs_fattr *fattr) | |||
1455 | /* | 1456 | /* |
1456 | * Big trouble! The inode has become a different object. | 1457 | * Big trouble! The inode has become a different object. |
1457 | */ | 1458 | */ |
1458 | printk(KERN_DEBUG "NFS: %s: inode %ld mode changed, %07o to %07o\n", | 1459 | printk(KERN_DEBUG "NFS: %s: inode %lu mode changed, %07o to %07o\n", |
1459 | __func__, inode->i_ino, inode->i_mode, fattr->mode); | 1460 | __func__, inode->i_ino, inode->i_mode, fattr->mode); |
1460 | goto out_err; | 1461 | goto out_err; |
1461 | } | 1462 | } |
diff --git a/fs/nfs/nfs3acl.c b/fs/nfs/nfs3acl.c index 4a1aafba6a20..34e918d265b0 100644 --- a/fs/nfs/nfs3acl.c +++ b/fs/nfs/nfs3acl.c | |||
@@ -130,7 +130,7 @@ static void __nfs3_forget_cached_acls(struct nfs_inode *nfsi) | |||
130 | 130 | ||
131 | void nfs3_forget_cached_acls(struct inode *inode) | 131 | void nfs3_forget_cached_acls(struct inode *inode) |
132 | { | 132 | { |
133 | dprintk("NFS: nfs3_forget_cached_acls(%s/%ld)\n", inode->i_sb->s_id, | 133 | dprintk("NFS: nfs3_forget_cached_acls(%s/%lu)\n", inode->i_sb->s_id, |
134 | inode->i_ino); | 134 | inode->i_ino); |
135 | spin_lock(&inode->i_lock); | 135 | spin_lock(&inode->i_lock); |
136 | __nfs3_forget_cached_acls(NFS_I(inode)); | 136 | __nfs3_forget_cached_acls(NFS_I(inode)); |
@@ -161,7 +161,7 @@ static struct posix_acl *nfs3_get_cached_acl(struct inode *inode, int type) | |||
161 | acl = posix_acl_dup(acl); | 161 | acl = posix_acl_dup(acl); |
162 | out: | 162 | out: |
163 | spin_unlock(&inode->i_lock); | 163 | spin_unlock(&inode->i_lock); |
164 | dprintk("NFS: nfs3_get_cached_acl(%s/%ld, %d) = %p\n", inode->i_sb->s_id, | 164 | dprintk("NFS: nfs3_get_cached_acl(%s/%lu, %d) = %p\n", inode->i_sb->s_id, |
165 | inode->i_ino, type, acl); | 165 | inode->i_ino, type, acl); |
166 | return acl; | 166 | return acl; |
167 | } | 167 | } |
diff --git a/fs/nfs/nfs4filelayout.c b/fs/nfs/nfs4filelayout.c index b86464ba25e1..0a93e798df3a 100644 --- a/fs/nfs/nfs4filelayout.c +++ b/fs/nfs/nfs4filelayout.c | |||
@@ -91,10 +91,10 @@ static void filelayout_reset_write(struct nfs_write_data *data) | |||
91 | 91 | ||
92 | if (!test_and_set_bit(NFS_IOHDR_REDO, &hdr->flags)) { | 92 | if (!test_and_set_bit(NFS_IOHDR_REDO, &hdr->flags)) { |
93 | dprintk("%s Reset task %5u for i/o through MDS " | 93 | dprintk("%s Reset task %5u for i/o through MDS " |
94 | "(req %s/%lld, %u bytes @ offset %llu)\n", __func__, | 94 | "(req %s/%llu, %u bytes @ offset %llu)\n", __func__, |
95 | data->task.tk_pid, | 95 | data->task.tk_pid, |
96 | hdr->inode->i_sb->s_id, | 96 | hdr->inode->i_sb->s_id, |
97 | (long long)NFS_FILEID(hdr->inode), | 97 | (unsigned long long)NFS_FILEID(hdr->inode), |
98 | data->args.count, | 98 | data->args.count, |
99 | (unsigned long long)data->args.offset); | 99 | (unsigned long long)data->args.offset); |
100 | 100 | ||
@@ -112,10 +112,10 @@ static void filelayout_reset_read(struct nfs_read_data *data) | |||
112 | 112 | ||
113 | if (!test_and_set_bit(NFS_IOHDR_REDO, &hdr->flags)) { | 113 | if (!test_and_set_bit(NFS_IOHDR_REDO, &hdr->flags)) { |
114 | dprintk("%s Reset task %5u for i/o through MDS " | 114 | dprintk("%s Reset task %5u for i/o through MDS " |
115 | "(req %s/%lld, %u bytes @ offset %llu)\n", __func__, | 115 | "(req %s/%llu, %u bytes @ offset %llu)\n", __func__, |
116 | data->task.tk_pid, | 116 | data->task.tk_pid, |
117 | hdr->inode->i_sb->s_id, | 117 | hdr->inode->i_sb->s_id, |
118 | (long long)NFS_FILEID(hdr->inode), | 118 | (unsigned long long)NFS_FILEID(hdr->inode), |
119 | data->args.count, | 119 | data->args.count, |
120 | (unsigned long long)data->args.offset); | 120 | (unsigned long long)data->args.offset); |
121 | 121 | ||
diff --git a/fs/nfs/read.c b/fs/nfs/read.c index 31db5c366b81..411aedda14bb 100644 --- a/fs/nfs/read.c +++ b/fs/nfs/read.c | |||
@@ -163,9 +163,9 @@ static void nfs_readpage_release(struct nfs_page *req) | |||
163 | 163 | ||
164 | unlock_page(req->wb_page); | 164 | unlock_page(req->wb_page); |
165 | 165 | ||
166 | dprintk("NFS: read done (%s/%Ld %d@%Ld)\n", | 166 | dprintk("NFS: read done (%s/%Lu %d@%Ld)\n", |
167 | req->wb_context->dentry->d_inode->i_sb->s_id, | 167 | req->wb_context->dentry->d_inode->i_sb->s_id, |
168 | (long long)NFS_FILEID(req->wb_context->dentry->d_inode), | 168 | (unsigned long long)NFS_FILEID(req->wb_context->dentry->d_inode), |
169 | req->wb_bytes, | 169 | req->wb_bytes, |
170 | (long long)req_offset(req)); | 170 | (long long)req_offset(req)); |
171 | nfs_release_request(req); | 171 | nfs_release_request(req); |
@@ -228,11 +228,11 @@ int nfs_initiate_read(struct rpc_clnt *clnt, | |||
228 | /* Set up the initial task struct. */ | 228 | /* Set up the initial task struct. */ |
229 | NFS_PROTO(inode)->read_setup(data, &msg); | 229 | NFS_PROTO(inode)->read_setup(data, &msg); |
230 | 230 | ||
231 | dprintk("NFS: %5u initiated read call (req %s/%lld, %u bytes @ " | 231 | dprintk("NFS: %5u initiated read call (req %s/%llu, %u bytes @ " |
232 | "offset %llu)\n", | 232 | "offset %llu)\n", |
233 | data->task.tk_pid, | 233 | data->task.tk_pid, |
234 | inode->i_sb->s_id, | 234 | inode->i_sb->s_id, |
235 | (long long)NFS_FILEID(inode), | 235 | (unsigned long long)NFS_FILEID(inode), |
236 | data->args.count, | 236 | data->args.count, |
237 | (unsigned long long)data->args.offset); | 237 | (unsigned long long)data->args.offset); |
238 | 238 | ||
@@ -630,9 +630,9 @@ int nfs_readpages(struct file *filp, struct address_space *mapping, | |||
630 | unsigned long npages; | 630 | unsigned long npages; |
631 | int ret = -ESTALE; | 631 | int ret = -ESTALE; |
632 | 632 | ||
633 | dprintk("NFS: nfs_readpages (%s/%Ld %d)\n", | 633 | dprintk("NFS: nfs_readpages (%s/%Lu %d)\n", |
634 | inode->i_sb->s_id, | 634 | inode->i_sb->s_id, |
635 | (long long)NFS_FILEID(inode), | 635 | (unsigned long long)NFS_FILEID(inode), |
636 | nr_pages); | 636 | nr_pages); |
637 | nfs_inc_stats(inode, NFSIOS_VFSREADPAGES); | 637 | nfs_inc_stats(inode, NFSIOS_VFSREADPAGES); |
638 | 638 | ||
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index c1d548211c31..77a00c66c7d9 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c | |||
@@ -1013,10 +1013,10 @@ int nfs_initiate_write(struct rpc_clnt *clnt, | |||
1013 | NFS_PROTO(inode)->write_setup(data, &msg); | 1013 | NFS_PROTO(inode)->write_setup(data, &msg); |
1014 | 1014 | ||
1015 | dprintk("NFS: %5u initiated write call " | 1015 | dprintk("NFS: %5u initiated write call " |
1016 | "(req %s/%lld, %u bytes @ offset %llu)\n", | 1016 | "(req %s/%llu, %u bytes @ offset %llu)\n", |
1017 | data->task.tk_pid, | 1017 | data->task.tk_pid, |
1018 | inode->i_sb->s_id, | 1018 | inode->i_sb->s_id, |
1019 | (long long)NFS_FILEID(inode), | 1019 | (unsigned long long)NFS_FILEID(inode), |
1020 | data->args.count, | 1020 | data->args.count, |
1021 | (unsigned long long)data->args.offset); | 1021 | (unsigned long long)data->args.offset); |
1022 | 1022 | ||
@@ -1606,9 +1606,9 @@ static void nfs_commit_release_pages(struct nfs_commit_data *data) | |||
1606 | nfs_list_remove_request(req); | 1606 | nfs_list_remove_request(req); |
1607 | nfs_clear_page_commit(req->wb_page); | 1607 | nfs_clear_page_commit(req->wb_page); |
1608 | 1608 | ||
1609 | dprintk("NFS: commit (%s/%lld %d@%lld)", | 1609 | dprintk("NFS: commit (%s/%llu %d@%lld)", |
1610 | req->wb_context->dentry->d_sb->s_id, | 1610 | req->wb_context->dentry->d_sb->s_id, |
1611 | (long long)NFS_FILEID(req->wb_context->dentry->d_inode), | 1611 | (unsigned long long)NFS_FILEID(req->wb_context->dentry->d_inode), |
1612 | req->wb_bytes, | 1612 | req->wb_bytes, |
1613 | (long long)req_offset(req)); | 1613 | (long long)req_offset(req)); |
1614 | if (status < 0) { | 1614 | if (status < 0) { |