Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 000cb48e authored by Jan Kara's avatar Jan Kara Committed by Linus Torvalds
Browse files

vfs: add explanation of I_DIRTY_DATASYNC bit



Add explanation of I_DIRTY_DATASYNC bit.

Signed-off-by: default avatarJan Kara <jack@suse.cz>
Cc: Joern Engel <joern@logfs.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 07783618
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -1284,8 +1284,10 @@ struct super_operations {
 *
 *
 * I_DIRTY_SYNC		Inode is dirty, but doesn't have to be written on
 * I_DIRTY_SYNC		Inode is dirty, but doesn't have to be written on
 *			fdatasync().  i_atime is the usual cause.
 *			fdatasync().  i_atime is the usual cause.
 * I_DIRTY_DATASYNC	Inode is dirty and must be written on fdatasync(), f.e.
 * I_DIRTY_DATASYNC	Data-related inode changes pending. We keep track of
 *			because i_size changed.
 *			these changes separately from I_DIRTY_SYNC so that we
 *			don't have to write inode on fdatasync() when only
 *			mtime has changed in it.
 * I_DIRTY_PAGES	Inode has dirty pages.  Inode itself may be clean.
 * I_DIRTY_PAGES	Inode has dirty pages.  Inode itself may be clean.
 * I_NEW		get_new_inode() sets i_state to I_LOCK|I_NEW.  Both
 * I_NEW		get_new_inode() sets i_state to I_LOCK|I_NEW.  Both
 *			are cleared by unlock_new_inode(), called from iget().
 *			are cleared by unlock_new_inode(), called from iget().