aboutsummaryrefslogtreecommitdiffstats
path: root/fs/coda/inode.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-06-06 17:36:20 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-06 19:08:09 -0400
commit6d6bd94f4d83d70cdff67d0bf2a64ef6878216e7 (patch)
tree305ab4f98bcdc25669129ded4f530dd12f5f6407 /fs/coda/inode.c
parentf38cfb2564f5fead53eebd9617258ee0376b1906 (diff)
fs/coda: use __func__
Replace all function names by __func__ in pr_foo() Signed-off-by: Fabian Frederick <fabf@skynet.be> Cc: Jan Harkes <jaharkes@cs.cmu.edu> Cc: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/coda/inode.c')
-rw-r--r--fs/coda/inode.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/fs/coda/inode.c b/fs/coda/inode.c
index b5ee5903c7f7..fe3afb2de880 100644
--- a/fs/coda/inode.c
+++ b/fs/coda/inode.c
@@ -119,12 +119,12 @@ static int get_device_index(struct coda_mount_data *data)
119 int idx; 119 int idx;
120 120
121 if (data == NULL) { 121 if (data == NULL) {
122 pr_warn("coda_read_super: Bad mount data\n"); 122 pr_warn("%s: Bad mount data\n", __func__);
123 return -1; 123 return -1;
124 } 124 }
125 125
126 if (data->version != CODA_MOUNT_VERSION) { 126 if (data->version != CODA_MOUNT_VERSION) {
127 pr_warn("coda_read_super: Bad mount version\n"); 127 pr_warn("%s: Bad mount version\n", __func__);
128 return -1; 128 return -1;
129 } 129 }
130 130
@@ -141,13 +141,13 @@ static int get_device_index(struct coda_mount_data *data)
141 fdput(f); 141 fdput(f);
142 142
143 if (idx < 0 || idx >= MAX_CODADEVS) { 143 if (idx < 0 || idx >= MAX_CODADEVS) {
144 pr_warn("coda_read_super: Bad minor number\n"); 144 pr_warn("%s: Bad minor number\n", __func__);
145 return -1; 145 return -1;
146 } 146 }
147 147
148 return idx; 148 return idx;
149Ebadf: 149Ebadf:
150 pr_warn("coda_read_super: Bad file\n"); 150 pr_warn("%s: Bad file\n", __func__);
151 return -1; 151 return -1;
152} 152}
153 153
@@ -168,19 +168,19 @@ static int coda_fill_super(struct super_block *sb, void *data, int silent)
168 if(idx == -1) 168 if(idx == -1)
169 idx = 0; 169 idx = 0;
170 170
171 pr_info("coda_read_super: device index: %i\n", idx); 171 pr_info("%s: device index: %i\n", __func__, idx);
172 172
173 vc = &coda_comms[idx]; 173 vc = &coda_comms[idx];
174 mutex_lock(&vc->vc_mutex); 174 mutex_lock(&vc->vc_mutex);
175 175
176 if (!vc->vc_inuse) { 176 if (!vc->vc_inuse) {
177 pr_warn("coda_read_super: No pseudo device\n"); 177 pr_warn("%s: No pseudo device\n", __func__);
178 error = -EINVAL; 178 error = -EINVAL;
179 goto unlock_out; 179 goto unlock_out;
180 } 180 }
181 181
182 if (vc->vc_sb) { 182 if (vc->vc_sb) {
183 pr_warn("coda_read_super: Device already mounted\n"); 183 pr_warn("%s: Device already mounted\n", __func__);
184 error = -EBUSY; 184 error = -EBUSY;
185 goto unlock_out; 185 goto unlock_out;
186 } 186 }
@@ -204,11 +204,11 @@ static int coda_fill_super(struct super_block *sb, void *data, int silent)
204 /* get root fid from Venus: this needs the root inode */ 204 /* get root fid from Venus: this needs the root inode */
205 error = venus_rootfid(sb, &fid); 205 error = venus_rootfid(sb, &fid);
206 if ( error ) { 206 if ( error ) {
207 pr_warn("coda_read_super: coda_get_rootfid failed with %d\n", 207 pr_warn("%s: coda_get_rootfid failed with %d\n",
208 error); 208 __func__, error);
209 goto error; 209 goto error;
210 } 210 }
211 pr_info("coda_read_super: rootfid is %s\n", coda_f2s(&fid)); 211 pr_info("%s: rootfid is %s\n", __func__, coda_f2s(&fid));
212 212
213 /* make root inode */ 213 /* make root inode */
214 root = coda_cnode_make(&fid, sb); 214 root = coda_cnode_make(&fid, sb);
@@ -219,8 +219,8 @@ static int coda_fill_super(struct super_block *sb, void *data, int silent)
219 goto error; 219 goto error;
220 } 220 }
221 221
222 pr_info("coda_read_super: rootinode is %ld dev %s\n", 222 pr_info("%s: rootinode is %ld dev %s\n",
223 root->i_ino, root->i_sb->s_id); 223 __func__, root->i_ino, root->i_sb->s_id);
224 sb->s_root = d_make_root(root); 224 sb->s_root = d_make_root(root);
225 if (!sb->s_root) { 225 if (!sb->s_root) {
226 error = -EINVAL; 226 error = -EINVAL;