* [PATCH 0/1] VFS: introduce s_dirty accessors
@ 2010-06-10 10:56 Artem Bityutskiy
2010-06-10 10:56 ` [PATCH 1/1] " Artem Bityutskiy
2010-07-05 13:04 ` [PATCH 0/1] " Artem Bityutskiy
0 siblings, 2 replies; 7+ messages in thread
From: Artem Bityutskiy @ 2010-06-10 10:56 UTC (permalink / raw)
To: Linus Torvalds; +Cc: LKML, Al Viro, Andrew Morton, tytso, linux-fsdevel
Hi Linus,
would it be possible to add the following patch to your tree. I'm trying
to lessen amount of useless wake-ups in the kernel, and the 'sync_supers'
thread if one of those kernel threads which wakes up every 5 seconds to
(mostly) do nothing.
This is still work in progress, but putting the below patch to your tree
would make life easier at the next merge window. This patch just adds 3
accessor functions, but no one will use them so fare, so it must be
harmless. This was suggested by Ted and supported by Al:
http://lkml.org/lkml/2010/6/9/216
Artem.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/1] VFS: introduce s_dirty accessors
2010-06-10 10:56 [PATCH 0/1] VFS: introduce s_dirty accessors Artem Bityutskiy
@ 2010-06-10 10:56 ` Artem Bityutskiy
2010-06-11 1:42 ` Al Viro
2010-07-05 13:04 ` [PATCH 0/1] " Artem Bityutskiy
1 sibling, 1 reply; 7+ messages in thread
From: Artem Bityutskiy @ 2010-06-10 10:56 UTC (permalink / raw)
To: Linus Torvalds; +Cc: LKML, Al Viro, Andrew Morton, tytso, linux-fsdevel
From: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
This patch introduces 3 VFS accessors: 'sb_mark_dirty()',
'sb_mark_clean()', and 'sb_is_dirty()'. They simply
set 'sb->s_dirt' or test 'sb->s_dirt'. The plan is to make
every FS use these accessors later instead of manipulating
the 'sb->s_dirt' flag directly.
Ultimately, this change is a preparation for the periodic
superblock synchronization optimization which is about
preventing the "sync_supers" kernel thread from waking up
even if there is nothing to synchronize.
This patch does not do any functional change, just adds
accessor functions.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
---
include/linux/fs.h | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 471e1ff..68ca1b0 100644
--- a/include/linux/fs.h
+++ b/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))
--
1.7.0.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/1] VFS: introduce s_dirty accessors
2010-06-10 10:56 ` [PATCH 1/1] " Artem Bityutskiy
@ 2010-06-11 1:42 ` Al Viro
0 siblings, 0 replies; 7+ messages in thread
From: Al Viro @ 2010-06-11 1:42 UTC (permalink / raw)
To: Artem Bityutskiy
Cc: Linus Torvalds, LKML, Andrew Morton, tytso, linux-fsdevel
On Thu, Jun 10, 2010 at 01:56:33PM +0300, Artem Bityutskiy wrote:
> From: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
>
> This patch introduces 3 VFS accessors: 'sb_mark_dirty()',
> 'sb_mark_clean()', and 'sb_is_dirty()'. They simply
> set 'sb->s_dirt' or test 'sb->s_dirt'. The plan is to make
> every FS use these accessors later instead of manipulating
> the 'sb->s_dirt' flag directly.
>
> Ultimately, this change is a preparation for the periodic
> superblock synchronization optimization which is about
> preventing the "sync_supers" kernel thread from waking up
> even if there is nothing to synchronize.
>
> This patch does not do any functional change, just adds
> accessor functions.
Applied and pushed. It's in for-next, which should do until Linus
comes back and picks it...
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/1] VFS: introduce s_dirty accessors
2010-06-10 10:56 [PATCH 0/1] VFS: introduce s_dirty accessors Artem Bityutskiy
2010-06-10 10:56 ` [PATCH 1/1] " Artem Bityutskiy
@ 2010-07-05 13:04 ` Artem Bityutskiy
2010-07-09 22:27 ` tytso
1 sibling, 1 reply; 7+ messages in thread
From: Artem Bityutskiy @ 2010-07-05 13:04 UTC (permalink / raw)
To: Linus Torvalds; +Cc: LKML, Al Viro, Andrew Morton, tytso, linux-fsdevel
On Thu, 2010-06-10 at 13:56 +0300, Artem Bityutskiy wrote:
> Hi Linus,
>
> would it be possible to add the following patch to your tree. I'm trying
> to lessen amount of useless wake-ups in the kernel, and the 'sync_supers'
> thread if one of those kernel threads which wakes up every 5 seconds to
> (mostly) do nothing.
>
> This is still work in progress, but putting the below patch to your tree
> would make life easier at the next merge window. This patch just adds 3
> accessor functions, but no one will use them so fare, so it must be
> harmless. This was suggested by Ted and supported by Al:
> http://lkml.org/lkml/2010/6/9/216
Linus,
I wonder, you did not take this because of the vacation or because you
do not like it?
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/1] VFS: introduce s_dirty accessors
2010-07-05 13:04 ` [PATCH 0/1] " Artem Bityutskiy
@ 2010-07-09 22:27 ` tytso
2010-07-09 22:31 ` Andrew Morton
0 siblings, 1 reply; 7+ messages in thread
From: tytso @ 2010-07-09 22:27 UTC (permalink / raw)
To: Artem Bityutskiy
Cc: Linus Torvalds, LKML, Al Viro, Andrew Morton, linux-fsdevel
On Mon, Jul 05, 2010 at 04:04:27PM +0300, Artem Bityutskiy wrote:
> Linus,
>
> I wonder, you did not take this because of the vacation or because you
> do not like it?
I'd suggest resending the patch to Linus.
- Ted
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/1] VFS: introduce s_dirty accessors
2010-07-09 22:27 ` tytso
@ 2010-07-09 22:31 ` Andrew Morton
2010-07-10 4:33 ` Artem Bityutskiy
0 siblings, 1 reply; 7+ messages in thread
From: Andrew Morton @ 2010-07-09 22:31 UTC (permalink / raw)
To: tytso; +Cc: Artem Bityutskiy, Linus Torvalds, LKML, Al Viro, linux-fsdevel
On Fri, 9 Jul 2010 18:27:37 -0400
tytso@mit.edu wrote:
> On Mon, Jul 05, 2010 at 04:04:27PM +0300, Artem Bityutskiy wrote:
> > Linus,
> >
> > I wonder, you did not take this because of the vacation or because you
> > do not like it?
>
> I'd suggest resending the patch to Linus.
>
this:
: commit 140236b4b1c749c9b795ea3d11558a0eb5a3a080
: Author: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
: Date: Thu Jun 10 13:56:33 2010 +0300
:
: VFS: introduce s_dirty accessors
was merged into mainline a few days ago?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/1] VFS: introduce s_dirty accessors
2010-07-09 22:31 ` Andrew Morton
@ 2010-07-10 4:33 ` Artem Bityutskiy
0 siblings, 0 replies; 7+ messages in thread
From: Artem Bityutskiy @ 2010-07-10 4:33 UTC (permalink / raw)
To: Andrew Morton; +Cc: tytso, Linus Torvalds, LKML, Al Viro, linux-fsdevel
> On Fri, 9 Jul 2010 18:27:37 -0400
> tytso@mit.edu wrote:
> this:
>
> : commit 140236b4b1c749c9b795ea3d11558a0eb5a3a080
> : Author: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
> : Date: Thu Jun 10 13:56:33 2010 +0300
> :
> : VFS: introduce s_dirty accessors
>
> was merged into mainline a few days ago?
Yeah, it was merged. Now I'm patiently waiting for Al's response for the
rest.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-07-10 4:33 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-10 10:56 [PATCH 0/1] VFS: introduce s_dirty accessors Artem Bityutskiy
2010-06-10 10:56 ` [PATCH 1/1] " Artem Bityutskiy
2010-06-11 1:42 ` Al Viro
2010-07-05 13:04 ` [PATCH 0/1] " Artem Bityutskiy
2010-07-09 22:27 ` tytso
2010-07-09 22:31 ` Andrew Morton
2010-07-10 4:33 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).