diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-10-28 11:54:24 +0200 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2011-11-08 17:48:23 +0100 |
commit | 272e42b215c52d32e06bf035c1f6b70baa6716bd (patch) | |
tree | b09ad40176f53006d57669255991a42ee38eb488 /fs/xfs/xfs_buf_item.c | |
parent | xfs: Fix possible memory corruption in xfs_readlink (diff) | |
download | linux-272e42b215c52d32e06bf035c1f6b70baa6716bd.tar.xz linux-272e42b215c52d32e06bf035c1f6b70baa6716bd.zip |
xfs: constify xfs_item_ops
The log item ops aren't nessecarily the biggest exploit vector, but marking
them const is easy enough. Also remove the unused xfs_item_ops_t typedef
while we're at it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_buf_item.c')
-rw-r--r-- | fs/xfs/xfs_buf_item.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_buf_item.c b/fs/xfs/xfs_buf_item.c index 1a3513881bce..eac97ef81e2a 100644 --- a/fs/xfs/xfs_buf_item.c +++ b/fs/xfs/xfs_buf_item.c @@ -656,7 +656,7 @@ xfs_buf_item_committing( /* * This is the ops vector shared by all buf log items. */ -static struct xfs_item_ops xfs_buf_item_ops = { +static const struct xfs_item_ops xfs_buf_item_ops = { .iop_size = xfs_buf_item_size, .iop_format = xfs_buf_item_format, .iop_pin = xfs_buf_item_pin, |