Searched refs:datasync (Results 1 - 74 of 74) sorted by relevance

/linux-4.1.27/fs/coda/
H A Dcoda_int.h14 int coda_fsync(struct file *coda_file, loff_t start, loff_t end, int datasync);
H A Dfile.c192 int coda_fsync(struct file *coda_file, loff_t start, loff_t end, int datasync) coda_fsync() argument
212 err = vfs_fsync(host_file, datasync); coda_fsync()
213 if (!err && !datasync) coda_fsync()
/linux-4.1.27/fs/
H A Dsync.c172 * @datasync: perform only datasync
175 * @datasync is set only metadata needed to access modified file data is
178 int vfs_fsync_range(struct file *file, loff_t start, loff_t end, int datasync) vfs_fsync_range() argument
184 if (!datasync && (inode->i_state & I_DIRTY_TIME)) { vfs_fsync_range()
190 return file->f_op->fsync(file, start, end, datasync); vfs_fsync_range()
197 * @datasync: only perform a fdatasync operation
199 * Write back data and metadata for @file to disk. If @datasync is
202 int vfs_fsync(struct file *file, int datasync) vfs_fsync() argument
204 return vfs_fsync_range(file, 0, LLONG_MAX, datasync); vfs_fsync()
208 static int do_fsync(unsigned int fd, int datasync) do_fsync() argument
214 ret = vfs_fsync(f.file, datasync); do_fsync()
H A Dlibfs.c932 * @datasync: only synchronize essential metadata if true
939 int datasync) __generic_file_fsync()
953 if (datasync && !(inode->i_state & I_DIRTY_DATASYNC)) __generic_file_fsync()
972 * @datasync: only synchronize essential metadata if true
977 int datasync) generic_file_fsync()
982 err = __generic_file_fsync(file, start, end, datasync); generic_file_fsync()
1021 int noop_fsync(struct file *file, loff_t start, loff_t end, int datasync) noop_fsync() argument
938 __generic_file_fsync(struct file *file, loff_t start, loff_t end, int datasync) __generic_file_fsync() argument
976 generic_file_fsync(struct file *file, loff_t start, loff_t end, int datasync) generic_file_fsync() argument
H A Dblock_dev.c336 int blkdev_fsync(struct file *filp, loff_t start, loff_t end, int datasync) blkdev_fsync() argument
/linux-4.1.27/fs/nfs/
H A Dnfs4file.c100 nfs4_file_fsync(struct file *file, loff_t start, loff_t end, int datasync) nfs4_file_fsync() argument
113 ret = nfs_file_fsync_commit(file, start, end, datasync); nfs4_file_fsync()
115 ret = pnfs_sync_inode(inode, !!datasync); nfs4_file_fsync()
H A Dpnfs.h158 int (*sync)(struct inode *inode, bool datasync);
272 int pnfs_generic_sync(struct inode *inode, bool datasync);
273 int pnfs_nfs_generic_sync(struct inode *inode, bool datasync);
496 pnfs_sync_inode(struct inode *inode, bool datasync) pnfs_sync_inode() argument
500 return NFS_SERVER(inode)->pnfs_curr_ld->sync(inode, datasync); pnfs_sync_inode()
586 pnfs_sync_inode(struct inode *inode, bool datasync) pnfs_sync_inode() argument
H A Dfile.c244 nfs_file_fsync_commit(struct file *file, loff_t start, loff_t end, int datasync) nfs_file_fsync_commit() argument
251 dprintk("NFS: fsync file(%pD2) datasync %d\n", file, datasync); nfs_file_fsync_commit()
276 nfs_file_fsync(struct file *file, loff_t start, loff_t end, int datasync) nfs_file_fsync() argument
289 ret = nfs_file_fsync_commit(file, start, end, datasync); nfs_file_fsync()
H A Dpnfs_nfs.c878 pnfs_nfs_generic_sync(struct inode *inode, bool datasync) pnfs_nfs_generic_sync() argument
880 if (datasync) pnfs_nfs_generic_sync()
H A Ddir.c977 int datasync) nfs_fsync_dir()
981 dfprintk(FILE, "NFS: fsync dir(%pD2) datasync %d\n", filp, datasync); nfs_fsync_dir()
976 nfs_fsync_dir(struct file *filp, loff_t start, loff_t end, int datasync) nfs_fsync_dir() argument
H A Dpnfs.c2236 pnfs_generic_sync(struct inode *inode, bool datasync) pnfs_generic_sync() argument
/linux-4.1.27/fs/ext3/
H A Dfsync.c41 int ext3_sync_file(struct file *file, loff_t start, loff_t end, int datasync) ext3_sync_file() argument
49 trace_ext3_sync_file_enter(file, datasync); ext3_sync_file()
83 if (datasync) ext3_sync_file()
/linux-4.1.27/fs/ext4/
H A Dfsync.c87 int ext4_sync_file(struct file *file, loff_t start, loff_t end, int datasync) ext4_sync_file() argument
98 trace_ext4_sync_file_enter(file, datasync); ext4_sync_file()
109 ret = generic_file_fsync(file, start, end, datasync); ext4_sync_file()
137 commit_tid = datasync ? ei->i_datasync_tid : ei->i_sync_tid; ext4_sync_file()
H A Dext4_jbd2.h373 int datasync) ext4_update_inode_fsync_trans()
379 if (datasync) ext4_update_inode_fsync_trans()
371 ext4_update_inode_fsync_trans(handle_t *handle, struct inode *inode, int datasync) ext4_update_inode_fsync_trans() argument
/linux-4.1.27/fs/ext2/
H A Dfile.c74 int ext2_fsync(struct file *file, loff_t start, loff_t end, int datasync) ext2_fsync() argument
80 ret = generic_file_fsync(file, start, end, datasync); ext2_fsync()
H A Dext2.h793 int datasync);
/linux-4.1.27/fs/jfs/
H A Dfile.c32 int jfs_fsync(struct file *file, loff_t start, loff_t end, int datasync) jfs_fsync() argument
43 (datasync && !(inode->i_state & I_DIRTY_DATASYNC))) { jfs_fsync()
/linux-4.1.27/fs/nilfs2/
H A Dfile.c30 int nilfs_sync_file(struct file *file, loff_t start, loff_t end, int datasync) nilfs_sync_file() argument
45 if (datasync) nilfs_sync_file()
/linux-4.1.27/fs/exofs/
H A Dfile.c46 int datasync) exofs_file_fsync()
45 exofs_file_fsync(struct file *filp, loff_t start, loff_t end, int datasync) exofs_file_fsync() argument
/linux-4.1.27/include/trace/events/
H A Dext3.h428 TP_PROTO(struct file *file, int datasync),
430 TP_ARGS(file, datasync),
436 __field( int, datasync )
444 __entry->datasync = datasync;
448 TP_printk("dev %d,%d ino %lu parent %ld datasync %d ",
451 (unsigned long) __entry->parent, __entry->datasync)
H A Dbtrfs.h397 TP_PROTO(struct file *file, int datasync),
399 TP_ARGS(file, datasync),
404 __field( int, datasync )
414 __entry->datasync = datasync;
419 TP_printk("root = %llu(%s), ino = %ld, parent = %ld, datasync = %d",
422 __entry->datasync)
H A Df2fs.h187 TP_PROTO(struct inode *inode, int need_cp, int datasync, int ret),
189 TP_ARGS(inode, need_cp, datasync, ret),
195 __field(int, datasync)
203 __entry->datasync = datasync;
208 "datasync = %d, ret = %d",
211 __entry->datasync,
H A Dext4.h861 TP_PROTO(struct file *file, int datasync),
863 TP_ARGS(file, datasync),
869 __field( int, datasync )
877 __entry->datasync = datasync;
881 TP_printk("dev %d,%d ino %lu parent %lu datasync %d ",
884 (unsigned long) __entry->parent, __entry->datasync)
/linux-4.1.27/fs/9p/
H A Dvfs_file.c440 int datasync) v9fs_file_fsync()
452 p9_debug(P9_DEBUG_VFS, "filp %p datasync %x\n", filp, datasync); v9fs_file_fsync()
464 int datasync) v9fs_file_fsync_dotl()
475 p9_debug(P9_DEBUG_VFS, "filp %p datasync %x\n", filp, datasync); v9fs_file_fsync_dotl()
479 retval = p9_client_fsync(fid, datasync); v9fs_file_fsync_dotl()
439 v9fs_file_fsync(struct file *filp, loff_t start, loff_t end, int datasync) v9fs_file_fsync() argument
463 v9fs_file_fsync_dotl(struct file *filp, loff_t start, loff_t end, int datasync) v9fs_file_fsync_dotl() argument
H A Dv9fs_vfs.h74 int datasync);
/linux-4.1.27/fs/hostfs/
H A Dhostfs.h80 extern int fsync_file(int fd, int datasync);
H A Dhostfs_user.c156 int fsync_file(int fd, int datasync) fsync_file() argument
159 if (datasync) fsync_file()
H A Dhostfs_kern.c372 int datasync) hostfs_fsync()
382 ret = fsync_file(HOSTFS_I(inode)->fd, datasync); hostfs_fsync()
371 hostfs_fsync(struct file *file, loff_t start, loff_t end, int datasync) hostfs_fsync() argument
/linux-4.1.27/fs/reiserfs/
H A Ddir.c18 int datasync);
32 int datasync) reiserfs_dir_fsync()
31 reiserfs_dir_fsync(struct file *filp, loff_t start, loff_t end, int datasync) reiserfs_dir_fsync() argument
H A Dfile.c151 int datasync) reiserfs_sync_file()
150 reiserfs_sync_file(struct file *filp, loff_t start, loff_t end, int datasync) reiserfs_sync_file() argument
H A Dinode.c1772 * to properly mark inodes for datasync and such, but only actually
/linux-4.1.27/fs/hpfs/
H A Dfile.c22 int hpfs_file_fsync(struct file *file, loff_t start, loff_t end, int datasync) hpfs_file_fsync() argument
/linux-4.1.27/fs/ncpfs/
H A Dfile.c24 static int ncp_fsync(struct file *file, loff_t start, loff_t end, int datasync) ncp_fsync() argument
/linux-4.1.27/fs/ecryptfs/
H A Dfile.c271 ecryptfs_fsync(struct file *file, loff_t start, loff_t end, int datasync) ecryptfs_fsync() argument
279 return vfs_fsync(ecryptfs_file_to_lower(file), datasync); ecryptfs_fsync()
/linux-4.1.27/fs/fat/
H A Dfile.c155 int fat_file_fsync(struct file *filp, loff_t start, loff_t end, int datasync) fat_file_fsync() argument
160 res = generic_file_fsync(filp, start, end, datasync); fat_file_fsync()
H A Dfat.h367 int datasync);
/linux-4.1.27/fs/overlayfs/
H A Dreaddir.c438 int datasync) ovl_dir_fsync()
474 return vfs_fsync_range(realfile, start, end, datasync); ovl_dir_fsync()
437 ovl_dir_fsync(struct file *file, loff_t start, loff_t end, int datasync) ovl_dir_fsync() argument
/linux-4.1.27/drivers/video/fbdev/core/
H A Dfb_defio.c69 int fb_deferred_io_fsync(struct file *file, loff_t start, loff_t end, int datasync) fb_deferred_io_fsync() argument
/linux-4.1.27/fs/jffs2/
H A Dfile.c32 int jffs2_fsync(struct file *filp, loff_t start, loff_t end, int datasync) jffs2_fsync() argument
/linux-4.1.27/fs/logfs/
H A Dfile.c223 int logfs_fsync(struct file *file, loff_t start, loff_t end, int datasync) logfs_fsync() argument
H A Dlogfs.h509 int logfs_fsync(struct file *file, loff_t start, loff_t end, int datasync);
/linux-4.1.27/fs/f2fs/
H A Dfile.c172 int f2fs_sync_file(struct file *file, loff_t start, loff_t end, int datasync) f2fs_sync_file() argument
198 trace_f2fs_sync_file_exit(inode, need_cp, datasync, ret); f2fs_sync_file()
203 if (!datasync && is_inode_flag_set(fi, FI_DIRTY_INODE)) { f2fs_sync_file()
273 trace_f2fs_sync_file_exit(inode, need_cp, datasync, ret); f2fs_sync_file()
/linux-4.1.27/fs/ntfs/
H A Ddir.c1479 * @datasync: if non-zero only flush user data and not metadata
1487 * If @datasync is true, we do not wait on the inode(s) to be written out
1501 int datasync) ntfs_dir_fsync()
1522 write_inode_now(bmp_vi, !datasync); ntfs_dir_fsync()
1526 write_inode_now(vi, !datasync); ntfs_dir_fsync()
1534 "%u.", datasync ? "data" : "", vi->i_ino, -ret); ntfs_dir_fsync()
1500 ntfs_dir_fsync(struct file *filp, loff_t start, loff_t end, int datasync) ntfs_dir_fsync() argument
H A Dfile.c1966 * @datasync: if non-zero only flush user data and not metadata
1971 * If @datasync is false, write the mft record and all associated extent mft
1974 * If @datasync is true and the attribute is non-resident, we skip the writing
1978 * Also, if @datasync is true, we do not wait on the inode to be written out
1988 int datasync) ntfs_file_fsync()
2001 if (!datasync || !NInoNonResident(NTFS_I(vi))) ntfs_file_fsync()
2003 write_inode_now(vi, !datasync); ntfs_file_fsync()
2016 "%u.", datasync ? "data" : "", vi->i_ino, -ret); ntfs_file_fsync()
1987 ntfs_file_fsync(struct file *filp, loff_t start, loff_t end, int datasync) ntfs_file_fsync() argument
/linux-4.1.27/fs/ocfs2/
H A Djournal.h636 int datasync) ocfs2_update_inode_fsync_trans()
641 if (datasync) ocfs2_update_inode_fsync_trans()
634 ocfs2_update_inode_fsync_trans(handle_t *handle, struct inode *inode, int datasync) ocfs2_update_inode_fsync_trans() argument
H A Dfile.c175 int datasync) ocfs2_sync_file()
190 (unsigned long long)datasync); ocfs2_sync_file()
199 commit_tid = datasync ? oi->i_datasync_tid : oi->i_sync_tid; ocfs2_sync_file()
174 ocfs2_sync_file(struct file *file, loff_t start, loff_t end, int datasync) ocfs2_sync_file() argument
/linux-4.1.27/fs/afs/
H A Dwrite.c682 int afs_fsync(struct file *file, loff_t start, loff_t end, int datasync) afs_fsync() argument
691 datasync); afs_fsync()
/linux-4.1.27/drivers/char/
H A Dps3flash.c289 static int ps3flash_fsync(struct file *file, loff_t start, loff_t end, int datasync) ps3flash_fsync() argument
/linux-4.1.27/include/net/9p/
H A Dclient.h238 int p9_client_fsync(struct p9_fid *fid, int datasync);
/linux-4.1.27/fs/gfs2/
H A Dfile.c635 * @datasync: set if we can ignore timestamp changes
652 int datasync) gfs2_fsync()
668 if (datasync) gfs2_fsync()
651 gfs2_fsync(struct file *file, loff_t start, loff_t end, int datasync) gfs2_fsync() argument
/linux-4.1.27/fs/ceph/
H A Dcaps.c1898 int ceph_fsync(struct file *file, loff_t start, loff_t end, int datasync) ceph_fsync() argument
1906 dout("fsync %p%s\n", inode, datasync ? " datasync" : ""); ceph_fsync()
1922 if (!datasync && (dirty & ~CEPH_CAP_ANY_FILE_WR)) { ceph_fsync()
1928 dout("fsync %p%s done\n", inode, datasync ? " datasync" : ""); ceph_fsync()
H A Dsuper.h846 int datasync);
H A Ddir.c1231 int datasync) ceph_dir_fsync()
1230 ceph_dir_fsync(struct file *file, loff_t start, loff_t end, int datasync) ceph_dir_fsync() argument
/linux-4.1.27/fs/xfs/
H A Dxfs_file.c177 int datasync) xfs_dir_fsync()
200 int datasync) xfs_file_fsync()
240 if (!datasync || xfs_file_fsync()
173 xfs_dir_fsync( struct file *file, loff_t start, loff_t end, int datasync) xfs_dir_fsync() argument
196 xfs_file_fsync( struct file *file, loff_t start, loff_t end, int datasync) xfs_file_fsync() argument
/linux-4.1.27/fs/hfsplus/
H A Dhfsplus_fs.h488 int datasync);
H A Dinode.c279 int datasync) hfsplus_file_fsync()
278 hfsplus_file_fsync(struct file *file, loff_t start, loff_t end, int datasync) hfsplus_file_fsync() argument
/linux-4.1.27/net/9p/
H A Dclient.c1417 int p9_client_fsync(struct p9_fid *fid, int datasync) p9_client_fsync() argument
1423 p9_debug(P9_DEBUG_9P, ">>> TFSYNC fid %d datasync:%d\n", p9_client_fsync()
1424 fid->fid, datasync); p9_client_fsync()
1428 req = p9_client_rpc(clnt, P9_TFSYNC, "dd", fid->fid, datasync); p9_client_fsync()
/linux-4.1.27/ipc/
H A Dshm.c447 static int shm_fsync(struct file *file, loff_t start, loff_t end, int datasync) shm_fsync() argument
453 return sfd->file->f_op->fsync(sfd->file, start, end, datasync); shm_fsync()
/linux-4.1.27/fs/ubifs/
H A Dfile.c1311 int ubifs_fsync(struct file *file, loff_t start, loff_t end, int datasync) ubifs_fsync() argument
1331 /* Synchronize the inode unless this is a 'datasync()' call. */ ubifs_fsync()
1332 if (!datasync || (inode->i_state & I_DIRTY_DATASYNC)) { ubifs_fsync()
H A Dubifs.h1747 int ubifs_fsync(struct file *file, loff_t start, loff_t end, int datasync);
/linux-4.1.27/fs/hfs/
H A Dinode.c650 int datasync) hfs_file_fsync()
649 hfs_file_fsync(struct file *filp, loff_t start, loff_t end, int datasync) hfs_file_fsync() argument
/linux-4.1.27/fs/fuse/
H A Dfile.c441 int datasync, int isdir) fuse_fsync_common()
474 inarg.fsync_flags = datasync ? 1 : 0; fuse_fsync_common()
494 int datasync) fuse_fsync()
496 return fuse_fsync_common(file, start, end, datasync, 0); fuse_fsync()
440 fuse_fsync_common(struct file *file, loff_t start, loff_t end, int datasync, int isdir) fuse_fsync_common() argument
493 fuse_fsync(struct file *file, loff_t start, loff_t end, int datasync) fuse_fsync() argument
H A Dfuse_i.h706 int datasync, int isdir);
H A Ddir.c1427 int datasync) fuse_dir_fsync()
1429 return fuse_fsync_common(file, start, end, datasync, 1); fuse_dir_fsync()
1426 fuse_dir_fsync(struct file *file, loff_t start, loff_t end, int datasync) fuse_dir_fsync() argument
/linux-4.1.27/fs/cifs/
H A Dfile.c2257 int datasync) cifs_strict_fsync()
2274 cifs_dbg(FYI, "Sync file - name: %pD datasync: 0x%x\n", cifs_strict_fsync()
2275 file, datasync); cifs_strict_fsync()
2299 int cifs_fsync(struct file *file, loff_t start, loff_t end, int datasync) cifs_fsync() argument
2316 cifs_dbg(FYI, "Sync file - name: %pD datasync: 0x%x\n", cifs_fsync()
2317 file, datasync); cifs_fsync()
2256 cifs_strict_fsync(struct file *file, loff_t start, loff_t end, int datasync) cifs_strict_fsync() argument
/linux-4.1.27/include/linux/
H A Dfs.h1605 int (*fsync) (struct file *, loff_t, loff_t, int datasync);
1606 int (*aio_fsync) (struct kiocb *, int datasync);
2397 int datasync);
2398 extern int vfs_fsync(struct file *file, int datasync); generic_write_sync()
2605 int datasync);
H A Dfb.h664 loff_t end, int datasync);
/linux-4.1.27/drivers/mtd/ubi/
H A Dcdev.c171 int datasync) vol_cdev_fsync()
170 vol_cdev_fsync(struct file *file, loff_t start, loff_t end, int datasync) vol_cdev_fsync() argument
/linux-4.1.27/drivers/usb/gadget/function/
H A Df_printer.c669 printer_fsync(struct file *fd, loff_t start, loff_t end, int datasync) printer_fsync() argument
/linux-4.1.27/fs/affs/
H A Dfile.c952 int affs_file_fsync(struct file *filp, loff_t start, loff_t end, int datasync) affs_file_fsync() argument
/linux-4.1.27/fs/btrfs/
H A Dfile.c1870 int btrfs_sync_file(struct file *file, loff_t start, loff_t end, int datasync) btrfs_sync_file() argument
1880 trace_btrfs_sync_file(file, datasync); btrfs_sync_file()
H A Dctree.h3979 int btrfs_sync_file(struct file *file, loff_t start, loff_t end, int datasync);
/linux-4.1.27/arch/powerpc/platforms/cell/spufs/
H A Dfile.c1852 static int spufs_mfc_fsync(struct file *file, loff_t start, loff_t end, int datasync) spufs_mfc_fsync() argument
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
H A Dfile.c2627 int ll_fsync(struct file *file, loff_t start, loff_t end, int datasync) ll_fsync() argument

Completed in 2448 milliseconds