]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit147675c94be0c533945e69e1fb7af4737c9f0d39
treeb30c5ff8782ebfdec6956d7834f796731fd3a1d4
parent690211e43bf954743df48bfdb63c41a91331ddae
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