]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/inode.c
Btrfs: don't update atime on RO subvolumes
[karo-tx-linux.git] / fs / inode.c
index c99163b1b31036ef68974c0c5dbc192f8f73f4da..033529ecd242b94ca91f1b1818fe51df7b8c4ba8 100644 (file)
@@ -1551,6 +1551,8 @@ void touch_atime(struct path *path)
         * Btrfs), but since we touch atime while walking down the path we
         * really don't care if we failed to update the atime of the file,
         * so just ignore the return value.
+        * We may also fail on filesystems that have the ability to make parts
+        * of the fs read only, e.g. subvolumes in Btrfs.
         */
        update_time(inode, &now, S_ATIME);
        mnt_drop_write(mnt);