lkml.org 
[lkml]   [2013]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 076/104] fuse: invalidate inode attributes on xattr modification
    Date
    3.5.7.22 -stable 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: Luis Henriques <luis.henriques@canonical.com>
    ---
    fs/fuse/dir.c | 4 ++++
    1 file changed, 4 insertions(+)

    diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c
    index f6e4bc8..b60cc5f 100644
    --- a/fs/fuse/dir.c
    +++ b/fs/fuse/dir.c
    @@ -1511,6 +1511,8 @@ static int fuse_setxattr(struct dentry *entry, const char *name,
    fc->no_setxattr = 1;
    err = -EOPNOTSUPP;
    }
    + if (!err)
    + fuse_invalidate_attr(inode);
    return err;
    }

    @@ -1640,6 +1642,8 @@ static int fuse_removexattr(struct dentry *entry, const char *name)
    fc->no_removexattr = 1;
    err = -EOPNOTSUPP;
    }
    + if (!err)
    + fuse_invalidate_attr(inode);
    return err;
    }

    --
    1.8.3.2


    \
     
     \ /
      Last update: 2013-09-30 13:21    [W:4.063 / U:0.076 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site