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.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 471e1ff5079a..f91affb7d530 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -415,7 +415,8 @@ struct buffer_head;
415typedef int (get_block_t)(struct inode *inode, sector_t iblock, 415typedef int (get_block_t)(struct inode *inode, sector_t iblock,
416 struct buffer_head *bh_result, int create); 416 struct buffer_head *bh_result, int create);
417typedef void (dio_iodone_t)(struct kiocb *iocb, loff_t offset, 417typedef void (dio_iodone_t)(struct kiocb *iocb, loff_t offset,
418 ssize_t bytes, void *private); 418 ssize_t bytes, void *private, int ret,
419 bool is_async);
419 420
420/* 421/*
421 * Attribute flags. These should be or-ed together to figure out what 422 * Attribute flags. These should be or-ed together to figure out what
@@ -1783,6 +1784,19 @@ extern int get_sb_pseudo(struct file_system_type *, char *,
1783 struct vfsmount *mnt); 1784 struct vfsmount *mnt);
1784extern void simple_set_mnt(struct vfsmount *mnt, struct super_block *sb); 1785extern void simple_set_mnt(struct vfsmount *mnt, struct super_block *sb);
1785 1786
1787static inline void sb_mark_dirty(struct super_block *sb)
1788{
1789 sb->s_dirt = 1;
1790}
1791static inline void sb_mark_clean(struct super_block *sb)
1792{
1793 sb->s_dirt = 0;
1794}
1795static inline int sb_is_dirty(struct super_block *sb)
1796{
1797 return sb->s_dirt;
1798}
1799
1786/* Alas, no aliases. Too much hassle with bringing module.h everywhere */ 1800/* Alas, no aliases. Too much hassle with bringing module.h everywhere */
1787#define fops_get(fops) \ 1801#define fops_get(fops) \
1788 (((fops) && try_module_get((fops)->owner) ? (fops) : NULL)) 1802 (((fops) && try_module_get((fops)->owner) ? (fops) : NULL))