aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/write.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-09-16 10:53:17 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-10-24 23:34:50 -0400
commit6de1472f1a4a3bd912f515f29d3cf52a65a4c718 (patch)
tree3b93cfa6198d68832479f211c72a675bfb406fd9 /fs/nfs/write.c
parent48bc06e74be178968b53d339dbcb110cd2bb16ea (diff)
nfs: use %p[dD] instead of open-coded (and often racy) equivalents
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/nfs/write.c')
-rw-r--r--fs/nfs/write.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index ac1dc331ba31..c1d548211c31 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -954,10 +954,8 @@ int nfs_updatepage(struct file *file, struct page *page,
954 954
955 nfs_inc_stats(inode, NFSIOS_VFSUPDATEPAGE); 955 nfs_inc_stats(inode, NFSIOS_VFSUPDATEPAGE);
956 956
957 dprintk("NFS: nfs_updatepage(%s/%s %d@%lld)\n", 957 dprintk("NFS: nfs_updatepage(%pD2 %d@%lld)\n",
958 file->f_path.dentry->d_parent->d_name.name, 958 file, count, (long long)(page_file_offset(page) + offset));
959 file->f_path.dentry->d_name.name, count,
960 (long long)(page_file_offset(page) + offset));
961 959
962 if (nfs_can_extend_write(file, page, inode)) { 960 if (nfs_can_extend_write(file, page, inode)) {
963 count = max(count + offset, nfs_page_length(page)); 961 count = max(count + offset, nfs_page_length(page));