diff options
| author | Ingo Molnar <mingo@kernel.org> | 2012-04-13 03:50:21 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2012-04-13 03:50:21 -0400 |
| commit | 659c36fcda403013a01b85da07cf2d9711e6d6c7 (patch) | |
| tree | ece2e7d0e2c19ea5a3d0ec172ad0b81a8a19021d /include/linux/fs.h | |
| parent | 9521d830b6341d1887dcfc2aebde23fbfa5f1473 (diff) | |
| parent | 5a7ed29c7572d00a75e8c4529e30c5ac2ef82271 (diff) | |
Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
Fixes and improvements for perf/core:
. Overhaul the tools/ makefiles, gluing them to the top level Makefile, from
Borislav Petkov.
. Move the UI files from tools/perf/util/ui/ to tools/perf/ui/. Also move
the GTK+ browser to tools/perf/ui/gtk/, from Namhyung Kim.
. Only fallback to sw cycles counter on ENOENT for the hw cycles, from
Robert Richter
. Trivial fixes from Robert Richter
. Handle the autogenerated bison/flex files better, from Namhyung and Jiri Olsa.
. Navigate jump instructions in the annotate browser, just press enter or ->,
still needs support for a jump navigation history, i.e. to go back.
. Search string in the annotate browser: same keys as vim:
/ forward
n next backward/forward
? backward
. Clarify number of events/samples in the report header, from Ashay Rane
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/fs.h')
| -rw-r--r-- | include/linux/fs.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 69cd5bb640f5..fa63f1b46103 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
| @@ -389,6 +389,7 @@ struct inodes_stat_t { | |||
| 389 | #include <linux/prio_tree.h> | 389 | #include <linux/prio_tree.h> |
| 390 | #include <linux/init.h> | 390 | #include <linux/init.h> |
| 391 | #include <linux/pid.h> | 391 | #include <linux/pid.h> |
| 392 | #include <linux/bug.h> | ||
| 392 | #include <linux/mutex.h> | 393 | #include <linux/mutex.h> |
| 393 | #include <linux/capability.h> | 394 | #include <linux/capability.h> |
| 394 | #include <linux/semaphore.h> | 395 | #include <linux/semaphore.h> |
| @@ -1459,6 +1460,7 @@ struct super_block { | |||
| 1459 | u8 s_uuid[16]; /* UUID */ | 1460 | u8 s_uuid[16]; /* UUID */ |
| 1460 | 1461 | ||
| 1461 | void *s_fs_info; /* Filesystem private info */ | 1462 | void *s_fs_info; /* Filesystem private info */ |
| 1463 | unsigned int s_max_links; | ||
| 1462 | fmode_t s_mode; | 1464 | fmode_t s_mode; |
| 1463 | 1465 | ||
| 1464 | /* Granularity of c/m/atime in ns. | 1466 | /* Granularity of c/m/atime in ns. |
| @@ -1811,11 +1813,11 @@ static inline void inode_inc_iversion(struct inode *inode) | |||
| 1811 | spin_unlock(&inode->i_lock); | 1813 | spin_unlock(&inode->i_lock); |
| 1812 | } | 1814 | } |
| 1813 | 1815 | ||
| 1814 | extern void touch_atime(struct vfsmount *mnt, struct dentry *dentry); | 1816 | extern void touch_atime(struct path *); |
| 1815 | static inline void file_accessed(struct file *file) | 1817 | static inline void file_accessed(struct file *file) |
| 1816 | { | 1818 | { |
| 1817 | if (!(file->f_flags & O_NOATIME)) | 1819 | if (!(file->f_flags & O_NOATIME)) |
| 1818 | touch_atime(file->f_path.mnt, file->f_path.dentry); | 1820 | touch_atime(&file->f_path); |
| 1819 | } | 1821 | } |
| 1820 | 1822 | ||
| 1821 | int sync_inode(struct inode *inode, struct writeback_control *wbc); | 1823 | int sync_inode(struct inode *inode, struct writeback_control *wbc); |
| @@ -2304,7 +2306,10 @@ extern struct inode * igrab(struct inode *); | |||
| 2304 | extern ino_t iunique(struct super_block *, ino_t); | 2306 | extern ino_t iunique(struct super_block *, ino_t); |
| 2305 | extern int inode_needs_sync(struct inode *inode); | 2307 | extern int inode_needs_sync(struct inode *inode); |
| 2306 | extern int generic_delete_inode(struct inode *inode); | 2308 | extern int generic_delete_inode(struct inode *inode); |
| 2307 | extern int generic_drop_inode(struct inode *inode); | 2309 | static inline int generic_drop_inode(struct inode *inode) |
| 2310 | { | ||
| 2311 | return !inode->i_nlink || inode_unhashed(inode); | ||
| 2312 | } | ||
| 2308 | 2313 | ||
| 2309 | extern struct inode *ilookup5_nowait(struct super_block *sb, | 2314 | extern struct inode *ilookup5_nowait(struct super_block *sb, |
| 2310 | unsigned long hashval, int (*test)(struct inode *, void *), | 2315 | unsigned long hashval, int (*test)(struct inode *, void *), |
