[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1330602103-8851-4-git-send-email-jack@suse.cz>
Date: Thu, 1 Mar 2012 12:41:37 +0100
From: Jan Kara <jack@...e.cz>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: linux-mm@...ck.org, LKML <linux-kernel@...r.kernel.org>,
Al Viro <viro@...IV.linux.org.uk>,
linux-fsdevel@...r.kernel.org, dchinner@...hat.com,
Jan Kara <jack@...e.cz>, Sage Weil <sage@...dream.net>,
ceph-devel@...r.kernel.org
Subject: [PATCH 3/9] ceph: Push file_update_time() into ceph_page_mkwrite()
CC: Sage Weil <sage@...dream.net>
CC: ceph-devel@...r.kernel.org
Acked-by: Sage Weil <sage@...dream.net>
Signed-off-by: Jan Kara <jack@...e.cz>
---
fs/ceph/addr.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c
index 173b1d2..12b139f 100644
--- a/fs/ceph/addr.c
+++ b/fs/ceph/addr.c
@@ -1181,6 +1181,9 @@ static int ceph_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf)
loff_t size, len;
int ret;
+ /* Update time before taking page lock */
+ file_update_time(vma->vm_file);
+
size = i_size_read(inode);
if (off + PAGE_CACHE_SIZE <= size)
len = PAGE_CACHE_SIZE;
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists