From c3e748be3d1a03fe4b453603308839f004ca43b2 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Thu, 10 Jun 2010 13:56:33 +0300 Subject: [PATCH] --- yaml --- r: 200852 b: refs/heads/master c: 140236b4b1c749c9b795ea3d11558a0eb5a3a080 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/fs.h | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 1fb12b5f9136..85a788670822 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 47a716cf0ca981b9549ec9815122ada7a0ff707c +refs/heads/master: 140236b4b1c749c9b795ea3d11558a0eb5a3a080 diff --git a/trunk/include/linux/fs.h b/trunk/include/linux/fs.h index 471e1ff5079a..68ca1b0491af 100644 --- a/trunk/include/linux/fs.h +++ b/trunk/include/linux/fs.h @@ -1783,6 +1783,19 @@ extern int get_sb_pseudo(struct file_system_type *, char *, struct vfsmount *mnt); extern void simple_set_mnt(struct vfsmount *mnt, struct super_block *sb); +static inline void sb_mark_dirty(struct super_block *sb) +{ + sb->s_dirt = 1; +} +static inline void sb_mark_clean(struct super_block *sb) +{ + sb->s_dirt = 0; +} +static inline int sb_is_dirty(struct super_block *sb) +{ + return sb->s_dirt; +} + /* Alas, no aliases. Too much hassle with bringing module.h everywhere */ #define fops_get(fops) \ (((fops) && try_module_get((fops)->owner) ? (fops) : NULL))