# # # # # Copyright © 2014 Tobias Klauser # Released under the terms of the Artistic Licence 2.0 # # Source repository: git://git.distanz.ch/dotfiles/zsh.git # vim:ft=zsh stanz.ch/cgit.cgi/linux/net-next.git/atom/?h=master' type='application/atom+xml'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
ss='right'>2016-10-20 15:49:03 +1100
committerDave Chinner <david@fromorbit.com>2016-10-20 15:49:03 +1100
commita62e82b35b97e60e9e22a4e303900f342139822f (patch)
tree59cb362b3750845f992dd70f578ddcacda986bac
parent4fbc2c65255f77b315a4ee3ccac397d677a35737 (diff)
xfs: fix the same_inode check in xfs_file_share_range
The VFS i_ino is an unsigned long, while XFS inode numbers are 64-bit wide, so checking i_ino for equality could lead to rate false positives on 32-bit architectures. Just compare the inode pointers themselves to be safe. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
-rw-r--r--fs/xfs/xfs_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c