diff options
author | Josef Bacik <josef@redhat.com> | 2012-04-05 21:03:02 +0200 |
---|---|---|
committer | Josef Bacik <josef@redhat.com> | 2012-05-30 16:23:27 +0200 |
commit | 0c4d2d95d06e920e0c61707e62c7fffc9c57f63a (patch) | |
tree | 5d6fa736c7fea0a0afd60eda8e6e0586df6fb606 /fs/btrfs/ioctl.c | |
parent | Btrfs: cleanup: use consistent lock naming (diff) | |
download | linux-0c4d2d95d06e920e0c61707e62c7fffc9c57f63a.tar.xz linux-0c4d2d95d06e920e0c61707e62c7fffc9c57f63a.zip |
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/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 14f8e1faa46e..fccde7402cfe 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -261,6 +261,7 @@ static int btrfs_ioctl_setflags(struct file *file, void __user *arg) } btrfs_update_iflags(inode); + inode_inc_iversion(inode); inode->i_ctime = CURRENT_TIME; ret = btrfs_update_inode(trans, root, inode); @@ -2622,6 +2623,7 @@ static noinline long btrfs_ioctl_clone(struct file *file, unsigned long srcfd, btrfs_mark_buffer_dirty(leaf); btrfs_release_path(path); + inode_inc_iversion(inode); inode->i_mtime = inode->i_ctime = CURRENT_TIME; /* |