diff options
author | OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> | 2014-05-13 20:57:50 +0900 |
---|---|---|
committer | Daniel Phillips <daniel@tux3.org> | 2014-05-13 20:57:50 +0900 |
commit | f1e878a1ff27466809adbb51e76ccc8643c3f28d (patch) | |
tree | f12de1faa1047a85a7a99f3319455e7025d6bbcc | |
parent | f82233703a6cb2d977d802d8403beafd4b180ee8 (diff) | |
download | linux-tux3-f1e878a1ff27466809adbb51e76ccc8643c3f28d.tar.gz |
tux3: Fix missing i_ctime update for xattr
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
-rw-r--r-- | fs/tux3/xattr.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/tux3/xattr.c b/fs/tux3/xattr.c index 7872119f6f9ae8..5dc313defd7449 100644 --- a/fs/tux3/xattr.c +++ b/fs/tux3/xattr.c @@ -637,6 +637,9 @@ static int xcache_update(struct inode *inode, unsigned atom, const void *data, tux_inode(inode)->xcache->size += more; memcpy(xattr->body, data, (xattr->size = len)); xattr->atom = atom; + + tux3_iattrdirty(inode); + inode->i_ctime = gettime(); tux3_mark_inode_dirty(inode); use++; @@ -750,6 +753,8 @@ int del_xattr(struct inode *inode, const char *name, unsigned len) tux3_xattrdirty(inode); int used = remove_old(xcache, xattr); if (used) { + tux3_iattrdirty(inode); + inode->i_ctime = gettime(); tux3_mark_inode_dirty(inode); /* FIXME: error check */ atomref(atable, atom, -used); |