Various odd things going on here: - no checks for I_DIRTY and friends, so it will always write out data - filemap_write_and_wait is superflous, as it's already done by the caller - write_inode_now is overkill as it also writes out data, better use sync_inode in a similar way to generic_file_fsync -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html