diff options
| author | Eric Paris <eparis@redhat.com> | 2009-12-17 21:24:23 -0500 |
|---|---|---|
| committer | Eric Paris <eparis@redhat.com> | 2010-07-28 09:58:52 -0400 |
| commit | 2823e04de4f1a49087b58ff2bb8f61361ffd9321 (patch) | |
| tree | 0467ddf513cfb9ec76f3fe498bdc9b5084008c84 /fs/notify/inotify | |
| parent | 3a9fb89f4cd04c23e16397befba92efb5d989b74 (diff) | |
fsnotify: put inode specific fields in an fsnotify_mark in a union
The addition of marks on vfs mounts will be simplified if the inode
specific parts of a mark and the vfsmnt specific parts of a mark are
actually in a union so naming can be easy. This patch just implements the
inode struct and the union.
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'fs/notify/inotify')
| -rw-r--r-- | fs/notify/inotify/inotify_fsnotify.c | 2 | ||||
| -rw-r--r-- | fs/notify/inotify/inotify_user.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/fs/notify/inotify/inotify_fsnotify.c b/fs/notify/inotify/inotify_fsnotify.c index 8075ae708ed..3edb51cfcfb 100644 --- a/fs/notify/inotify/inotify_fsnotify.c +++ b/fs/notify/inotify/inotify_fsnotify.c | |||
| @@ -193,7 +193,7 @@ static int idr_callback(int id, void *p, void *data) | |||
| 193 | */ | 193 | */ |
| 194 | if (entry) | 194 | if (entry) |
| 195 | printk(KERN_WARNING "entry->group=%p inode=%p wd=%d\n", | 195 | printk(KERN_WARNING "entry->group=%p inode=%p wd=%d\n", |
| 196 | entry->group, entry->inode, ientry->wd); | 196 | entry->group, entry->i.inode, ientry->wd); |
| 197 | return 0; | 197 | return 0; |
| 198 | } | 198 | } |
| 199 | 199 | ||
diff --git a/fs/notify/inotify/inotify_user.c b/fs/notify/inotify/inotify_user.c index a48d68a68b2..4b1587f9df3 100644 --- a/fs/notify/inotify/inotify_user.c +++ b/fs/notify/inotify/inotify_user.c | |||
| @@ -445,7 +445,7 @@ static void inotify_remove_from_idr(struct fsnotify_group *group, | |||
| 445 | if (wd == -1) { | 445 | if (wd == -1) { |
| 446 | WARN_ONCE(1, "%s: ientry=%p ientry->wd=%d ientry->group=%p" | 446 | WARN_ONCE(1, "%s: ientry=%p ientry->wd=%d ientry->group=%p" |
| 447 | " ientry->inode=%p\n", __func__, ientry, ientry->wd, | 447 | " ientry->inode=%p\n", __func__, ientry, ientry->wd, |
| 448 | ientry->fsn_entry.group, ientry->fsn_entry.inode); | 448 | ientry->fsn_entry.group, ientry->fsn_entry.i.inode); |
| 449 | goto out; | 449 | goto out; |
| 450 | } | 450 | } |
| 451 | 451 | ||
| @@ -454,7 +454,7 @@ static void inotify_remove_from_idr(struct fsnotify_group *group, | |||
| 454 | if (unlikely(!found_ientry)) { | 454 | if (unlikely(!found_ientry)) { |
| 455 | WARN_ONCE(1, "%s: ientry=%p ientry->wd=%d ientry->group=%p" | 455 | WARN_ONCE(1, "%s: ientry=%p ientry->wd=%d ientry->group=%p" |
| 456 | " ientry->inode=%p\n", __func__, ientry, ientry->wd, | 456 | " ientry->inode=%p\n", __func__, ientry, ientry->wd, |
| 457 | ientry->fsn_entry.group, ientry->fsn_entry.inode); | 457 | ientry->fsn_entry.group, ientry->fsn_entry.i.inode); |
| 458 | goto out; | 458 | goto out; |
| 459 | } | 459 | } |
| 460 | 460 | ||
| @@ -468,9 +468,9 @@ static void inotify_remove_from_idr(struct fsnotify_group *group, | |||
| 468 | "entry->inode=%p found_ientry=%p found_ientry->wd=%d " | 468 | "entry->inode=%p found_ientry=%p found_ientry->wd=%d " |
| 469 | "found_ientry->group=%p found_ientry->inode=%p\n", | 469 | "found_ientry->group=%p found_ientry->inode=%p\n", |
| 470 | __func__, ientry, ientry->wd, ientry->fsn_entry.group, | 470 | __func__, ientry, ientry->wd, ientry->fsn_entry.group, |
| 471 | ientry->fsn_entry.inode, found_ientry, found_ientry->wd, | 471 | ientry->fsn_entry.i.inode, found_ientry, found_ientry->wd, |
| 472 | found_ientry->fsn_entry.group, | 472 | found_ientry->fsn_entry.group, |
| 473 | found_ientry->fsn_entry.inode); | 473 | found_ientry->fsn_entry.i.inode); |
| 474 | goto out; | 474 | goto out; |
| 475 | } | 475 | } |
| 476 | 476 | ||
| @@ -482,7 +482,7 @@ static void inotify_remove_from_idr(struct fsnotify_group *group, | |||
| 482 | if (unlikely(atomic_read(&ientry->fsn_entry.refcnt) < 3)) { | 482 | if (unlikely(atomic_read(&ientry->fsn_entry.refcnt) < 3)) { |
| 483 | printk(KERN_ERR "%s: ientry=%p ientry->wd=%d ientry->group=%p" | 483 | printk(KERN_ERR "%s: ientry=%p ientry->wd=%d ientry->group=%p" |
| 484 | " ientry->inode=%p\n", __func__, ientry, ientry->wd, | 484 | " ientry->inode=%p\n", __func__, ientry, ientry->wd, |
| 485 | ientry->fsn_entry.group, ientry->fsn_entry.inode); | 485 | ientry->fsn_entry.group, ientry->fsn_entry.i.inode); |
| 486 | /* we can't really recover with bad ref cnting.. */ | 486 | /* we can't really recover with bad ref cnting.. */ |
| 487 | BUG(); | 487 | BUG(); |
| 488 | } | 488 | } |
