Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikanth Karthikesan <knikanth@suse.de>2010-04-09 10:29:52 +0200
committerNikanth Karthikesan <knikanth@suse.de>2010-04-09 10:29:52 +0200
commit78edf1e51c29ed00d5327897afb1fea9f08d0a0d (patch)
tree51255203ebc7aa2245d7ca4044456088fc9d870e
parentce7ad348d973f029bcd37ceab7ff3c1a5ff3fa12 (diff)
- patches.fixes/loop-update-mtime.patch: loop: Update mtime when
writing using aops (bnc#590738).
-rw-r--r--kernel-source.changes6
-rw-r--r--patches.fixes/loop-update-mtime.patch32
-rw-r--r--series.conf1
3 files changed, 39 insertions, 0 deletions
diff --git a/kernel-source.changes b/kernel-source.changes
index 804764edfa..4d4f2d0497 100644
--- a/kernel-source.changes
+++ b/kernel-source.changes
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Fri Apr 9 10:29:45 CEST 2010 - knikanth@suse.de
+
+- patches.fixes/loop-update-mtime.patch: loop: Update mtime when
+ writing using aops (bnc#590738).
+
+-------------------------------------------------------------------
Fri Apr 9 00:24:55 CEST 2010 - jeffm@suse.de
- patches.fixes/reiserfs-fix-permissions-on-reiserfs_priv:
diff --git a/patches.fixes/loop-update-mtime.patch b/patches.fixes/loop-update-mtime.patch
new file mode 100644
index 0000000000..bd8c61ddb0
--- /dev/null
+++ b/patches.fixes/loop-update-mtime.patch
@@ -0,0 +1,32 @@
+From: Nikanth Karthikesan <knikanth@suse.de>
+Subject: loop: Update mtime when writing using aops
+Patch-mainline: Probably 2.6.34. Currently in Jens's tree
+References: bnc#590738
+
+Date: Thu, 8 Apr 2010 19:39:31 +0000 (+0200)
+Subject: loop: Update mtime when writing using aops
+X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Faxboe%2Flinux-2.6-block.git;a=commitdiff_plain;h=02246c41171097ceab3246f6dc251ac89de6004b
+
+loop: Update mtime when writing using aops
+
+Update mtime when writing to backing filesystem using the address space
+operations write_begin and write_end.
+
+Signed-off-by: Nikanth Karthikesan <knikanth@suse.de>
+Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
+
+---
+
+Index: linux-2.6.33-master/drivers/block/loop.c
+===================================================================
+--- linux-2.6.33-master.orig/drivers/block/loop.c
++++ linux-2.6.33-master/drivers/block/loop.c
+@@ -238,6 +238,8 @@ static int do_lo_send_aops(struct loop_d
+ if (ret)
+ goto fail;
+
++ file_update_time(file);
++
+ transfer_result = lo_do_transfer(lo, WRITE, page, offset,
+ bvec->bv_page, bv_offs, size, IV);
+ copied = size;
diff --git a/series.conf b/series.conf
index 5cf581fea0..71b6205609 100644
--- a/series.conf
+++ b/series.conf
@@ -463,6 +463,7 @@
patches.drivers/libata-unlock-hpa-by-default
# Block layer fixes
+ patches.fixes/loop-update-mtime.patch
patches.fixes/scsi-inquiry-too-short-ratelimit
patches.suse/scsi-netlink-ml