search for: dentry_operations

Displaying 20 results from an estimated 36 matches for "dentry_operations".

2009 Oct 02
0
[PATCH] btrfs: constify dentry_operations
...b/fs/btrfs/ctree.h @@ -2323,7 +2323,7 @@ int btrfs_orphan_del(struct btrfs_trans_handle *trans, struct inode *inode); void btrfs_orphan_cleanup(struct btrfs_root *root); int btrfs_cont_expand(struct inode *inode, loff_t size); int btrfs_invalidate_inodes(struct btrfs_root *root); -extern struct dentry_operations btrfs_dentry_operations; +extern const struct dentry_operations btrfs_dentry_operations; /* ioctl.c */ long btrfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg); --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -5805,6 +5805,6 @@ static const struct inode_operations btrfs_symlink...
2004 Jun 14
0
[PATCH] dcache.c polishing
...ty (struct dentry *dentry) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) +static int ocfs_dentry_revalidate(struct dentry *dentry, struct nameidata *nd) { - return ocfs_foreach_child (dentry, ocfs_empty_func, NULL); + return ocfs_dentry_revalidate24(dentry, nd ? nd->flags : 0); } +struct dentry_operations ocfs_dentry_ops = { + .d_revalidate = ocfs_dentry_revalidate, +}; +#else +struct dentry_operations ocfs_dentry_ops = { + .d_revalidate = ocfs_dentry_revalidate24, +}; +#endif /* * ocfs_foreach_child() @@ -157,6 +141,4 @@ LOG_EXIT_INT (ret); return ret; -} /* ocfs_foreach_child */ -...
2016 Mar 11
1
[PATCH v1 03/19] fs/anon_inodes: new interface to create new inode
...ng it's own pseudo filesystem. IMO that's a bad idea. In case of aio "creating and mounting" takes this: static struct dentry *aio_mount(struct file_system_type *fs_type, int flags, const char *dev_name, void *data) { static const struct dentry_operations ops = { .d_dname = simple_dname, }; return mount_pseudo(fs_type, "aio:", NULL, &ops, AIO_RING_MAGIC); } and static struct file_system_type aio_fs = { .name = "aio", .mount = aio...
2016 Mar 11
1
[PATCH v1 03/19] fs/anon_inodes: new interface to create new inode
...ng it's own pseudo filesystem. IMO that's a bad idea. In case of aio "creating and mounting" takes this: static struct dentry *aio_mount(struct file_system_type *fs_type, int flags, const char *dev_name, void *data) { static const struct dentry_operations ops = { .d_dname = simple_dname, }; return mount_pseudo(fs_type, "aio:", NULL, &ops, AIO_RING_MAGIC); } and static struct file_system_type aio_fs = { .name = "aio", .mount = aio...
2019 Mar 14
1
[PATCH 00/38] VFS: Convert trivial filesystems and more
Hi Al, Here's a set of patches that: (1) Provides a convenience member in struct fs_context that is OR'd into sb->s_iflags by sget_fc(). (2) Provides a convenience vfs_init_pseudo_fs_context() helper function for doing most of the work in mounting a pseudo filesystem. (3) Converts all the trivial filesystems that have no arguments to fs_context. (4) Converts
2019 Mar 27
1
[RFC PATCH 00/68] VFS: Convert a bunch of filesystems to the new mount API
Hi Al, Here's a set of patches that converts a bunch (but not yet all!) to the new mount API. To this end, it makes the following changes: (1) Provides a convenience member in struct fs_context that is OR'd into sb->s_iflags by sget_fc(). (2) Provides a convenience helper function, vfs_init_pseudo_fs_context(), for doing most of the work in mounting a pseudo filesystem.
2010 Apr 26
0
[PATCH V2 11/12] Btrfs: Pre-allocate space for data relocation
...root *root); void btrfs_add_delayed_iput(struct inode *inode); void btrfs_run_delayed_iputs(struct btrfs_root *root); +int btrfs_prealloc_file_range(struct inode *inode, int mode, + u64 start, u64 num_bytes, u64 min_size, + loff_t actual_len, u64 *alloc_hint); extern const struct dentry_operations btrfs_dentry_operations; /* ioctl.c */ diff -urp 2/fs/btrfs/inode.c 3/fs/btrfs/inode.c --- 2/fs/btrfs/inode.c 2010-04-26 17:28:20.489839672 +0800 +++ 3/fs/btrfs/inode.c 2010-04-26 17:28:20.500829420 +0800 @@ -1174,6 +1174,13 @@ out_check: num_bytes, num_bytes, type); BUG_ON(ret);...
2009 Jun 29
1
wine/RosettaStone breakage from recent kernel commit
...e->flags[-sbi->s_high_sierra] & 4))) { filp->f_pos += de_len; continue; diff --git a/fs/isofs/inode.c b/fs/isofs/inode.c index 0f4f9ca..58a7963 100644 --- a/fs/isofs/inode.c +++ b/fs/isofs/inode.c @@ -141,24 +141,24 @@ static const struct dentry_operations isofs_dentry_ops[] = { }; struct iso9660_options{ - char map; - char rock; + unsigned int rock:1; + unsigned int cruft:1; + unsigned int hide:1; + unsigned int showassoc:1; + unsigned int nocompress:1; + unsigned int overriderockperm:1; + uns...
2016 May 09
0
[PATCH v5 03/12] mm: balloon: use general non-lru movable page feature
...*deflate_vq, *stats_vq; @@ -486,6 +491,24 @@ static int virtballoon_migratepage(struct balloon_dev_info *vb_dev_info, return MIGRATEPAGE_SUCCESS; } + +static struct dentry *balloon_mount(struct file_system_type *fs_type, + int flags, const char *dev_name, void *data) +{ + static const struct dentry_operations ops = { + .d_dname = simple_dname, + }; + + return mount_pseudo(fs_type, "balloon-kvm:", NULL, &ops, + BALLOON_KVM_MAGIC); +} + +static struct file_system_type balloon_fs = { + .name = "balloon-kvm", + .mount = balloon_mount, + .kill_sb = kill_a...
2016 May 20
0
[PATCH v6 03/12] mm: balloon: use general non-lru movable page feature
...virtballoon_migratepage(struct balloon_dev_info *vb_dev_info, put_page(page); /* balloon reference */ - return MIGRATEPAGE_SUCCESS; + return 0; } + +static struct dentry *balloon_mount(struct file_system_type *fs_type, + int flags, const char *dev_name, void *data) +{ + static const struct dentry_operations ops = { + .d_dname = simple_dname, + }; + + return mount_pseudo(fs_type, "balloon-kvm:", NULL, &ops, + BALLOON_KVM_MAGIC); +} + +static struct file_system_type balloon_fs = { + .name = "balloon-kvm", + .mount = balloon_mount, + .kill_sb = kill_a...
2016 Mar 30
0
[PATCH v3 04/16] mm/balloon: use general movable page feature into balloon
...fo, mutex_unlock(&vb->balloon_lock); + ClearPageIsolated(page); put_page(page); /* balloon reference */ return MIGRATEPAGE_SUCCESS; } + +static struct dentry *balloon_mount(struct file_system_type *fs_type, + int flags, const char *dev_name, void *data) +{ + static const struct dentry_operations ops = { + .d_dname = simple_dname, + }; + + return mount_pseudo(fs_type, "balloon-kvm:", NULL, &ops, + BALLOON_KVM_MAGIC); +} + +static struct file_system_type balloon_fs = { + .name = "balloon-kvm", + .mount = balloon_mount, + .kill_sb = kill_a...
2016 Mar 21
0
[PATCH v2 14/18] mm/balloon: use general movable page feature into balloon
...fo, mutex_unlock(&vb->balloon_lock); + ClearPageIsolated(page); put_page(page); /* balloon reference */ return MIGRATEPAGE_SUCCESS; } + +static struct dentry *balloon_mount(struct file_system_type *fs_type, + int flags, const char *dev_name, void *data) +{ + static const struct dentry_operations ops = { + .d_dname = simple_dname, + }; + + return mount_pseudo(fs_type, "balloon-kvm:", NULL, &ops, + BALLOON_KVM_MAGIC); +} + +static struct file_system_type balloon_fs = { + .name = "balloon-kvm", + .mount = balloon_mount, + .kill_sb = kill_a...
2012 Jun 26
6
[PATCH] Add a page cache-backed balloon device driver.
...c_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 + * the balloonfs' page cache. + */ +static int balloonfs_writepage(struct page *page, struct writeback_control *wbc) +{ + the_inode.vb->last_reclaim = jiffies; + SetPage...
2012 Jun 26
6
[PATCH] Add a page cache-backed balloon device driver.
...c_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 + * the balloonfs' page cache. + */ +static int balloonfs_writepage(struct page *page, struct writeback_control *wbc) +{ + the_inode.vb->last_reclaim = jiffies; + SetPage...
2016 Mar 21
1
[PATCH v2 14/18] mm/balloon: use general movable page feature into balloon
Hi Minchan, [auto build test ERROR on next-20160318] [cannot apply to v4.5-rc7 v4.5-rc6 v4.5-rc5 v4.5] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Minchan-Kim/Support-non-lru-page-migration/20160321-143339 config: x86_64-randconfig-x000-201612 (attached as .config) reproduce: # save
2016 Mar 21
1
[PATCH v2 14/18] mm/balloon: use general movable page feature into balloon
Hi Minchan, [auto build test ERROR on next-20160318] [cannot apply to v4.5-rc7 v4.5-rc6 v4.5-rc5 v4.5] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Minchan-Kim/Support-non-lru-page-migration/20160321-143339 config: x86_64-randconfig-x000-201612 (attached as .config) reproduce: # save
2012 Jul 25
0
No subject
...+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 > >> + * the balloonfs' page cache.exactlyexactlyexactly > >> + */ > >> +static int balloo...
2012 Jul 25
0
No subject
...+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 > >> + * the balloonfs' page cache.exactlyexactlyexactly > >> + */ > >> +static int balloo...
2019 Apr 25
6
[PATCH v4 0/4] vmw_balloon: Compaction and shrinker support
VMware balloon enhancements: adding support for memory compaction, memory shrinker (to prevent OOM) and splitting of refused pages to prevent recurring inflations. Patches 1-2: Support for compaction Patch 3: Support for memory shrinker - disabled by default Patch 4: Split refused pages to improve performance v3->v4: * "get around to" comment [Michael] * Put list_add under page lock
2019 Apr 25
6
[PATCH v4 0/4] vmw_balloon: Compaction and shrinker support
VMware balloon enhancements: adding support for memory compaction, memory shrinker (to prevent OOM) and splitting of refused pages to prevent recurring inflations. Patches 1-2: Support for compaction Patch 3: Support for memory shrinker - disabled by default Patch 4: Split refused pages to improve performance v3->v4: * "get around to" comment [Michael] * Put list_add under page lock