diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-12-20 14:07:31 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-12-20 14:07:31 -0500 |
| commit | ab65387243f47a7bc11725f733c86bf27248b326 (patch) | |
| tree | 0857b074b984b1e1dd70d1cbabe22ee618ccd498 | |
| parent | e6a997eda9f76e83b7820b6e71406a43374b9f0f (diff) | |
| parent | f1d9e4586e79e1fc7b26d1c567599a904013f199 (diff) | |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs:
fs/9p: change simple_strtol to simple_strtoul
9p: convert d_iname references to d_name.name
9p: Remove potentially bad parameter from function entry debug print.
| -rw-r--r-- | fs/9p/fid.c | 4 | ||||
| -rw-r--r-- | fs/9p/v9fs.c | 2 | ||||
| -rw-r--r-- | fs/9p/vfs_dentry.c | 9 | ||||
| -rw-r--r-- | fs/9p/vfs_inode.c | 6 |
4 files changed, 13 insertions, 8 deletions
diff --git a/fs/9p/fid.c b/fs/9p/fid.c index 3031e3233dd6..2a983d49d19c 100644 --- a/fs/9p/fid.c +++ b/fs/9p/fid.c | |||
| @@ -45,7 +45,7 @@ int v9fs_fid_add(struct dentry *dentry, struct p9_fid *fid) | |||
| 45 | struct v9fs_dentry *dent; | 45 | struct v9fs_dentry *dent; |
| 46 | 46 | ||
| 47 | P9_DPRINTK(P9_DEBUG_VFS, "fid %d dentry %s\n", | 47 | P9_DPRINTK(P9_DEBUG_VFS, "fid %d dentry %s\n", |
| 48 | fid->fid, dentry->d_iname); | 48 | fid->fid, dentry->d_name.name); |
| 49 | 49 | ||
| 50 | dent = dentry->d_fsdata; | 50 | dent = dentry->d_fsdata; |
| 51 | if (!dent) { | 51 | if (!dent) { |
| @@ -79,7 +79,7 @@ static struct p9_fid *v9fs_fid_find(struct dentry *dentry, u32 uid, int any) | |||
| 79 | struct p9_fid *fid, *ret; | 79 | struct p9_fid *fid, *ret; |
| 80 | 80 | ||
| 81 | P9_DPRINTK(P9_DEBUG_VFS, " dentry: %s (%p) uid %d any %d\n", | 81 | P9_DPRINTK(P9_DEBUG_VFS, " dentry: %s (%p) uid %d any %d\n", |
| 82 | dentry->d_iname, dentry, uid, any); | 82 | dentry->d_name.name, dentry, uid, any); |
| 83 | dent = (struct v9fs_dentry *) dentry->d_fsdata; | 83 | dent = (struct v9fs_dentry *) dentry->d_fsdata; |
| 84 | ret = NULL; | 84 | ret = NULL; |
| 85 | if (dent) { | 85 | if (dent) { |
diff --git a/fs/9p/v9fs.c b/fs/9p/v9fs.c index 24eb01087b6d..332b5ff02fec 100644 --- a/fs/9p/v9fs.c +++ b/fs/9p/v9fs.c | |||
| @@ -160,7 +160,7 @@ static int v9fs_parse_options(struct v9fs_session_info *v9ses) | |||
| 160 | v9ses->flags |= V9FS_ACCESS_ANY; | 160 | v9ses->flags |= V9FS_ACCESS_ANY; |
| 161 | else { | 161 | else { |
| 162 | v9ses->flags |= V9FS_ACCESS_SINGLE; | 162 | v9ses->flags |= V9FS_ACCESS_SINGLE; |
| 163 | v9ses->uid = simple_strtol(s, &e, 10); | 163 | v9ses->uid = simple_strtoul(s, &e, 10); |
| 164 | if (*e != '\0') | 164 | if (*e != '\0') |
| 165 | v9ses->uid = ~0; | 165 | v9ses->uid = ~0; |
| 166 | } | 166 | } |
diff --git a/fs/9p/vfs_dentry.c b/fs/9p/vfs_dentry.c index f9534f18df0a..06dcc7c4f234 100644 --- a/fs/9p/vfs_dentry.c +++ b/fs/9p/vfs_dentry.c | |||
| @@ -52,7 +52,8 @@ | |||
| 52 | 52 | ||
| 53 | static int v9fs_dentry_delete(struct dentry *dentry) | 53 | static int v9fs_dentry_delete(struct dentry *dentry) |
| 54 | { | 54 | { |
| 55 | P9_DPRINTK(P9_DEBUG_VFS, " dentry: %s (%p)\n", dentry->d_iname, dentry); | 55 | P9_DPRINTK(P9_DEBUG_VFS, " dentry: %s (%p)\n", dentry->d_name.name, |
| 56 | dentry); | ||
| 56 | 57 | ||
| 57 | return 1; | 58 | return 1; |
| 58 | } | 59 | } |
| @@ -69,7 +70,8 @@ static int v9fs_dentry_delete(struct dentry *dentry) | |||
| 69 | static int v9fs_cached_dentry_delete(struct dentry *dentry) | 70 | static int v9fs_cached_dentry_delete(struct dentry *dentry) |
| 70 | { | 71 | { |
| 71 | struct inode *inode = dentry->d_inode; | 72 | struct inode *inode = dentry->d_inode; |
| 72 | P9_DPRINTK(P9_DEBUG_VFS, " dentry: %s (%p)\n", dentry->d_iname, dentry); | 73 | P9_DPRINTK(P9_DEBUG_VFS, " dentry: %s (%p)\n", dentry->d_name.name, |
| 74 | dentry); | ||
| 73 | 75 | ||
| 74 | if(!inode) | 76 | if(!inode) |
| 75 | return 1; | 77 | return 1; |
| @@ -88,7 +90,8 @@ void v9fs_dentry_release(struct dentry *dentry) | |||
| 88 | struct v9fs_dentry *dent; | 90 | struct v9fs_dentry *dent; |
| 89 | struct p9_fid *temp, *current_fid; | 91 | struct p9_fid *temp, *current_fid; |
| 90 | 92 | ||
| 91 | P9_DPRINTK(P9_DEBUG_VFS, " dentry: %s (%p)\n", dentry->d_iname, dentry); | 93 | P9_DPRINTK(P9_DEBUG_VFS, " dentry: %s (%p)\n", dentry->d_name.name, |
| 94 | dentry); | ||
| 92 | dent = dentry->d_fsdata; | 95 | dent = dentry->d_fsdata; |
| 93 | if (dent) { | 96 | if (dent) { |
| 94 | list_for_each_entry_safe(current_fid, temp, &dent->fidlist, | 97 | list_for_each_entry_safe(current_fid, temp, &dent->fidlist, |
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index 8314d3f43b71..2dfcf5487efe 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c | |||
| @@ -963,7 +963,8 @@ static int v9fs_vfs_readlink(struct dentry *dentry, char __user * buffer, | |||
| 963 | if (buflen > PATH_MAX) | 963 | if (buflen > PATH_MAX) |
| 964 | buflen = PATH_MAX; | 964 | buflen = PATH_MAX; |
| 965 | 965 | ||
| 966 | P9_DPRINTK(P9_DEBUG_VFS, " dentry: %s (%p)\n", dentry->d_iname, dentry); | 966 | P9_DPRINTK(P9_DEBUG_VFS, " dentry: %s (%p)\n", dentry->d_name.name, |
| 967 | dentry); | ||
| 967 | 968 | ||
| 968 | retval = v9fs_readlink(dentry, link, buflen); | 969 | retval = v9fs_readlink(dentry, link, buflen); |
| 969 | 970 | ||
| @@ -1022,7 +1023,8 @@ v9fs_vfs_put_link(struct dentry *dentry, struct nameidata *nd, void *p) | |||
| 1022 | { | 1023 | { |
| 1023 | char *s = nd_get_link(nd); | 1024 | char *s = nd_get_link(nd); |
| 1024 | 1025 | ||
| 1025 | P9_DPRINTK(P9_DEBUG_VFS, " %s %s\n", dentry->d_name.name, s); | 1026 | P9_DPRINTK(P9_DEBUG_VFS, " %s %s\n", dentry->d_name.name, |
| 1027 | IS_ERR(s) ? "<error>" : s); | ||
| 1026 | if (!IS_ERR(s)) | 1028 | if (!IS_ERR(s)) |
| 1027 | __putname(s); | 1029 | __putname(s); |
| 1028 | } | 1030 | } |
