lkml.org 
[lkml]   [2013]   [Oct]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 3.2 049/149] fuse: invalidate inode attributes on xattr modification
    3.2.52-rc1 review patch.  If anyone has any objections, please let me know.

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

    From: Anand Avati <avati@redhat.com>

    commit d331a415aef98717393dda0be69b7947da08eba3 upstream.

    Calls like setxattr and removexattr result in updation of ctime.
    Therefore invalidate inode attributes to force a refresh.

    Signed-off-by: Anand Avati <avati@redhat.com>
    Reviewed-by: Brian Foster <bfoster@redhat.com>
    Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
    Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
    ---
    fs/fuse/dir.c | 4 ++++
    1 file changed, 4 insertions(+)

    --- a/fs/fuse/dir.c
    +++ b/fs/fuse/dir.c
    @@ -1439,6 +1439,8 @@ static int fuse_setxattr(struct dentry *
    fc->no_setxattr = 1;
    err = -EOPNOTSUPP;
    }
    + if (!err)
    + fuse_invalidate_attr(inode);
    return err;
    }

    @@ -1568,6 +1570,8 @@ static int fuse_removexattr(struct dentr
    fc->no_removexattr = 1;
    err = -EOPNOTSUPP;
    }
    + if (!err)
    + fuse_invalidate_attr(inode);
    return err;
    }



    \
     
     \ /
      Last update: 2013-10-21 11:41    [W:5.197 / U:0.748 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site