make the feature checks in ->fallocate future proof
authorChristoph Hellwig <hch@lst.de>
Fri, 14 Jan 2011 12:07:30 +0000 (13:07 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 17 Jan 2011 07:25:30 +0000 (02:25 -0500)
commit64c23e86873ee410554d6d1c76b60da47025e96f
treeb30c5ff8782ebfdec6956d7834f796731fd3a1d4
parenteb745dbccce56f1bbe3f80b95ad2a325145171c2
make the feature checks in ->fallocate future proof

Instead of various home grown checks that might need updates for new
flags just check for any bit outside the mask of the features supported
by the filesystem.  This makes the check future proof for any newly
added flag.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/btrfs/inode.c
fs/ext4/extents.c
fs/gfs2/ops_inode.c
fs/ocfs2/file.c
fs/xfs/linux-2.6/xfs_iops.c