int ntfs_write_inode (struct inode * vi, int sync);
Write out a dirty inode to disk including any extent inodes if present.
If sync is true, commit the inode to disk and wait for io completion. This is done using write_mft_record.
If sync is false, just schedule the write to happen but do not wait for i/o completion. In 2.6 kernels, scheduling usually happens just by virtue of marking the page (and in this case mft record) dirty but we do not implement this yet as write_mft_record largely ignores the sync parameter and always performs synchronous writes.
Return 0 on success and -errno on error.