diff options
author | Josef Bacik <josef@redhat.com> | 2012-04-05 15:03:02 -0400 |
---|---|---|
committer | Josef Bacik <josef@redhat.com> | 2012-05-30 10:23:27 -0400 |
commit | 0c4d2d95d06e920e0c61707e62c7fffc9c57f63a (patch) | |
tree | 5d6fa736c7fea0a0afd60eda8e6e0586df6fb606 /fs/btrfs/file.c | |
parent | a25c75d5ad04df0a7abd09585231b4021a91a358 (diff) |
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/file.c')
-rw-r--r-- | fs/btrfs/file.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 53bf2d764bbc..8aa8d7fe74d7 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c | |||
@@ -1409,7 +1409,6 @@ static ssize_t btrfs_file_aio_write(struct kiocb *iocb, | |||
1409 | mutex_unlock(&inode->i_mutex); | 1409 | mutex_unlock(&inode->i_mutex); |
1410 | goto out; | 1410 | goto out; |
1411 | } | 1411 | } |
1412 | BTRFS_I(inode)->sequence++; | ||
1413 | 1412 | ||
1414 | start_pos = round_down(pos, root->sectorsize); | 1413 | start_pos = round_down(pos, root->sectorsize); |
1415 | if (start_pos > i_size_read(inode)) { | 1414 | if (start_pos > i_size_read(inode)) { |