+ reiserfs-update-ctime-and-mtime-on-expanding-truncate.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     reiserfs: update ctime and mtime on expanding truncate

has been added to the -mm tree.  Its filename is

     reiserfs-update-ctime-and-mtime-on-expanding-truncate.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: reiserfs: update ctime and mtime on expanding truncate
From: Vladimir Saveliev <vs@xxxxxxxxxxx>

Reiserfs does not update ctime and mtime on expanding truncate via
truncate().  This patch fixes it.

Signed-off-by: Vladimir Saveliev <vs@xxxxxxxxxxx>
Cc: Hans Reiser <reiser@xxxxxxxxxxx>
Cc: Michael Kerrisk <mtk-manpages@xxxxxxx>
Cc: Chris Mason <mason@xxxxxxxx>
Cc: Jeff Mahoney <jeffm@xxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 fs/reiserfs/inode.c |    5 +++++
 1 files changed, 5 insertions(+)

diff -puN fs/reiserfs/inode.c~reiserfs-update-ctime-and-mtime-on-expanding-truncate fs/reiserfs/inode.c
--- a/fs/reiserfs/inode.c~reiserfs-update-ctime-and-mtime-on-expanding-truncate
+++ a/fs/reiserfs/inode.c
@@ -2933,6 +2933,11 @@ int reiserfs_setattr(struct dentry *dent
 			}
 			if (error)
 				goto out;
+			/*
+			 * file size is changed, ctime and mtime are
+			 * to be updated
+			 */
+			attr->ia_valid |= (ATTR_MTIME | ATTR_CTIME);
 		}
 	}
 
_

Patches currently in -mm which might be from vs@xxxxxxxxxxx are

origin.patch
reiserfs-update-ctime-and-mtime-on-expanding-truncate.patch
reiser4.patch
reiser4-hardirq-include-fix.patch
reiser4-fix-trivial-tyops-which-were-hard-to-hit.patch
reiser4-run-truncate_inode_pages-in-reiser4_delete_inode.patch
fs-reiser4-possible-cleanups.patch
reiser4-get_sb_dev-fix.patch
reiser4-vs-zoned-allocator.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux