Skip to content

Commit 000cb48

Browse files
jankaraLinus Torvalds
authored andcommitted
vfs: add explanation of I_DIRTY_DATASYNC bit
Add explanation of I_DIRTY_DATASYNC bit. Signed-off-by: Jan Kara <jack@suse.cz> Cc: Joern Engel <joern@logfs.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 0778361 commit 000cb48

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎include/linux/fs.h‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,8 +1284,10 @@ struct super_operations {
12841284
*
12851285
* I_DIRTY_SYNC Inode is dirty, but doesn't have to be written on
12861286
* fdatasync(). i_atime is the usual cause.
1287-
* I_DIRTY_DATASYNC Inode is dirty and must be written on fdatasync(), f.e.
1288-
* because i_size changed.
1287+
* I_DIRTY_DATASYNC Data-related inode changes pending. We keep track of
1288+
* these changes separately from I_DIRTY_SYNC so that we
1289+
* don't have to write inode on fdatasync() when only
1290+
* mtime has changed in it.
12891291
* I_DIRTY_PAGES Inode has dirty pages. Inode itself may be clean.
12901292
* I_NEW get_new_inode() sets i_state to I_LOCK|I_NEW. Both
12911293
* are cleared by unlock_new_inode(), called from iget().

0 commit comments

Comments
 (0)