Displaying 18 results from an estimated 18 matches for "sync_f".
Did you mean:
sync_fs
2002 Dec 06
2
[patch] fix the ext3 data=journal unmount bug
...e took the `wait' out of ext3_write_super(). And
that worked OK too, because the VFS would later write back all the
dirty data for us.
But then an unrelated optimisation to the truncate path caused that to
not work any more, and we were exposed.
This patch adds a new super_block operation `sync_fs', whose mandate is
to "sync the filesystem" for data-integrity purposes. ie: it is a
synchronous writeout, whereas write_super is an asynchronous flush.
It is a minimal fix. Really all the `sync' code in the VFS needs a
rethink. It is _very_ ext2-centric, and needs to be rede...
2002 Dec 15
1
ext3 updates for 2.4.20
There are three patches at
http://www.zip.com.au/~akpm/linux/patches/2.4/2.4.20/
sync_fs.patch:
Fix the ext3 data=journal data-loss-on-unmount bug
sync_fs-fix.patch:
Fix sync_fs.patch to not deadlock the fs when running
`mount -o remount' against a heavily loaded filesystem.
ext3-use-after-free.patch
Fix a use-after-free bug which can cause memory corruption
if the filesyst...
2003 Apr 30
1
ext3 and data=journal bug
Greetings all,
I have a question regarding the fsync data corruption bug that was introduced
in 2.4.20 when using data=journal. I have patched the 2.4.20 kernel with the
3 sync patches available from zip.com.au, and I am wondering if with these
patches the "bug" still exists:
sync_fs.patch
sync_fs-fix.patch
sync_fs-fix-2.patch
In addition the following two patches have also been applied:
ext3-use-after-free.patch
ext3-scheduling-storm.patch
Also, from what I understand 'data=journal' would be beneficial in cases where
data is being written to and read from disk...
2003 Apr 08
2
nasty ext3 problem
Using kernel 2.4.20 with the following patches
ext3-scheduling-storm.patch
ext3-use-after-free.patch
sync_fs-fix-2.patch
sync_fs-fix.patch
sync_fs.patch
Note: this problem started happening before applying the patches
I have a small partition for / since I don't have much there.
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/sda6 303344 98934 188749...
2002 Dec 15
2
problem with Andrew's patch ext3
Hello Andrew,
I patched 2.4.20 with your patch found out on http://lwn.net/Articles/17447/
and I have a big problem with:
once server is booted on 2.4.20 with your patch, when I want to reboot
with /sbin/reboot, server makes a Segmentation fault and it crashs.
I tested it on 50-60 servers and it is the same problem. I tested kernel
2.4.20 without your patch: no problem.
# uname -a
Linux XXXXXX
2009 Jan 24
2
[PATCH] btrfs: flushoncommit mount option
Hi Chris-
Here''s a simpler version of the patch that drops the unrelated sync_fs
stuff.
thanks-
sage
The ''flushoncommit'' mount option forces any data dirtied by a write in a
prior transaction to commit as part of the current commit. This makes
the committed state a fully consistent view of the file system from the
application''s perspective (i.e....
2008 Feb 22
1
[PATCH] IGET: Remove initialisation of read_inode() super op from BTRFS
...--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -462,7 +462,6 @@ static struct super_operations btrfs_super_ops = {
.delete_inode = btrfs_delete_inode,
.put_inode = btrfs_put_inode,
.put_super = btrfs_put_super,
- .read_inode = btrfs_read_locked_inode,
.write_super = btrfs_write_super,
.sync_fs = btrfs_sync_fs,
.write_inode = btrfs_write_inode,
2004 Sep 04
0
[PATCH] remove ocfs_put_inode
...per.c (revision 1426)
+++ src/super.c (working copy)
@@ -196,9 +196,7 @@
static struct super_operations ocfs_sops = {
.statfs = ocfs_statfs,
- .put_inode = ocfs_put_inode,
.clear_inode = ocfs_clear_inode,
- //put_inode = force_delete,
.delete_inode = ocfs_delete_inode,
.sync_fs = ocfs_sync_fs,
.write_super = ocfs_write_super,
Index: src/inode.c
===================================================================
--- src/inode.c (revision 1426)
+++ src/inode.c (working copy)
@@ -521,26 +521,6 @@
return status;
}
-/*
- * ocfs_put_inode()
- *
- */
-void ocfs_put_inode...
2009 Jul 20
1
[PATCH] ocfs2: flush dentry lock drop when sync ocfs2 volume.
...bugs. See
http://oss.oracle.com/bugzilla/show_bug.cgi?id=1133 and
http://oss.oracle.com/bugzilla/show_bug.cgi?id=1135. And it happens
easily if we have opened a lot of inodes.
For 1135, the reason is that during umount will call
generic_shutdown_super and it will do:
1. shrink_dcache_for_umount
2. sync_filesystem.
3. invalidate_inodes.
In shrink_dcache_for_umount, we will drop the dentry, and queue
ocfs2_wq for dentry lock put. While in invalidate_inodes we will
call invalidate_list which will iterate all the inodes for the sb.
The bad thing is that in this function it will call
cond_resched_lock(...
2003 Mar 20
2
[Patch] ext3_journal_stop inode access
...epage ends up accessing the inode after the page lock has
been dropped (and hence at a point where it is possible for the inode to
have been reclaimed.) Tested minimally (it builds and boots.)
It makes ext3_journal_stop take an sb, not an inode, as its final
parameter. It also sets sb->s_need_sync_fs, not sb->s_dirt, as setting
s_dirt was only ever a workaround for the lack of a proper sync-fs
mechanism.
Btw, we clear s_need_sync_fs in sync_filesystems(). Don't we also need
to do the same in fsync_super()?
--Stephen
2012 Jun 26
6
[PATCH] Add a page cache-backed balloon device driver.
.../* We should only ever be called once! */
+ BUG_ON(already_inited);
+ already_inited = true;
+ inode_init_once(&the_inode.inode);
+ return &the_inode.inode;
+}
+
+/* Noop implementation of destroy_inode. */
+static void balloon_destroy_inode(struct inode *inode)
+{
+}
+
+static int balloon_sync_fs(struct super_block *sb, int wait)
+{
+ return filemap_write_and_wait(the_inode.inode.i_mapping);
+}
+
+static const struct super_operations balloonfs_ops = {
+ .alloc_inode = balloon_alloc_inode,
+ .destroy_inode = balloon_destroy_inode,
+ .sync_fs = balloon_sync_fs,
+};
+
+static const struct den...
2012 Jun 26
6
[PATCH] Add a page cache-backed balloon device driver.
.../* We should only ever be called once! */
+ BUG_ON(already_inited);
+ already_inited = true;
+ inode_init_once(&the_inode.inode);
+ return &the_inode.inode;
+}
+
+/* Noop implementation of destroy_inode. */
+static void balloon_destroy_inode(struct inode *inode)
+{
+}
+
+static int balloon_sync_fs(struct super_block *sb, int wait)
+{
+ return filemap_write_and_wait(the_inode.inode.i_mapping);
+}
+
+static const struct super_operations balloonfs_ops = {
+ .alloc_inode = balloon_alloc_inode,
+ .destroy_inode = balloon_destroy_inode,
+ .sync_fs = balloon_sync_fs,
+};
+
+static const struct den...
2012 Jul 25
0
No subject
...e);
> >> + return &the_inode.inode;
> >> +}
> >> +
> >> +/* Noop implementation of destroy_inode. */
> >> +static void balloon_destroy_inode(struct inode *inode)
> >> +{
> >> +}
> >> +
> >> +static int balloon_sync_fs(struct super_block *sb, int wait)
> >> +{
> >> + return filemap_write_and_wait(the_inode.inode.i_mapping);
> >> +}
> >> +
> >> +static const struct super_operations balloonfs_ops = {
> >> + .alloc_inode = balloon_alloc_inode,
> &g...
2012 Jul 25
0
No subject
...e);
> >> + return &the_inode.inode;
> >> +}
> >> +
> >> +/* Noop implementation of destroy_inode. */
> >> +static void balloon_destroy_inode(struct inode *inode)
> >> +{
> >> +}
> >> +
> >> +static int balloon_sync_fs(struct super_block *sb, int wait)
> >> +{
> >> + return filemap_write_and_wait(the_inode.inode.i_mapping);
> >> +}
> >> +
> >> +static const struct super_operations balloonfs_ops = {
> >> + .alloc_inode = balloon_alloc_inode,
> &g...
2010 Mar 22
5
[PATCH 0/5] asynchronous commit, snapshot ponies
...n
continues.
The snapshot approach is nice because it provides rollback. If something goes
wrong, we can cleanly go back to the most recent consistent commit. The
performance is also very similar to what I was doing before (using the
''flushoncommit'' mount option and tiggering a sync_fs to flush data). The only
difference is the old snapshots stick around for a bit longer before I delete
them and the references get dropped.
The first patch introduces a generic btrfs_commit_transaction_async() helper,
which starts btrfs_commit_transaction asynchronously and returns either
when t...
2009 Apr 17
26
OCFS2 1.4: Patches backported from mainline
Please review the list of patches being applied to the ocfs2 1.4 tree.
All patches list the mainline commit hash.
Thanks
Sunil
2008 Dec 22
56
[git patches] Ocfs2 patches for merge window, batch 2/3
Hi,
This is the second batch of Ocfs2 patches intended for the merge window. The
1st batch were sent out previously:
http://lkml.org/lkml/2008/12/19/280
The bulk of this set is comprised of Jan Kara's patches to add quota support
to Ocfs2. Many of the quota patches are to generic code, which I carried to
make merging of the Ocfs2 support easier. All of the non-ocfs2 patches
should have
2009 Mar 17
33
[git patches] Ocfs2 updates for 2.6.30
Hi,
The following patches comprise the bulk of Ocfs2 updates for the
2.6.30 merge window. Aside from larger, more involved fixes, we're adding
the following features, which I will describe in the order their patches are
mailed.
Sunil's exported some more state to our debugfs files, and
consolidated some other aspects of our debugfs infrastructure. This will
further aid us in debugging