aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h24
1 files changed, 11 insertions, 13 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 9bbe1a9ac432..8de675523e46 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -92,6 +92,10 @@ struct inodes_stat_t {
92/* File is opened using open(.., 3, ..) and is writeable only for ioctls 92/* File is opened using open(.., 3, ..) and is writeable only for ioctls
93 (specialy hack for floppy.c) */ 93 (specialy hack for floppy.c) */
94#define FMODE_WRITE_IOCTL ((__force fmode_t)0x100) 94#define FMODE_WRITE_IOCTL ((__force fmode_t)0x100)
95/* 32bit hashes as llseek() offset (for directories) */
96#define FMODE_32BITHASH ((__force fmode_t)0x200)
97/* 64bit hashes as llseek() offset (for directories) */
98#define FMODE_64BITHASH ((__force fmode_t)0x400)
95 99
96/* 100/*
97 * Don't update ctime and mtime. 101 * Don't update ctime and mtime.
@@ -389,6 +393,7 @@ struct inodes_stat_t {
389#include <linux/prio_tree.h> 393#include <linux/prio_tree.h>
390#include <linux/init.h> 394#include <linux/init.h>
391#include <linux/pid.h> 395#include <linux/pid.h>
396#include <linux/bug.h>
392#include <linux/mutex.h> 397#include <linux/mutex.h>
393#include <linux/capability.h> 398#include <linux/capability.h>
394#include <linux/semaphore.h> 399#include <linux/semaphore.h>
@@ -1210,6 +1215,7 @@ extern int vfs_setlease(struct file *, long, struct file_lock **);
1210extern int lease_modify(struct file_lock **, int); 1215extern int lease_modify(struct file_lock **, int);
1211extern int lock_may_read(struct inode *, loff_t start, unsigned long count); 1216extern int lock_may_read(struct inode *, loff_t start, unsigned long count);
1212extern int lock_may_write(struct inode *, loff_t start, unsigned long count); 1217extern int lock_may_write(struct inode *, loff_t start, unsigned long count);
1218extern void locks_delete_block(struct file_lock *waiter);
1213extern void lock_flocks(void); 1219extern void lock_flocks(void);
1214extern void unlock_flocks(void); 1220extern void unlock_flocks(void);
1215#else /* !CONFIG_FILE_LOCKING */ 1221#else /* !CONFIG_FILE_LOCKING */
@@ -1354,6 +1360,10 @@ static inline int lock_may_write(struct inode *inode, loff_t start,
1354 return 1; 1360 return 1;
1355} 1361}
1356 1362
1363static inline void locks_delete_block(struct file_lock *waiter)
1364{
1365}
1366
1357static inline void lock_flocks(void) 1367static inline void lock_flocks(void)
1358{ 1368{
1359} 1369}
@@ -1871,19 +1881,6 @@ extern struct dentry *mount_pseudo(struct file_system_type *, char *,
1871 const struct dentry_operations *dops, 1881 const struct dentry_operations *dops,
1872 unsigned long); 1882 unsigned long);
1873 1883
1874static inline void sb_mark_dirty(struct super_block *sb)
1875{
1876 sb->s_dirt = 1;
1877}
1878static inline void sb_mark_clean(struct super_block *sb)
1879{
1880 sb->s_dirt = 0;
1881}
1882static inline int sb_is_dirty(struct super_block *sb)
1883{
1884 return sb->s_dirt;
1885}
1886
1887/* Alas, no aliases. Too much hassle with bringing module.h everywhere */ 1884/* Alas, no aliases. Too much hassle with bringing module.h everywhere */
1888#define fops_get(fops) \ 1885#define fops_get(fops) \
1889 (((fops) && try_module_get((fops)->owner) ? (fops) : NULL)) 1886 (((fops) && try_module_get((fops)->owner) ? (fops) : NULL))
@@ -2514,6 +2511,7 @@ extern int dcache_readdir(struct file *, void *, filldir_t);
2514extern int simple_setattr(struct dentry *, struct iattr *); 2511extern int simple_setattr(struct dentry *, struct iattr *);
2515extern int simple_getattr(struct vfsmount *, struct dentry *, struct kstat *); 2512extern int simple_getattr(struct vfsmount *, struct dentry *, struct kstat *);
2516extern int simple_statfs(struct dentry *, struct kstatfs *); 2513extern int simple_statfs(struct dentry *, struct kstatfs *);
2514extern int simple_open(struct inode *inode, struct file *file);
2517extern int simple_link(struct dentry *, struct inode *, struct dentry *); 2515extern int simple_link(struct dentry *, struct inode *, struct dentry *);
2518extern int simple_unlink(struct inode *, struct dentry *); 2516extern int simple_unlink(struct inode *, struct dentry *);
2519extern int simple_rmdir(struct inode *, struct dentry *); 2517extern int simple_rmdir(struct inode *, struct dentry *);