diff options
author | Ingo Molnar <mingo@kernel.org> | 2012-03-26 11:18:44 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2012-03-26 11:19:03 -0400 |
commit | 7fd52392c56361a40f0c630a82b36b95ca31eac6 (patch) | |
tree | 14091de24c6b28ea4cae9826f98aeedb7be091f5 /include/linux/fs.h | |
parent | b01c3a0010aabadf745f3e7fdb9cab682e0a28a2 (diff) | |
parent | e22057c8599373e5caef0bc42bdb95d2a361ab0d (diff) |
Merge branch 'linus' into perf/urgent
Merge reason: we need to fix a non-trivial merge conflict.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
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 *), |