diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2014-08-19 20:17:38 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-10-09 02:39:04 -0400 |
commit | 4b8e992392a2468f90ae8b5b9f3e95c5f54a61c9 (patch) | |
tree | 9da39bc68079ecfc83bda50f1fada069948f8409 /fs/9p | |
parent | 35c265e008b2c4e56765f07d47750d13f95a55c1 (diff) |
9p: switch to %p[dD]
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/9p')
-rw-r--r-- | fs/9p/fid.c | 4 | ||||
-rw-r--r-- | fs/9p/vfs_addr.c | 4 | ||||
-rw-r--r-- | fs/9p/vfs_dentry.c | 8 | ||||
-rw-r--r-- | fs/9p/vfs_dir.c | 4 | ||||
-rw-r--r-- | fs/9p/vfs_file.c | 8 | ||||
-rw-r--r-- | fs/9p/vfs_inode.c | 32 | ||||
-rw-r--r-- | fs/9p/vfs_inode_dotl.c | 8 |
7 files changed, 34 insertions, 34 deletions
diff --git a/fs/9p/fid.c b/fs/9p/fid.c index d51ec9fafcc8..47db55aee7f2 100644 --- a/fs/9p/fid.c +++ b/fs/9p/fid.c | |||
@@ -65,8 +65,8 @@ static struct p9_fid *v9fs_fid_find(struct dentry *dentry, kuid_t uid, int any) | |||
65 | { | 65 | { |
66 | struct p9_fid *fid, *ret; | 66 | struct p9_fid *fid, *ret; |
67 | 67 | ||
68 | p9_debug(P9_DEBUG_VFS, " dentry: %s (%p) uid %d any %d\n", | 68 | p9_debug(P9_DEBUG_VFS, " dentry: %pd (%p) uid %d any %d\n", |
69 | dentry->d_name.name, dentry, from_kuid(&init_user_ns, uid), | 69 | dentry, dentry, from_kuid(&init_user_ns, uid), |
70 | any); | 70 | any); |
71 | ret = NULL; | 71 | ret = NULL; |
72 | /* we'll recheck under lock if there's anything to look in */ | 72 | /* we'll recheck under lock if there's anything to look in */ |
diff --git a/fs/9p/vfs_addr.c b/fs/9p/vfs_addr.c index cc1cfae726b3..eb14e055ea83 100644 --- a/fs/9p/vfs_addr.c +++ b/fs/9p/vfs_addr.c | |||
@@ -266,8 +266,8 @@ v9fs_direct_IO(int rw, struct kiocb *iocb, struct iov_iter *iter, loff_t pos) | |||
266 | * Now that we do caching with cache mode enabled, We need | 266 | * Now that we do caching with cache mode enabled, We need |
267 | * to support direct IO | 267 | * to support direct IO |
268 | */ | 268 | */ |
269 | p9_debug(P9_DEBUG_VFS, "v9fs_direct_IO: v9fs_direct_IO (%s) off/no(%lld/%lu) EINVAL\n", | 269 | p9_debug(P9_DEBUG_VFS, "v9fs_direct_IO: v9fs_direct_IO (%pD) off/no(%lld/%lu) EINVAL\n", |
270 | iocb->ki_filp->f_path.dentry->d_name.name, | 270 | iocb->ki_filp, |
271 | (long long)pos, iter->nr_segs); | 271 | (long long)pos, iter->nr_segs); |
272 | 272 | ||
273 | return -EINVAL; | 273 | return -EINVAL; |
diff --git a/fs/9p/vfs_dentry.c b/fs/9p/vfs_dentry.c index b03dd23feda8..a345b2d659cc 100644 --- a/fs/9p/vfs_dentry.c +++ b/fs/9p/vfs_dentry.c | |||
@@ -49,8 +49,8 @@ | |||
49 | */ | 49 | */ |
50 | static int v9fs_cached_dentry_delete(const struct dentry *dentry) | 50 | static int v9fs_cached_dentry_delete(const struct dentry *dentry) |
51 | { | 51 | { |
52 | p9_debug(P9_DEBUG_VFS, " dentry: %s (%p)\n", | 52 | p9_debug(P9_DEBUG_VFS, " dentry: %pd (%p)\n", |
53 | dentry->d_name.name, dentry); | 53 | dentry, dentry); |
54 | 54 | ||
55 | /* Don't cache negative dentries */ | 55 | /* Don't cache negative dentries */ |
56 | if (!dentry->d_inode) | 56 | if (!dentry->d_inode) |
@@ -67,8 +67,8 @@ static int v9fs_cached_dentry_delete(const struct dentry *dentry) | |||
67 | static void v9fs_dentry_release(struct dentry *dentry) | 67 | static void v9fs_dentry_release(struct dentry *dentry) |
68 | { | 68 | { |
69 | struct hlist_node *p, *n; | 69 | struct hlist_node *p, *n; |
70 | p9_debug(P9_DEBUG_VFS, " dentry: %s (%p)\n", | 70 | p9_debug(P9_DEBUG_VFS, " dentry: %pd (%p)\n", |
71 | dentry->d_name.name, dentry); | 71 | dentry, dentry); |
72 | hlist_for_each_safe(p, n, (struct hlist_head *)&dentry->d_fsdata) | 72 | hlist_for_each_safe(p, n, (struct hlist_head *)&dentry->d_fsdata) |
73 | p9_client_clunk(hlist_entry(p, struct p9_fid, dlist)); | 73 | p9_client_clunk(hlist_entry(p, struct p9_fid, dlist)); |
74 | dentry->d_fsdata = NULL; | 74 | dentry->d_fsdata = NULL; |
diff --git a/fs/9p/vfs_dir.c b/fs/9p/vfs_dir.c index 0b3bfa303dda..4f1151088ebe 100644 --- a/fs/9p/vfs_dir.c +++ b/fs/9p/vfs_dir.c | |||
@@ -116,7 +116,7 @@ static int v9fs_dir_readdir(struct file *file, struct dir_context *ctx) | |||
116 | int reclen = 0; | 116 | int reclen = 0; |
117 | struct p9_rdir *rdir; | 117 | struct p9_rdir *rdir; |
118 | 118 | ||
119 | p9_debug(P9_DEBUG_VFS, "name %s\n", file->f_path.dentry->d_name.name); | 119 | p9_debug(P9_DEBUG_VFS, "name %pD\n", file); |
120 | fid = file->private_data; | 120 | fid = file->private_data; |
121 | 121 | ||
122 | buflen = fid->clnt->msize - P9_IOHDRSZ; | 122 | buflen = fid->clnt->msize - P9_IOHDRSZ; |
@@ -172,7 +172,7 @@ static int v9fs_dir_readdir_dotl(struct file *file, struct dir_context *ctx) | |||
172 | struct p9_rdir *rdir; | 172 | struct p9_rdir *rdir; |
173 | struct p9_dirent curdirent; | 173 | struct p9_dirent curdirent; |
174 | 174 | ||
175 | p9_debug(P9_DEBUG_VFS, "name %s\n", file->f_path.dentry->d_name.name); | 175 | p9_debug(P9_DEBUG_VFS, "name %pD\n", file); |
176 | fid = file->private_data; | 176 | fid = file->private_data; |
177 | 177 | ||
178 | buflen = fid->clnt->msize - P9_READDIRHDRSZ; | 178 | buflen = fid->clnt->msize - P9_READDIRHDRSZ; |
diff --git a/fs/9p/vfs_file.c b/fs/9p/vfs_file.c index 520c11c2dcca..5594505e6e73 100644 --- a/fs/9p/vfs_file.c +++ b/fs/9p/vfs_file.c | |||
@@ -301,8 +301,8 @@ static int v9fs_file_lock_dotl(struct file *filp, int cmd, struct file_lock *fl) | |||
301 | struct inode *inode = file_inode(filp); | 301 | struct inode *inode = file_inode(filp); |
302 | int ret = -ENOLCK; | 302 | int ret = -ENOLCK; |
303 | 303 | ||
304 | p9_debug(P9_DEBUG_VFS, "filp: %p cmd:%d lock: %p name: %s\n", | 304 | p9_debug(P9_DEBUG_VFS, "filp: %p cmd:%d lock: %p name: %pD\n", |
305 | filp, cmd, fl, filp->f_path.dentry->d_name.name); | 305 | filp, cmd, fl, filp); |
306 | 306 | ||
307 | /* No mandatory locks */ | 307 | /* No mandatory locks */ |
308 | if (__mandatory_lock(inode) && fl->fl_type != F_UNLCK) | 308 | if (__mandatory_lock(inode) && fl->fl_type != F_UNLCK) |
@@ -337,8 +337,8 @@ static int v9fs_file_flock_dotl(struct file *filp, int cmd, | |||
337 | struct inode *inode = file_inode(filp); | 337 | struct inode *inode = file_inode(filp); |
338 | int ret = -ENOLCK; | 338 | int ret = -ENOLCK; |
339 | 339 | ||
340 | p9_debug(P9_DEBUG_VFS, "filp: %p cmd:%d lock: %p name: %s\n", | 340 | p9_debug(P9_DEBUG_VFS, "filp: %p cmd:%d lock: %p name: %pD\n", |
341 | filp, cmd, fl, filp->f_path.dentry->d_name.name); | 341 | filp, cmd, fl, filp); |
342 | 342 | ||
343 | /* No mandatory locks */ | 343 | /* No mandatory locks */ |
344 | if (__mandatory_lock(inode) && fl->fl_type != F_UNLCK) | 344 | if (__mandatory_lock(inode) && fl->fl_type != F_UNLCK) |
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index 7fa4f7a7653d..296482fc77a9 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c | |||
@@ -648,7 +648,7 @@ v9fs_create(struct v9fs_session_info *v9ses, struct inode *dir, | |||
648 | struct p9_fid *dfid, *ofid, *fid; | 648 | struct p9_fid *dfid, *ofid, *fid; |
649 | struct inode *inode; | 649 | struct inode *inode; |
650 | 650 | ||
651 | p9_debug(P9_DEBUG_VFS, "name %s\n", dentry->d_name.name); | 651 | p9_debug(P9_DEBUG_VFS, "name %pd\n", dentry); |
652 | 652 | ||
653 | err = 0; | 653 | err = 0; |
654 | ofid = NULL; | 654 | ofid = NULL; |
@@ -755,7 +755,7 @@ static int v9fs_vfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode | |||
755 | struct p9_fid *fid; | 755 | struct p9_fid *fid; |
756 | struct v9fs_session_info *v9ses; | 756 | struct v9fs_session_info *v9ses; |
757 | 757 | ||
758 | p9_debug(P9_DEBUG_VFS, "name %s\n", dentry->d_name.name); | 758 | p9_debug(P9_DEBUG_VFS, "name %pd\n", dentry); |
759 | err = 0; | 759 | err = 0; |
760 | v9ses = v9fs_inode2v9ses(dir); | 760 | v9ses = v9fs_inode2v9ses(dir); |
761 | perm = unixmode2p9mode(v9ses, mode | S_IFDIR); | 761 | perm = unixmode2p9mode(v9ses, mode | S_IFDIR); |
@@ -791,8 +791,8 @@ struct dentry *v9fs_vfs_lookup(struct inode *dir, struct dentry *dentry, | |||
791 | struct inode *inode; | 791 | struct inode *inode; |
792 | char *name; | 792 | char *name; |
793 | 793 | ||
794 | p9_debug(P9_DEBUG_VFS, "dir: %p dentry: (%s) %p flags: %x\n", | 794 | p9_debug(P9_DEBUG_VFS, "dir: %p dentry: (%pd) %p flags: %x\n", |
795 | dir, dentry->d_name.name, dentry, flags); | 795 | dir, dentry, dentry, flags); |
796 | 796 | ||
797 | if (dentry->d_name.len > NAME_MAX) | 797 | if (dentry->d_name.len > NAME_MAX) |
798 | return ERR_PTR(-ENAMETOOLONG); | 798 | return ERR_PTR(-ENAMETOOLONG); |
@@ -1239,7 +1239,7 @@ static int v9fs_readlink(struct dentry *dentry, char *buffer, int buflen) | |||
1239 | struct p9_fid *fid; | 1239 | struct p9_fid *fid; |
1240 | struct p9_wstat *st; | 1240 | struct p9_wstat *st; |
1241 | 1241 | ||
1242 | p9_debug(P9_DEBUG_VFS, " %s\n", dentry->d_name.name); | 1242 | p9_debug(P9_DEBUG_VFS, " %pd\n", dentry); |
1243 | retval = -EPERM; | 1243 | retval = -EPERM; |
1244 | v9ses = v9fs_dentry2v9ses(dentry); | 1244 | v9ses = v9fs_dentry2v9ses(dentry); |
1245 | fid = v9fs_fid_lookup(dentry); | 1245 | fid = v9fs_fid_lookup(dentry); |
@@ -1262,8 +1262,8 @@ static int v9fs_readlink(struct dentry *dentry, char *buffer, int buflen) | |||
1262 | retval = min(strlen(st->extension)+1, (size_t)buflen); | 1262 | retval = min(strlen(st->extension)+1, (size_t)buflen); |
1263 | memcpy(buffer, st->extension, retval); | 1263 | memcpy(buffer, st->extension, retval); |
1264 | 1264 | ||
1265 | p9_debug(P9_DEBUG_VFS, "%s -> %s (%.*s)\n", | 1265 | p9_debug(P9_DEBUG_VFS, "%pd -> %s (%.*s)\n", |
1266 | dentry->d_name.name, st->extension, buflen, buffer); | 1266 | dentry, st->extension, buflen, buffer); |
1267 | 1267 | ||
1268 | done: | 1268 | done: |
1269 | p9stat_free(st); | 1269 | p9stat_free(st); |
@@ -1283,7 +1283,7 @@ static void *v9fs_vfs_follow_link(struct dentry *dentry, struct nameidata *nd) | |||
1283 | int len = 0; | 1283 | int len = 0; |
1284 | char *link = __getname(); | 1284 | char *link = __getname(); |
1285 | 1285 | ||
1286 | p9_debug(P9_DEBUG_VFS, "%s\n", dentry->d_name.name); | 1286 | p9_debug(P9_DEBUG_VFS, "%pd\n", dentry); |
1287 | 1287 | ||
1288 | if (!link) | 1288 | if (!link) |
1289 | link = ERR_PTR(-ENOMEM); | 1289 | link = ERR_PTR(-ENOMEM); |
@@ -1314,8 +1314,8 @@ v9fs_vfs_put_link(struct dentry *dentry, struct nameidata *nd, void *p) | |||
1314 | { | 1314 | { |
1315 | char *s = nd_get_link(nd); | 1315 | char *s = nd_get_link(nd); |
1316 | 1316 | ||
1317 | p9_debug(P9_DEBUG_VFS, " %s %s\n", | 1317 | p9_debug(P9_DEBUG_VFS, " %pd %s\n", |
1318 | dentry->d_name.name, IS_ERR(s) ? "<error>" : s); | 1318 | dentry, IS_ERR(s) ? "<error>" : s); |
1319 | if (!IS_ERR(s)) | 1319 | if (!IS_ERR(s)) |
1320 | __putname(s); | 1320 | __putname(s); |
1321 | } | 1321 | } |
@@ -1364,8 +1364,8 @@ static int v9fs_vfs_mkspecial(struct inode *dir, struct dentry *dentry, | |||
1364 | static int | 1364 | static int |
1365 | v9fs_vfs_symlink(struct inode *dir, struct dentry *dentry, const char *symname) | 1365 | v9fs_vfs_symlink(struct inode *dir, struct dentry *dentry, const char *symname) |
1366 | { | 1366 | { |
1367 | p9_debug(P9_DEBUG_VFS, " %lu,%s,%s\n", | 1367 | p9_debug(P9_DEBUG_VFS, " %lu,%pd,%s\n", |
1368 | dir->i_ino, dentry->d_name.name, symname); | 1368 | dir->i_ino, dentry, symname); |
1369 | 1369 | ||
1370 | return v9fs_vfs_mkspecial(dir, dentry, P9_DMSYMLINK, symname); | 1370 | return v9fs_vfs_mkspecial(dir, dentry, P9_DMSYMLINK, symname); |
1371 | } | 1371 | } |
@@ -1386,8 +1386,8 @@ v9fs_vfs_link(struct dentry *old_dentry, struct inode *dir, | |||
1386 | char *name; | 1386 | char *name; |
1387 | struct p9_fid *oldfid; | 1387 | struct p9_fid *oldfid; |
1388 | 1388 | ||
1389 | p9_debug(P9_DEBUG_VFS, " %lu,%s,%s\n", | 1389 | p9_debug(P9_DEBUG_VFS, " %lu,%pd,%pd\n", |
1390 | dir->i_ino, dentry->d_name.name, old_dentry->d_name.name); | 1390 | dir->i_ino, dentry, old_dentry); |
1391 | 1391 | ||
1392 | oldfid = v9fs_fid_clone(old_dentry); | 1392 | oldfid = v9fs_fid_clone(old_dentry); |
1393 | if (IS_ERR(oldfid)) | 1393 | if (IS_ERR(oldfid)) |
@@ -1428,8 +1428,8 @@ v9fs_vfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t rde | |||
1428 | char *name; | 1428 | char *name; |
1429 | u32 perm; | 1429 | u32 perm; |
1430 | 1430 | ||
1431 | p9_debug(P9_DEBUG_VFS, " %lu,%s mode: %hx MAJOR: %u MINOR: %u\n", | 1431 | p9_debug(P9_DEBUG_VFS, " %lu,%pd mode: %hx MAJOR: %u MINOR: %u\n", |
1432 | dir->i_ino, dentry->d_name.name, mode, | 1432 | dir->i_ino, dentry, mode, |
1433 | MAJOR(rdev), MINOR(rdev)); | 1433 | MAJOR(rdev), MINOR(rdev)); |
1434 | 1434 | ||
1435 | if (!new_valid_dev(rdev)) | 1435 | if (!new_valid_dev(rdev)) |
diff --git a/fs/9p/vfs_inode_dotl.c b/fs/9p/vfs_inode_dotl.c index 1fa85aae24df..02b64f4e576a 100644 --- a/fs/9p/vfs_inode_dotl.c +++ b/fs/9p/vfs_inode_dotl.c | |||
@@ -393,7 +393,7 @@ static int v9fs_vfs_mkdir_dotl(struct inode *dir, | |||
393 | struct dentry *dir_dentry; | 393 | struct dentry *dir_dentry; |
394 | struct posix_acl *dacl = NULL, *pacl = NULL; | 394 | struct posix_acl *dacl = NULL, *pacl = NULL; |
395 | 395 | ||
396 | p9_debug(P9_DEBUG_VFS, "name %s\n", dentry->d_name.name); | 396 | p9_debug(P9_DEBUG_VFS, "name %pd\n", dentry); |
397 | err = 0; | 397 | err = 0; |
398 | v9ses = v9fs_inode2v9ses(dir); | 398 | v9ses = v9fs_inode2v9ses(dir); |
399 | 399 | ||
@@ -767,8 +767,8 @@ v9fs_vfs_link_dotl(struct dentry *old_dentry, struct inode *dir, | |||
767 | struct p9_fid *dfid, *oldfid; | 767 | struct p9_fid *dfid, *oldfid; |
768 | struct v9fs_session_info *v9ses; | 768 | struct v9fs_session_info *v9ses; |
769 | 769 | ||
770 | p9_debug(P9_DEBUG_VFS, "dir ino: %lu, old_name: %s, new_name: %s\n", | 770 | p9_debug(P9_DEBUG_VFS, "dir ino: %lu, old_name: %pd, new_name: %pd\n", |
771 | dir->i_ino, old_dentry->d_name.name, dentry->d_name.name); | 771 | dir->i_ino, old_dentry, dentry); |
772 | 772 | ||
773 | v9ses = v9fs_inode2v9ses(dir); | 773 | v9ses = v9fs_inode2v9ses(dir); |
774 | dir_dentry = dentry->d_parent; | 774 | dir_dentry = dentry->d_parent; |
@@ -917,7 +917,7 @@ v9fs_vfs_follow_link_dotl(struct dentry *dentry, struct nameidata *nd) | |||
917 | char *link = __getname(); | 917 | char *link = __getname(); |
918 | char *target; | 918 | char *target; |
919 | 919 | ||
920 | p9_debug(P9_DEBUG_VFS, "%s\n", dentry->d_name.name); | 920 | p9_debug(P9_DEBUG_VFS, "%pd\n", dentry); |
921 | 921 | ||
922 | if (!link) { | 922 | if (!link) { |
923 | link = ERR_PTR(-ENOMEM); | 923 | link = ERR_PTR(-ENOMEM); |