diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-21 16:36:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-21 16:36:41 -0400 |
commit | e2a0883e4071237d09b604a342c28b96b44a04b3 (patch) | |
tree | aa56f4d376b5eb1c32358c19c2669c2a94e0e1fd /include/linux/fs.h | |
parent | 3a990a52f9f25f45469e272017a31e7a3fda60ed (diff) | |
parent | 07c0c5d8b8c122b2f2df9ee574ac3083daefc981 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull vfs pile 1 from Al Viro:
"This is _not_ all; in particular, Miklos' and Jan's stuff is not there
yet."
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (64 commits)
ext4: initialization of ext4_li_mtx needs to be done earlier
debugfs-related mode_t whack-a-mole
hfsplus: add an ioctl to bless files
hfsplus: change finder_info to u32
hfsplus: initialise userflags
qnx4: new helper - try_extent()
qnx4: get rid of qnx4_bread/qnx4_getblk
take removal of PF_FORKNOEXEC to flush_old_exec()
trim includes in inode.c
um: uml_dup_mmap() relies on ->mmap_sem being held, but activate_mm() doesn't hold it
um: embed ->stub_pages[] into mmu_context
gadgetfs: list_for_each_safe() misuse
ocfs2: fix leaks on failure exits in module_init
ecryptfs: make register_filesystem() the last potential failure exit
ntfs: forgets to unregister sysctls on register_filesystem() failure
logfs: missing cleanup on register_filesystem() failure
jfs: mising cleanup on register_filesystem() failure
make configfs_pin_fs() return root dentry on success
configfs: configfs_create_dir() has parent dentry in dentry->d_parent
configfs: sanitize configfs_create()
...
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 *), |