Lines Matching +full:sync +full:- +full:write
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * mft.h - Defines for mft record handling in NTFS Linux kernel driver.
4 * Part of the Linux-NTFS project.
6 * Copyright (c) 2001-2004 Anton Altaparmakov
33 * flush_dcache_mft_record_page - flush_dcache_page() for mft records
43 flush_dcache_page(ni->page); in flush_dcache_mft_record_page()
49 * mark_mft_record_dirty - set the mft record and the page containing it dirty
66 MFT_RECORD *m, int sync);
68 extern int write_mft_record_nolock(ntfs_inode *ni, MFT_RECORD *m, int sync);
71 * write_mft_record - write out a mapped (extent) mft record
73 * @m: mapped (extent) mft record to write
74 * @sync: if true, wait for i/o completion
77 * locks the page for the duration of the write. This ensures that there are
79 * paths and via the page cache write back code paths or between writing
82 * Locking the page also serializes us against ->read_folio() if the page is not
86 * record dirty and return -errno.
88 static inline int write_mft_record(ntfs_inode *ni, MFT_RECORD *m, int sync) in write_mft_record() argument
90 struct page *page = ni->page; in write_mft_record()
95 err = write_mft_record_nolock(ni, m, sync); in write_mft_record()