Home
last modified time | relevance | path

Searched full:fsync (Results 1 – 25 of 135) sorted by relevance

123456

/linux/tools/testing/selftests/cachestat/
H A Dtest_cachestat.c103 * fsync() is implemented via noop_fsync() on tmpfs. This makes the fsync()
120 * If test_fsync == true, fsync the file, then check the number of dirty
176 } else if (fsync(fd)) { in test_cachestat()
177 ksft_print_msg("fsync fails.\n"); in test_cachestat()
182 ksft_print_msg("Cachestat call (after fsync) returned %ld\n", in test_cachestat()
191 "Number of dirty should be zero after fsync.\n"); in test_cachestat()
194 ksft_print_msg("Cachestat (after fsync) returned non-zero.\n"); in test_cachestat()
340 ksft_test_result_fail("cachestat fsync fails with normal file\n"); in main()
344 ksft_test_result_pass("cachestat fsync works with a normal file\n"); in main()
/linux/Documentation/admin-guide/device-mapper/
H A Dlog-writes.rst104 Say you want to test fsync on your file system. You would do something like
113 <some test that does fsync at the end>
114 dmsetup message log 0 mark fsync
119 replay-log --log /dev/sdc --replay /dev/sdb --end-mark fsync
/linux/include/sound/sof/
H A Ddai-imx.h23 uint32_t fsync_rate; /* FSYNC frequency in Hz */
44 uint32_t fsync_rate; /* FSYNC frequency in Hz */
H A Ddai-amd.h18 uint32_t fsync_rate; /* FSYNC frequency in Hz */
/linux/Documentation/filesystems/
H A Doverlayfs.rst789 The fsync(2) system call ensures that the data and metadata of a file
793 Without an fsync(2) call, there is no guarantee that the observed
801 ordering on storing changes without explicit fsync(2) calls, in case
804 experience, overlayfs calls fsync(2) on the upper file before completing
807 By default, overlayfs does not explicitly call fsync(2) on copied up
809 persist the user's modification unless the user calls fsync(2).
810 The fsync during copy up only guarantees that if a copy up is observed
815 fsync on a file also persists the parent directory changes, because they
821 to the underlying upper layer. This is controlled by the "fsync" mount
825 Call fsync(2) on upper file before completion of data copy up.
[all …]
/linux/fs/ext4/
H A Dfsync.c3 * linux/fs/ext4/fsync.c
13 * ext4fs fsync primitive
118 * Fastcommit does not really support fsync on directories or other in ext4_fsync_journal()
H A DMakefile9 extents_status.o file.o fsmap.o fsync.o hash.o ialloc.o \
/linux/Documentation/devicetree/bindings/soc/fsl/cpm_qe/
H A Dfsl,cpm1-tsa.yaml103 fsl,fsync-rising-edge:
107 clock. If 'fsync-rising-edge' is not present, pulses are sampled with
193 fsl,fsync-rising-edge;
H A Dfsl,qe-tsa.yaml103 fsl,fsync-rising-edge:
109 fsl,fsync-active-low:
198 fsl,fsync-rising-edge;
/linux/sound/soc/rockchip/
H A Drockchip_sai.h65 * SCLK/FSYNC auto gated when TX FIFO empty.
157 * | DATA LEFTx (step: 0.5 cycle) | FSYNC Edge |
164 * | FSYNC Edge | DATA RIGHTx (step: 0.5 cycle) |
199 * Optimize SCLK/FSYNC Timing Alignment
/linux/sound/soc/codecs/
H A Dssm3515.c240 bool fpol_inv = false; /* non-inverted: frame starts with low-to-high FSYNC */ in ssm3515_set_fmt()
278 * what the datasheet calls 'Pulsed FSYNC mode' and '50% in ssm3515_set_fmt()
279 * FSYNC mode'. in ssm3515_set_fmt()
282 * the FSYNC polarity, so go with that. in ssm3515_set_fmt()
H A Dcs42l42.c790 u32 fsync = sclk / sample_rate; in cs42l42_asp_config() local
793 if (((fsync * sample_rate) != sclk) || ((fsync % 2) != 0)) { in cs42l42_asp_config()
804 CS42L42_FRAC0_VAL(fsync - 1) << in cs42l42_asp_config()
809 CS42L42_FRAC1_VAL(fsync - 1) << in cs42l42_asp_config()
812 fsync = fsync / 2; in cs42l42_asp_config()
816 CS42L42_FRAC0_VAL(fsync - 1) << in cs42l42_asp_config()
821 CS42L42_FRAC1_VAL(fsync - 1) << in cs42l42_asp_config()
/linux/fs/
H A Dsync.c182 if (!file->f_op->fsync) in vfs_fsync_range()
186 return file->f_op->fsync(file, start, end, datasync); in vfs_fsync_range()
191 * vfs_fsync - perform a fsync or fdatasync on a file
214 SYSCALL_DEFINE1(fsync, unsigned int, fd) in SYSCALL_DEFINE1() argument
/linux/fs/orangefs/
H A Dfile.c476 new_op->upcall.req.fsync.refn = orangefs_inode->refn; in orangefs_fsync()
560 * Do not send fsync to OrangeFS server on a close. Do send fsync in orangefs_flush()
561 * on an explicit fsync call. This duplicates historical OrangeFS in orangefs_flush()
585 .fsync = orangefs_fsync,
/linux/fs/btrfs/
H A Dtree-log.c50 * 1) on rename or unlink, if the inode being unlinked isn't in the fsync
51 * log, we must force a full commit before doing an fsync of the directory
59 * fsync foo/some_dir/some_file
61 * The fsync above will unlink the original some_dir without recording
63 * unless the fsync of some_file forces a full commit
65 * 2) we must log any new names for any file or dir that is in the fsync
81 * fsync(f1)
83 * The directory f1 was fully removed from the FS, but fsync was never
245 * Instead of doing a tree commit on every fsync, we use the
249 * and then the fsync is considered complete.
[all …]
/linux/Documentation/devicetree/bindings/pinctrl/
H A Dmarvell,armada-370-pinctrl.txt26 mpp10 10 gpio, ge0(txctl), uart0(cts), tdm(fsync), audio(sdi)
84 mpp57 57 gpio, dev(cs3), uart1(rxd), tdm(fsync), sata0(prsnt),
/linux/fs/gfs2/
H A Dglops.h26 void gfs2_ail_flush(struct gfs2_glock *gl, bool fsync);
/linux/tools/testing/selftests/bpf/prog_tests/
H A Darg_parsing.c147 if (!ASSERT_OK(fsync(fileno(fp)), "fsync tmp")) in test_parse_test_list_file()
/linux/fs/ramfs/
H A Dfile-mmu.c45 .fsync = noop_fsync,
/linux/tools/testing/selftests/ublk/
H A Dcommon.c10 fsync(dev->fds[i]); in backing_file_tgt_deinit()
/linux/include/uapi/sound/
H A Dasoc.h177 /* DAI topology FSYNC parameter
178 * For the backwards capability, by default codec is fsync provider
180 #define SND_SOC_TPLG_FSYNC_CP 0 /* codec is fsync provider */
181 #define SND_SOC_TPLG_FSYNC_CC 1 /* codec is fsync consumer */
/linux/fs/overlayfs/
H A Dcopy_up.c360 /* call fsync once, either now or later along with metadata */ in ovl_copy_up_file()
720 /* fsync metadata before moving it into upper dir */ in ovl_copy_up_metadata()
1149 * With "fsync=strict", we fsync after final metadata copyup, for in ovl_copy_up_one()
1153 * By default, we want to avoid fsync on all meta copyup, because in ovl_copy_up_one()
1155 * only fsync on data copyup as legacy behavior. in ovl_copy_up_one()
/linux/Documentation/filesystems/fuse/
H A Dfuse-io.rst38 reclaim on memory pressure) or explicitly (invoked by close(2), fsync(2) and
/linux/fs/smb/client/
H A Dcifsfs.c1527 * Directory operations under CIFS/SMB2/SMB3 are synchronous, so fsync()
1569 .fsync = cifs_fsync,
1589 .fsync = cifs_strict_fsync,
1609 .fsync = cifs_fsync,
1627 .fsync = cifs_fsync,
1645 .fsync = cifs_strict_fsync,
1663 .fsync = cifs_fsync,
1684 .fsync = cifs_dir_fsync,
/linux/Documentation/translations/zh_CN/core-api/
H A Derrseq.rst22 最初的用例是跟踪文件同步系统调用( ``fsync``, ``fdatasync``, ``msync`` 和

123456