diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-17 19:12:34 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-17 19:12:34 -0500 |
commit | 038911597e17017cee55fe93d521164a27056866 (patch) | |
tree | 8f279a91de8237ce370a14d745940cccfd78ea07 /include/linux/fs.h | |
parent | 66dc830d14a222c9214a8557e9feb1e4a67a3857 (diff) | |
parent | a26f49926da938f47561f386be56a83dd37a496d (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.h | 10 |
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 | ||
1796 | extern void __mark_inode_dirty(struct inode *, int); | 1800 | extern void __mark_inode_dirty(struct inode *, int); |
1797 | static inline void mark_inode_dirty(struct inode *inode) | 1801 | static inline void mark_inode_dirty(struct inode *inode) |
@@ -1954,6 +1958,7 @@ extern int current_umask(void); | |||
1954 | 1958 | ||
1955 | extern void ihold(struct inode * inode); | 1959 | extern void ihold(struct inode * inode); |
1956 | extern void iput(struct inode *); | 1960 | extern void iput(struct inode *); |
1961 | extern int generic_update_time(struct inode *, struct timespec *, int); | ||
1957 | 1962 | ||
1958 | static inline struct inode *file_inode(const struct file *f) | 1963 | static 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 | ||
2493 | extern struct inode * iget5_locked(struct super_block *, unsigned long, int (*test)(struct inode *, void *), int (*set)(struct inode *, void *), void *); | 2498 | extern struct inode * iget5_locked(struct super_block *, unsigned long, int (*test)(struct inode *, void *), int (*set)(struct inode *, void *), void *); |
2494 | extern struct inode * iget_locked(struct super_block *, unsigned long); | 2499 | extern struct inode * iget_locked(struct super_block *, unsigned long); |
2500 | extern struct inode *find_inode_nowait(struct super_block *, | ||
2501 | unsigned long, | ||
2502 | int (*match)(struct inode *, | ||
2503 | unsigned long, void *), | ||
2504 | void *data); | ||
2495 | extern int insert_inode_locked4(struct inode *, unsigned long, int (*test)(struct inode *, void *), void *); | 2505 | extern int insert_inode_locked4(struct inode *, unsigned long, int (*test)(struct inode *, void *), void *); |
2496 | extern int insert_inode_locked(struct inode *); | 2506 | extern int insert_inode_locked(struct inode *); |
2497 | #ifdef CONFIG_DEBUG_LOCK_ALLOC | 2507 | #ifdef CONFIG_DEBUG_LOCK_ALLOC |