aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2012-03-26 11:18:44 -0400
committerIngo Molnar <mingo@kernel.org>2012-03-26 11:19:03 -0400
commit7fd52392c56361a40f0c630a82b36b95ca31eac6 (patch)
tree14091de24c6b28ea4cae9826f98aeedb7be091f5 /include/linux/fs.h
parentb01c3a0010aabadf745f3e7fdb9cab682e0a28a2 (diff)
parente22057c8599373e5caef0bc42bdb95d2a361ab0d (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.h11
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
1814extern void touch_atime(struct vfsmount *mnt, struct dentry *dentry); 1816extern void touch_atime(struct path *);
1815static inline void file_accessed(struct file *file) 1817static 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
1821int sync_inode(struct inode *inode, struct writeback_control *wbc); 1823int sync_inode(struct inode *inode, struct writeback_control *wbc);
@@ -2304,7 +2306,10 @@ extern struct inode * igrab(struct inode *);
2304extern ino_t iunique(struct super_block *, ino_t); 2306extern ino_t iunique(struct super_block *, ino_t);
2305extern int inode_needs_sync(struct inode *inode); 2307extern int inode_needs_sync(struct inode *inode);
2306extern int generic_delete_inode(struct inode *inode); 2308extern int generic_delete_inode(struct inode *inode);
2307extern int generic_drop_inode(struct inode *inode); 2309static inline int generic_drop_inode(struct inode *inode)
2310{
2311 return !inode->i_nlink || inode_unhashed(inode);
2312}
2308 2313
2309extern struct inode *ilookup5_nowait(struct super_block *sb, 2314extern 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 *),