lkml.org 
[lkml]   [2007]   [Sep]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 10/32] Unionfs: cache-coherency - file flush
    Date
    From: Erez Zadok <ezk@cs.sunysb.edu>

    Update our inode's time after flush.

    Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
    Signed-off-by: Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu>
    ---
    fs/unionfs/commonfops.c | 5 +++++
    1 files changed, 5 insertions(+), 0 deletions(-)

    diff --git a/fs/unionfs/commonfops.c b/fs/unionfs/commonfops.c
    index 0dc7492..edb52c0 100644
    --- a/fs/unionfs/commonfops.c
    +++ b/fs/unionfs/commonfops.c
    @@ -742,6 +742,11 @@ int unionfs_flush(struct file *file, fl_owner_t id)

    }

    + /* on success, update our times */
    + unionfs_copy_attr_times(dentry->d_inode);
    + /* parent time could have changed too (async) */
    + unionfs_copy_attr_times(dentry->d_parent->d_inode);
    +
    out_lock:
    unionfs_unlock_dentry(dentry);
    out:
    --
    1.5.2.2.238.g7cbf2f2
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-09-03 04:41    [W:0.021 / U:122.012 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site