Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346517
b: refs/heads/master
c: e6dbcaf
h: refs/heads/master
i:
  346515: 85dacd2
v: v3
  • Loading branch information
Cyrill Gorcunov authored and Linus Torvalds committed Dec 18, 2012
1 parent 1f513bd commit 6e43845
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f1d8c16298d317dbdeb166a135e85dadd1782858
refs/heads/master: e6dbcafb744ab94a94142a6e721e16330397fad8
14 changes: 9 additions & 5 deletions trunk/fs/notify/fdinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,29 +111,33 @@ int inotify_show_fdinfo(struct seq_file *m, struct file *f)

static int fanotify_fdinfo(struct seq_file *m, struct fsnotify_mark *mark)
{
unsigned int mflags = 0;
struct inode *inode;
int ret = 0;

if (!(mark->flags & FSNOTIFY_MARK_FLAG_ALIVE))
return 0;

if (mark->flags & FSNOTIFY_MARK_FLAG_IGNORED_SURV_MODIFY)
mflags |= FAN_MARK_IGNORED_SURV_MODIFY;

if (mark->flags & FSNOTIFY_MARK_FLAG_INODE) {
inode = igrab(mark->i.inode);
if (!inode)
goto out;
ret = seq_printf(m, "fanotify ino:%lx sdev:%x "
"mask:%x ignored_mask:%x ",
"mflags:%x mask:%x ignored_mask:%x ",
inode->i_ino, inode->i_sb->s_dev,
mark->mask, mark->ignored_mask);
mflags, mark->mask, mark->ignored_mask);
ret |= show_mark_fhandle(m, inode);
ret |= seq_putc(m, '\n');
iput(inode);
} else if (mark->flags & FSNOTIFY_MARK_FLAG_VFSMOUNT) {
struct mount *mnt = real_mount(mark->m.mnt);

ret = seq_printf(m, "fanotify mnt_id:%x mask:%x "
"ignored_mask:%x\n",
mnt->mnt_id, mark->mask, mark->ignored_mask);
ret = seq_printf(m, "fanotify mnt_id:%x mflags:%x mask:%x "
"ignored_mask:%x\n", mnt->mnt_id, mflags,
mark->mask, mark->ignored_mask);
}
out:
return ret;
Expand Down

0 comments on commit 6e43845

Please sign in to comment.