---
name: "file_update_time"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/file_update_time"
---

# file\_update\_time(9)

update mtime and ctime time

## NAME

file\_update\_time - update mtime and ctime time

## SYNOPSIS

**int file\_update\_time(struct file \*** *file***);**

## ARGUMENTS

*file*

file accessed

## DESCRIPTION

Update the mtime and ctime members of an inode and mark the inode for writeback. Note that this function is meant exclusively for usage in the file write path of filesystems, and filesystems may choose to explicitly ignore update via this function with the S\_NOCMTIME inode flag, e.g. for network filesystem where these timestamps are handled by the server. This can return an error for file systems who need to allocate space in order to update an inode.

## COPYRIGHT
