diff options
Diffstat (limited to 'include/linux/fs.h')
| -rw-r--r-- | include/linux/fs.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 69cd5bb640f5..9bbe1a9ac432 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
| @@ -1459,6 +1459,7 @@ struct super_block { | |||
| 1459 | u8 s_uuid[16]; /* UUID */ | 1459 | u8 s_uuid[16]; /* UUID */ |
| 1460 | 1460 | ||
| 1461 | void *s_fs_info; /* Filesystem private info */ | 1461 | void *s_fs_info; /* Filesystem private info */ |
| 1462 | unsigned int s_max_links; | ||
| 1462 | fmode_t s_mode; | 1463 | fmode_t s_mode; |
| 1463 | 1464 | ||
| 1464 | /* Granularity of c/m/atime in ns. | 1465 | /* Granularity of c/m/atime in ns. |
| @@ -1811,11 +1812,11 @@ static inline void inode_inc_iversion(struct inode *inode) | |||
| 1811 | spin_unlock(&inode->i_lock); | 1812 | spin_unlock(&inode->i_lock); |
| 1812 | } | 1813 | } |
| 1813 | 1814 | ||
| 1814 | extern void touch_atime(struct vfsmount *mnt, struct dentry *dentry); | 1815 | extern void touch_atime(struct path *); |
| 1815 | static inline void file_accessed(struct file *file) | 1816 | static inline void file_accessed(struct file *file) |
| 1816 | { | 1817 | { |
| 1817 | if (!(file->f_flags & O_NOATIME)) | 1818 | if (!(file->f_flags & O_NOATIME)) |
| 1818 | touch_atime(file->f_path.mnt, file->f_path.dentry); | 1819 | touch_atime(&file->f_path); |
| 1819 | } | 1820 | } |
| 1820 | 1821 | ||
| 1821 | int sync_inode(struct inode *inode, struct writeback_control *wbc); | 1822 | int sync_inode(struct inode *inode, struct writeback_control *wbc); |
| @@ -2304,7 +2305,10 @@ extern struct inode * igrab(struct inode *); | |||
| 2304 | extern ino_t iunique(struct super_block *, ino_t); | 2305 | extern ino_t iunique(struct super_block *, ino_t); |
| 2305 | extern int inode_needs_sync(struct inode *inode); | 2306 | extern int inode_needs_sync(struct inode *inode); |
| 2306 | extern int generic_delete_inode(struct inode *inode); | 2307 | extern int generic_delete_inode(struct inode *inode); |
| 2307 | extern int generic_drop_inode(struct inode *inode); | 2308 | static inline int generic_drop_inode(struct inode *inode) |
| 2309 | { | ||
| 2310 | return !inode->i_nlink || inode_unhashed(inode); | ||
| 2311 | } | ||
| 2308 | 2312 | ||
| 2309 | extern struct inode *ilookup5_nowait(struct super_block *sb, | 2313 | extern struct inode *ilookup5_nowait(struct super_block *sb, |
| 2310 | unsigned long hashval, int (*test)(struct inode *, void *), | 2314 | unsigned long hashval, int (*test)(struct inode *, void *), |
