lkml.org 
[lkml]   [2010]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[106/111] loop: Update mtime when writing using aops
    2.6.32-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: Nikanth Karthikesan <knikanth@suse.de>

    commit 02246c41171097ceab3246f6dc251ac89de6004b upstream.

    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>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    drivers/block/loop.c | 2 ++
    1 file changed, 2 insertions(+)

    --- a/drivers/block/loop.c
    +++ b/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;



    \
     
     \ /
      Last update: 2010-08-12 02:05    [W:0.022 / U:59.364 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site