search for: super_operation

Displaying 17 results from an estimated 17 matches for "super_operation".

Did you mean: super_operations
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
2001 Aug 13
0
(no subject)
...n't looked at ext3 or played with it but in order for a > filesystem to work with knfsd (in it's current form) it must: Neil, I sent Stephen a patch to update ext3 with the same changes that went into ext2 2.2.17 and 2.2.18, which include your NFS changes. > Support the read_inode super_operation and > 1/ recognise if the inode number refers to a currently active inode > or not > 2a/ if not, must return an is_bad_inode() inode. The (2a - return bad_inode for deleted inodes) step unfortunately breaks ext3 recovery. It is somewhat difficult to fix, because one of the...
2001 Aug 13
0
(no subject)
...without any problems yet, quite stable. Ofcourse, "apparently stable" is quite different from "absolutely reliable"... I haven't looked at ext3 or played with it but in order for a filesystem to work with knfsd (in it's current form) it must: Support the read_inode super_operation and 1/ recognise if the inode number refers to a currently active inode or not 2a/ if not, must return an is_bad_inode() inode. 2b/ if so must provide a completely filled-in inode (nfs doesn't for example. ext2 does, ext3 almost certainly does). 3/ The &quo...
2002 Dec 06
2
[patch] fix the ext3 data=journal unmount bug
...sync_old_buffers(void) { lock_kernel(); sync_unlocked_inodes(); - sync_supers(0); + sync_supers(0, 0); unlock_kernel(); for (;;) { --- linux-akpm/include/linux/fs.h~sync_fs Thu Dec 5 21:33:56 2002 +++ linux-akpm-akpm/include/linux/fs.h Thu Dec 5 21:33:56 2002 @@ -894,6 +894,7 @@ struct super_operations { void (*delete_inode) (struct inode *); void (*put_super) (struct super_block *); void (*write_super) (struct super_block *); + int (*sync_fs) (struct super_block *); void (*write_super_lockfs) (struct super_block *); void (*unlockfs) (struct super_block *); int (*statfs) (struct supe...
2010 Jan 29
0
[PATCH 3/3] ocfs2:freeze-thaw: make it work -v2
...uper *osb); static int ocfs2_freeze_lock_supported(struct ocfs2_super *osb); +static int is_kernel_thread(void); +static int ocfs2_freeze_fs(struct super_block *sb); +static int is_freeze_master(struct ocfs2_super *osb); +static int ocfs2_unfreeze_fs(struct super_block *sb); static const struct super_operations ocfs2_sops = { .statfs = ocfs2_statfs, @@ -149,6 +153,8 @@ static const struct super_operations ocfs2_sops = { .show_options = ocfs2_show_options, .quota_read = ocfs2_quota_read, .quota_write = ocfs2_quota_write, + .freeze_fs = ocfs2_freeze_fs, + .unfreeze_fs = ocfs2_unfreeze_fs, };...
2008 Feb 22
1
[PATCH] IGET: Remove initialisation of read_inode() super op from BTRFS
...Signed-off-by: David Howells <dhowells@redhat.com> --- fs/btrfs/super.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index a46300c..612a34f 100644 --- 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
this doesn't do anything but noisy debug printks anymore Index: src/super.c =================================================================== --- src/super.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 ===========================...
2003 Dec 01
0
[PATCH] 2.4.23 ext3 warning
...ill warning if CONFIG_QUOTA is disabled. --- linux-2.4.23/fs/ext3/super.c.orig Fri Nov 28 21:04:40 2003 +++ linux-2.4.23/fs/ext3/super.c Sun Nov 30 12:16:00 2003 @@ -449,7 +449,6 @@ } static struct dquot_operations ext3_qops; -static int (*old_sync_dquot)(struct dquot *dquot); static struct super_operations ext3_sops = { read_inode: ext3_read_inode, /* BKL held */ @@ -1773,6 +1772,8 @@ */ #ifdef CONFIG_QUOTA + +static int (*old_sync_dquot)(struct dquot *dquot); /* Blocks: (2 data blocks) * (3 indirect + 1 descriptor + 1 bitmap) + superblock */ #define EXT3_OLD_QFMT_BLOCKS 11 Gr{oetje,eeti...
2018 May 10
0
suboptimal type isomorphy handling involving opaque structs
...462 iattr 462 inode 462 inode_operations 462 kiocb 462 lock_manager_operations 462 mem_dqinfo 462 mm_struct 462 page 462 path 462 quotactl_ops 462 quota_format_ops 462 quota_format_type 462 quota_info 462 rw_semaphore 462 super_block 462 super_operations 462 task_struct 462 vm_area_struct 471 bus_type 471 class 471 device 471 device_driver 471 device_type 471 dev_pm_domain 471 dev_pm_info 471 dev_pm_ops On why the struct types are duplicated *that* often: I skimmed IRLinker::computeTypeMapping(), and it loo...
2012 Jun 26
6
[PATCH] Add a page cache-backed balloon device driver.
...); + 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 dentry_operations balloonfs_dentry_operations = { +}; + +/* + * balloonfs_writepage is called when linux needs to reclaim memory held using + *...
2012 Jun 26
6
[PATCH] Add a page cache-backed balloon device driver.
...); + 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 dentry_operations balloonfs_dentry_operations = { +}; + +/* + * balloonfs_writepage is called when linux needs to reclaim memory held using + *...
2011 Jun 24
10
[PATCH 0/9] remove i_alloc_sem V2
i_alloc_sem has always been a bit of an odd "lock". It''s the only remaining rw_semaphore that can be released by a different thread than the one that locked it, and it''s use case in the core direct I/O code is more like a counter given that the writers already have external serialization. This series removes it in favour of a simpler counter scheme, thus getting rid
2012 Jul 25
0
No subject
...de *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 dentry_operations balloonfs_dentry_o...
2012 Jul 25
0
No subject
...de *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 dentry_operations balloonfs_dentry_o...
2013 Oct 16
0
[PATCH] Btrfs: add tests for btrfs_get_extent V2
...btrfs_destroy_test_fs(); return ret; diff --git a/fs/btrfs/tests/btrfs-tests.c b/fs/btrfs/tests/btrfs-tests.c index 697d527..757ef00 100644 --- a/fs/btrfs/tests/btrfs-tests.c +++ b/fs/btrfs/tests/btrfs-tests.c @@ -24,11 +24,17 @@ static struct vfsmount *test_mnt = NULL; +static const struct super_operations btrfs_test_super_ops = { + .alloc_inode = btrfs_alloc_inode, + .destroy_inode = btrfs_test_destroy_inode, +}; + static struct dentry *btrfs_test_mount(struct file_system_type *fs_type, int flags, const char *dev_name, void *data) { - return mount_pseudo(fs_type, "btr...
2001 Mar 13
5
is this null block OK?
...write_unlock(&fd->fd_lock); EXIT; return; } static int presto_do_truncate(struct presto_file_set *fset, struct dentry *dentry, loff_t length, loff_t size_check) { struct inode *inode = dentry->d_inode; struct super_operations *op; int error; struct iattr newattrs; ENTRY; /* Not pretty: "inode->i_size" shouldn't really be "loff_t". */ if ((off_t) length < 0) return -EINVAL; down(&inode->i_sem); if (size_chec...
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