commit | 47ae32d6a54955a041cdc30b06d0bb16e75f68d5 | [log] [tgz] |
---|---|---|
author | Valerie Henson <[email protected]> | Wed Dec 13 00:34:34 2006 -0800 |
committer | Linus Torvalds <[email protected]> | Wed Dec 13 09:05:50 2006 -0800 |
tree | b28623f98ae536342d35443c6548c373df342e7f | |
parent | b227613841d4d211a10c5860acc73e133b613bc0 [diff] [blame] |
[PATCH] relative atime Add "relatime" (relative atime) support. Relative atime only updates the atime if the previous atime is older than the mtime or ctime. Like noatime, but useful for applications like mutt that need to know when a file has been read since it was last modified. A corresponding patch against mount(8) is available at http://userweb.kernel.org/~akpm/mount-relative-atime.txt Signed-off-by: Valerie Henson <[email protected]> Cc: Mark Fasheh <[email protected]> Cc: Al Viro <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Karel Zak <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
diff --git a/include/linux/mount.h b/include/linux/mount.h index e357dc8..1b7e178 100644 --- a/include/linux/mount.h +++ b/include/linux/mount.h
@@ -27,6 +27,7 @@ #define MNT_NOEXEC 0x04 #define MNT_NOATIME 0x08 #define MNT_NODIRATIME 0x10 +#define MNT_RELATIME 0x20 #define MNT_SHRINKABLE 0x100