Commit 98dc40f9 authored by Federico Vaga's avatar Federico Vaga

(incompatible) rename: ZIO_BFLAG to ZIO_BUF_FLAG

Signed-off-by: 's avatarFederico Vaga <federico.vaga@gmail.com>
Acked-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent bd59536f
......@@ -45,7 +45,7 @@ struct zio_buffer_type {
#define to_zio_buf(ptr) container_of(ptr, struct zio_buffer_type, head.dev)
/* buffer_type->flags */
#define ZIO_BFLAG_ALLOC_FOPS 0x00000001 /* set by zio-core */
#define ZIO_BUF_FLAG_ALLOC_FOPS 0x00000001 /* set by zio-core */
extern const struct file_operations zio_generic_file_operations;
......
......@@ -549,7 +549,7 @@ int zio_init_buffer_fops(struct zio_buffer_type *zbuf)
ops = kzalloc(sizeof(*ops), GFP_KERNEL);
if (!ops)
return -ENOMEM;
zbuf->flags |= ZIO_BFLAG_ALLOC_FOPS;
zbuf->flags |= ZIO_BUF_FLAG_ALLOC_FOPS;
*ops = zio_generic_file_operations;
ops->owner = zbuf->owner;
zbuf->f_op = ops;
......@@ -558,9 +558,9 @@ int zio_init_buffer_fops(struct zio_buffer_type *zbuf)
int zio_fini_buffer_fops(struct zio_buffer_type *zbuf)
{
if (!(zbuf->flags & ZIO_BFLAG_ALLOC_FOPS))
if (!(zbuf->flags & ZIO_BUF_FLAG_ALLOC_FOPS))
return 0;
zbuf->flags &= ~ZIO_BFLAG_ALLOC_FOPS;
zbuf->flags &= ~ZIO_BUF_FLAG_ALLOC_FOPS;
kfree(zbuf->f_op);
zbuf->f_op = &zio_generic_file_operations;
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment