Home
last modified time | relevance | path

Searched refs:cache_file (Results 1 - 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/fs/hmdfs/
H A Dstash.c270 head->size = cpu_to_le64(i_size_read(file_inode(cache->cache_file))); in hmdfs_set_stash_file_head()
315 written = kernel_write(cache->cache_file, &cache_head, head_size, &pos); in hmdfs_flush_stash_file_metadata()
324 written = kernel_write(cache->cache_file, cache->path, cache->path_len, in hmdfs_flush_stash_file_metadata()
526 struct file *cache_file = info->cache->cache_file; in hmdfs_close_stash_file() local
527 struct dentry *c_dentry = file_dentry(cache_file); in hmdfs_close_stash_file()
539 err = vfs_fsync(cache_file, 0); in hmdfs_close_stash_file()
553 fput(cache->cache_file); in hmdfs_del_file_cache()
605 cache->cache_file = hmdfs_new_stash_file(&conn->sbi->stash_work_dir, in hmdfs_new_file_cache()
607 if (IS_ERR(cache->cache_file)) { in hmdfs_new_file_cache()
[all...]
H A Dinode.h61 struct file *cache_file; member
/kernel/linux/linux-6.6/fs/hmdfs/
H A Dstash.c260 head->size = cpu_to_le64(i_size_read(file_inode(cache->cache_file))); in hmdfs_set_stash_file_head()
305 written = kernel_write(cache->cache_file, &cache_head, head_size, &pos); in hmdfs_flush_stash_file_metadata()
314 written = kernel_write(cache->cache_file, cache->path, cache->path_len, in hmdfs_flush_stash_file_metadata()
516 struct file *cache_file = info->cache->cache_file; in hmdfs_close_stash_file() local
517 struct dentry *c_dentry = file_dentry(cache_file); in hmdfs_close_stash_file()
529 err = vfs_fsync(cache_file, 0); in hmdfs_close_stash_file()
543 fput(cache->cache_file); in hmdfs_del_file_cache()
595 cache->cache_file = hmdfs_new_stash_file(&conn->sbi->stash_work_dir, in hmdfs_new_file_cache()
597 if (IS_ERR(cache->cache_file)) { in hmdfs_new_file_cache()
[all...]
H A Dinode.h61 struct file *cache_file; member
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/
H A Dnandsim.c97 static char *cache_file = NULL; variable
129 module_param(cache_file, charp, 0400);
163 MODULE_PARM_DESC(cache_file, "File to use to cache nand pages instead of memory");
273 /* Maximum page cache pages needed to read or write a NAND page to the cache_file */
539 if (cache_file) { in ns_alloc_device()
540 cfile = filp_open(cache_file, O_CREAT | O_RDWR | O_LARGEFILE, 0600); in ns_alloc_device()
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/
H A Dnandsim.c96 static char *cache_file = NULL; variable
128 module_param(cache_file, charp, 0400);
162 MODULE_PARM_DESC(cache_file, "File to use to cache nand pages instead of memory");
275 /* Maximum page cache pages needed to read or write a NAND page to the cache_file */
541 if (cache_file) { in ns_alloc_device()
542 cfile = filp_open(cache_file, O_CREAT | O_RDWR | O_LARGEFILE, 0600); in ns_alloc_device()

Completed in 12 milliseconds