summaryrefslogtreecommitdiff
path: root/fs/btrfs/xattr.c
diff options
context:
space:
mode:
authorJosef Bacik <josef@redhat.com>2012-04-05 23:03:02 +0400
committerJosef Bacik <josef@redhat.com>2012-05-30 18:23:27 +0400
commit0c4d2d95d06e920e0c61707e62c7fffc9c57f63a (patch)
tree5d6fa736c7fea0a0afd60eda8e6e0586df6fb606 /fs/btrfs/xattr.c
parenta25c75d5ad04df0a7abd09585231b4021a91a358 (diff)
downloadlinux-0c4d2d95d06e920e0c61707e62c7fffc9c57f63a.tar.xz
Btrfs: use i_version instead of our own sequence
We've been keeping around the inode sequence number in hopes that somebody would use it, but nobody uses it and people actually use i_version which serves the same purpose, so use i_version where we used the incore inode's sequence number and that way the sequence is updated properly across the board, and not just in file write. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
Diffstat (limited to 'fs/btrfs/xattr.c')
-rw-r--r--fs/btrfs/xattr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/xattr.c b/fs/btrfs/xattr.c
index e7a5659087e6..3f4e2d69e83a 100644
--- a/fs/btrfs/xattr.c
+++ b/fs/btrfs/xattr.c
@@ -196,6 +196,7 @@ int __btrfs_setxattr(struct btrfs_trans_handle *trans,
if (ret)
goto out;
+ inode_inc_iversion(inode);
inode->i_ctime = CURRENT_TIME;
ret = btrfs_update_inode(trans, root, inode);
BUG_ON(ret);