• R/O
  • SSH
  • HTTPS

caitsith: コミット


コミットメタ情報

リビジョン82 (tree)
日時2013-02-09 20:28:50
作者kumaneko

ログメッセージ

(メッセージはありません)

変更サマリ

差分

--- trunk/caitsith-patch/caitsith/probe.c (revision 81)
+++ trunk/caitsith-patch/caitsith/probe.c (revision 82)
@@ -464,7 +464,7 @@
464464 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 3)
465465
466466 /* Dummy variable for finding address of "spinlock_t vfsmount_lock". */
467-static spinlock_t probe_vfsmount_lock __cacheline_aligned_in_smp =
467+static spinlock_t probe_dummy_vfsmount_lock __cacheline_aligned_in_smp =
468468 SPIN_LOCK_UNLOCKED;
469469
470470 static struct list_head *probe_mount_hashtable;
@@ -501,7 +501,7 @@
501501 struct list_head *tmp = head;
502502 struct vfsmount *p, *found = NULL;
503503
504- spin_lock(&probe_vfsmount_lock);
504+ spin_lock(&probe_dummy_vfsmount_lock);
505505 for (;;) {
506506 tmp = tmp->next;
507507 p = NULL;
@@ -513,7 +513,7 @@
513513 break;
514514 }
515515 }
516- spin_unlock(&probe_vfsmount_lock);
516+ spin_unlock(&probe_dummy_vfsmount_lock);
517517 return found;
518518 }
519519
@@ -528,7 +528,7 @@
528528 spinlock_t *ptr;
529529 /* Guess "spinlock_t vfsmount_lock;". */
530530 cp = probe_find_variable(probe_lookup_mnt, (unsigned long)
531- &probe_vfsmount_lock, " lookup_mnt\n");
531+ &probe_dummy_vfsmount_lock, " lookup_mnt\n");
532532 if (!cp) {
533533 printk(KERN_ERR "Can't resolve lookup_mnt().\n");
534534 return NULL;
@@ -546,7 +546,7 @@
546546 #elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 15)
547547
548548 /* Dummy variable for finding address of "spinlock_t vfsmount_lock". */
549-static spinlock_t probe_vfsmount_lock;
549+static spinlock_t probe_dummy_vfsmount_lock;
550550
551551 /**
552552 * probe_follow_up - Dummy function which does identical to follow_up() in fs/namei.c.
@@ -560,15 +560,15 @@
560560 {
561561 struct vfsmount *parent;
562562 struct dentry *mountpoint;
563- spin_lock(&probe_vfsmount_lock);
563+ spin_lock(&probe_dummy_vfsmount_lock);
564564 parent = (*mnt)->mnt_parent;
565565 if (parent == *mnt) {
566- spin_unlock(&probe_vfsmount_lock);
566+ spin_unlock(&probe_dummy_vfsmount_lock);
567567 return 0;
568568 }
569569 mntget(parent);
570570 mountpoint = dget((*mnt)->mnt_mountpoint);
571- spin_unlock(&probe_vfsmount_lock);
571+ spin_unlock(&probe_dummy_vfsmount_lock);
572572 dput(*dentry);
573573 *dentry = mountpoint;
574574 mntput(*mnt);
@@ -587,7 +587,7 @@
587587 spinlock_t *ptr;
588588 /* Guess "spinlock_t vfsmount_lock;". */
589589 cp = probe_find_variable(probe_follow_up, (unsigned long)
590- &probe_vfsmount_lock, "follow_up");
590+ &probe_dummy_vfsmount_lock, "follow_up");
591591 if (!cp) {
592592 printk(KERN_ERR "Can't resolve follow_up().\n");
593593 return NULL;
@@ -605,7 +605,7 @@
605605 #else
606606
607607 /* Dummy variable for finding address of "spinlock_t vfsmount_lock". */
608-static spinlock_t probe_vfsmount_lock;
608+static spinlock_t probe_dummy_vfsmount_lock;
609609
610610 /**
611611 * probe_mnt_pin - Dummy function which does identical to mnt_pin() in fs/namespace.c.
@@ -616,9 +616,9 @@
616616 */
617617 static void probe_mnt_pin(struct vfsmount *mnt)
618618 {
619- spin_lock(&probe_vfsmount_lock);
619+ spin_lock(&probe_dummy_vfsmount_lock);
620620 mnt->mnt_pinned++;
621- spin_unlock(&probe_vfsmount_lock);
621+ spin_unlock(&probe_dummy_vfsmount_lock);
622622 }
623623
624624 /**
@@ -632,7 +632,7 @@
632632 spinlock_t *ptr;
633633 /* Guess "spinlock_t vfsmount_lock;". */
634634 cp = probe_find_variable(probe_mnt_pin, (unsigned long)
635- &probe_vfsmount_lock, "mnt_pin");
635+ &probe_dummy_vfsmount_lock, "mnt_pin");
636636 if (!cp) {
637637 printk(KERN_ERR "Can't resolve mnt_pin().\n");
638638 return NULL;
@@ -655,7 +655,7 @@
655655 * Never mark this variable as __initdata , for this variable might be accessed
656656 * by caller of probe_find_vfsmount_lock().
657657 */
658-static spinlock_t probe_vfsmount_lock;
658+static spinlock_t probe_dummy_vfsmount_lock;
659659
660660 /**
661661 * probe_vfsmount_lock - Find address of "spinlock_t vfsmount_lock".
@@ -664,7 +664,7 @@
664664 */
665665 void * __init probe_vfsmount_lock(void)
666666 {
667- return &probe_vfsmount_lock;
667+ return &probe_dummy_vfsmount_lock;
668668 }
669669
670670 #endif
旧リポジトリブラウザで表示