hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/fs/coda/dir.c
....@@ -23,7 +23,7 @@
2323 #include <linux/uaccess.h>
2424
2525 #include <linux/coda.h>
26
-#include <linux/coda_psdev.h>
26
+#include "coda_psdev.h"
2727 #include "coda_linux.h"
2828 #include "coda_cache.h"
2929
....@@ -47,8 +47,8 @@
4747 int type = 0;
4848
4949 if (length > CODA_MAXNAMLEN) {
50
- pr_err("name too long: lookup, %s (%*s)\n",
51
- coda_i2s(dir), (int)length, name);
50
+ pr_err("name too long: lookup, %s %zu\n",
51
+ coda_i2s(dir), length);
5252 return ERR_PTR(-ENAMETOOLONG);
5353 }
5454
....@@ -356,8 +356,7 @@
356356 ino_t ino;
357357 int ret;
358358
359
- cfi = CODA_FTOC(coda_file);
360
- BUG_ON(!cfi || cfi->cfi_magic != CODA_MAGIC);
359
+ cfi = coda_ftoc(coda_file);
361360 host_file = cfi->cfi_container;
362361
363362 cii = ITOC(file_inode(coda_file));
....@@ -426,8 +425,7 @@
426425 struct file *host_file;
427426 int ret;
428427
429
- cfi = CODA_FTOC(coda_file);
430
- BUG_ON(!cfi || cfi->cfi_magic != CODA_MAGIC);
428
+ cfi = coda_ftoc(coda_file);
431429 host_file = cfi->cfi_container;
432430
433431 if (host_file->f_op->iterate || host_file->f_op->iterate_shared) {