aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-02-17 19:12:34 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2015-02-17 19:12:34 -0500
commit038911597e17017cee55fe93d521164a27056866 (patch)
tree8f279a91de8237ce370a14d745940cccfd78ea07 /include/linux/fs.h
parent66dc830d14a222c9214a8557e9feb1e4a67a3857 (diff)
parenta26f49926da938f47561f386be56a83dd37a496d (diff)
Merge branch 'lazytime' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull lazytime mount option support from Al Viro: "Lazytime stuff from tytso" * 'lazytime' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: ext4: add optimization for the lazytime mount option vfs: add find_inode_nowait() function vfs: add support for a lazytime mount option
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 0b5b146d0490..447932aed1e1 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1790,8 +1790,12 @@ struct super_operations {
1790#define __I_DIO_WAKEUP 9 1790#define __I_DIO_WAKEUP 9
1791#define I_DIO_WAKEUP (1 << I_DIO_WAKEUP) 1791#define I_DIO_WAKEUP (1 << I_DIO_WAKEUP)
1792#define I_LINKABLE (1 << 10) 1792#define I_LINKABLE (1 << 10)
1793#define I_DIRTY_TIME (1 << 11)
1794#define __I_DIRTY_TIME_EXPIRED 12
1795#define I_DIRTY_TIME_EXPIRED (1 << __I_DIRTY_TIME_EXPIRED)
1793 1796
1794#define I_DIRTY (I_DIRTY_SYNC | I_DIRTY_DATASYNC | I_DIRTY_PAGES) 1797#define I_DIRTY (I_DIRTY_SYNC | I_DIRTY_DATASYNC | I_DIRTY_PAGES)
1798#define I_DIRTY_ALL (I_DIRTY | I_DIRTY_TIME)
1795 1799
1796extern void __mark_inode_dirty(struct inode *, int); 1800extern void __mark_inode_dirty(struct inode *, int);
1797static inline void mark_inode_dirty(struct inode *inode) 1801static inline void mark_inode_dirty(struct inode *inode)
@@ -1954,6 +1958,7 @@ extern int current_umask(void);
1954 1958
1955extern void ihold(struct inode * inode); 1959extern void ihold(struct inode * inode);
1956extern void iput(struct inode *); 1960extern void iput(struct inode *);
1961extern int generic_update_time(struct inode *, struct timespec *, int);
1957 1962
1958static inline struct inode *file_inode(const struct file *f) 1963static inline struct inode *file_inode(const struct file *f)
1959{ 1964{
@@ -2492,6 +2497,11 @@ extern struct inode *ilookup(struct super_block *sb, unsigned long ino);
2492 2497
2493extern struct inode * iget5_locked(struct super_block *, unsigned long, int (*test)(struct inode *, void *), int (*set)(struct inode *, void *), void *); 2498extern struct inode * iget5_locked(struct super_block *, unsigned long, int (*test)(struct inode *, void *), int (*set)(struct inode *, void *), void *);
2494extern struct inode * iget_locked(struct super_block *, unsigned long); 2499extern struct inode * iget_locked(struct super_block *, unsigned long);
2500extern struct inode *find_inode_nowait(struct super_block *,
2501 unsigned long,
2502 int (*match)(struct inode *,
2503 unsigned long, void *),
2504 void *data);
2495extern int insert_inode_locked4(struct inode *, unsigned long, int (*test)(struct inode *, void *), void *); 2505extern int insert_inode_locked4(struct inode *, unsigned long, int (*test)(struct inode *, void *), void *);
2496extern int insert_inode_locked(struct inode *); 2506extern int insert_inode_locked(struct inode *);
2497#ifdef CONFIG_DEBUG_LOCK_ALLOC 2507#ifdef CONFIG_DEBUG_LOCK_ALLOC